-
Discovered while working on #38.
I've found a problem which causes Y to be clobbered before function epilogue .
The function emission code looks something like this
* Emit function prologue
…
-
I'm trying to add an interrupt handler to `TIMER1_COMPA` to flash PB5. Here's what I tried:
```
#[no_mangle]
pub unsafe extern "avr-interrupt" fn __vector_11() {
volatile_store(PORTB, volati…
-
Hi,
I noticed simavr is broken in the Nix package manager. It looks like the code is using a construct that gcc doesn't accept anymore (from what I can tell):
```
$ nix-build -A simavr
...
AV…
-
If i compile under arch-linux wich has the newest gcc i get the following errors:
```
In file included from atmega88_uart_echo.c:22:0:
atmega88_uart_echo.c:34:23: error: initialization of flexible ar…
-
Emulator crash when i build firmware for arduino uno(if i build for mega2560 - everythin ok).
```
(gdb) run -v -v -t -m atmega328p -f 16000 ~/work/Rob4x_refactor/Rob4x_refactor.ino.standard.hex
The…
ghost updated
7 years ago
-
Definition of the AVR_MCU_VCD_SYMBOL macro contains a bug, which older gcc versions skip, but the newer catch.
For example with gcc (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1) :
atmega88_uart_echo.c:34:2…
-
I have the following test program:
```
#include
#include
int main ()
{
DDRB |= _BV(DDB5);
for (;;)
{
PORTB ^= _BV(PB5);
_delay_ms(2000);
}
}
```
…
-
UCSR0A is not refreshed when writing on uart_pty like in simduino example to emulate UART RX on Arduino side.
With no patch when a normal program poll UART for data received, by checking UCSR0A/0xC0 …
-
In avr_uart_rxc_read(), registered as an IO write handler for UCSRnA, a pair of XOFF/XON IRQs is raised if RXENn is set and the input FIFO is empty. If the simulated firmware does not read UCSRnA, no …
-
There is a bug in sim_megax4.c : probably we cannot use #ifdef PRR1 conditionals here.