I am trying to run the NXP LPC2138 UART sample bundle code. I was having trouble since there is a serial.c and a retarget.c file. If I added them both into a project I would get a error because both files have sendchar functions and they conflict. So I then removed the retarget.c file and it appeared to compile but I was getting stuck at software Interrupt. Searching I saw some discussion that this error could be caused by not having a retarget.c file in the project.
So I removed the serial.c file and placed the retarget.c file into the project. Then the project ran properly. Just like a echo program. My question is if there was a reason for there to be two separate Serial C files.
How would you be able to use the serial.c and not get the SWI interrupt? Basically I just wondering why it was included in the example code.
Retarget.c has a pragma about no semihosting and the serial.c does not.