AnsweredAssumed Answered

Question about MPC5748G bootloader based on UART

Question asked by Yukun Wu on Oct 30, 2018
Latest reply on Feb 28, 2019 by Minnie Jo

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.


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



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

   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!