mpc5675k code flash program

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

mpc5675k code flash program

跳至解决方案
1,221 次查看
mrhawk
Contributor II

Hello Mr./Mrs:

I run my firmware in SRAM, and tried to program data(16 bytes) to code flash:

when i write to location 0x0000_0010 or other CFlash area,  it works, and data be correctly burned in.

But when i tried to write to location 0x0000_0000 ,  it failed, my firmware will be locked.

Looking forward for your advice.

Many thx.

Hawk.

0 项奖励
回复
1 解答
1,090 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Unfortunately these codes are intentionally provide as binaries and we don't provide source code.

And yes, I would recommend you to use SSD driver as it is the best option.

在原帖中查看解决方案

0 项奖励
回复
6 回复数
1,186 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

On address 0x0, there is usually stored RCHW, that's probably the reason.

davidtosenovjan_0-1750951309772.png

 

0 项奖励
回复
1,176 次查看
mrhawk
Contributor II

Thx David:

I did more test, pls check the picture below.

Prog_0x0_Locked.png

My firmware will locked in IVOR6_Vector when i set data to location 0x0.

Erase seems to be the same, when i set 0xFFFFFFFF to location 0x0, it will  be locked, but if i set 0xFFFFFFFF to other location, eg. 0x10, B0F0 block can be erased.

Is  address (0x0) protected?

Do you have any other hints?

Thx again .

Hawk.

0 项奖励
回复
1,109 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

You should not have opened memory dump window (as it is read operation in fact, it may affect erase/programming sequence).

0 项奖励
回复
1,097 次查看
mrhawk
Contributor II

Thx David:

I found "MPC567xK_C90LC_Flash_SSD", and had a try.

Erase/Program feature works fine.

Would you mind share the source code of this SSD with me? (Erase, Program... are all bin file)

Many thx.

Hawk.

0 项奖励
回复
1,091 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Unfortunately these codes are intentionally provide as binaries and we don't provide source code.

And yes, I would recommend you to use SSD driver as it is the best option.

0 项奖励
回复
1,070 次查看
mrhawk
Contributor II

understand, thx.

Hawk.

0 项奖励
回复