avr-can-lib
avr-can-lib copied to clipboard
Can anybody confirm AT90 devices are working?
I'm playing with this lib for some months now and I also did some projects in the past. Everything worked but I was using the MCP. Today I tried it with an AT90CAN128 but somehow RX does not work.
I think the hardware is ok, and TX works too.
Any ideas?
Konntest du das Problem schon in den Griff bekommen? Bei mir war es genau so. Ich habe noch ein bisschen was an der Initalisierung geschraubt. Habe bei der alten nirgendes gesehen, dass ein MOB auf Empfangen konfiguriert wurde.
Hallo @jh-elec ,
I have the same issue here.. TX is working fine (after enabling global interrupts in main loop ;) ) . RX is not working at all. in my while(1) loop i call the function: can_check_message(), if it returns true, then i try to get the message with can_get_message(), but i don't receive anything! I know i am sending data from PC to atmel, since the led on my Lawicel CANUSB device is blinking every time i send a message. Do i need to change some of the library code? Configure some MOB's to receive? Actually i don't know what these MOB's do, but please can you help me out of this issue?
Kind Regards, Corné
Sorry for the late response.
Avr-can-lib took to much space for me and I decided to write my own lib for using it as CiA (CanOpen) node.
I'm pretty far already, everything works, CanOpen is fully implemented in my AVR now and I even implemented a bootloader.
I'll use it for my home automation. Light switches and so on. So sorry so far, I stopped using this library.
Hi Erazor83,
Thank you for the quick reply. Are you prepared to share the libary with me? Im also interested in the CAN bootloader, so i can do firmware upgrades over CAN. very nice!
Please let me know.
Corné
@erazor83 den Wünschen schließe ich mich an
I'll setup some kind of project-page at the end of this year. I'm still extending the lib, wrote some code-generators and am currently developing some hardware-modules.
FYI: https://hackaday.io/project/167966-avrcia