Topic : Does Ride7 simulator support interrupts?

Forum : ST7/STM8

Original Post
Post Information Post
June 17, 2010 - 10:02am
Guest

Because I don't have hardware yet, I want to start writing software for the STM8S without hardware and test it with the Ride7 simulator. I did the following steps:

1. I set up the I2C bus as slave and an I2C interrupt in the main function and wrote an interrupt function.
2. I started the debugger, jumped (with F8) over the initialization calls until the while(1) loop.
3. I set the I2C peripherals by hand (address, data).
4. I would expect that the debugger jumps into the interrupt function. But it doesn't.

Does the Ride7 simulator support interrupts? A simple read of the I2C registers in the main function works. Just an interrupt is not released.

Replies
Post Information Post
+1
0
-1
June 17, 2010 - 2:16pm
Raisonance Support Team

Hi,

The STM8S simulator is limited, and simulates only the UART for now (printf output in SCI0).
Moreover, the I2C peripheral is so complicated that it would be very hard to make it work correctly in simulation.

Tell us about how easy it is with the *real* hardware once you have a chance to try it!

Regards,
Bruno

+1
0
-1
August 17, 2010 - 11:54am
Guest

hi,

i have an almost similar question.

i use the newest RIDE7 and RKit ARM version, RLink Pro, REva v3.3 motherboard and stm32f103R daughterboard.

can i simulate an USART RXNE Interrupt by changing the value of USART_SR register or the USART_DR in the Debug Mode?

at the moment i'm not able to connect my other UART participant because of 3,3V and 5V Levels but it would be of avail to test ISR now.

+1
0
-1
August 23, 2010 - 9:22am
Raisonance Support Team

Hi,

Modifying the registers will modify the actual hardware state. You should be able to make your testing with it.

Regards,