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.85k stars 6.61k forks source link

Issue to run sample on nucleo_g474re #25658

Closed baw-serafin closed 4 years ago

baw-serafin commented 4 years ago

Describe the bug Hello World and blinky do compile and flash but the board never starts. No output / blinking LEDs

To Reproduce Steps to reproduce the behaviour:

Expected behavior Seeing something on console / Blinking LED

Impact High I guess

Environment (please complete the following information):

baw-serafin commented 4 years ago

@erwango @FRASTM

erwango commented 4 years ago

Provided a real board name. Given the tests we are running, I think this should not be extended to the whole STM32 board. I don't have this specific board but the closest one, nucleo_g431, is running fine.

FRASTM commented 4 years ago

Did you flash with openocd ? west flash --openocd /usr/local/bin/openocd However flashing with pyocd makes the sample starts :

-- west flash: using runner pyocd
-- runners.pyocd: Flashing file: /home/r/zephyrproject/zephyr/build/zephyr/zephyr.hex
[====================] 100%
0003581:INFO:loader:Erased 14336 bytes (7 sectors), programmed 14336 bytes (14 pages), skipped 0 bytes (0 pages) at 14.39 kB/s
baw-serafin commented 4 years ago

@FRASTM nope using the default west flash which is pyocd

erwango commented 4 years ago

@FRASTM, can you confirm this is working on your side ?

gmarull commented 4 years ago

Unfortunately I don't have this board to test.

FRASTM commented 4 years ago

I can flash and run without pb, the samples/hello_world as well as samples/basic/blinky on my nucleo_g474re (also on nucleo_g431rb)

I use the same branch, my SDK is 11.2 though

erwango commented 4 years ago

@baw-serafin can you update SDK an have a new try?

erwango commented 4 years ago

@baw-serafin any news on your issue?

carlescufi commented 4 years ago

Closing due to inactivity, Please reopen if it's still an issue.