fabiobaltieri / open-usb-can Goto Github PK
View Code? Open in Web Editor NEWOpen Source USB to CANBUS interface
License: GNU General Public License v3.0
Open Source USB to CANBUS interface
License: GNU General Public License v3.0
Hello
Fabio!
I want to use frash version of HW-design, but I see some mismatches between HW and FW:
Regards
Doka
Hi Fabio!
What approach I should using for burning FW into ATmega in DFU-mode provided by proj?
As I know this chip already ships with pre-burned DFU-bootloader, and I would ask - what difference with code in "bootloader" folder?
Could I use with your bootloader vendor util like Atmel FLIP USB DFU?
Or maybe standard linux util lika dfu-util?
Thanks
firmware-sources nice and build perfectly fine,
but i have troubles with kernel-module build:
I have RHEL 6.5 64bit with kernel version 2.6.32-358.23.2.el6.x86_64
and I think that my system is not fully integrated SocketCAN.
By path /usr/src/kernels/2.6.32-358.23.2.el6.x86_64/include/linux/can necessary file led.h is absent.
And I have problem with others include files when building module (e.g. CAN_CTRLMODE_ONE_SHOT define) :
$ make KERNELDIR=/usr/src/kernels/2.6.32-358.23.2.el6.x86_64
make -C /usr/src/kernels/2.6.32-358.23.2.el6.x86_64 M=/home/idoka/open-usb-can/kernel-module modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-358.23.2.el6.x86_64'
CC [M] open-usb-can.o
open-usb-can.c:40:27: error: linux/can/led.h: No such file or directory
open-usb-can.c: In function ‘open_usb_can_read_bulk_callback’:
open-usb-can.c:200: error: implicit declaration of function ‘alloc_can_skb’
open-usb-can.c:200: warning: assignment makes pointer from integer without a cast
open-usb-can.c:216: error: implicit declaration of function ‘can_led_event’
open-usb-can.c:216: error: ‘CAN_LED_EVENT_RX’ undeclared (first use in this function)
open-usb-can.c:216: error: (Each undeclared identifier is reported only once
open-usb-can.c:216: error: for each function it appears in.)
open-usb-can.c: In function ‘open_usb_can_write_bulk_callback’:
open-usb-can.c:254: error: implicit declaration of function ‘usb_free_coherent’
open-usb-can.c:272: error: ‘CAN_LED_EVENT_TX’ undeclared (first use in this function)
open-usb-can.c: In function ‘open_usb_can_setup_rx_urbs’:
open-usb-can.c:321: error: implicit declaration of function ‘usb_alloc_coherent’
open-usb-can.c:322: warning: assignment makes pointer from integer without a cast
open-usb-can.c: In function ‘open_usb_can_open’:
open-usb-can.c:436: error: ‘CAN_LED_EVENT_OPEN’ undeclared (first use in this function)
open-usb-can.c: In function ‘open_usb_can_start_xmit’:
open-usb-can.c:457: error: implicit declaration of function ‘can_dropped_invalid_skb’
open-usb-can.c:468: warning: assignment makes pointer from integer without a cast
open-usb-can.c: In function ‘open_usb_can_close’:
open-usb-can.c:582: error: ‘CAN_LED_EVENT_STOP’ undeclared (first use in this function)
open-usb-can.c: In function ‘open_usb_can_probe’:
open-usb-can.c:680: error: too many arguments to function ‘alloc_candev’
open-usb-can.c:694: warning: assignment discards qualifiers from pointer target type
open-usb-can.c:697: error: ‘struct can_priv’ has no member named ‘do_get_berr_counter’
open-usb-can.c:698: error: ‘struct can_priv’ has no member named ‘ctrlmode_supported’
open-usb-can.c:699: error: ‘CAN_CTRLMODE_ONE_SHOT’ undeclared (first use in this function)
open-usb-can.c:743: error: implicit declaration of function ‘devm_can_led_init’
make[2]: *** [open-usb-can.o] Error 1
make[1]: *** [_module_] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-358.23.2.el6.x86_64'
make: *** [default] Error 2
I tried to make the assembly on another system - Ububntu 12.04 64bit:
$ make KERNELDIR=/usr/src/linux-headers-3.2.0-54-generic
make -C /usr/src/linux-headers-3.2.0-54-generic M=/home/idoka/open-usb-can/kernel-module modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-54-generic'
CC [M] open-usb-can.o
open-usb-can.c:35:27: fatal error: linux/can/led.h: No such file or directory compilation terminated.
make[2]: *** [open-usb-can.o] Error 1
make[1]: *** [_module_] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-54-generic'
make: *** [default] Error 2
The same result..
== Two ask: ==
Fabio Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.