I've just started working with at90can128 and I'm in trouble. I
downloaded the atmel's lib for this mcu and i'm trying to run it in
avr-gcc, but up to now, nothing.
Does anybody did this?
if not, i'll try to explain what i'm doing...
I have 2 stk500 with 2 stk501 and 2 at90can128, i want then to talk.
I'm trying with the code from Atmel, the lib they have there for this
mcu but to IAR compiler... it is a polling loop_back_without_interrupt.
I made this compile... and I made another piece of code to generate a
CAN pack in the other mcu... OK that's all beautiful but it doesn't
work...
I know it is dificult to understand but there we go...
I guess the sender, is correct (I made it ;-), but using the atmel lib ) so let's go to the receiver loopback:
this is where everuthing happens:
void loop_back_without_interrupt(void)
{
unsigned char buffer[8];
st_cmd_t msg; // message descriptor store in code area