Skip to content

Commit

Permalink
Start documenting hardware, add OpenOCD config
Browse files Browse the repository at this point in the history
  • Loading branch information
ah- committed Feb 28, 2018
1 parent 5b0ce60 commit 7c7060b
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
.gdb_history
Cargo.lock
*.bin
*.dfu
target/
4 changes: 4 additions & 0 deletions anne.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source [find interface/stlink-v2-1.cfg]
source [find board/st_nucleo_l1.cfg]
reset_config none separate
#reset_config srst_only srst_nogate connect_assert_srst
30 changes: 30 additions & 0 deletions docs/hardware.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Hardware
========

![Anne](images/anne-white.jpg)

The Anne Pro contains 3 MCUs to handle each of the Keyboard, LED and BLE operations:

- Keyboard: STM32L151C8T6
- LED: STM32L151C8T6
- BLE: TI CC2541

The USB charging circuit is a BQ24075.

You can find some more information including pin assignments at https://github.com/hi-a/annepro-key

Flashing and debugging
----------------------

To develop it's best to directly flash via the debug pins instead of DFU, so you get full debugging support and even working stdout to your host machine.

Any ST-Link v2 programmer will do. You can find them cheap on ebay, or if you already have a STM32 Nucleo board you can use the programmer of that.

All the debug pins are exposed and easily accessible. Just solder on some wires and connect to your programmer:

![PCB](images/pcb.png)

OpenOCD
-------

Once your programmer is connected start `openocd -f anne.cfg`.
Binary file added docs/images/anne-white.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/pcb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7c7060b

Please sign in to comment.