Getting Started with Flux


"Flight Controller Electrical Completion" completed.
Power circuit na char capacitors mate concrete parts select karya chhe, ane motor outputs LOW rakhtu safe bring-up firmware compile thayu chhe; aa flight firmware nathi. Have independent electrical check karish—baki capacitor evidence ane ESC access clear na thay tya sudhi manufacturing-ready ke 55A-ready claim nahi karish.
Finished execution
"Flight Controller Readiness Review" completed.
Aa vakhat actual FC changes ane firmware compilation karya chhe—project have 80 components ane 69 nets par chhe.
  • Ratings: 22 capacitors ane 36 resistors ni ratings configure/check kari; C16–C19 mate Murata 4.7µF, 16V, X7R, 0805 parts select karya. C5/C6 VCAP capacitors ni effective capacitance/ESR qualification haju baki chhe.
  • USB/power: PC0 par active-low USB VBUS detection umeru, PA9 UART signal preserve karyo. USB have data-only chhe—USB thi board power nahi thay. External regulated 5V jaruri chhe; raw LiPo power input par na jodsho.
  • Firmware: safe bring-up ELF/BIN/MAP ane source compile karya; mapping ane USB-detection logic na host tests pass thaya. Aa image motor outputs LOW rakhe chhe ane USB attach kartu nathi—aa working flight firmware nathi. Artifacts Firmware Build Results ma chhe.
Haju baki: full Betaflight integration, capacitor qualification, final electrical review findings, 39 × 39mm PCB sizing/placement/routing, ane hardware testing. Last full ERC check ma 10 errors documented hata; clean ERC claim nathi. ESC no saved project link access na thayo, etle ESC power stages/routing ma changes nathi karya ane 55A rating verify nathi; access issue mate Flux Support jaruri chhe.
Banne boards haju manufacturing ke flight mate ready nathi. Tamara ACUs pura thai gaya etle execution rokayu.

Waiting for input


Last modified 1mo ago

Firmware Getting Started
Authoritative USB update — 2026-10-08
USB DATA-ONLY, external regulated5V at J7pin1 mandatory even for programming. Add PC0 digital input USB_VBUS_PRESENT_N (no internal pull required): LOW=VBUS present, HIGH=absent. Q1 gate-isolated detector prevents USB VBUS DC injection into unpowered MCU. PA9 remains USART1TX; no other pin mapping changes. Remove PC0 from the unused-pin list below. Disable dedicated OTG_FS PA9 VBUS sensing in custom stack; initialize PC0 before USB, keep soft-disconnect asserted until LOW stable, disconnect promptly on HIGH. Do not merely disable sensing and permanently attach. Configure self-powered descriptors and no USB core-power request. HAL/version-specific bypass and PC0 callback integration must be implemented by firmware task; stock ROM DFU may not follow this custom GPIO detector, so SWD is mandatory recovery until measured. PA9 USART1TX and OTG_FS_VBUS share the physical pad. No direct5V connection was added to PA9. Q1 pin1G/pin2S/pin3D checked. Actual mapping table below otherwise unchanged; its USB-only/core-authorization/no-detector paragraphs are historical and superseded by this section.
Status —2026-10-08
All active-scope external interfaces are now wired. Custom prototype firmware REQUIRED; no tested binary, patch or build delivered. Do not assume stock SPEEDYBEEF405V5 compatibility. Remove absent features and change UART defaults. Source evidence and ERC limits live in interface-and-firmware-gates.
Actual resources

Table


