config icon indicating copy to clipboard operation
config copied to clipboard

Add a new target kakuteF4wing

Open jamming opened this issue 1 year ago • 4 comments

KakuteF4wing is made smaller and lighter. It cover an area of 25x30mm.

  1. 6 PWM channel are: 2 motor pads and 4 servo with THT
  2. 5 serial ports, one with inverter on the RX of a UART for traditional SBUS
  3. 1 external I2C
  4. analog OSD
  5. Independent 5V 3A BEC for servo 6)16MB onboard flash memory
  6. Based on STM32F405
  7. Simple PDB with 2BECs (5V/3A)
  8. 2 ADC
  9. Shunt resistance up to 90A.

jamming avatar Jun 11 '24 07:06 jamming

Which pins are motor outputs and which are servo outputs? Should the servos be assigned as a SERVO resource instead of a MOTOR resource?

As-is, motors 1-4 conflict with DMA for SPI3 (flash), which will cause poor blackbox performance if they are used for DShot output.

Also, LED_STRIP on PA1 has a DMA conflict with SPI2_TX, which will negatively impact analog OSD when LED_STRIP is enabled.

ot0tot avatar Jun 12 '24 06:06 ot0tot

I am not aware that FLASH and OSD also need to use DMA. This board is currently a prototype board, and I will change the pinmap and test them in the next two days to ensure that TIMER and all SPIs have DMA. The new DMA MAP will be as follows:

# DMA1 Stream 0  :  SPI3_RX      :FLASH
# DMA1 Stream 2  :  TIM3_CH4  :PWM4
# DMA1 Stream 3  :  SPI2_RX      :OSD
# DMA1 Stream 4  :  SPI2_TX      :OSD
# DMA1 Stream 5  :  SPI3_TX      :FLASH
# DMA1 Stream 6  :  TIM2_CH2  :LED_STRIP
# DMA1 Stream 7  :  TIM3_CH3  :PWM3

# DMA2 Stream 0  :  SPI1_RX       :IMU
# DMA2 Stream 1  :  TIM1_CH1  :PWM1
# DMA2 Stream 2  :  TIM8_CH3  :PWM5
# DMA2 Stream 4  :  ADC1          :BAT_I/V
# DMA2 Stream 5  :  SPI1_TX      :IMU
# DMA2 Stream 6  :  TIM1_CH2  :PWM2
# DMA2 Stream 7  :  TIM8_CH4  :PWM6

Thank you for your help!

Which pins are motor outputs and which are servo outputs? Should the servos be assigned as a SERVO resource instead of a MOTOR resource?

As-is, motors 1-4 conflict with DMA for SPI3 (flash), which will cause poor blackbox performance if they are used for DShot output.

Also, LED_STRIP on PA1 has a DMA conflict with SPI2_TX, which will negatively impact analog OSD when LED_STRIP is enabled.

jamming avatar Jun 13 '24 01:06 jamming

https://betaflight.com/docs/development/manufacturer/config-target-guidance

please read and follow @jamming

sugaarK avatar Jun 29 '24 06:06 sugaarK

sorry @jamming you guys are now part of the partner program so the new scheme other than working out resource and timer/DMA conflicts doesn't apply to you guys

sugaarK avatar Jul 10 '24 02:07 sugaarK