• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
ModalAI Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
    • Register
    • Login

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

    Flight Core v2
    2
    2
    248
    Loading More Posts
    • 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
      Will
      last edited by 7 Mar 2024, 13:20

      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

      E 1 Reply Last reply 7 Mar 2024, 16:39 Reply Quote 0
      • E
        Eric Katzfey ModalAI Team @Will
        last edited by 7 Mar 2024, 16:39

        @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 Reply Quote 0
        1 out of 2
        • First post
          1/2
          Last post
        Powered by NodeBB | Contributors