Question about MPC5748G bootloader based on UART

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

Question about MPC5748G bootloader based on UART

830 Views
yukunwu
Contributor III

Hello everyone,

      I'm developing MPC5748G bootloader based on Uart. I use the UART tool on PC to send the s19 file to the MPC5748G, and then MPC5748G will analysis them and flash rom with correct address.

      But there is a problem when MPC5748G flash 0x10499FC , it can't work and return a error.

      1.PNG

      And this is the view when I debug, bootloader only flash 0x10499FC-0x10499FF  

      2.PNG

   I use the S32DS 1.2 to develop with SDK "S32_SDK_MPC574xx_EAR_0.8.1" and I do flash like below:

pastedImage_4.png

   I also unlock the space where I want to flash:

    C55FMC->LOCK0 &= 0xFFFFFFEF; //NO.27 is 0 means 0xFA0000 - 0xFA3FFF can program
    C55FMC->LOCK2 &= 0xFFFFFFFB; //NO.31 is 0 means 0x1000000 - 0x107FFFF can program

   How should I approach this problem?

   Thanks very much!

Labels (1)
0 Kudos
2 Replies

624 Views
roxy2131
Contributor II

Hi. I am working on the bootloader with the MPC5748G.

Can I get the code for the project?

Only going to use it for educational use.

roxy2131@gmail.com thank you.

0 Kudos

624 Views
yukunwu
Contributor III

I have found the MPC5748G can not flash cross page like 0x10499FC-0x1049A00, but I don't know how to modify my s19 file because it made by S32DS...

0 Kudos