ELF: Updated example firmware to generate new traces
[simavr] / tests / attiny85_crash_gdb.c
1 /*
2  * attiny85_crash_gdb.c
3  *
4  *  Created on: 1 Dec 2009
5  *      Author: jone
6  */
7
8 #include <avr/sleep.h>
9 #include <avr/io.h>
10 #include "avr_mcu_section.h"
11
12 AVR_MCU(F_CPU, "attiny85");
13
14
15 int main()
16 {
17
18         /*
19          * this is not much, but that crashed the core, and should activate
20          * the gdb server properly, so you can see it stopped, here
21          */
22
23         *((uint8_t*)0xdead) = 0x55;
24
25         // should never reach here !
26
27         sleep_mode();
28 }