Hi,
I'm facing a problem using HALCoGen to generate code for a simple program that is just meant to echo whatever is entered onto a terminal connected the virtual serial port associated with my RM57Lx Launchpad.
I have attached my project to this message. I am new to this board, so maybe what I am doing wrong is quite obvious.
Here are my problems:
1) In HALCoGen, I did mention that I wanted to initialize SCI1 with both TX and RX interrupts enabled, but the code generated in sciInit only seems to enable the RX interrupt. This I worked around by calling sciEnableNotification in main()
2) When I deploy an application that is compiled with the TI ARM Toolchain, even when I try to just blink and LED (no SCI), and when i erase the entire flash before a loading my executable, the red ERR LED glows. If I compile the same application using the GNU toolchain (my CCS project has 2 debug configurations), the application runs without triggering the ERR LED.
3) Finally - this is really the question that needs to be answered - when I configure SCI1 (which from the launchpad schematic is what is connected to the XDS110 debug probe) to work as a UART, and when I deploy the application. The application goes to preFetchEntry at some point - I'm not sure when or where! In fact, when I put breakpoints in the code (for example in the SCI interrupt handler), the program works as I expect - it echos whatever i type to the screen. But the moment i remove all breakpoints and click 'play' - the application goes to preFetchEntry.
Do you know what's going on?
Thanks,
Sid