On 2019-08-02 05:51, Shivakumar R via Sdcc-user wrote: > I've just started using STM8 microcontrollers, specifically the > STM8S003F3P6 chip, in my own custom test board. The board works and I am > able to blink an LED on PA3/without/ using an interrupt. > However, when I try to make the blink take place in the Tim2_OVF > interrupt, nothing happens. I think the interrupt is not taking place. > What have I missed?? > > I saw this on the mailing list. My code includes the "rim" instruction. > > https://sourceforge.net/p/sdcc/mailman/message/35618801/ > > My complete code is below. It blinks the led 5 times before the timer > TIM2 is started. My SDCC version is 3.9.0
I made minimal changes and compiled this with with 3.8.0, then programmed it to an STM8S103. The first 10 changes on A3 are slow, then the interrupt changes A3 twice per second. I see this on my scope. I compared your TIM2 setup and interrupt to some of my code, and I don't see anything wrong. -Richard _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user