Zephyr do not compile with overlay for add MCP2515 can transceiver

Hi there,

it is a few days that I try to compile an overlay to manage a Microchip CAN device MCP2515 but I have compilation errors.

I should test the device on a 52840DK, on SPI3, but I have difficulty.
Without overlay compiles. When I try to insert the overlay file it doesn't compile.
I enclose the application test by url

https://drive.google.com/file/d/11Ps7vIbVUXnbI4i4zX4N6n07Z3OXf-kP/view?usp=sharing

cdc_acm_babos.zip

If you have a working reference or example I would appreciate it

Silvio

Parents
  • I modified as you suggested, in fact the compilation goes on but almost at the end I get this error:

    /opt/nordic/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../ .. /../../arm-zephyr-eabi/bin/ld.bfd: zephyr / drivers / can / libdrivers__can.a (can_mcp2515.c.obj): / opt / nordic / ncs / v2.0.0 / zephyr / drivers /can/can_mcp2515.c:976: undefined reference to `__device_dts_ord_127 '
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/v2.0.0/bin/cmake --build / opt / nordic / Samples / 52480DK / cdc_acm_babos / build
    The terminal process terminated with exit code: 1. 


    maybe I need to include some files at the top of main.c?

    Thank you

Reply
  • I modified as you suggested, in fact the compilation goes on but almost at the end I get this error:

    /opt/nordic/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../ .. /../../arm-zephyr-eabi/bin/ld.bfd: zephyr / drivers / can / libdrivers__can.a (can_mcp2515.c.obj): / opt / nordic / ncs / v2.0.0 / zephyr / drivers /can/can_mcp2515.c:976: undefined reference to `__device_dts_ord_127 '
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/v2.0.0/bin/cmake --build / opt / nordic / Samples / 52480DK / cdc_acm_babos / build
    The terminal process terminated with exit code: 1. 


    maybe I need to include some files at the top of main.c?

    Thank you

Children
No Data
Related