This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

problems in branching when executing in place from external flash

hi,

i am working on 814x target, and i am trying to boot the system using SBL package executing in place in the external flash (XIP mode),

the problem is whenever the code tries to branch to a label that is defined in a different file, something wrong happens with resolving this label to it's physical address in the flash, will enabling the MMU help solving this problem?or what could be done to solve this problem? and what are the minimal initialization needed to get the branching working fine?  (i.e the GPMC is configured and enabled before this kind of branching)

Thank You,

  • Mary,

    Are you using NOR Flash? Is it trying to write into the flash? Enabling MMU might not help the situation. Please give more specific details with the disassembly. Also share the address details and the map file of the bootloader.

    Also have you made sure that all the r/w sections (data, BSS, stack) are relocated in DDR/Internal memory?