Comments (3)
Hi @mjalili96
In general, Renode models follow the reference manuals of specific SoCs - you can't really reuse STM ADC on NXP, unless you also use a driver for STM. You can think of our models as "anti-drivers" - they have to match.
You can of course use it as an example of how to write a model, but adjusting the register interface and internal logic will definitely be required.
from renode.
@PiotrZierhoffer Thanks for your response, what steps should I consider to add NXP ADC Peripheral? what changes in renode I have to make and what files need to be added and developed? I want a road map to do it
thanks
from renode.
Hi @mjalili96
We have documented this process a bit: https://renode.readthedocs.io/en/latest/advanced/writing-peripherals.html
The general idea is to start with listing all registers and their fields as tags (like here: https://github.com/renode/renode-infrastructure/blob/3f1abde88ac5a2dae326b77ab91892f335e78f80//src/Emulator/Peripherals/Peripherals/I2C/MPFS_I2C.cs#L112), run your software, gather information from the Renode log on which fields and registers are actually used by the software, and add implementations of these specific registers.
from renode.
Related Issues (20)
- Trying to write to a disabled Tx
- STM32F2 DMA driven SPI
- STM32F2 DMA driven I2C
- Support of an ethernet device driver (Hifve_Unleashed board)
- STM32H7 Timer triggered DMA sampled ADC
- Compilation of VerilatorIntegrationLibrary in Xcelium fails HOT 1
- Support for MK10DN512VLQ10 NXP Kinetis)
- Renode v1.15.0 Fatal error in Mac HOT 1
- STM32H7 I2C
- STM32H7 SPI
- STM32_Timer Produces error HOT 6
- STM32 F2 and H7 EMAC
- Support of an ethernet device driver (litex_vexriscv board) for Zephyr
- Updating BME280 I2C sensor value using python script. HOT 1
- Save statefile inside a Hook (it hangs) via python script HOT 3
- Read value from GPIO
- hi i am trying to run gdb for blinky which is using nordic-blinky-zephyr.elf and using nrf52840 board when i am trying gdb not working HOT 1
- Possibility to synchronize simulation time with real time
- Feature Request: Ethernet Support for Cortex-A53 Linux in Renode
- Documentation: How to add a custom C# peripheral and testing it ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from renode.