Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


AC6 OpenOCD and stm32wb [SOLVED]

Hi,
With my team we’re currently prototyping a device on a newly stm32wb.
We’re working under Linux so all our project are based on Makefile.
I’ve noticed that openocd plugin for AC6 differ from last dev version of official openocd repository...

First, stm32wb55x.cfg don’t exist in “official” version.
Then stm32wb55x.cfg make call to `flash erase_padded_zone 0` that is unknown in “official” version.

So my question is: Does AC6 provide somewhere its version of OpenOCD which can be built and launched as a standalone tool?

Here are versions given by both OpenOCD:
Local install based on last dev revision:
Open On-Chip Debugger 0.10.0+dev-00763-g5202d82a (2019-04-04-10:54)

Eclipse plugin:
Open On-Chip Debugger 0.10.0-dev-00019-g5352c55 (2019-02-14-15:31)

PS: I read somewhere that Eclipse use gnu-openocd but this version seems to be behind AC6 version too:
https://github.com/gnu-mcu-eclipse/openocd/releasesQuestion

Here is my progress,

I’ve found ac6 repository for openocd at git://git.ac6.fr/openocd.Question
Last tag on st branch “st_2.8.0” matches the git hash 5352c55 of installed openocd used by eclipse.
- The fact is that this version doesn’t seem to compile because of calls to JIM old API...
- Once compiled, stm32l4x.cfg tcl file isn’t enough to connect to target because of bad DEVICEID
- Finally, with a custom stm32wbx.cfg openocd connect, then freeze when trying to flash with command openocd -d3 -c “program binFile.bin verify reset exit 0x8000000” or openocd -d3 -c “program elfFile.elf verify reset exit

Thank’s for your attention, if someone has information about this I’ll be pleased to hear of.

PS: I’ve attached my modifications patch to this message
PPS: Same error is reproductible with a stm32l4 (Nucleo board in my case)


Finally i managed to get it working

Using official repo https://git.code.sf.net/p/openocd/codeQuestion
Then applying to patch corresponding to these commits:
- https://sourceforge.net/p/openocd/code/ci/2e8b2c4e516c5eef4790688840c2f2fb956bc46a/Question
- https://sourceforge.net/p/openocd/code/ci/0018081ed3cb1200e74d9911e66f1edf72e75579/Question
Finally including tcl script in the cfg file:
source find interface/stlink-v2-1.cfg
source find target/stm32wbx.cfg

I put commits patch as attachement


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs