Skip to main content
Explorer
March 21, 2025
Question

STM32Cube Programmer with STM32L522 bootloader run after programming

  • March 21, 2025
  • 2 replies
  • 545 views

Hi,

I'm using the internal bootloader of the STM32L522 with STM32Cube Programmer to upload code via UART. I can upload new code without any issues. The problem is that I need the application to start after the programming is complete. I have the "Run after programming" box checked, but it doesn't start after the programming is complete. I have tried the same process using the STM32F411 and the application starts after programming. I'm very new to STM32 microcontrollers and would greatly appreciate any help I can get. 

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    March 21, 2025

    Dear @Hooks77 ,

    Thanks for the question.  STM32L5 series was the first STM32 MCU having with Cortex-M33 Core from ARM that introduces security at MCU level and Core : TrustZone . I would recommend to have a look on this  Introduction to Arm® TrustZone® features on STM32L5, STM32U5, and STM32U3 MCUs - Application note

    To see how to have your code enabling secure and non secure areas and what are the out of reset status to be taken into account.

    Hope it helps you.

    STOne-32.

    Hooks77Author
    Explorer
    March 21, 2025

    Thanks for the info! I'll look into that immediately.

    Hooks77Author
    Explorer
    March 21, 2025

    I currently have trustzone disabled. If I'm understanding everything correctly, my application should start at address 0x08000000 with trustzone disabled?