buserror/simavr

attiny13 doesn't work after f421abbabc712ad058f917c8e78d89122e8cd181

Closed this issue · 0 comments

Hi,

#include <avr/io.h>
#include <avr/interrupt.h>

#include "avr_mcu_section.h"
AVR_MCU(F_CPU, "attiny13");
AVR_MCU_VCD_PORT_PIN('B', 0, "0");
AVR_MCU_VCD_PORT_PIN('B', 1, "1");
AVR_MCU_VCD_PORT_PIN('B', 2, "2");

int main(void) {
    DDRB |= (1 << PB2) | (1 << PB0);
    
    while (1) {
      PORTB ^= (1 << PB2);
      //PORTB ^= (1 << PB2);
      //hangs here. 
    }
}

Inserting second line makes it work in avr-gdb, but no VCD data is saved.
Revering this commit makes it work again, but watchpoints are not triggered.