MPC5743R flash erase problem

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

MPC5743R flash erase problem

跳至解决方案
2,916 次查看
gaoqy
Contributor I

When the MPC5743R flash connection emulator jumps between the boot program and the app program, erasing the flash is normal. However, after removing the emulator and powering on, the app program runs normally. At this time, the upper computer software issues S19 files, and the app program jumps to the boot program. The front handshake signal is normal. Entering the flash erase function, it cannot exit, and it enters a software trap.

0 项奖励
回复
1 解答
2,862 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

You can see that the app program is not running

Hmm, I cant see it. Could you share any Failure analyzes with me? Where is the program stuck? Is watchdog called? Which instruction?  Any exception is called?

Does PE Multilink Universal have any impact?

Yes, that is possible. Debuggers do a lot of things in backround. For example RAM init, scripting, etc... We are not debugger vendor so its hard to say what is PE doing in background.

Best regards,

Peter

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,889 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Entering the flash erase function, it cannot exit, and it enters a software trap.

What is the state of microcontroller? Is any exception called? Is program stuck on some condition? could you share more details from issue debugging?

Best regards,

Peter

0 项奖励
回复
2,884 次查看
gaoqy
Contributor I

Hello

My configuration is as follows:

gaoqy_0-1679980831022.png

gaoqy_2-1679981390506.png

gaoqy_1-1679981344615.png

 

1. After downloading the program, connect the emulator to run the program, and the CAN can send data normally.

2. At this time, when the emulator is powered off and unplugged, the CAN cannot send data, and it feels like the program has not entered a jump address. As the emulator is not connected, it is also unable to observe the running status.

3. Can I have a MPC5743R bootloader program? Let me refer to it

0 项奖励
回复
2,880 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

After downloading the program, connect the emulator to run the program

I expect you mean programmer / debugger as there is no emulator for SPC5xxx devices at all.

Can I have a MPC5743R bootloader program? Let me refer to it

We provide Rappid bootloader which can use either UART or CAN. At the beginning, it’s necessary to load RBF file to flash via JTAG. Notice that we do not provide source codes, it cannot be modified. It’s also provided AS IS with no guarantees, it’s not supposed to be production code.

https://www.nxp.com/webapp/Download?colCode=RAPPID_BOOTLOADER_UTILITY&appType=license

Also notice that only CAN interfaces from Vector are supported.

 

Some custom RBF files can be downloaded here:

 

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/RAppID-Bootloader-custom-rbf-files/ta-...

 

Then we provide application note AN5319 which describes how to develop simple serial bootloader. SW example is included. It’s written for MPC5748G but it’s supposed to be starting point for all MPC57xx devices:

https://www.nxp.com/docs/en/application-note/AN5319.pdf

https://www.nxp.com/docs/en/application-note-software/AN5319SW.zip

 

If you are looking for out of box solution, you can ask Vector (or other SW vendors) for help:

https://www.vector.com/int/en/products/products-a-z/embedded-components/flash-bootloader#

best regards,

Peter

0 项奖励
回复
2,868 次查看
gaoqy
Contributor I

Hello,

The memory configuration of the boot and app is as follows:

gaoqy_0-1680060448196.png

My current problem is due to the jump between the boot and app programs. I have my own software to send S19, and do not need the RAppID Boot Loader Utility.

First, when MPC5743R connects to PE Multilink Universal, the boot and app programs can jump to each other and run normally.

However, when unplugging the PE Multilink Universal, power up and run it to enter the boot program, and then jump to the app program according to the conditions. You can see that the app program is not running

Does PE Multilink Universal have any impact?

 

0 项奖励
回复
2,863 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

You can see that the app program is not running

Hmm, I cant see it. Could you share any Failure analyzes with me? Where is the program stuck? Is watchdog called? Which instruction?  Any exception is called?

Does PE Multilink Universal have any impact?

Yes, that is possible. Debuggers do a lot of things in backround. For example RAM init, scripting, etc... We are not debugger vendor so its hard to say what is PE doing in background.

Best regards,

Peter

0 项奖励
回复