A/B swap OTA -s32k344

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

A/B swap OTA -s32k344

2,195 次查看
Vamsi421
Contributor II

Hi,
I am trying A/b swap ota feature in nxps32k344. In this process i am using hse feature ,i collect the .bin file of the new firmware and placed it in the memory address of 0x005000000h and run the program . After completion of my program run i reset my board but i didn't get any update firmware and i tried to flash another program my board got disconnected and provided the error logs as shared in below attachments.

0 项奖励
回复
3 回复数

2,157 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Vamsi421 

1. Just to be sure - is the flash algorithm in Pemicro settings configured to ...ab_swap.arp? It can be found here:

lukaszadrapa_0-1732979245791.png

2. Was the swap successful? Did you get HSE_SRV_RSP_OK response when calling service HSE_SRV_ID_ACTIVATE_PASSIVE_BLOCK?

3. What can you see when you just attach the debugger?

https://community.nxp.com/t5/S32-Design-Studio/How-attach-to-running-program/m-p/1030375

If you watch the memory, are the partitions swapped? Or you can also check DCMOTAR bit in DCMSTAT register. See HSE FW RM for details.

If you reset the device by debugger after such attach, is the program counter set to entry point?

4. Is the bin file working when you program it directly to active region?

Regards,

Lukas

0 项奖励
回复

2,128 次查看
Vamsi421
Contributor II

 Hi @lukaszadrapa ,
I make all the steps that you are mentioned. But  i think the bin file which i stored is not the correct so i want to erase my flash before flashing my new application into NxpS32k344 board. Could you please provide the information related to how to erase the flash in Nxps32k344?
Thank you. 

0 项奖励
回复

2,113 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport
0 项奖励
回复