Skip to content

[STM32WLE4CC]: Wrong handling of intel hex that initialises RAM area #1485

@szlovak

Description

@szlovak

In short words it's a general issue, for any STM32 probably. If hex contains data like this:
:020000042000DA
:108000000000000000000000000000000000000070
:108010000000000000000000000000000000000060
:108020000000000000000000000000000000000050
:108030000000000000000000000000000000000040
:108040000000000000000000000000000000000030

Then flashing will not work stating that file is too big:

2025-10-31T16:23:28 INFO common.c: STM32WLEx: 64 KiB SRAM, 256 KiB flash in at least 2 KiB pages.
2025-10-31T16:23:28 INFO common_flash.c: Attempting to write 402686037 (0x18008055) bytes to stm32 address: 134217728 (0x8000000)
2025-10-31T16:23:28 ERROR common_flash.c: The size exceeds the size of the flash (0x00040000 bytes available)

These lines do not cause any issue on STM32CubeProgrammer and their CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions