Git Product home page Git Product logo

Comments (3)

JayJay-K avatar JayJay-K commented on June 9, 2024

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.

SpasicRebeka avatar SpasicRebeka commented on June 9, 2024

Appreciate your help, but unfortunately didn't solve my problem... :(((

from renode.

tobermory avatar tobermory commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.