LGTMCU / Larduino_HSP

Hardware support package for Larduino
MIT License
138 stars 68 forks source link

WatchDog Interrupt #8

Open ghost opened 4 years ago

ghost commented 4 years ago

The Watchdog Timer interrupt is used as the tick timer by freeRTOS but the LGT8F appears to have the WOTON fuse incorrectly set to allow this to happen..

dbuezas commented 4 years ago

Haven't tried it myself yet, but i think it can be done changing registers. Here's more info https://github.com/dbuezas/lgt8fx/issues/9#issuecomment-573851649

CanHobby commented 4 years ago

Unfortunately this does not work... no interrupt happens....

I'm back on this issue and see from the LGT8F pdf that this chip has a 4th timer ( 16 bit ) which would allow me to modify freeRTOS to use this tmer as it's tick without bothering any of the "Arduino" functionality....

my problem is I don't seem to find any support for TIMER 3 in your board package...

specificaly how can I do ISR( TIMER3_OVF_vect ) or something equivalent... the LGT documentation seems to only show 1 interrupt vector for TIMER3 but that would be enough for my purposes....

Any Ideas??