MPC5748G bootloader development

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

MPC5748G bootloader development

Jump to solution
2,079 Views
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 Kudos
Reply
1 Solution
2,064 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
2,065 Views
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 Kudos
Reply
2,041 Views
developer_newbie
Contributor III

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

0 Kudos
Reply