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

Problem with the bootloader startup file(LPC2378)

Hi

We have two different projects bootloader(without RTX kernal) and Application code (with RTX Kernal).When we laod the bootlaoder and the application code, part of the RAM data will be corrupted.Please guide to resolve this problem.

Software interrupts is not required for the bootlaoder
we have not shifted the interrupt address, we are using the same interrupt address

Meomory mapping is as below
Bootloader 0 - 0x2000
Application code starts from 0x2000

Thank you
Harish

Parents
  • Whos RAM data gets corrupted? Which startup file is responsible for initializing this RAM data? When does it get corrupted?

    The boot loader would normally setup whatever RAM it needs. Then jump to the application, who will take over the ownership of all RAM and initialize again.

    An alternative is to reserve a small part of the RAM for the boot loader, to allow the boot loader so send information to the application. This could let the boot loader complain if it detects multiple watchdog resets, possibly informing the application to try to report an alarm and switch to a fail-safe mode with limited functionality.

Reply
  • Whos RAM data gets corrupted? Which startup file is responsible for initializing this RAM data? When does it get corrupted?

    The boot loader would normally setup whatever RAM it needs. Then jump to the application, who will take over the ownership of all RAM and initialize again.

    An alternative is to reserve a small part of the RAM for the boot loader, to allow the boot loader so send information to the application. This could let the boot loader complain if it detects multiple watchdog resets, possibly informing the application to try to report an alarm and switch to a fail-safe mode with limited functionality.

Children