This is just try to use of W25Q256JVEIQ (32MB) Flash memmory.
As I never use EasyEDA before, I can not guaranty that is done OK
credit go to Alexey:
Tiny Blackbox is an open source ultra-light external logger for micro drones.
- Size: 9 x 14 mm
- Weight: 0.47 g
- Logging rate: up to 4 kHz
- Data rate: 1.5 Mbit/s
- Current consumption: < 30 mA
- Flash memory: 32 MB, W25Q256JVEIQ
- MCU: STM32F042G6U6
- Connect the device to any free UART port on your flight controller (RX->TX, TX->RX).
- Setup blackbox in Betaflight Configurator:
- Ports tab: Peripherals -> Blackbox logging, speed 1500000.
- Modes tab: Blackbox -> assign to any available AUX switch.
- Blackbox tab: Logging device -> Serial Port.
- Configure
bf_uart_number
number inconfig.json
to match blackbox port number in Betaflight. - Connect the flight controller to PC.
- Hold button for 1 second to switch into Read mode (double blinks).
- Run Python script
tinybb.py
. The script automatically turns your flight controller into Serial Passthrough mode. - Save logs from flash to file with
r
command. - Open file with Blackbox Explorer and enjoy :-)
You may need to install pySerial
module before running the script. Type pip3 install pyserial
in command prompt (cmd.exe or Terminal).
Example of CLI output:
Open /dev/cu.usbmodemFA131 successfully
===== Betafligh CLI mode =====
>> Entering CLI Mode, type 'exit' to return, or 'help'
>> # serialpassthrough 1 500000
>> Port1: 1
>> Port2: 20
>> Port1 opened, baud = 500000.
>> Forwarding, power cycle to exit.
==============================
Flash memory: 38.0% full
i - Information
r - Read memory
d - Dump full memory
e - Erase
x - Exit
Enter command:
> r
Downloading:
Press ctrl+c to stop
................ 1 Mb
................ 2 Mb
................ 3 Mb
................ 4 Mb
................ 5 Mb
................ 6 Mb
.
6391040 bytes received
Blackbox_Log_20210213_112830.bbl saved
>
- Build firmware using STM32CubeIDE
- Flash pre-built HEX-firmware with STM32CubeProg or STLink toolset.
- Connect ST-Link programmer to following pins:
- Cross-platform GUI
- Support 8 kHz logging rate
Feel free to contact me in Telegram: @AlexeyStn