zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.96k stars 6.68k forks source link

ST Nucleo G071RB board support issue #33525

Closed mtudan closed 3 years ago

mtudan commented 3 years ago

Describe the bug Flashing of the ST Nucleo G071RB board cannot be done because you cannot enable the support of the board on pyocd by adding “pack” support - stm32g071rb is probably missing in the new version of the pack "Keil.STM32G0xx_DFP.1.3.0.pack".

To Reproduce Steps to reproduce the behavior:

  1. pyocd pack --update
  2. pyocd pack --install stm32g071rb

Expected behavior Expect to be able to flash the board.

Logs and console output

❯ pyocd pack --install stm32g071rb       
0000386:WARNING:__main__:No matching devices. Please make sure the pack index is up to date.

Environment (please complete the following information):

mtudan commented 3 years ago

This might be related: https://github.com/pyocd/pyOCD/issues/813

str4t0m commented 3 years ago

The issue is related to the download process of the pack, so I suggest you open the issue in the pyocd repo.

Until this is fixed in pyocd you can download it from keil and pass the path to your locally downloaded pack either in the board.cmake file or directly in the west flash command. west flash -- --flash-opt=--pack=/path/to/Keil.STM32G0xx_DFP.1.3.0.pack

alternatively you can use the stm32cubeprogrammer or jlink runner. To use the jlink runner you need to upgrade the st-link to an jlink ob, or use an external probe. west flash -r stm32cubeprogrammer

erwango commented 3 years ago

Alternatively, we can also add openocd support, as STM32G0 is now supported by openocd.

erwango commented 3 years ago

Closing the issue since not linked to Zephyr code