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


Register definition in System Workbench disagrees with ST Reference Manual

Hello everyone,

I’m using STM32 System Workbench for an STM32F373CB chip, and I’ve noticed that the SDADCx_JDATAR register in the debugger does not match the definition in RM0313 (the reference manual for this chip). The debugger shows the JDATACH field as being bits 28:25, whereas in the reference manual it’s 27:24. The ST-provided header files also say 27:24, and the chip behaviour seems to match that, so I believe this is just a mistake in System Workbench or whatever data files it extracts that data from. As the STM32F37x chips are the only ones that include the SDADC hardware, this problem will not affect the vast majority of STM32 chips.

I’m not sure how to get the exact System Workbench version. Eclipse version is 4.6.3.

From this I have two questions:
- Are these values hard-coded in System Workbench, or does it extract the register positions from some header or datasheet provided by ST?
- If they’re hard-coded, how do I go about contacting the System Workbench developers to request a bugfix?

Thanks
Evan

France

Hi Evan,

This is the right place to contact System Workbench for STM32 development team :-)

The register definitions are provided by ST, in a standard SVD file, that is embedded in Sytem Workbench for STM32, in directory C:\Ac6\SystemWorkbench\plugins\fr.ac6.mcu.debug_2.1.2.201709081530\resources\cmsis\STMicroelectronics_CMSIS_SVD (if you installed in the default C:\Ac6 location).

I just checked and, indeed, the SVD file locates the SDADCx_JDATAR[JDATACH] field in bits 28..25; I will inform ST of the problem. If this is a problem for you you can correct the file in place waiting for an update.

Thanks for the heads up.

Bernard (Ac6)


Hi Bernard,

Thanks for the reply! I’ll make that modification just to avoid waiting.

I also noticed that when you right-click on one of the active I/O registers in the debugger it gives you the option to “desactivate” (probably should have been “deactivate”) - presumably just a spelling mistake there.

Cheers,
Evan


Hi Evan,

Thank you we have corrected this issue :-)
The correction will be available in the next version of System Workbench, in few days.

Best regards
Christelle


Hi Christelle,

Thanks very much for the reply. I’ll keep an eye out for the next version.

Cheers,
Evan


 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs