This is intended to provide tools for embedded testing.
- SWD or JTAG flasher
- Soldering iron and solder
- Solder pins on the blue pill and secure the USB connector of not already done.
- Download firmware from the QualifiedFirmware folder.
- Flash using an SWD or JTAG interface. (I usually like using the Nucleo debugger/flasher since it is cheap, has USB to Serial and support drag and drop binary).
- If custom implementation is desired open source firmware is available in the bluepill_tester folder (though it is setup with STM Workbench and STMCubeMX).
- USB to UART converter
- BPT with qualified firmware
- breadboard
- DUT (device under test)
- Jumper wires
(examples will use periph_i2c test)
- Connect DUT to the testing computer.
- Connect the BPT to the USB to UART converter.
(IF_RX of BPT <-> TX of USB to UART)
(IF_TX of BPT <-> RX of USB to UART) - Connect specific pins required for testing the DUT to the BPT
(DUT_SCL of BPT <-> SCL0 of DUT)
(DUT_SDA of BPT <-> SDA0 of DUT) - Flash DUT with test firmware
- Run python script in the test folder
![drawing](resources/bptpinout.jpg)
- I2C slave address is 85 or 0x55
- Total registers are 256
- Upper registers can be read or written (152+)
- Lower registers are read only by user but can be altered with UART2 connection
- sys register is locked
- For changing configuration the registers can be set then the ex command must be used to execute changes