Comments (3)
Hi,
I don't have deep knowledge about Renode. But I think we can refer "#352"
We can try to add the following to connect between GPIO pin to LED:
gpioPort:
66 -> led0@0
67 -> led1@0
I'm not sure it's a proper answer. But I had same issue before.
I think we can try it :)
from renode.
Appreciate your help, but unfortunately didn't solve my problem... :(((
from renode.
I am familiar with the STK3700 and Silabs EFM32 cpus in general, less so with Renode. I found other applications for EFM32 where Renode would not run code as real hardware would.
This line, from your notes
23:37:47.3880 [WARNING] gpioPort: Unhandled read from offset 0x94.
is I think a read from a GPIO_P_Typedef.MODEL register. Refer to Silabs headers efm32gg_gpio.h and efm32gg_gpio_p.h for instance. The GPIO_P_TypeDef is 9 x uint32_t = 36 bytes. So port E would be at 4 * 36 = 144 = 0x90. The MODEL register is second uint32 reg (CTRL is first), meaning it would sit at 0x90 + 4 = 0x94.
I think your code line to an emlib call (em_gpio.[ch]):
GPIO_PinModeSet(gpioPortE,2, gpioModePushPull, 1);
will access the MODEL register for the E port (hence offset 0x94). It will be MODEL (low) and not MODEH (high) since your pin was E2, and 0-7 are LOW and 8-15 HIGH.
I located a file EFMGPIOPort.cs in the Renode source code tree. It is referenced by the efm32gg942.repl file I think you are using:
gpioPort: GPIOPort.EFMGPIOPort @ sysbus 0x40006000
I think the WriteDoubleWord impl shows that the MODEL register is basically not implemented ??
Hope this helps, and sorry it's not good news.
from renode.
Related Issues (20)
- Error while using CC2520 SPI peripheral on STM32F4
- Error when running HSS in Renode with PolarFire SoC Icicle Example .resc files HOT 4
- STM32 Timer limits behaviour
- 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
- 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
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.