2022-03-25 02:49 AM
=================== Main Menu ============================
Download a new Fw Image ------------------------------- 1
Test Protections -------------------------------------- 2
Test SE User Code ------------------------------------- 3
Multiple download ------------------------------------- 4
Validate a FW Image------------------------------------ 5
Selection :
================ New Fw Download =========================
-- Send Firmware
-- -- Erasing download area ...
-- -- File> Transfer> YMODEM> Send .
-- -- !!Aborted by user!!
-- !!Operation failed!!
2022-03-25 02:50 AM
@Jocelyn RICARD Can you please respond to this.
2022-03-25 02:51 AM
2022-03-25 04:02 AM
Hello @SPati.7 ,
Apparently something goes wrong during Ymodem transfer.
Did you change anything to the original example?
Is this something new ?
Did you try erasing the full flash and check again ?
Best regards
Jocelyn
2022-03-25 04:39 AM
Nothing i changed on example @Jocelyn RICARD
I have just built it, and flash on NUCLO-STM32H753ZI board after Full Flash Erase.
After that i tried to enter in Download Image option on Console Terminal & Transfer File from Y-Modem option, then transferred something and Aborted.
I am using example from C:\PumpStage_POC\STM32CubeExpansion_SBSFU_V2.6.0\Projects\NUCLEO-H753ZI
Do you want me to Erase Flash again and perform ..??
if it is, can i connect programmer again ..?? do i need to do some settings ...??
2022-03-25 06:06 AM
Hello @SPati.7
if you didn't change anything this means you have default protections activated.
You should be able to connect under reset to the target.
If you check option bytes you should have RDP level 1, WRP on SBSFU and PCROP on a small section activated.
So, you need to perform a regression. To disable PCROP you need to set start @ higher than end @.
Also, you should switch back to RDP Level 0 and change PCROP config at same time.
WRP deactivation can be done after the regression.
What is the IDE you used, I'll try to find time to check if I get same behaviour
Best regards
Jocelyn
2022-03-25 06:29 AM
@Jocelyn RICARD I am using STM32CubeIDE for my development.
I use STM32CubeProgrammer to Flash the binary.
Now after i change PCROP address & Read Level to 0, i am able to transfer image from Y-MODEM protocol.
it means, Example code itself has Read level protection set to 1 ?? & PCORP Protection as well enabled ..??
So, how can i change protection in SBSFU output binary as well .?? Which source files i can modify ..??
Can you help with that
2022-03-25 06:49 AM
Hello @SPati.7 ,
OK, so issue solved :)
To understand how things work I would advice having a look to following documents available on st.com
AN2262 : Getting started with the X-CUBE-SBSFU
UM5056 : Integration guide for the X-CUBE-SBSFU
Readme files provided with example (top one + one for each project).
Anyway, you will find all protection configuration flags in app_sfu.h in 2_Images_SBSFU/SBSFU/App
Best regards
Jocelyn