Hello,
I’m a student in electronics and I’m trying to use Zephyr on the VEGABoard, but I’m facing some issues.
I’ve been able to run some demos provided by openisa in the sdk, and modify some, using GPIOs, etc.
With Zephyr though, when I’m using the toolchain of the VEGABoard and build the Zephyr hello_wolrd example with “west build …”, I’ve got an error: “Can’t build a dummy C file”. But when I build using “cmake …” then “ninja”, it works.
I’ve tried with other toolchains and I’ve got no problems at all.
But the issue comes when I want to flash the Zephyr app on the VEGABoard (nothing appears on the serial terminal connected to port of openSDA), it doesn’t works. Here is what I get:
-- west flash: using runner openocd
-- runners.openocd: Flashing file: zephyr/zephyr.hex
Open On-Chip Debugger 0.10.0+dev-00432-gfdd28b5a (2018-12-25-08:25)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 1000 kHz
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Info : mohor tap selected
Info : adv debug unit selected
Info : Option 1 is passed to adv debug unit
Info : core 0 selected
Info : add flash_bank rv32m1 rv32m1.flash0
Info : add flash_bank rv32m1 rv32m1.flash1
core1_boot
Info : J-Link V9 compiled Feb 2 2021 16:34:10
Info : Hardware version: 9.30
Info : VTarget = 3.264 V
Info : clock speed 1000 kHz
Info : JTAG tap: rv32m1.cpu tap/device found: 0x249511c3 (mfg: 0x0e1 (Wintec Industries), part: 0x4951, ver: 0x2)
Info : adv debug unit is configured with option ADBG_USE_HISPEED
Info : Listening on port 3333 for gdb connections
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* rv32m1.cpu rv32m1 little rv32m1.cpu running
Info : JTAG tap: rv32m1.cpu tap/device found: 0x249511c3 (mfg: 0x0e1 (Wintec Industries), part: 0x4951, ver: 0x2)
auto erase enabled
wrote 1048576 bytes from file zephyr/zephyr.hex in 24.739641s (41.391 KiB/s)
Info : JTAG tap: rv32m1.cpu tap/device found: 0x249511c3 (mfg: 0x0e1 (Wintec Industries), part: 0x4951, ver: 0x2)
verified 1048484 bytes in 12.324958s (83.076 KiB/s)
Info : JTAG tap: rv32m1.cpu tap/device found: 0x249511c3 (mfg: 0x0e1 (Wintec Industries), part: 0x4951, ver: 0x2)
shutdown command invoked
Warn : Flash driver of rv32m1.flash0 does not support free_driver_priv()
Warn : Flash driver of rv32m1.flash1 does not support free_driver_priv()
I’ve tried with both the RI5CY and ZERO_RISCY cores.
- Config: Windows 10
- BOARD: VEGABoard
- Cores: RI5CY and ZERO_RSCY
Could you help me figure out where the problem is and how it can be fixed please?
Thank you