Copy code to ram

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Copy code to ram

434 次查看
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 项奖励
回复
1 回复

372 次查看
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 项奖励
回复