Questions tagged [renode]

8 questions
3
votes
1 answer

renode, "push" a button and "see" a LED lighting

I'm running my first renode demo, stm32f4_discovery.resc. So far so good, I see an announcement from Contiki in sysbus.uart4 window and Ethernet packets in the terminal. How can I "push" the UserButton and "see" if UserLED is…
Xpector
  • 639
  • 1
  • 5
  • 17
1
vote
1 answer

How do I add a missing peripheral register to a STM32 MCU model in Renode?

I am trying out this MCU / SoC emulator, Renode. I loaded their existing model template under platforms/cpus/stm32l072.repl, which just includes the repl file for stm32l071 and adds one little thing. When I then load & run a program binary built…
sktpin
  • 317
  • 2
  • 15
1
vote
1 answer

RENODE How press a button for 5s and invert the methods Press and Release to be compatible with button with pullup configuration

I want to simulate in RENODE my stm32f030 to pressing a button for 5 seconds. But I have some problems related to the time and also with the RENODE method to simulate a Press and a Release of the button In my firmware I configured the pin that is…
1
vote
1 answer

How to benchmark some algorithms for Cortex-M architecture

For my current project i have to investigate the runtime behavior (used cycles) of different algorithms on a Cortex-M4. The algorithms are pure computation in C, no IO and interrupts. Any hints and ideas how to do it? My current idea is to create a…
Jan Baer
  • 11
  • 1
0
votes
0 answers

How to start secondary risc-v core in Renode emulator?

I'm using Renode to simulate a risc-v system which have multiple cores, and then run opensbi and Linux kernel on it. But the secondary core seems can't be brought up in Linux kernel. Here is the kernel log. 17:09:32.6490 [INFO] uart0: [host: …
Gavin
  • 95
  • 9
0
votes
0 answers

How to correctly set up GDB debugging between Renode and STM32CubeIDE?

Following the information here: Renode GDB doc, I tried setting up debugging between the emulation and Eclipse-based STM32CubeIDE. For that, I added to my .resc script, which creates the STM32L072-based machine and loads my firmware .elf file(s), a…
sktpin
  • 317
  • 2
  • 15
0
votes
1 answer

Can you monitor and alter register values in renode the way it is done in IAR systems?

I recently came across Renode, which claims to simulate exact binaries and of an embedded software. Now, can I use a software like renode to debug my baremetal embedded software ? (monitor and edit register values the way it is done in IAR embedded…
0
votes
1 answer

STM32F0 with ADC and DMA with Renode

I'm trying to run an application on Renode that uses ADC and DMA for the STM32F030F4P, I created a stm32f0.repl file with the dma and adc as follows: dma: DMA.STM32LDMA @ sysbus 0x40020000 [0] -> nvic@[9] adc: Analog.STM32F0_ADC @ sysbus…