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.repl
When 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 0x40000000
So 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 0x40027000
When 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.yml file should be updated from:
...
"nordic,nrf-clock": "Miscellaneous.NRF_CLOCK",
...
To:
...
"nordic,nrf-clock": "Miscellaneous.NRF52840_CLOCK",
...
- For the second problem it seems like
usbd: USB.NRF_USBD is being added while still not available in Renode. Is that true?
Context:
Description
I want my renode simulation to use a .repl file generated from the flatten zephyr.dts file. So I am calling:
and using the generated output.repl in my resc script:
machine LoadPlatformDescription $ORIGIN/output.replWhen running the simulation I get the following error:
So I noticed that the .repl file available from Renode uses
Miscellaneous.NRF52840_CLOCKinsteadMiscellaneous.NRF_CLOCKfor the clock. Once I manually change the value the problem is solved.Next, I got the following error:
When I checked in the .repl file from Renode there is no
usbd: USB.NRF_USBDanywhere. So I comment it out and then the simulation runs without any problem.Conclusion
models.ymlfile should be updated from:usbd: USB.NRF_USBDis being added while still not available in Renode. Is that true?