Skip to main content
Visitor II
May 23, 2025
Question

Flash Memory Configuration for UART Bootloader and Application – STM32U5 Series

  • May 23, 2025
  • 1 reply
  • 555 views

Hi Team,

Could you please guide me on how to correctly configure the internal Flash memory for the STM32U5 series? Specifically, I would like to understand how to:

  • Modify the Flash start and end addresses

  • Set appropriate lengths

  • Partition the Flash to allocate separate regions for the bootloader and the application image

  • Are there any configurations in STM32 Cube IDE to make those changes (Referred Version: 1.18.0)
  • UART Read failing While sending image over a xmodem, does it fail because of any configurations issue?

Thanks and Regards

ram_jan

 

    This topic has been closed for replies.

    1 reply

    Super User
    May 23, 2025

    @ram_jan wrote:
    • UART Read failing While sending image over a xmodem, does it fail because of any configurations issue?

    You'd need to give more details of the particular failure to be able to answer that, but UART operation shouldn't be affected by Flash configuration.

    ram_janAuthor
    Visitor II
    May 23, 2025

    Hi Andrew Neil,

    I am currently working on the SBL UART operation for an STM32U5x-based SoC and referring to the implementation from the link mentioned earlier. My goal is to partition the internal flash into two sections:

    • Bootloader: 32KB

    • Application Image: Remaining flash space

    By default, the internal flash base address is 0x08000000, but I need to modify this to suit the partitioning requirement. With the default flash configuration, I am attempting to receive the .bin application image over XMODEM. However, the execution halts and hits the following error:

    "No source available for "<signal handler called>() at 0xfffffffe"

    Could you please guide me on how to correctly configure the internal flash memory for the STM32U5 series? Specifically, I would like to know whether any settings need to be changed in STM32CubeMX or elsewhere to support this flash partitioning and prevent the above error.

    Note : Please Guide me on modifying the starting address of internal flash for Application image, Please share your thoughts on how do it using any settings in CubeMX etc ?

    Thanks,

     

     

     

    Super User
    May 23, 2025

    I don't know about the flash configuration.

     


    @ram_jan wrote:

    I am attempting to receive the .bin application image over XMODEM. However, the execution halts and hits the following error:

    "No source available for "<signal handler called>() at 0xfffffffe"


    The IDE should show you the call stack for how it got there.

    Sounds like a Hard Fault:

    https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/tac-p/708193/highlight/true#M51