This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bootloader to Application switching troubles ....

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 !

Parents
  • Thanks for the tips.
    After some debug, the clock is not the source of the trouble but the UART is !

    the sendchar-) function used is not under interrupt but use a flag that wait for a bit . And that flag is never set ...
    In fact, when the bootloader start , it sets the UART1,
    does it job and when the application is launched the UART1 is re-configured. And it's here there's something wrong .
    I have to do a particular process to deactivate the UART1 in the bootloader before launching the app.
    But I realla don't know why and how :)

Reply
  • Thanks for the tips.
    After some debug, the clock is not the source of the trouble but the UART is !

    the sendchar-) function used is not under interrupt but use a flag that wait for a bit . And that flag is never set ...
    In fact, when the bootloader start , it sets the UART1,
    does it job and when the application is launched the UART1 is re-configured. And it's here there's something wrong .
    I have to do a particular process to deactivate the UART1 in the bootloader before launching the app.
    But I realla don't know why and how :)

Children