mpc5675k code flash program

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

mpc5675k code flash program

Jump to solution
1,310 Views
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 Kudos
Reply
1 Solution
1,179 Views
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.

View solution in original post

0 Kudos
Reply
6 Replies
1,275 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

davidtosenovjan_0-1750951309772.png

 

0 Kudos
Reply
1,265 Views
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 Kudos
Reply
1,198 Views
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 Kudos
Reply
1,186 Views
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 Kudos
Reply
1,180 Views
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 Kudos
Reply
1,159 Views
mrhawk
Contributor II

understand, thx.

Hawk.

0 Kudos
Reply