Karl Palsson
c9fe1da748
stm32l4: include missing makefile
...
Fixes: b8b97209 stm32l4: basic uart/exti/led/clock demo
which introduced the l4 example, but left out the makefile.include file
and didn't add it to the root build.
Reported at: https://github.com/libopencm3/libopencm3-examples/pull/193/commits/2a7e4fac1438519d0a8ec83bfc1400795c562fe0
2019-05-27 11:23:46 +00:00
Karl Palsson
591d715d52
update library submodule
2019-05-25 21:33:10 +00:00
Karl Palsson
90262eb880
stm32-h103: use proper HSE for USB
...
HSI is out of spec for reliable USB operation, even though it sometimes
works. stm32-h103 board has an 8Mhz external crystal which should
therefore be used for any USB work.
Originally reported as https://github.com/libopencm3/libopencm3-examples/pull/192
2019-04-21 21:50:42 +00:00
Karl Palsson
f9713ff865
Update library ref
2019-01-20 13:08:33 +00:00
Karl Palsson
b7aac4bc76
stm32f4/usart: use 115200 baud rate
...
38400 is uncommon and slow. Just live in the modern world of at least
115200.
2018-10-07 13:43:21 +00:00
Karl Palsson
d434a00323
reference miniblink repos
2018-08-29 14:31:16 +00:00
Karl Palsson
236428e74b
readme: refer to template instead of lengthy reuse steps
2018-08-29 14:20:57 +00:00
Karl Palsson
dc2142b729
rules: attempt rebuild of library of not found
...
Based on https://github.com/libopencm3/libopencm3-examples/pull/90
2018-08-29 11:54:43 +00:00
Karl Palsson
f09dd550fd
tiva/lm4f: drop unnecessary externs
...
These were added to the library as for other usb drivers.
2018-08-29 10:32:56 +00:00
Karl Palsson
3527ce407e
stm32f3: usb: use proper clocks
...
Don't use the HSI clock, that's not specced for USB use.
Also, drop the unnecessary delays that were working around old bugs.
2018-08-29 10:32:56 +00:00
Karl Palsson
8faca31dc5
stm32f3: update examples for new library code
2018-08-29 10:32:56 +00:00
Karl Palsson
87680cd122
doc: linker generator is now in plain old python
...
No more mawk/gawk problems.
2018-08-29 10:32:56 +00:00
Karl Palsson
7c121eda94
update to latest library
2018-08-29 10:32:56 +00:00
Nicolas Schodet
5b30e3d98d
Fix usage of USB_VBUS
...
USB_VBUS is not an alternate function, it is an additionnal function which is
always enabled.
If configured as an alternate function, it will draw current from VBUS.
2018-07-03 22:42:44 +00:00
Markus Barenhoff
ce364386d6
stm32f429: allow using all of ram
2018-07-03 22:38:04 +00:00
Karl Palsson
fe6a2b5f13
make clean: avoid bashisms in favour of posixy forms.
...
Got a little too clever.
2018-06-08 09:53:09 +00:00
Karl Palsson
21ce202a07
properly clean .d files
...
And also, _only_ clean our own files, not both a hard list of all files,
just the ones we built ourselves
2018-06-07 11:42:44 +00:00
Karl Palsson
37126c5f02
last try markdown
...
Apparently, we were't a "proper" numeric list.
2018-05-04 10:22:14 +00:00
Karl Palsson
cef41e465d
markdown is wonderful
...
Autonumbering and indenting broken by mixing "compatible" styles of code
formatting.
2018-05-04 10:20:05 +00:00
Karl Palsson
6bca6aaf02
Update readme for reuse and multi source
2018-05-04 09:55:32 +00:00
Karl Palsson
bc9ad8df08
travis: get notifcations on build status for examples too
2018-05-02 11:09:55 +00:00
Karl Palsson
4ddb9db8b9
update linker scripts to use common generic files
2018-05-02 11:01:28 +00:00
Karl Palsson
daff5b130a
update library to latest
2018-05-01 22:26:36 +00:00
Karl Palsson
8c6c8720bf
stm32f3: cdcacm: fix grossly misleading comments
2018-05-01 22:14:26 +00:00
Karl Palsson
301b4f9194
update usb enum return codes
...
Should have been fixed in commit 85be1e5e7b when we updated the library, but was... missed.
travis caught it after the fact at least.
2018-03-04 13:57:29 +00:00
Karl Palsson
a4eec6026b
travis: add basic build check
...
And a badge to the readme.
2018-03-04 13:30:44 +00:00
Karl Palsson
b8b9720926
stm32l4: basic uart/exti/led/clock demo
...
No miniblink, let people interpret a more useful example.
2018-03-04 00:24:39 +00:00
Karl Palsson
7d6a2e36ee
update library to get exti for l4
2018-03-04 00:24:39 +00:00
Karl Palsson
85be1e5e7b
update to current library
...
Minor api changes required.
2018-03-03 21:42:52 +00:00
saogalde
bcf608fa54
readme: use full gdb commands
...
gdb will actually accept as little "tar ext :4242" but use the full
commands to help clarify the intent for people who might not be as
familiar with the syntax.
2018-01-08 10:04:26 +00:00
Peter Mortensen
6e71b9dea8
stm32f0: miniblink: update comments to match code
...
Brought the comments up to date wrt. the actual code (inconsistency removed).
2018-01-08 10:02:47 +00:00
Paul Fertser
f4e129cd4a
rules.mk: Add cross-reference to the map file
...
This adds a section to the bottom of the .map file containing the
symbol->object file mapping. (the logical inverse of the existing
section at the start of the .map file that lists objects, and the
symbols that pulled them in)
Reviewed-by: Karl Palsson <karlp@tweak.net.au >
2017-12-18 12:28:52 +00:00
Paul Fertser
6dbc067b3e
Add maximum debugging info to ELF; doesn't affect binary size
2017-12-18 12:17:50 +00:00
Karl Palsson
f368819e81
Update to current master library
...
can fixes are compile tested only. I don't have those boards.
f3 i2c is tested on i2c and gives the same results
l1 low power demo seems to have been broken for some time already.
=> should be fixed, but not something I'm going to work on right now.
2017-09-01 23:19:46 +00:00
Karl Palsson
d6876b1f77
f3:i2c: use printf and update docs
...
Preparations for updating the tree was making sure the existing example
worked :)
2017-09-01 23:01:56 +00:00
Jelmer Tiete
2107faf5ee
rules: drop broken stlink util support
...
There was an attempt at providing support for the texane/stlink utility.
It has been broken for a long time, referring to missing scripts.
Remove it as clearly unused.
2017-08-25 14:58:41 +00:00
Jelmer Tiete
1f322c1cef
rules: flash target helpers had broken script paths
2017-08-25 14:58:20 +00:00
Sergey Alirzaev
fc60651b6a
stm32f4-discovery: add new board revision
2017-08-25 14:55:45 +00:00
Chuck McManis
766f89c724
Better Debugging in make
...
This commit does two things, it removes the "Quiet" flag
from the flash target so you can see what it is trying to
do when it trys to flash your code, and it adds a make
target print-% which can be used to print the resolved
value of make variables (also helpful in figuring out
what it is trying to do).
2016-12-29 15:38:50 +00:00
Karl Palsson
d23bee4f1a
docs: mention targets might need GNU awk
2016-12-27 21:43:04 +00:00
Karl Palsson
1b92d46b97
docs: try and clear up how "make flash" works
...
Likely to be insufficient, but perhaps a start.
See https://github.com/libopencm3/libopencm3-examples/issues/34
2016-12-27 21:41:08 +00:00
Karl Palsson
c03b580722
stm32: morse timer: remove WFI where not critical
...
__WFI is not standardized, though often provided. As it's not a core
part of this example, drop it.
2016-12-17 00:24:36 +00:00
Karl Palsson
9af2b8c7fb
stm32: morse timer: standardize example
...
Simplify, clarify and synchronize the two morse LED blinker examples.
Prepare for one day extracting the core as common morse example code.
2016-12-17 00:23:10 +00:00
Karl Palsson
d2abd471a5
stm32: timer: further clarify example commentary
...
The "timer" example is actually "the same" for both f1 and f4. Do a
sanity sweep over the commentary, remove all vestiges that this was
cloned from a motor control example, and synchronize both examples.
Future work should extract the common portions "somewhere" but at least
make them consistent for now.
2016-12-16 22:41:15 +00:00
Valentin Ochs
da04ccdf71
stm32: timer: Clarify some misleading comments.
...
Start clearing up misleading/redundant commentary.
2016-12-16 22:35:22 +00:00
Karl Palsson
1260b16772
timer_reset -> rcc_periph_reset_pulse() replace
...
timer_reset wasn't fully implemented for all timers on all series, and
was simply a wrapper of the RST bits in the RCC registers anyway.
First part of https://github.com/libopencm3/libopencm3/issues/709
2016-12-16 21:32:36 +00:00
Karl Palsson
833da68c18
f1: h103: drop duplicate usb_hid example.
...
This example was functionally similar to the "other" example, but had
the actual functional mouse movement disabled. To reduce maintennance
cost with slightly divergent examples, simply drop the less useful
example.
2016-12-16 21:27:25 +00:00
Karl Palsson
8fae7811a8
stm32f1: ubshid: add re-enumeration forcing.
...
This makes the demo reliably work on "generic" "other" style f1 boards
out of the box.
2016-12-16 21:27:25 +00:00
Karl Palsson
23001dfbcb
stm32f1: hid: drop irrelevant gpio A15 config
...
Relates to jtag vs swd on some specific board, but not relevant to the
demo.
2016-12-16 21:27:25 +00:00
Karl Palsson
c22200ceb5
stm32f4: clarify input mode comment
...
Based on irc discussion, make the comment more accurately reflect what
the code is doing.
2016-11-23 17:36:01 +00:00