Skip to main content
Ravi S
Associate II
March 10, 2022
Question

Hi Guys, I am working on SPC584B-DISP Board.In this board i need bootloader option so that i am try to use example SPC584Bxx_RLA Bootloader Test Application for Discovery 2 .In this example download code from serial UART .

  • March 10, 2022
  • 40 replies
  • 14056 views

In this I can able to download bin file from UART next step jump to app in this step not working if any one have idea please help .......

Thanks advance ...

    This topic has been closed for replies.

    40 replies

    Ravi S
    Ravi SAuthor
    Associate II
    March 17, 2022

    Hi sir,

    SPC584B LIN6 TXD D11 => RX on other MCU host

    SPC584B LIN6 RXD D2 => TX on other MCU host

    Yes sir I connected this LIN6 only. big 4*37 connector X9 D1 and D11 pin connected to other MCU.

    Thanks

    Ravi.S

    Ravi S
    Ravi SAuthor
    Associate II
    March 17, 2022

    Hi sir,

    I attached the my bootloader code for your reference.

    Only difference from SPC5 example code I done following changes

    1.Defalt code CAN interface I changed to serial .

    2.I used LIN6 bard rate of 115200bps .

    Thanks

    Ravi.S

    ODOUV.1
    ST Employee
    March 17, 2022

    I received and tested your soft on my board (reconfigured to LIN4 to use USB) and it works fine

    I wonder if you could test with LIN0:

    PE10 to program LIN0_RXD and pin A10 on X9 connector

    PE11 to program LIN0_TXD and pin D1 on X9 connector

    0693W00000Kd0chQAB.pngUse LINFLEX_0 insdtead of LINFLEX_6 in your config

    0693W00000Kd0bZQAR.png 

    BRs,

    -Olivier

    ODOUV.1
    ST Employee
    March 17, 2022

    0693W00000Kd0eEQAR.png0693W00000Kd0eTQAR.png

    Ravi S
    Ravi SAuthor
    Associate II
    March 17, 2022

    Hi sir,

    I will check and update .

    But my doubt is LIN6 I configure can able to receive and send data with 115200bps .Only think code is not jump.

    any way i will change to LIN0 into my config then test and update the status .

    Thanks

    Ravi.S

    ODOUV.1
    ST Employee
    March 17, 2022

    I just have a little doubt on LIN6 because usually we use LIN4 or LIN0

    but as you said, as you can send and receive data over LIN6 between SPC5 and HOST, LIN6 is maybe not the issue.

    Data must be sent 64bit by 64bit

    each time host is sending data, he must check he received the same data back

    let see...

    BRs,

    -Olivier

    Ravi S
    Ravi SAuthor
    Associate II
    March 17, 2022

    Hi sir,

    I print data send from External MCU and send screenshot for your reference.

    Host MCU send 8byte at a time

    0693W00000Kd1S4QAJ.jpg0693W00000Kd1SYQAZ.jpg 

    Thanks

    Ravi.S

    ODOUV.1
    ST Employee
    March 18, 2022

    Hello Ravi,

    did you try with LIN_0 configuration ?

    what is the size of your own Applicative binary (multiple of 8 bytes) ?

    BRs,

    -Olivier

    Ravi S
    Ravi SAuthor
    Associate II
    March 21, 2022

    Hi sir,

    Sorry for the delay .

    Thanks for your replay.

    Now my code stat working .Logically how it work i don't know .may be some code generate issue.

    Just I done following think my code start working.

    1.Currently my code in Serial UART0 interface for code download .Not working

    2.I changed connection type serial to CAN in Firmware Update components and generate code & Compile the program .

    3.Immediatelly change connection type CAN to serial in Firmware Update components and generate code & Compile the program .

    4.Then follow the code download steps and restart MCU my bootloader start working.

    Thanks for your your quick response great support sir.

    Thanks

    Ravi.S

    ODOUV.1
    ST Employee
    March 21, 2022

    Hello Sir,

    thank you so much for your reply.

    I am really happy you find how to make your program working.

    I am just sorry for failing to find your UART issue root cause.

    I whish you a good day Ravi,

    and to enjoy to work with SPC5 product.

    Best regards,

    -Olivier

    ODOUV.1
    ST Employee
    September 1, 2022

    Have a good day,

    Best regards.