boards/stm32l4: add riotboot support#11701
Conversation
b090042 to
a5f1b1f
Compare
|
I just tested this PR on related L4 boards (except stm32l476-disco but it's the same CPU as nucleo-l476rg). I works except for nucleo-l432kc and nucleo-l433rc. |
I tested this again today but couldn't make it work on nucleo-l433rc. It looks like there's an issue when erasing/writing on the flash with these boards. I propose to dropped those 2 boards from this PR and try to fix this in follow-up PRs. @fjmolinas, is it ok for you ? |
a5f1b1f to
e7aed66
Compare
|
I dropped the changes of nucleo-l432kc and nucleo-l433rc from this PR as it's still unclear what is the problem. Boards that work fine: nucleo-f496zg, b-l475-iot01a and stm32l476g-disco. nucleo-l452re is untested (I can't test this one) |
|
I'm not able to reproduce your issue for nucleo-l433rc, after flashing slot0/1: After applying #11776, I don't have |
@aabadie You are right I though it was an f103 because it actually has one on the other side of the board (the stlink). Anyway testing with your branch: Could it be an openocd version? |
That could be but I rebuilt it very recently. |
|
Ran successfully tests/riotboot_flashwrite on:
|
|
After more investigation, I seems that my OpenOCD version was older than I thought and was missing a commit fixing support for single bank stm32l4. The commit in question is openocd-org/openocd@a4d5054. After updating OpenOCD to latest master and checking that it contains the fix commit, I was able to flash a nucleo-l432kc. So I'll re-add support for this board and nucleo-l433rc and add a comment regarding OpenOCD version for this 2 boards. |
|
@fjmolinas, I updated the PR following my previous comment. There's a comment in nucleo-l43x boards mentioning the potential problem with OpenOCD. |
fjmolinas
left a comment
There was a problem hiding this comment.
Tested for all platforms, please squash!
3a10e48 to
342f3e8
Compare
|
All green, go! |
Contribution description
Now that #11643 is merged, this PR adds riotboot to all stm32l4 based boards. Changes provided in #11643 are compatible for all L4.
Not tested yet.
Testing procedure
$ make BOARD=nucleo-l476rg -C tests/riotboot riotboot/flash-slot0 term
Issues/PRs references
Follow-up of #11643