MPC5748G bootloader development

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

MPC5748G bootloader development

跳至解决方案
2,080 次查看
developer_newbie
Contributor III

Hello,

Sorry for my questions that seems strange

I am novice in development of microcontroller, and I start a new project on MPC5748G, I have some questions:

0- How can I change or create .ld file (link script) ? Have you an tutorial of syntax to write an ld file ?

1- How to know if the MPC5748G bootloader source code is integrated on project source or not ? Otherwise how to identify bootloader source code in s31 design studio 2.1 ? and How to identify in which address the jump of application is implemented ?

How to impelement a minimalist bootloader ? Have you a functional and minimalist bootloader to use as start point of my development ?

2- MPC5748G bootloader could be flashed using IC57xx or PEMicro or not ? Can I use .elf or srec. All document says that should use OpenSDA and .rbl

3- I have a source code of an example of bootloader and when I try to flash it using .elf using PEMicro (USB multilink interface) and I got many errors and warning in following order :

developer_newbie_2-1667495217369.png

developer_newbie_3-1667495255985.pngdeveloper_newbie_4-1667495292194.pngdeveloper_newbie_5-1667495316036.png

developer_newbie_0-1667495074242.png

Device ID revision is $00000000

Device IDCODE is $00000082
Device ID revision is $00000000
Cannot enter background mode. Check connections.
Error Resetting device for programming.

Device IDCODE is $00000082
Device ID revision is $00000000
MPC574xG Device detected.

Device ID revision is $00000000
MPC574xG Device detected.

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

Hi @developer_newbie 

Linker documentation can be found at this path:

c:\NXP\S32DS_Power_v2.1\S32DS\build_tools\powerpc-eabivle-4_9\powerpc-eabivle\share\docs\pdf\ld.pdf

You can take a look at this bootloader:

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

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

I believe this could help a lot. It's written in GreenHills Multi IDE (S32DS was not available at that time), so if you want to use S32DS, it will be necessary to port it.

You can use any compatible JTAG tools to program either elf file or srecord file. If you are getting such error messages, the Pemicro probe obviously can't establish the connection. Is that your own board or is that EVB? Was it working before? Do you know history of this MCU? Or is that brand new MCU?

Regards,

Lukas

在原帖中查看解决方案

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

Hi @developer_newbie 

Linker documentation can be found at this path:

c:\NXP\S32DS_Power_v2.1\S32DS\build_tools\powerpc-eabivle-4_9\powerpc-eabivle\share\docs\pdf\ld.pdf

You can take a look at this bootloader:

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

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

I believe this could help a lot. It's written in GreenHills Multi IDE (S32DS was not available at that time), so if you want to use S32DS, it will be necessary to port it.

You can use any compatible JTAG tools to program either elf file or srecord file. If you are getting such error messages, the Pemicro probe obviously can't establish the connection. Is that your own board or is that EVB? Was it working before? Do you know history of this MCU? Or is that brand new MCU?

Regards,

Lukas

0 项奖励
回复
2,042 次查看
developer_newbie
Contributor III

Thanks @lukaszadrapa for your support and the docs, it helps me a lot.

0 项奖励
回复