You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am still learning micropython with QEMU VIRT_RV32 port.
As a learning task. I built firmware.elf for BOARD VIRT_RV32 on Ubuntu 22.004 with cmake and riscv64-unknown-elf toolchain v10.2. I can access the REPL interface after booting it like qemu-system-riscv32 -M virt -nographic -semihosting -bios none -kernel firmware.elf.
I then tried run-tests.py with it and got a failure case:
However, when I tried the inlineasm/rv32/asmarith.py with REPL, I can't see that exception. but I noticed that the result from f2() is different from expectation. Mine is 0x88 but expected is 0x111.
I am wondering if there are hints for further investigations?
Update-1
I can get expected result from the cmake artifact like below:
Release build passed with run-tests.py, while debug build doesn't yet. Here I attached both debug and release firmware ELFs for review. The debug image works with pyboard.py but not with run-tests.py for the asmarith test.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am still learning micropython with QEMU VIRT_RV32 port.
As a learning task. I built
firmware.elf
for BOARD VIRT_RV32 on Ubuntu 22.004 with cmake andriscv64-unknown-elf
toolchain v10.2. I can access the REPL interface after booting it likeqemu-system-riscv32 -M virt -nographic -semihosting -bios none -kernel firmware.elf
.I then tried
run-tests.py
with it and got a failure case:However, when I tried the
inlineasm/rv32/asmarith.py
with REPL, I can't see that exception. but I noticed that the result fromf2()
is different from expectation. Mine is 0x88 but expected is 0x111.I am wondering if there are hints for further investigations?
Update-1
I can get expected result from the cmake artifact like below:
Maybe the cause is within
run-tests.py
?Update-2
Release build passed with
run-tests.py
, while debug build doesn't yet. Here I attached both debug and release firmware ELFs for review. The debug image works withpyboard.py
but not withrun-tests.py
for theasmarith
test.Beta Was this translation helpful? Give feedback.
All reactions