Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu error zephyr-synchronization #8

Open
umairsiddiqui-digitek opened this issue Jul 6, 2020 · 1 comment
Open

qemu error zephyr-synchronization #8

umairsiddiqui-digitek opened this issue Jul 6, 2020 · 1 comment

Comments

@umairsiddiqui-digitek
Copy link

umairsiddiqui-digitek commented Jul 6, 2020

hi,
i am trying to run the zephyr-synchronization project on VScode platformio IDE for
QEMU Sifive Hifive 1 board

i copied the zephyr-synchronization from this repo and modified my platformio.ini

[env:hifive1]
platform = sifive
framework = zephyr
board = hifive1
debug_tool = qemu

but i am getting following errors...

Preparing firmware for debugging...
Processing hifive1 (platform: sifive; framework: zephyr; board: hifive1)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/sifive/hifive1.html
PLATFORM: SiFive 2.2.1 > HiFive1
HARDWARE: FE310 320MHz, 16KB RAM, 16MB Flash
DEBUG: Current (qemu) On-board (ftdi, qemu, renode)
PACKAGES:
 - framework-zephyr 2.20200.200401 (2.2.0)
 - framework-zephyr-canopennode 0.20200.200115 (2.2.0)
 - framework-zephyr-civetweb 0.20200.190807 (2.2.0)
 - framework-zephyr-fatfs 0.20200.191125 (2.2.0)
 - framework-zephyr-libmetal 0.20200.190530 (2.2.0)
 - framework-zephyr-littlefs 0.20200.190811 (2.2.0)
 - framework-zephyr-loramac-node 0.20200.191220 (2.2.0)
 - framework-zephyr-lvgl 0.20200.191207 (2.2.0)
 - framework-zephyr-mbedtls 0.20200.200206 (2.2.0)
 - framework-zephyr-mcuboot 0.20200.200219 (2.2.0)
 - framework-zephyr-mcumgr 0.20200.200117 (2.2.0)
 - framework-zephyr-mipi-sys-t 0.20200.191024 (2.2.0)
 - framework-zephyr-open-amp 0.20200.190612 (2.2.0)
 - framework-zephyr-openthread 0.20200.191014 (2.2.0)
 - framework-zephyr-segger 0.20200.190421 (2.2.0)
 - framework-zephyr-tinycbor 0.20200.191016 (2.2.0)
 - tool-cmake 3.16.4
 - tool-dtc 1.4.7
 - tool-gperf 3.0.4
 - tool-ninja 1.7.1
 - toolchain-riscv 1.80300.190927 (8.3.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in debug mode
Checking size .pio/build/hifive1/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [====      ]  43.5% (used 7128 bytes from 16384 bytes)
Flash: [          ]   0.1% (used 20696 bytes from 16777216 bytes)
========================= [SUCCESS] Took 2.60 seconds =========================
Reading symbols from /home/xxx/platformio/project/zephyr-synchronization/.pio/build/hifive1/firmware.elf...
PlatformIO Unified Debugger -> http://bit.ly/pio-debug
PlatformIO: debug_tool = qemu
PlatformIO: Initializing remote target...
0x00001000 in ?? ()
Loading section vector, size 0x10 lma 0x20400000
Loading section exceptions, size 0x258 lma 0x20400010
Loading section text, size 0x46a4 lma 0x20400268
Loading section sw_isr_table, size 0x200 lma 0x2040490c
Loading section devconfig, size 0x84 lma 0x20404b0c
Loading section rodata, size 0x390 lma 0x20404b90
Loading section datas, size 0xd0 lma 0x20404f20
Loading section initlevel, size 0x84 lma 0x20404ff0
Loading section _static_thread_area, size 0x30 lma 0x20405074
Loading section _k_sem_area, size 0x20 lma 0x204050a4
Loading section _k_mutex_area, size 0x14 lma 0x204050c4
Start address 0x20400000, load size 20696
Transfer rate: 5052 KB/sec, 1089 bytes/write.
Temporary breakpoint 1 at 0x20402fe8: file /home/xxx/.platformio/packages/framework-zephyr/include/arch/riscv/arch.h, line 152.
PlatformIO: Initialization completed
PlatformIO: Resume the execution to `debug_init_break = tbreak main`
PlatformIO: More configuration options -> http://bit.ly/pio-debug
undefinedsifive_plic_write: Invalid register write 0x0
@valeros
Copy link
Member

valeros commented Jul 6, 2020

Hi @umairsiddiqui-digitek ! Thanks for the report. Looks like it's an internal error in SiFive SoC implementation in RISC-V QEMU, do you have this board at hand by any chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants