2022-11-21 08:27 AM
We are using STM32U575VGT6 MCU with 1 MB Flash(Two Banks of 512 KB).
We are using entire flash as a single bank, by unchecking DBANK bit in Option byte).
Start address of My image is 0x08000000 but when image size exceeds 0x8000(i.e. image spread across both bank), Then STM32CubeProgrammer write only upto 0x0807FFFF. (Facing same issue when download using IAR ).
Then i tried to debug further and found that if i follow following steps then its work.
Please help me to resolve the issue so that i would not require to erase entire flash every time manually.
I think programmer shall erase all sectors of image and download the new image with out needs to be erase manually.
For you info using ST link V2 programmer
Thanks in Advance!!
2022-11-21 09:17 AM
Check IDE patches, will check if support is in there
Repository\STM32Cube_FW_U5_V1.1.1\Utilities\PC_Software\IDEs_Patches\MDK-ARM
2022-11-22 01:13 AM
Hi @Community member ,
I have shared your inputs with the Github team, I will come back to you as soon as I have a feedback.
Thank you,
Laura
2022-11-22 03:15 PM
I had earlier read the U5 as L5, but the OP is reporting issues with the tools not handling banking correctly.
Looking at the Keil code it looks like the Flash algorithm determines the setting via the options as apposed to the old method of having two .FLM files for the two bank configurations.
I'm not sure if this is more confusing or less, as now it will transparently work, but not necessarily in the mode the user expects. User code would need to check what mode the Flash is in to behave accordingly, and I don't think that will be the usual case.
2022-11-26 01:53 AM
Hi @Laura C.
Have any input from GitHub Team?
2022-11-26 02:05 AM
Thanks @Community memberto understand the issue from user point of view.
Is there any possible workaround or patch i can apply in flashloader files of EWARM(EWARMv8_STM32U57x-58x_V1.3), so that i can proceed for now and avoid manually erasing the Bank 2 pages?
2022-11-29 09:07 AM
Hi @Akash Saini,
Please, find below the information received from the internal team:
Thank you
Laura
2022-11-30 01:30 AM
Hi @Laura C.
I mentioned U5 Not L5.
Exact part number - STM32U575VGT6
2022-11-30 06:03 AM
Dear @Akash Saini
The IAR V8.x is not officially supporting STM32U5 Series you need to upgrade IAR to version 9.x
I will check your case using the IAR V9 and let you know if related to flash loader on versions.
Otherwise, do you practice it using CubeProg to know if it is not related to hardware?
BR,
Younes
2022-12-08 10:56 PM
Thanks @Younes LAHBIB
I am facing issue in latest IAR 9.30.1.
Tried with latest STMCubeProgrammer v2.12.0, facing same issue.
Not able to flash/load code into 2nd bank of STM32U575VGT6 MCU when Dual bank bit is reset.