Skip to main content
Manoj Hiwarkar
Associate III
Aug 17, 2018 11:13 AM UTC
Question

Regarding Boot loader

Hello,

Sir I want know that whether the boot loader code is already present in the STM32 MCUs by default ? or we have to download it.

Regards,

Manoj Hiwarkar

    This topic has been closed for replies.

    6 replies

    Tesla DeLorean
    Guru
    Aug 17, 2018 3:35 PM UTC

    It is in OTP/ROM at delivery

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    RN_it
    Associate III
    Aug 18, 2018 5:58 AM UTC

    Hello Manoj,

    Bootloader is in the system memory of MCU. by default MCU doesnot execute it. you have to configure the boot pins given.

    check here : https://www.st.com/content/ccc/resource/technical/document/application_note/b9/9b/16/3a/12/1e/40/0c/CD00167594.pdf/files/CD00167594.pdf/jcr:content/translations/en.CD00167594.pdf

    Manoj Hiwarkar
    Associate III
    Aug 20, 2018 12:09 PM UTC

    thank you sir. Sir one more query i have can you please tell me howto send one string "HELLO". using  HAL_CAN_Transmit function i have searched a lot but couldn't get a satisfied answer.

    Tesla DeLorean
    Guru
    Aug 20, 2018 12:32 PM UTC

    That's not really how CAN functions. You have an 8-byte data payload, you'd need to place your ASCII data within that.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Manoj Hiwarkar
    Associate III
    Aug 20, 2018 1:18 PM UTC

    sir can i get one example program of the same ? it will be a great help.

    Tesla DeLorean
    Guru
    Aug 20, 2018 1:30 PM UTC

    Look at the examples provided in the HAL/Cube trees for the unspecified STM32 part you are using.

    ...

           /* Set the data to be transmitted */

           TxData[0] = 'H';

           TxData[1] = 'E';

           TxData[2] = 'L';

           TxData[3] = 'L';

           TxData[4] = 'O';

    TxHeader.DLC = 5; // Length

           /* Start the Transmission process */

           if (HAL_CAN_AddTxMessage(&CanHandle, &TxHeader, TxData, &TxMailbox) != HAL_OK)

           {

             /* Transmission request Error */

             Error_Handler();

           }

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..