ST32L081 can not be programmed with firmware bigger than 128k with CubeProgrammer and UART-Bootloader.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-13 3:31 AM
Sorry, posted the wrong device before. Corrected that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-13 3:58 AM
Maybe it is a device with only 128 kiB? You missed to tell the exact part number.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-13 5:13 AM
Oh, sorry. It is a STM32L081CZT6 with 192kiB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-13 5:26 AM
If you don't mind, please submit screenshot of the STM32CubeProgrammer.
And copy/Paste log window content including error messages if any.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-13 5:33 AM
Here is the Screenshot
And here the Log-File:
14:31:18 : Serial Port COM74 is successfully opened.
14:31:18 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off
14:31:19 : Timeout error occured while waiting for acknowledgement.
14:31:19 : Activating device: OK
14:31:19 : Chip ID: 0x447
14:31:19 : BootLoader protocol version: 3.1
14:31:21 : UPLOADING OPTION BYTES DATA ...
14:31:21 : Bank : 0x00
14:31:21 : Address : 0x1ff80000
14:31:21 : Size : 20 Bytes
14:31:22 : UPLOADING ...
14:31:22 : Size : 1024 Bytes
14:31:22 : Address : 0x8000000
14:31:22 : Read progress:
14:31:24 : Data read successfully
14:31:24 : Time elapsed during the read operation is: 00:00:01.406
14:31:30 : Memory Programming ...
14:31:30 : Opening and parsing file: firmware.hex
14:31:30 : File : firmware.hex
14:31:30 : Size : 132472 Bytes
14:31:30 : Address : 0x08000000
14:31:30 : Erasing memory corresponding to segment 0:
14:31:30 : Error: Operation exceeds memory limits
14:31:30 : Error: failed to erase memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-13 5:48 AM
Thank you for feedback, ticket entered.
I assumed you got latest CubeProgrammer v2.5.0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-13 5:53 AM
Yes, v2.5.0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-13 6:13 AM
With the CLI it is the same. FW with <128kiB works, >128kiB does not.
>>> STM32_Programmer_CLI.exe -c port=COM74 -d firmware_big.hex
-------------------------------------------------------------------
STM32CubeProgrammer v2.5.0
-------------------------------------------------------------------
Serial Port COM74 is successfully opened.
Port configuration: parity = even, baudrate = 115200, data-bit = 8,
stop-bit = 1.0, flow-control = off
Timeout error occured while waiting for acknowledgement.
Activating device: OK
Chip ID: 0x447
BootLoader protocol version: 3.1
Device name : STM32L07x/L08x/L010
Flash size : 192 KBytes (default)
Device type : MCU
Device CPU : Cortex-M0+
Memory Programming ...
Opening and parsing file: firmware_big.hex
File : firmware_big.hex
Size : 132472 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Error: Operation exceeds memory limits
Error: failed to erase memory
>>> STM32_Programmer_CLI.exe -c port=COM74 -d firmware_small.hex
-------------------------------------------------------------------
STM32CubeProgrammer v2.5.0
-------------------------------------------------------------------
Serial Port COM74 is successfully opened.
Port configuration: parity = even, baudrate = 115200, data-bit = 8,
stop-bit = 1.0, flow-control = off
Timeout error occured while waiting for acknowledgement.
Activating device: OK
Chip ID: 0x447
BootLoader protocol version: 3.1
Device name : STM32L07x/L08x/L010
Flash size : 192 KBytes (default)
Device type : MCU
Device CPU : Cortex-M0+
Memory Programming ...
Opening and parsing file: firmware_small.hex
File : firmware_small.hex
Size : 126356 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 987]
Download in Progress:
██████████████████████████████████████████████████ 100%
File download complete
Time elapsed during download operation: 00:00:43.196
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-13 9:29 AM
Very weird, is that the "size" of the .HEX file on the computer, or the span of the content it describes internally?
Anything interesting in the .MAP file about the highest 0x08000000 region address?
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-13 10:31 PM
@Community member​
No that is the size of the binay content of firmware itself. The .hex file on the comuper is about 3x bigger.
Can you clarify what you mean with "interesting" ? The firmware code iself is > 128 k. Programming via SWD interface is working properly.
