cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L071 cannot be loading firmware greater than 128K by UART bootloader

BChri.6
Associate II

Hi

I am struggling with the UART bootloader.

My problem occurs when my firmware is greater than 128Kbyte. If it’s greater than 128Kbyte I get an error message with “operation exceeds memory limits.

If I am doing the same with the ST-LINK interface there is no problem. My STM32CubeProgrammer is the latest 2.11.

For both UART and ST-LINK I can read the full code, but I can only program 128Kbyte in UART mode.

I can see a difference in the two ways. In the erase flash window only 1024 addresses is been addressed.

In the ST-LINK the full memory has been addressed.

See my screen shots below.

0693W00000QNGRXQA5.png 0693W00000QNGRwQAP.pngAm I doing something wrong?

1 ACCEPTED SOLUTION

Accepted Solutions
Sara BEN HADJ YAHYA
ST Employee

Hello @Community member​ , @Danish​ , @Community member​ ,

This issue is fixed in STM32CubeProgrammer latest release.

V2.12.0 is now available under this Link.

Thanks for your contribution :smiling_face_with_smiling_eyes:

Sara.

View solution in original post

9 REPLIES 9
Danish1
Lead II

There are different amounts of FLASH memory depending precisely which Stm32l071 you have.

STM32L071R8T6 for example only has 64KBytes (strictly ST only guarantee that 64K is good; there might be more FLASH present, and it might even work when you test it, but ST have sold it as a cheaper part with less FLASH).

What is the full part number of your stm32l071?

How have you told STM32CubeProgrammer this full part-number?

Of course it's possible that there's a bug in STM32CubeProgrammer and it genuinely can't program FLASH beyond 128K for stm32L071.

BChri.6
Associate II

Thanks for your reply!

The full part no. is STM32L071RZH6.

I don't see any possibilities to change the part no. in the STM32CubeProgrammer. The Programmer get the target information directly from the device......

Best Regards

Bent

Bugs like this in STM32 Cube Programmer have been particularly persistent.

Not sure there's a size field passed in the UART protocol, my expectations is that it is supposed to read the same word in System OTP, or relate the DBGMCU / DEVID

@Sara BEN HADJ YAHYA​ 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Sara BEN HADJ YAHYA
ST Employee

Hello @Community member​ , @Danish​ , @Community member​ 

This is a known issue and it is already raised to the dev team to fix it. I'll keep you posted.

Internal ticket number: 132951 (This is an internal tracking number and is not accessible or usable by customers).

If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Sara.

Hi @Sara BEN HADJ YAHYA 

Thanks for your reply!

Do you have an release date for the STM32CubeProgrammer where it is been fixed?

Best regards

Bent

Hello @Community member​ ,

Unfortunately, I don't have this information. I will get back to you and let you know once the issue is fixed.

Sara.

Uwe Bonnes
Principal III

In the meantime, you can try other uploaders. https://git.code.sf.net/p/stm32flash/code comes to mind.

Hi @Uwe Bonnes​ 

Thanks for your answer!

I have implemented the newest version of stm32flash and it works...!!!

Thanks for your tip..

Best regards

Bent

Sara BEN HADJ YAHYA
ST Employee

Hello @Community member​ , @Danish​ , @Community member​ ,

This issue is fixed in STM32CubeProgrammer latest release.

V2.12.0 is now available under this Link.

Thanks for your contribution :smiling_face_with_smiling_eyes:

Sara.