Commit graph

102 commits

Author SHA1 Message Date
Karl Palsson
afb3081feb hw1: add crystal, more commentary
probably need a crystal for usb :)

still needs footrints, will probably be any old 3225 part.
2017-11-20 23:46:57 +00:00
Karl Palsson
9c78e2ae40 hw1: begin routing.
Spun the host, laid most signal tracks.
todo: vcc, ground pour, then shuffle all LA connectors for ease of
routing.
2017-11-19 23:33:38 +00:00
Karl Palsson
c267237013 hw1: apparently _actually_ save the file 2017-11-17 23:21:16 +00:00
Karl Palsson
52238907c3 hw1: add in/out caps to 3v3 2017-11-17 23:14:23 +00:00
Karl Palsson
1dc853bd8b git ignore more backups 2017-11-17 23:09:34 +00:00
Karl Palsson
3aa65ec998 add "klibs" with new regulator 2017-11-17 23:09:07 +00:00
Karl Palsson
028ebeacbc gitignore kicad .bak files 2017-11-17 23:01:32 +00:00
Karl Palsson
9994a66a3e hw1: schematic "finished" ?
have I committed enough files for others to even open this?
2017-11-17 23:00:50 +00:00
Karl Palsson
8366c94592 common openocd: use -s to find files from test dirs.
The sourcing of the common.cfg and the optional local files was failing
when invoked from a test directory.  Use -s and properly use [find ...]
to search paths nicely.
2017-10-26 22:10:03 +00:00
Karl Palsson
0d9dca3ac9 uart-basic: l0: speedup and drop dead code
Don't need the HSI48 clocks, that was from a usb demo
2017-10-26 21:42:33 +00:00
Karl Palsson
3c53aa4ec3 uart-basic: add l4 2017-10-25 23:54:17 +00:00
Karl Palsson
0cf7359b78 uart-basic: add functional l0 test code too.
Really need to get the rcc helpers built up and upstream!
2017-10-25 23:25:26 +00:00
Karl Palsson
d35d362699 uart-basic: add f0, requires newest code too
stupid f072 disco doesn't have usart2 available
2017-10-24 23:48:55 +00:00
Karl Palsson
a549503ade basic uart: f4 and f3, prepping tests for usart-v2
use parity to at least test a little more of the common code
2017-10-24 23:48:28 +00:00
Karl Palsson
cb376f3959 WIP: hardware test partner round 1
Not sure which kicad files are necessary and which are local yet!

Goal: fixed "host" board (this board) with socket for _any_ Nucleo64 st
board, giving access to test:
* DAC->ADC (both directions)
* I2C (both directions)
* SPI (both directions)
* Uart (both directions)

a socket for a cheap fx2 based logic analyser will be included, so that
sigrok can be used to capture tests of the actual line states.
2017-10-07 15:20:00 +00:00
Karl Palsson
b375054177 awd-timer-dma: initial commit.
Had to figure out a few screwups before I got the AWD working properly.
2017-09-01 21:20:39 +00:00
Karl Palsson
76f86f8b2c spi-master: trivial: names to match sigrok default 2017-09-01 21:20:39 +00:00
Karl Palsson
cf7933539c lib: update to my staging 2017.4 2017-09-01 21:20:39 +00:00
Karl Palsson
4bfe525273 lib: update to my staging 2017.4 2017-04-24 21:27:09 +00:00
Karl Palsson
cfe847f7f3 i2c: fix uart notes for f0 2017-04-05 21:30:42 +00:00
Karl Palsson
a8971df174 openocd: fix gross tcl syntax
if you need the ; why do you need the #
2017-04-05 20:46:31 +00:00
Karl Palsson
1722cab8b5 move forward to new libopencm3 2017-04-04 22:12:46 +00:00
Karl Palsson
43a891d5cd i2c-master: f0: fix leds 2017-04-04 21:17:10 +00:00
Karl Palsson
c802ef055c rules.mk: make sure flashing works from other directories
Provide full path when communicating with openocd.
This means you can run a permanent openocd session from the ./openocd
directory, and still have things working with just "make flash" from
whatever test directory you are in.
2017-04-04 21:03:19 +00:00
Karl Palsson
667ce879ef fix sigrok 2017-03-27 23:23:52 +00:00
Karl Palsson
7cb1e1b140 update to latest staging 2017-03-27 23:21:08 +00:00
Karl Palsson
f8d621ec5b spi-master: initial busy sending test stub.
Basic framework.  now we can build on it.
2017-03-27 23:20:07 +00:00
Karl Palsson
cb66272d4e i2c-master: add pins for f0 disco 2017-03-27 21:44:53 +00:00
Karl Palsson
6dfe47b399 i2c-master: use library form of transfer functions 2017-03-24 00:13:23 +00:00
Karl Palsson
f34641e25b i2c: use speed setting from newer library version 2017-03-23 23:58:20 +00:00
Karl Palsson
5e1ba40641 i2c-master: add 400k speed support on v1/v2 2017-03-23 23:37:25 +00:00
Karl Palsson
112e9e6814 i2c-master: cleaned up again on l1
now has repeated-start and stop/start support, with the same API as v2

