Copy code to ram

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Copy code to ram

406件の閲覧回数
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 返信

344件の閲覧回数
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 件の賞賛
返信