Flash write

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

Flash write

1,008 次查看
wangzhongyuan
Contributor I

I wanna write some data in P-Flash with MC9S12ZVCA192. When I debug the program with step by step, the data can write P-Flash. But When I run the program in debug, it was paused in the FSTAT_CCIF = 1. When I check FSTAT register, I find it data was 00001000b.

标记 (2)
0 项奖励
回复
1 回复

815 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,
By writing FSTAT_CCIF = 1, you launch the flash command.
Please make sure you don’t launch the command from the same flash block.
You may refer to S12Z Flash example code 

In the example, you can place the code either into RAM or execute the code in an array of instruction in machine code.

Regards,
Daniel

0 项奖励
回复