ATMega 1284P

Almost like a MIDIPal with knobs.

I can’t take credit for solving the issue though, was just a coincidence.

what the heck is this? looks yummie


Would this solve that problem?

Blockquote
I solved the problem now!
In the iom1284p.h I changed the values to this:
/* USART0, Rx Complete /
#define USART0_RX_vect _VECTOR(20)
#define SIG_USART0_RECV _VECTOR(20)
#define SIG_UART0_RECV _VECTOR(20)
/
USART0, Tx Complete /
#define USART0_TX_vect _VECTOR(22)
#define SIG_USART0_TRANS _VECTOR(22)
#define SIG_UART0_TRANS _VECTOR(22)
/
USART1, Rx Complete /
#define USART1_RX_vect _VECTOR(28)
#define SIG_USART1_RECV _VECTOR(28)
#define SIG_UART1_RECV _VECTOR(28)
/
USART1, Tx Complete */
#define USART1_TX_vect _VECTOR(30)
#define SIG_USART1_TRANS _VECTOR(30)
#define SIG_UART1_TRANS _VECTOR(30)
Then I can keep the UART interrupt handlers as is.

Now the LED toggles on both ATmega128 and ATmega1284p with the same code.

No, what you found is just someone who couldn’t get the UART to work at all because their code was wrong.

The problem is a hardware bug.

1 Like

thank you for the clarification, I don’t mean to waste anyone’s time.