Forum : ST7/STM8
Post Information | Post |
---|---|
March 31, 2012 - 7:12am
|
Hi, I am new to RIDE IDE and want start an application with IDE and Raisonance Tool-chain of 32K free compiler. I Configured it to start application, for 16 MHz internal oscillator and want use Timer6 as basic time base for my application. I configured it with all expected configuration, however I could not able to trigger the Interrupt for this timer. Please help me to start interrupt. Or list the sequence of register filling to start that. void TimerInterrupt__Initialize(void) Also please add / suggest if I missed something. Thanks in advance. |
Hi,
You just need to write the Timer6 interrupt handler as follows:
Not tested, but you have the idea!
I missed to write that, I am using Ride7 STM8 Simulator.
and I could not see any updates in TIM_CNTR.
Am i missing something?
Hi Bruno,
can you help to start TIM6 CNTR in simulator mode of RIDE7?
Thanks in advance
Hi Mantug,
Our ARM simulator is a core simulator. This means it properly simulates the opcodes. However, interrupts, exceptions and peripherals are *not* simulated.
Hence it is not possible to have the TIM6 counter work in simulator mode.
This is mostly because:
- It is very difficult to properly simulate peripherals, and each subfamily has its own specificities.
- "Live" programming and debugging is so easy and efficient with Cortex devices that hardware debug is most often easier than simulation.
Sorry for the inconvenience.
Best Regards,
Thanks Bruno.
Along with, do you suggest me some other tool which is capable to simulate STM8 without hardware?