- 
                Notifications
    You must be signed in to change notification settings 
- Fork 131
Fix STM32H5 update #617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix STM32H5 update #617
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot get the update to work with DUALBANK 0 or 1. Can you share your steps to reproduce? I tried with trustzone and update would not take even. Without trustzone I couldn't get it to boot.
I also have had trouble getting XMODEM to work with mincom or CoolTerm. It never seems to finish. Would be curious how you are testing.
I even added a command to call wolfBoot_update_trigger(); manually after flashing a new version to the update partition. But it won't install.
I also tried using the "fake" method with:
./tools/keytools/sign --ecc256 test-app/image.bin wolfboot_signing_private_key.der 2
echo -n "pBOOT" > trigger_magic.bin
./tools/bin-assemble/bin-assemble \
  update.bin \
    0x0     test-app/image_v2_signed.bin \
    0x9DFFB trigger_magic.bin
STM32_Programmer_CLI -c port=swd -d update.bin 0x08100000
| I'm using the default  I'm generating the images with: (notice the  then flashing: 
 then writing  It also works if I update via XMODEM in the app, but that's a bit unreliable on minicom on my end for whatever reason, I have to use CoolTerm. | 
| 
 Please update the targets.md with these details. | 
…est update using STM32 programmer.
| @mattia-moffa please look into why the "update" -> XMODEM isn't working. Also please try using the new NSC functions for setting trigger_update and success. Thank you | 
- Make the update and swap partitions secure and inaccessible from the app except via NSC API - Add a couple of necessary new NSC functions - Update the app to only use NSC API - Fix hal_flash_erase to account for secure addresses - Fix some bugs in xmodem implementation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving and merging as is. This PR actually makes the update partition marked secure flash and uses the NCS callable interface to program the update partition, which is very nice. There is a known issue with Dual bank Mattia is working on and will followup with a new PR.
Fix for STM32H5 update. ZD 20037