S32K312 Flash Download after AB SWAP applied

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

S32K312 Flash Download after AB SWAP applied

418 Views
Daeyoung
Contributor I

Hello, I am Daeyoung.

I tried S32K312 Flash downloads(APP)  using s32k3.cmm(lauterbach) after AB SWAP applied.

But, An error occurred.

I expect adding the command below will solve the problem, but are there any additional options I should apply?

"FLASH.ChangeType 0x004D4000--0x004FFFFF NOP"

(Disable S32K312 Secure Area)

 

Thank you

0 Kudos
Reply
2 Replies

328 Views
Daeyoung
Contributor I

Thanks for your reply.

I'll try the method you told me.

Best regards,
Daeyoung

0 Kudos
Reply

339 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Daeyoung 

The original cmm file you sent is suitable only for FULL_MEM version of the firmware. There are two changes for AB_SWAP version:

1. As you mentioned, it's necessary to add the line below because two code flash areas are reserved:
FLASH.ChangeType 0x004D4000--0x004FFFFF NOP

lukaszadrapa_0-1730296788117.png

2. And then there's difference also in data flash. In FULL_MEM, you can use only 88KB of data flash:

lukaszadrapa_1-1730296799866.png

However, you can use whole 128KB in case of AB_SWAP:

lukaszadrapa_2-1730296811763.png

So, you can delete this line:

FLASH.ChangeType 0x10016000--0x1001FFFF NOP

Regards,
Lukas