Hi to you all,
I'm trying to debug my progect on a LPC4370 and LPClink2 eval board. I use DEBUGOUT on the UART connect to a host computer via FTDI cable.
Everything is fine, but after DMA's initialization (using DMA's interrupt) I'm unable to use UART even if I diasble the DMA and the interrupt associated. What am I missing?
Refernce for DEBUGOUT can be found here: https://community.nxp.com/message/637968
Any help would be highly appreciated!
Andrea
Hi,
I do not know if this is helpful, but I had the problem that I could not use DEBUGOUT (but not related to DMA) and I solved it with the following setting:
Project -> Properties -> C/C++ Build -> Settings -> Tool Settings(first tab) -> MCU Linker -> Managed Linker Script -> Library -> Redlib (nohost)
Regards,
Doini
Hi Doinita,
thanks for the reply! I read all the faqs related to this and I can confirm that I'm linking to Redlib(nohost). In fact the DEBUGOUT macro does work before using the DMA.
The problem is a dinamic allocation in the FLASH from a malloc() call inside the printf(), the error is this:
No source available for "printf() at 0x14002d72"
No source available for "malloc() at 0x14003fa8"
No source available for "<signal handler called>() at 0xfffffff9"