Hi, everyone.
I’m porting the Neopixel LED on the Holybro X650 drone kit to the px4 v1.15.4 version.
I set the board_config.h file as below and made it, but there are too many errors.
I don’t know exactly why, and I don’t know why the DMA-style control code is getting an error.
#define BOARD_HAS_NEOPIXEL 1
#define BOARD_NEOPIXEL_NUM 4
#define BOARD_HAS_N_S_RGB_LED 0
#define GPIO_NEOPIXEL0 GPIO_TIM8_CH1OUT_1 // MAIN5
#define GPIO_NEOPIXEL1 GPIO_TIM8_CH2OUT_1 // MAIN6
#define GPIO_NEOPIXEL2 GPIO_TIM8_CH3OUT_1 // MAIN7
#define GPIO_NEOPIXEL3 GPIO_TIM8_CH4OUT_1 // MAIN8
#define PX4_GPIO_INIT_LIST { \
...
GPIO_NEOPIXEL0, \
GPIO_NEOPIXEL1, \
GPIO_NEOPIXEL2, \
GPIO_NEOPIXEL3 \
}
$ make px4_fmu-v6x_default
CMake Error:
CMake Error at cmake/px4_add_module.cmake:236 (get_target_property):
get_target_property() called with non-existent target "arch_srgbled_dma".
Even if I refer to PX4 Doc to fix the problem, the content is too poor, so I don’t know how to deal with it.
I’m looking forward to your help.