[Canfestival-devel] R: R: R: R: R: Re: R: Re: R: Re: CanFestival on ATmega64M1 in Arduino IDE

2018-12-11 Thread canfestival-devel
I've found the issue and it was relative to the TCCR1A value. Arduino touches this timer at the beginning in the wiring.c file. Then actually the timer works but I can receive only five PDO after the startup. After that the CANBUS seems stuck and I don't receive PDO anymore. The only way is to

[Canfestival-devel] R: R: R: Re: R: Re: R: Re: CanFestival on ATmega64M1 in Arduino IDE

2018-12-11 Thread canfestival-devel
Hi,something strange compare if I try to debug the TCNT1 and OCR1B values. Why I get only values from 0 to 255? The timer1 is a 16bit timer ??? Messaggio originale Da: canfestival-devel@lists.sourceforge.net Data: 11-dic-2018 10.04 A: Ogg:

[Canfestival-devel] Heartbeat in multi master environment

2018-12-11 Thread canfestival-devel
Hi everyone I want to use the heartbeat feature of can open. My 'sample' contains 2 node which both of them are master, every node produces heartbeat too, I want to have a network of 20 'sample's untill 10 sample everything is okay( by assigning 10 consumer id, obj1016), But on 20 consumer id

[Canfestival-devel] R: R: R: R: Re: R: Re: R: Re: CanFestival on ATmega64M1 in Arduino IDE

2018-12-11 Thread canfestival-devel
hello, I found a strange bug with setting 16bit registers. I tried to set 16 bit register OCR1B, but only the lower 8 bits were applied. The datasheet says that for OCR1B you have to first set the upper byte as documented, and afterwards commit with the lower byte. this however does not work for