FunctionMCU pinsInterface / implementation
Driven8MHz HSEPH0;PH1NCY1 ->HSE_8MHZ; custom bypass startup
IMU SPI1PA5SCK/PA6MISO/PA7MOSI/PA4CSU2;PC4 interrupt;PB15 CLKIN
Flash SPI3PB3SCK/PB4MISO/PB5MOSI/PC12CSU3; release JTAG, retain SWD
USBFSPA11DM/PA12DPJ1/D2; firmware self-powered behavior must account external5V
SWDPA13/PA14J2 pins3/4;NRSTpin5;BOOT0pin6
Motor1PB1 TIM3_CH4 AF2R7 100ohm ->J3pin1;100k pulldown
Motor2PB0 TIM3_CH3 AF2R8 ->J3pin2
Motor3PB10 TIM2_CH3 AF1R9 ->J3pin3
Motor4PB11 TIM2_CH4 AF1R10 ->J3pin4
UART1 receiverPA9TX/PA10RX AF7J4pins1/2;1k series
UART2 GPSPA2TX/PA3RX AF7J4pins4/5;1k series
UART3 expansionPC10TX/PC11RX AF7J5pins1/2
UART4 expansionPA0TX/PA1RX AF8J5pins4/5
UART6 expansionPC6TX/PC7RX AF8J6pins1/2
UART5ESC telemetryPD2RX AF8J7pin5;R25 1k; noUART5TX
I2C1PB6SCL/PB7SDA AF4J6pins4/5;4.7k pullups to3V3
VBAT ADCPC1 ADC123_IN11J7pin3;100k/10k plus1k/100nF; nominal ratio11
Current ADCPC5 ADC12_IN15J7pin4;10k/10k plus1k/100nF; nominal ratio2
J2 order1=3V3 sense ONLY,2GND,3SWDIO,4SWCLK,5NRST,6BOOT0. Never power the LDO output from debugger3V3. PB2BOOT1 is pulled low. BOOT0 may be externally strapped to3V3 for recovery; test ROM DFU clock behavior separately.
Source-backed clock decision
Reference config fully read from https://github.com/betaflight/config/blob/1e3f7782bfbc/configs/SPBE/SPEEDYBEEF405V5/config.h . It names8MHz but not oscillator topology. Betaflight source https://github.com/betaflight/betaflight/blob/af0638839ac3/src/platform/STM32/startup/system_stm32f4xx.c was read through SystemInit and SetSysClock: SystemInit clears HSEBYP using0xFFFBFFFF; SetSysClock calls StartHSx(RCC_CR_HSEON,RCC_CR_HSERDY,5000) without restoring HSEBYP. Thus frequency matching is not sufficient for this active oscillator.
Chosen architecture: retainY1 active8MHz and PH1NC; custom startup must set RCC_CR_HSEBYP while HSE disabled before the HSE start, after SystemInit reset. Audit every recovery/clock-reset path. No stock binary guarantee. For unoverclockedF405 the read source computes8MHz ->pll_m4,pll_input2,pll_n168,pll_p2,pll_q7 giving168MHz core and48MHz USB. These are source-derived required values, NOT a tested implementation. Failure to become HSE/PLL ready must keep outputs inactive, not silently run flight control on a wrong timebase. Build and hardware verification remain gates.
Custom target differences
Use distinct board/target name. Reuse only mapped active resources from source; motor TIMER_PIN_MAP selections are(2,0),(2,0),(1,0),(1,1) for M1–M4. These mapping indices are not GPIO AF numbers; datasheet AFs are shown above. Verify DMA allocation and DShot implementation for chosen Betaflight revision. Initial DShot300 unidirectional; bidirectionalDShot and cable timing not established. Set receiverUART1/GPSUART2 rather than referenceUART6/UART4; configure noninverted3.3V UART receiver protocol. No SBUS inverter supplied. UART1 is not Bluetooth/MSP by default. Disable OSD,barometer,wireless,PINIO,buzzer,LED,camera,RSSI,servo resources. NC pinsPC13/PC14/PC15/PC0/PC2/PC3/PB12/PB13/PB14/PC8/PC9/PA8/PA15/PB8/PB9 should not be initialized as stock outputs.
ADC configuration and calibration
Start ADC sample time480cycles, rate=10ms settling when enabling channels. PC1 filter157.721Hz;PC5filter265.258Hz passive simulation. Validate real sample loading and VDDA. Firmware voltage reconstruction uses measuredVDDA, nominalVBAT=11Vadc, external sensorV=2Vadc. Then apply measured sensor slope/offset to amperes; no onboard current shunt exists. Never reuse reference current scale36. Calibrate against known supplies and current reference at multiple points. Normal sense boundVBAT25.2V;30V is a screening ceiling, not a surge rating.
Startup and power discipline
GPIO CS high and motor outputs low before bus activity; retain SWD. USB-only preauthorization must stay below100mA (lowclock,flash/IMU idle); request>=250mA before168MHz logging. External5V mode permits bounded180.16mA core only, no accessory loads. There is no dedicatedUSBVBUS sense pin becausePA9 isUART1TX; inspect/configure USB device stack for no-VBUS-sense/self-powered operation and prevent attachment signaling without hostVBUS. This firmware gate is not resolved by diodeOR. Do not drive FC interface pins when FCoff; independently powered peripherals need sequencing/isolation offboard.
Read flash JEDEC and test program/erase/read. Read IMU WHO_AM_I, configure SPI and interrupt polarity explicitly. PB15CLKIN is inherited reference resource; timer frequency/mode must be validated before enabling external gyro clock. Physical alignment must follow actual future placement, not assumedCW270. Verify8MHz oscillator,clock trees,USB enumeration both orientations,DFU recovery,motor waveform and failsafe with props removed. No compiled code or flight qualification claimed.
  • Authoritative USB update — 2026-10-08

  • Status —2026-10-08

  • Actual resources

  • Source-backed clock decision

  • Custom target differences

  • ADC configuration and calibration

  • Startup and power discipline