Getting Started with Flux


Thought for 11 mins 59 sec
Thought for 6 sec
Managing 1 task
Thought for 9 sec
2/4 Integrate and compile schematic-grounded Betaflight firmware
Thought for 6 sec
4/4 Verify schematic readiness and prepare 39 × 39mm PCB placement

Fix FC electrical findings and qualify critical capacitors

Integrate and compile schematic-grounded Betaflight firmware

Recover ESC access and identify actionable remaining work — blocked pending working authorized project link

Verify schematic readiness and prepare 39 × 39mm PCB placement

Thought for 14 sec
Awaiting 1 task
"Prototype Schematic Readiness Review" completed.
Aa vakhat be actual fixes complete karya chhe:
  • VCAP capacitors C5/C6: Murata 2.2µF, 16V, X7R, 0805 parts select karya; manufacturer na capacitance/ESR graphs check karya ane VCAP connections alag j rakhya. Details MLCC Qualification Review ma chhe.
  • Custom Betaflight: actual source sathe BIN/ELF/MAP compile karya, 8MHz oscillator bypass ane PC0-based USB detection integrate karya; mapping checks ane host tests pass thaya. Motors safety mate hard-locked OFF chhe—aa flight-ready firmware nathi. Downloads Firmware Build Results ma chhe.
Haju baki: 39 × 39mm PCB sizing, placement/routing ane hardware tests. Fresh ERC ma 10 errors haju visible chhe; connectivity inspection pramane aa USB external-source ane IMU supply-detection findings chhe, errors suppress karya nathi. Final independent review nu result reconcile karvanu baki chhe. ESC access fari fail thayu, etle tena power stages/routing ma changes nathi karya ane 55A capability verify nathi; aagal mate accessible ESC project no working link joie.
Tamara ACUs pura thai gaya etle execution rokayu.

Waiting for input


Schematic is Auto-placed

The schematic has been arranged automatically. Flux can redraw it to be more readable, with components placed in related groups and wires drawn more legibly. This takes about 10-60 mins.

Firmware Getting Started
Current compiled target — 2026-10-08
Real custom Betaflight FLUXF405PROTO source and BIN/ELF/MAP have now been compiled and delivered, with integrated8MHz HSE bypass and PC0 active-low GPIO-gated self-powered CDC USB. See Firmware Build Results for artifacts, independently checked pins, tests, build/flash instructions and all unresolved gates. This replaces previous paragraphs stating no compiled target/USB integration exists; those paragraphs below are historical context.
This release is permanently BENCH-LOCKED: LOW motor pads and NULL motor backend, arming intentionally blocked, even with a detected gyro. It is real Betaflight but NOT a flight release or hardware-tested image. PB15 external gyro clock is intentionally disabled; gyro alignment CW0 is an unmeasured bench placeholder. Fixed clock overrides persisted HSE/overclock values; only CDC is allowed, MSC/composite paths are blocked/ignored until separately qualified. External regulated5V at J7pin1 mandatory; USB data-only, PA9 stays UART1TX. Current meter disabled pending calibration; ADC loading/settling and reference voltage scaling remain unqualified. Do not import stock SpeedyBee dumps, alter resources or claim proprietary-app compatibility. Existing actual-resource table below remains the inspected mapping, except PC0 is USB detection and motor/CLKIN outputs must not be enabled by this locked release.
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.
  • Current compiled target — 2026-10-08

  • Status —2026-10-08

  • Actual resources

  • Source-backed clock decision

  • Custom target differences

  • ADC configuration and calibration

  • Startup and power discipline