Hello,
I have a home-made bootloader on a lpc2378 that upgrade the firmware from a SD card. It works well except there's some troubles that appears when the application is launched.
The interrupt vectors seem to be well remapped to RAM, since the software part that used interrupts are OK. But , I have trouble with the UART for example : no or random characters are sent. I seems like there's troubles with the clock settings.
Is there particular points to consider when you set the clock controller twice ? (at the boot time and in the startup of the application)
Thanks in advance !
Is there particular points to consider when you set the clock controller twice ?
I'm not sure if you mean the RTC, a timer or the baudrate generator when you write "the clock controller".
However, the normal action when reconfiguring a device is to first disable it, then give it new settings and finally reactivate it. It is easy to forget to deactivate the device, since a lot of example code assumes a first-time configuration, i.e. that the device is in the default state after a processor reset.