Minimal hwdef.dat (f405-min) could not be used without at least one analogue pin definition

Hello to all.

Reading tutorial on porting to new flight controller ( I tried to compile firmware with provided f405-min boards and it failed on Chibios compilation with “invalid DMA stream associated to ADC1” error. Adding any analogue pin fixes situation.
I looked through code and found ADC explicitly turned on in “libraries/AP_HAL_ChibiOS/hwdef/common/stm32f47_mcuconf.h” which is included in “libraries/AP_HAL_ChibiOS/hwdef/common/mcuconf.h” in some “strange” way. Is it intended behavior or a kind of a quick hack for ChibiOS quick migration and would be fixed?

1 Like