Coder Social home page Coder Social logo

bb_usart's Introduction

README

This example program sets up USART6 on the STMF32F4DISC-BB base board for use as a console port. Note it is designed to work with the existing libopencm3 build setup. Normally it would live in libopencm3-examples/examples/stm32/f4/stm32f4-discovery/bb_usart

Some things to note before this will work.

The pins in the DB9 shell connect to a level shifter on the board but that level shifter is not connected to the actual UART pins (PC6, and PC7) unless you install jumpers on the end of connector for (labelled CON4 on the base board).

The DB9 connector is a 'male' connector, so you cannot use a regular PC cable to connect it to your PC, instead you can either connect a NULL modem cable between the board and your PC, or you can wire the pins on CON4 from 1->4 and from 2->3 (which crosses over transmit and recieve) and put a 'gender changer' on the DB9 and connect a regular cable. In all cases the only signals that are used are receive, transmit and ground so you have to be sure your terminal program is ignoring hardware flow control.

The terminal settings for the receiving device/PC are 115,200 8n1 by default if you call 'setup_bb()' with a different baudrate that works fine as well. If you are using the BlackMagic Debugger then either set the baudrate below 38,400 or make sure you have the 'high baudrate' version of the firmware.

bb_usart's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.