Copy code to ram

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Copy code to ram

433 Views
jhuang1
Contributor II

Hi,

   I wrote a bootloader to move app program to ram from flash. It worked fine when debugging, but the bootloader ran abnomally when memcpy() the code from flash to ram if powered up without debugging.

   I cannot copy code to ram directly using memcpy?  

0 Kudos
Reply
1 Reply

371 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @jhuang1 

it sounds like it could be caused by incorrect SRAM initialization. If you attach a debugger to a running target without reset, what exactly can you see?

https://community.nxp.com/t5/S32-Design-Studio/How-attach-to-running-program/m-p/1030375

Regards,

Lukas

0 Kudos
Reply