GithubHelp home page GithubHelp logo

testing's Introduction

Testing

This is intended to provide tools for embedded testing.

Setting up the BPT (bluepill tester)

Tools

  • SWD or JTAG flasher
  • Soldering iron and solder

Materials

Flashing BPT

  1. Solder pins on the blue pill and secure the USB connector of not already done.
  2. Download firmware from the QualifiedFirmware folder.
  3. 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).
  4. If custom implementation is desired open source firmware is available in the bluepill_tester folder (though it is setup with STM Workbench and STMCubeMX).

Using the BPT

Tools

  • USB to UART converter

Materials

  • BPT with qualified firmware
  • breadboard
  • DUT (device under test)
  • Jumper wires

Running Test

(examples will use periph_i2c test)

  1. Connect DUT to the testing computer.
  2. 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)
  3. 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)
  4. Flash DUT with test firmware
  5. Run python script in the test folder

BPT Pinout

drawing

BPT Misc Info

  • 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

testing's People

Contributors

mrkevinweiss avatar yegorich avatar smlng avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

smlng

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.