Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. Flight Core v2
  4. Fatal Error Occurs When Enabling CONFIG_CAN: "stm32_can.h: No Such File or Directory

Fatal Error Occurs When Enabling CONFIG_CAN: "stm32_can.h: No Such File or Directory

Scheduled Pinned Locked Moved Flight Core v2
2 Posts 2 Posters 886 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Will
    wrote on last edited by
    #1

    Hi,

    I'm interested in activating the CAN bus to retrieve range sensor data from the J8 connector using the UAVCAN protocol. However, enabling the feature results in an error. Could you please provide guidance on how to enable the UAVCAN feature for the J8 CAN bus? Thank you.

    #default.px4board
    CONFIG_DRIVERS_UAVCAN=y
    CONFIG_BOARD_UAVCAN_INTERFACES=1
    #nuttx-config/nsh/defconfig
    CONFIG_CAN=y

    boards/modalai/fc-v2/src/can.c:52:10: fatal error: stm32_can.h: No such file or directory
    52 | #include "stm32_can.h"
    | ^~~~~~~~~~~~~
    compilation terminated.
    [838/1072] Building CXX object src/modules/simulation/simulator_sih/CMakeFiles/modules__simulation__simulator_sih.dir/sih.cpp.obj
    ninja: build stopped: subcommand failed.
    make: *** [Makefile:232: modalai_fc-v2] Error 1

    BR,
    Will

    Eric KatzfeyE 1 Reply Last reply
    0
    • W Will

      Hi,

      I'm interested in activating the CAN bus to retrieve range sensor data from the J8 connector using the UAVCAN protocol. However, enabling the feature results in an error. Could you please provide guidance on how to enable the UAVCAN feature for the J8 CAN bus? Thank you.

      #default.px4board
      CONFIG_DRIVERS_UAVCAN=y
      CONFIG_BOARD_UAVCAN_INTERFACES=1
      #nuttx-config/nsh/defconfig
      CONFIG_CAN=y

      boards/modalai/fc-v2/src/can.c:52:10: fatal error: stm32_can.h: No such file or directory
      52 | #include "stm32_can.h"
      | ^~~~~~~~~~~~~
      compilation terminated.
      [838/1072] Building CXX object src/modules/simulation/simulator_sih/CMakeFiles/modules__simulation__simulator_sih.dir/sih.cpp.obj
      ninja: build stopped: subcommand failed.
      make: *** [Makefile:232: modalai_fc-v2] Error 1

      BR,
      Will

      Eric KatzfeyE Online
      Eric KatzfeyE Online
      Eric Katzfey
      ModalAI Team
      wrote on last edited by
      #2

      @Will said in Fatal Error Occurs When Enabling CONFIG_CAN: "stm32_can.h: No Such File or Directory:

      stm32_can.h

      This has some more info: https://discuss.px4.io/t/nuttx-can-drivers-on-stm32h7x3/29828/2

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      ModalAI
      Categories Recent Tags ModalAI.com Docs
      © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups