#avr Logs

Jul 05 2020

#avr Calendar

12:05 AM rue_bed: --
12:24 AM rue_bed: phinxy, what you making anyhow?
03:23 PM markasoftware: What happens if I do not define an interrupt handler and the interrupt is called? Some basic experimentation suggests the chip hangs?
03:36 PM cehteh: markasoftware: when interrupt handlers are not defined gcc takes the freedom to put random application code at those addresses to conserve flash space
04:36 PM rue_mohr: markasoftware, actually, gcc puts in a default handler that just returns
04:37 PM rue_mohr: cehteh, ??
04:40 PM Ekho- is now known as Ekho
04:55 PM cehteh: rue_mohr: was that an special option then to reuse those addresses for program code?
04:56 PM cehteh: ah i see __bad_interrupt jump
04:57 PM cehteh: i am pretty sure i seen this already used for code
04:57 PM matrixuser: when an interrupt occurs which is not handled by firmware
04:57 PM matrixuser: avr-libc put a default hadnler in which resets the device
04:58 PM cehteh: 00000c5a <__bad_interrupt>:
04:58 PM cehteh: c5a: d2 c9 rjmp .-3164 ; 0x0 <__vectors>
04:58 PM cehteh: either way .. jumps into the reset vector when nothing else is defined
04:59 PM * cehteh shrugs .. irrelevant things because they should never happen in any correct program anyway
06:24 PM rue_mohr: huh, the ones I did jump to a reti instruction
09:05 PM [1]MrMobius is now known as MrMobius
11:34 PM day_ is now known as day