Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - AlexS

Pages: 1 [2]
16
NXPTM M522XX, KINETIS and i.MX RT / Undefined reference to _sbrk
« on: May 30, 2018, 12:13:03 PM »
Hi,

Been working to port the original project (based on Processor Expert and CodeWarrior) to uTasker and MCUXpresso. Things are going quite smoothly, support is great, but, as some parts of my code use dynamic memory allocation, ran into an 'undefined reference _sbrk' linker error. Did some digging and found the reason to be the lack of libcr_c.a and libcr_eabihelpers.a, which, as far as I can work out, are archives with Redlib implementations for these functions.

The new linker error is an undefined reference to _pvHeapStart which I can easily sort by defining those symbols in the linker file, but it somehow doesn't feel right.

Thanks!


17
NXPTM M522XX, KINETIS and i.MX RT / UART DMA Defines
« on: May 24, 2018, 02:32:36 PM »
Hi,

Just started working with the Kinetis version of uTasker and first task is to get UART running with DMA and RX in free-running mode. Anyway, dug into the Tty_drv.c and found this bit:

Code: [Select]
#if defined SERIAL_SUPPORT_DMA_                                          // {18}
            if (ptTTYQue->ucDMA_mode & UART_TX_DMA) {
                QUEUE_TRANSFER reduction = (ptTTYQue->lastDMA_block_length - fnRemainingDMA_tx(channel)); // get the number of characters
                ptTTYQue->tty_queue.chars -= reduction;
                ptTTYQue->lastDMA_block_length -= reduction;
                ptTTYQue->tty_queue.put += reduction;
                if (ptTTYQue->tty_queue.put >= ptTTYQue->tty_queue.buffer_end) {
                    ptTTYQue->tty_queue.put -= ptTTYQue->tty_queue.buf_length;
                }
            }
#endif

Problem I'm seeing is that SERIAL_SUPPORT_DMA_ is not defined anywhere in the app_hw_kinetis.h header, but SERIAL_SUPPORT_DMA is.

Thanks,
Alex

Pages: 1 [2]