-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Context:
- Zephyr Application
- Board: nrf52840dk/nrf52840
- Renode: v1.15.3.18516
- dts2repl: main as of today
Description
I want my renode simulation to use a .repl file generated from the flatten zephyr.dts file. So I am calling:
dts2repl build/zephyr/zephyr.dts and using the generated output.repl in my resc script:
machine LoadPlatformDescription $ORIGIN/output.replWhen running the simulation I get the following error:
There was an error executing command 'machine LoadPlatformDescription @/home/user/embu/firmware/products/nrf52840-pca10056-showcase/embuz/boards/nordic/nrf52840dk/support/output.repl'
Error E04: Could not resolve type: 'Miscellaneous.NRF_CLOCK'.
At /home/user/embu/firmware/products/nrf52840-pca10056-showcase/embuz/boards/nordic/nrf52840dk/support/output.repl:94:8:
clock: Miscellaneous.NRF_CLOCK @ sysbus 0x40000000So I noticed that the .repl file available from Renode uses Miscellaneous.NRF52840_CLOCK instead Miscellaneous.NRF_CLOCK for the clock. Once I manually change the value the problem is solved.
Next, I got the following error:
There was an error executing command 'machine LoadPlatformDescription @/home/user/embu/firmware/products/nrf52840-pca10056-showcase/embuz/boards/nordic/nrf52840dk/support/output.repl'
Error E04: Could not resolve type: 'USB.NRF_USBD'.
At /home/user/embu/firmware/products/nrf52840-pca10056-showcase/embuz/boards/nordic/nrf52840dk/support/output.repl:127:7:
usbd: USB.NRF_USBD @ sysbus 0x40027000When I checked in the .repl file from Renode there is no usbd: USB.NRF_USBD anywhere. So I comment it out and then the simulation runs without any problem.
Conclusion
- For the first problem it seems like the
models.ymlfile should be updated from:To:... "nordic,nrf-clock": "Miscellaneous.NRF_CLOCK", ...
... "nordic,nrf-clock": "Miscellaneous.NRF52840_CLOCK", ...
- For the second problem it seems like
usbd: USB.NRF_USBDis being added while still not available in Renode. Is that true?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels