sifive / freedom-e-sdk

Open Source Software for Developing on the Freedom E Platform - Deprecated
Other
582 stars 208 forks source link

example-freertos-pmp-blinky can't work well #622

Open sudashannon opened 3 years ago

sudashannon commented 3 years ago

I use e-sdk to test the freertos with pmp. First, I test with the demo example-freertos-blinky and add the "PMP=ENABLE" in its makefile, but it can't work. The result shows like: ./Downloads/riscv-qemu-5.1.0-2020.08.1-x86_64-linux-ubuntu14/bin/qemu-system-riscv64 --machine sifive_u --bios none -kernel /home/administrator/work/sdk/freedom-e-sdk/software/example-freertos-blinky/debug/example-freertos-blinky.elf --nographic At least one of LEDs is null. FreeRTOS Demo start qemu-system-riscv64: QEMU: Program exited with code '100' Then I turn to the demo example-freertos-pmp-blinky without changing anything, after building, the result shows like: ./Downloads/riscv-qemu-5.1.0-2020.08.1-x86_64-linux-ubuntu14/bin/qemu-system-riscv64 --machine sifive_u --bios none -kernel /home/administrator/work/sdk/freedom-e-sdk/software/example-freertos-pmp-blinky/debug/example-freertos-pmp-blinky.elf --nographic At least one of LEDs is null. FreeRTOS-PMP Demo start qemu-system-riscv64: QEMU: Program exited with code '100'

So does the demo really work incorrectly?

sudashannon commented 3 years ago

I build the demo with the command: make PROGRAM=example-freertos-pmp-blinky TARGET=qemu-sifive-u54 LINK_TARGET=freertos