simavr
simavr copied to clipboard
simavr is a lean, mean and hackable AVR simulator for linux & OSX
The firmware can end the simulation by sleeping with interrupts disabled. While this way of hanging the CPU makes a lot of sense, it is not the most intuitive. The...
Hi there! https://github.com/osx-cross/homebrew-avr maintainer here. Would it be possible to make a new release/tag of simavr? Our current formula is `--head` only and it makes our new CI bottle building...
I have found that avr_clear_interrupt works on fifo items. avr_raise_interrupt works with table->vector items. When pending cleared it is cleared in the fifo item and at the next interrupt request...
Test one: ``` #include unsigned char myvar = 0xab; void main(void) { PORTB = myvar; } ``` Compile and run it in simavr: ``` avr-gcc -g -mmcu=atmega168 -DF_CPU=16000000UL -c -o...
AVR Toolchain for macOS can also be installed from Microchip binaries in https://www.microchip.com/mplab/avr-support/avr-and-arm-toolchains-c-compilers
Fix for #403 Some implementations of string.h might not come come with strsep() as its not standard.
This is a copy of the board_ssd1306 example using i2c instead of spi. I also made some changes to the twi hook in ssd1306_virt and corrected the Set Line command...
I came across a bug (?) regarding the interrupt handling after sleeping. My minimal application looks like this: ```C static volatile uint8_t event = 0; ISR(INT0_vect) { event = 1;...
Hi, Please correct me if I am wrong, but it seems there is an issue of too early resetting the bit of interrupt source. This affects at least pin-change and...
Hi All, I've managed to crash simavr. Steps I've taken: 1) Compile an atmega32 program into an a.out file. 2) Compile simavr from this push request: https://github.com/buserror/simavr/pull/363 3) Use runavr...