Git Product home page Git Product logo

open-usb-can's People

Contributors

fabiobaltieri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

open-usb-can's Issues

open-usb-can-rev2.sch: HW and FW mismatch?

Hello
Fabio!

I want to use frash version of HW-design, but I see some mismatches between HW and FW:

  1. FW does not have a handler for LED_C functionality (probably POWER_ON?)
  2. FW doesnt handle INT-signal from MCP2515 (INT also exist in HW rev1, but floated end).
  3. FW not generate CAN_RESET-signal.
  4. Makefile FUSEs config: CLKO for clocking MCP2515 not enabled byCKOUT -fuse ("Clock output on PORTC7").
  5. Makefile FUSEs config: HWB jumper - exist in rev1 version, but HWBE-fuse (Hardware Boot Enable) is off. For what functionality exist HWB-jumper?
  6. TP3, TP4 - for which purposes? (FW dont have any settings for this uC-port pins)

Regards
Doka

DFU mode using

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

kernel-module build troubles

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: ==

  1. Which version of kernel you compiled the driver? What Linux distribution to use?
  2. Can I place new/missing header-files on existing kernel version or should I use only the version of the kernel for which writing a kernel module open-usb-can?

Fabio Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.