Just to decide whether all of it goes up into the library or not.
2017-03-23 22:29:52 +00:00
Karl Palsson
dcd8f459b1 bump to my latest lib 2017-03-22 23:33:43 +00:00
Karl Palsson
4c1859668e working temp/humi stop/repeated stuff on f0
needs cleanup and remerge with f4/l1
2017-03-22 23:31:53 +00:00
Karl Palsson
4032ff221f use transfer style for serial number reading 2017-03-22 23:03:29 +00:00
Karl Palsson
7a540fb4ab f0 working with repeated start properly. need to squish lots of this
like, you left the f0 makefiles out earlier, and it's all boring history
anwyay
2017-03-22 22:50:37 +00:00
Karl Palsson
9930ddd472 i2c: draft api of "set speed 100k" common
Only needs the input clock in megahz.
2017-03-09 23:13:23 +00:00
Karl Palsson
e3e95adb4d drop duplicate openocd board file 2017-03-09 23:05:23 +00:00
Karl Palsson
0f3c1bf6c9 lib: Bump to my current staging tree 2017-03-08 23:06:11 +00:00
Karl Palsson
a2785bdf76 i2c-master: first hack working on f0
read_i2c and write_i2c are not flexible enough, and terribly named.
they're going to have to go, but they're a nice start for some things.
2017-03-08 23:06:00 +00:00
Karl Palsson
d6e9b188c7 i2c-master: working on l1 too.
Needs retest on f4.  then ready to move to new hardware
2017-03-08 23:05:52 +00:00
Karl Palsson
12f454b41b i2c-master: tidy up more.
Still f4 only, but cleaner, and more testing with sigrok for
verification
2017-03-01 22:53:58 +00:00
Karl Palsson
d30f38ed3c i2c-master: start extracting out i2c code
Working on f4 with an external sht21 i2c sensor.
Still lots of f4 specifics yet.  But, progress.
2017-02-21 23:32:50 +00:00
Karl Palsson
65301e5a0b i2c-master: start progressing to extracting common i2c code 2017-02-21 23:11:43 +00:00
Karl Palsson
115b771e56 i2c: Initial stub import of old f4 code
Currently (despite docs) is an import of code reading the onboard i2c
peripheral
2017-02-21 21:37:36 +00:00
Karl Palsson
3a79a3b923 usb-rs485: more docs 2017-02-21 21:17:52 +00:00
Karl Palsson
9e15416b0b usb-rs485: update to latest library master 2017-02-21 21:17:14 +00:00
Karl Palsson
18df4064d3 usb-rs485: enable rs485 mode.
Tested on the f1 with a LA only, but traces look good and as expected.
future work to actually hook it up to a rs485 device.
2016-10-03 21:17:54 +00:00
Karl Palsson
4f75e629e7 oocd: use l0 for f1 instead.
let's me have both f1 and f4 in operation at the same time
2016-10-03 21:15:31 +00:00
Karl Palsson
92983abb87 bump core library 2016-10-03 21:15:17 +00:00