2024-12-04 11:39 PM
Hi,
I am trying to flash MCU firmware on my STM32L4A6VGTx MCU in bootloader mode over UART using cube programmer v2.17.0. I tried through UI and command line but in both the cases it if failing with error- Operation exceeds memory limits.
Please refer output below and screen shot as well as logs attached.
=======================================================================
C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe -c port=COM5 br=115200 -e all -w C:\Users\GUR11373\Downloads\LMU-LTE-416-86x-Rev11746.bin 0x08000000
-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------
Serial Port COM5 is successfully opened.
Port configuration: parity = even, baudrate = 115200, data-bit = 8,
stop-bit = 1.0, flow-control = off
Activating device: OK
Board : --
Chip ID: 0x461
BootLoader protocol version: 3.1
Device name : STM32L496xx/STM32L4A6xx
Flash size : 1 MBytes (default)
Device type : MCU
Revision ID : --
Device CPU : Cortex-M4
Mass erase ...
Mass erase command correctly executed.
Note: if there's any flash protection, it will not be erased.
Memory Programming ...
Opening and parsing file: LMU-LTE-416-86x-Rev11746.bin
File : LMU-LTE-416-86x-Rev11746.bin
Size : 551.46 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Error: Operation exceeds memory limits
Error: failed to erase memory
C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin>
=======================================================================
I got to know there are some changes in address ranges in MCU database config files like the one provided on link- https://community.st.com/t5/stm32cubeprogrammer-mcus/stm32cubeprogrammer-failure/td-p/636609. However, this does not apply to out STM32L4A6 board.
Please provide a similar fix for my board referring to STM32_Prog_DB_0x461.xml.
Looking forward for the early resolution of same.
Thanks
Ramakant
Solved! Go to Solution.
2024-12-12 03:09 AM
Hello @rkaushal
Issue is not reproduced, and the test is worked fine with the latest release of STM32CubeProgrammer v2.18.
Could you please test with this release (STM32CubeProgrammer v2.18), then keep me informed about your updates.
Below the traces with STM32CubeProgrammer v2.17 and STM32CubeProgrammer v2.18:
------------------------------------------------------------------- STM32CubeProgrammer v2.17.0 ------------------------------------------------------------------- Serial Port COM129 is successfully opened. Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off Activating device: OK Board : -- Chip ID: 0x461 BootLoader protocol version: 3.1 Device name : STM32L496xx/STM32L4A6xx Flash size : 1 MBytes (default) Device type : MCU Revision ID : -- Device CPU : Cortex-M4 Mass erase ... Mass erase command correctly executed. Note: if there's any flash protection, it will not be erased. Memory Programming ... Opening and parsing file: test.bin File : test.bin Size : 550.05 KB Address : 0x08000000 Erasing memory corresponding to segment 0: Error: Operation exceeds memory limits Error: failed to erase memory ------------------------------------------------------------------- STM32CubeProgrammer v2.18.0 ------------------------------------------------------------------- Serial Port COM129 is successfully opened. Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off Activating device: OK Board : -- Chip ID: 0x461 BootLoader protocol version: 3.1 Device name : STM32L496xx/STM32L4A6xx Flash size : 1 MBytes (default) Device type : MCU Revision ID : -- Device CPU : Cortex-M4 Mass erase ... Mass erase command correctly executed. Note: if there's any flash protection, it will not be erased. Opening and parsing file: test.bin Memory Programming ... File : test.bin Size : 550.05 KB Address : 0x08000000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [0 275] Download in Progress: ██████████████████████████████████████████████████ 100% File download complete Time elapsed during download operation: 00:01:18.418
2024-12-05 12:28 AM
Hello @rkaushal and welcome to the Community,
Your request is escalated internally (ticket number: 197790) to take a closer look at the problem.
I'll make sure to post any updates here as soon as possible.
(PS: Ticket number: 197790 is an internal tracking number and is not accessible or usable outside of ST)
2024-12-05 12:31 AM
Thank you so much Imen for prompt response.
2024-12-12 03:09 AM
Hello @rkaushal
Issue is not reproduced, and the test is worked fine with the latest release of STM32CubeProgrammer v2.18.
Could you please test with this release (STM32CubeProgrammer v2.18), then keep me informed about your updates.
Below the traces with STM32CubeProgrammer v2.17 and STM32CubeProgrammer v2.18:
------------------------------------------------------------------- STM32CubeProgrammer v2.17.0 ------------------------------------------------------------------- Serial Port COM129 is successfully opened. Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off Activating device: OK Board : -- Chip ID: 0x461 BootLoader protocol version: 3.1 Device name : STM32L496xx/STM32L4A6xx Flash size : 1 MBytes (default) Device type : MCU Revision ID : -- Device CPU : Cortex-M4 Mass erase ... Mass erase command correctly executed. Note: if there's any flash protection, it will not be erased. Memory Programming ... Opening and parsing file: test.bin File : test.bin Size : 550.05 KB Address : 0x08000000 Erasing memory corresponding to segment 0: Error: Operation exceeds memory limits Error: failed to erase memory ------------------------------------------------------------------- STM32CubeProgrammer v2.18.0 ------------------------------------------------------------------- Serial Port COM129 is successfully opened. Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off Activating device: OK Board : -- Chip ID: 0x461 BootLoader protocol version: 3.1 Device name : STM32L496xx/STM32L4A6xx Flash size : 1 MBytes (default) Device type : MCU Revision ID : -- Device CPU : Cortex-M4 Mass erase ... Mass erase command correctly executed. Note: if there's any flash protection, it will not be erased. Opening and parsing file: test.bin Memory Programming ... File : test.bin Size : 550.05 KB Address : 0x08000000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [0 275] Download in Progress: ██████████████████████████████████████████████████ 100% File download complete Time elapsed during download operation: 00:01:18.418
2024-12-12 07:38 PM
Hi Imen,
This sounds great. Let me connect with IT to have update of latest 2.18 CubeProgrammer and try out this. I will share an update on this on Monday.
Regards
Ramakant
2024-12-18 02:01 AM
Hi Imen,
Finally I am able flash my board using UART with latest 2.18 CubeProgrammer release.
Thank you so much to STM32 team providing support to community.
Regards
Ramakant