Commit graph

78 commits

Author SHA1 Message Date
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
Karl Palsson
8f7dbbb069 usb-rs485: update readme 2016-09-30 23:47:18 +00:00
Karl Palsson
b317d18abd rules.mk: don't bother making .bins 2016-09-30 23:32:10 +00:00
Karl Palsson
34de89cb81 usb-serial: functional f4
Add stubs based on f1, and include irq timing pin
2016-09-30 23:32:10 +00:00
Karl Palsson
315da21955 usb-serial: f1: try and diagnose corruption in rx path 2016-09-30 23:32:09 +00:00
Karl Palsson
003c9d202a usb-serial: functional on f1. 2016-09-30 23:31:54 +00:00
Karl Palsson
8b484ba88e oocd: move stm32f1 config file to common 2016-09-27 22:23:57 +00:00
Karl Palsson
c0ec94e4c9 ubs-serial-rs485: First solidly working version.
Needs major refactoring to split out the _actual_ arch dependent pieces.
Needs parity and more complete baud rate support.
Needs rs485 support.
2016-09-26 22:04:02 +00:00
Karl Palsson
19d3225fd6 adc-power: update makefiles with work lying around 2016-09-26 20:57:10 +00:00
Karl Palsson
418b3e1415 update library 2016-09-26 20:27:57 +00:00
Karl Palsson
cdd0a0c2e4 adc-power: include f1 tests 2016-09-11 23:38:55 +00:00
Karl Palsson
1ccad7973f update libopencm3 to get adc power off fixes 2016-09-09 22:17:44 +00:00
Karl Palsson
55cf5bcd76 adc-power: Calling adc_power_off twice should be safe
but, it's not on f3 at present.

See https://github.com/libopencm3/libopencm3/issues/654
and
https://github.com/libopencm3/libopencm3/pull/662
2016-09-09 22:16:45 +00:00
Karl Palsson
075229952e adc-power: f3 adc peripheral takes over gpios automatically?
Doesn't seem to have any impact when just hooking up a pot to the pins
at least.
2016-09-09 22:16:45 +00:00
Karl Palsson
fc60dd45e4 .gitignore generated linker scripts 2016-09-09 22:16:45 +00:00
Karl Palsson
f1138d9cc2 adc-power: add oocd file for f3 disco 2016-09-09 22:16:45 +00:00
Karl Palsson
a5764de19f adc-power: add f4 oocd config 2016-09-09 22:16:45 +00:00
Karl Palsson
02064576e8 qemu test sample from daniellinux:
soruced originally from: https://github.com/libopencm3/libopencm3/pull/613

edited to drop the use of bin files, and switch to devices.data
2016-09-09 22:16:45 +00:00
Karl Palsson
c5c33a4600 switch to using devices.data linker generation
Still using my own private rules, but now using the linker script generator so
no need to keep expanding on including .ld files in core libopencm3
2016-09-09 22:16:45 +00:00
Karl Palsson
835fafe270 squelch errors from netcat when it needs to start oocd
be nice if I could _keep_ errors when V=1 but....
2016-09-09 22:16:45 +00:00
Karl Palsson
cb945fa671 rcc-legal-ranges: run through a range of clocks
blink fast/slow for each clock configuration tested, then finish by
blinking idly.

As of this commit, this test fails quickly on most L1 boards tested.
An update to libopencm3 is required to fix this.
2016-08-19 11:31:57 +00:00
Karl Palsson
3d72709fda Update libopencm3 to latest 2016-08-19 11:30:19 +00:00
Karl Palsson
1766f13ad2 rcc-legal-ranges: initial l1 setup
Doesn't fail on my l1 disco unfortunately. (silicon rev X)
Does fail on a custom board with silicon rev V
2016-08-18 12:37:17 +00:00
Karl Palsson
41e0b51830 Update libopencm3 to current master 2016-08-18 12:37:17 +00:00
Karl Palsson
bcdf3f8943 adc: hacks to get it up and running for L4 2016-03-30 17:24:12 +00:00