boards/lora-e5-dev: set OpenOCD _TARGETNAME variable to fix flashing#21615
boards/lora-e5-dev: set OpenOCD _TARGETNAME variable to fix flashing#21615crasbe merged 1 commit intoRIOT-OS:masterfrom
Conversation
|
Please also adapt the title of the PR and the commit message to our commit convention, which you can find here: https://github.com/RIOT-OS/RIOT/blob/master/CONTRIBUTING.md#commit-conventions A suitable title (for the current state) would be e.g. |
|
You re-requested a review, but you didn't push any changes yet? |
Sorry I forgot, it would be ok now |
crasbe
left a comment
There was a problem hiding this comment.
Looks good, please squash your commits into one :)
553fdbe to
d666ed8
Compare
done ;) |
|
Thank you for fixing this and congratulations for your first merged PR 🥳 |
Contribution description
This patch fixes an issue in the OpenOCD STM32WLX target config (
target/stm32wlx.cfg) where the_TARGETNAMEvariable is not defined after creating the CPU target.Board configs relying on
_TARGETNAMEfail withcan't read "_TARGETNAME": no such variableduring flashing or debugging.Per the OpenOCD Config File Guidelines,
_TARGETNAMEshould be set in the target config, but it was removed in a previous commit (diff).This patch sets
_TARGETNAMEexplicitly in theopenocd.cfgforlora-e5-devto point to the main CPU target ($_CHIPNAME.cpu0), restoring expected behavior.Testing procedure
With this fix, flashing the
examples/basic/hello-worldexample now works correctly.Issues/PRs references
#21614