Forum : ST7/STM8
Original Post
Post Information | Post |
---|---|
June 17, 2010 - 10:02am
|
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. Does the Ride7 simulator support interrupts? A simple read of the I2C registers in the main function works. Just an interrupt is not released. |
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
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.
Hi,
Modifying the registers will modify the actual hardware state. You should be able to make your testing with it.
Regards,