Commit graph

30 commits

Author SHA1 Message Date
Lotte Steenbrink
354fcc37d3 finish advanced defmt port 2021-04-14 11:50:25 +02:00
Lotte Steenbrink
8d0c55d36f dk lib: minor formatting improvement 2021-04-12 11:52:04 +02:00
Lotte Steenbrink
bebe390f0e k: move to defmt 2021-04-08 14:09:05 +02:00
Jorge Aparicio
5ff9fd0f8a move dk BSP to nrf52840-hal 0.12.1 2021-03-16 13:06:55 +01:00
Jorge Aparicio
e26a8f50f6
Merge pull request #128 from ferrous-systems/xtask-tools
replace workshop specific tools with xtasks
2021-02-01 14:42:29 +01:00
Jorge Aparicio
450b3b77a9 make rustfmt happy 2021-01-28 16:14:44 +01:00
Jorge Aparicio
17ebad4a3c adapt to breaking changes in cortex-m-rtic 0.5.x
at some point cortex-m-rtic fixed a memory safety bug: RTIC was not marking the
cortex_m::Peripherals singleton as "taken" in its pre-init code. This made it possible to create two
instances of the singleton, e.g. by calling `cortex_m::Peripherals::take` in an RTIC app.

the fix included a breaking change: it makes `Peripherals::take` return `None` from within an RTIC
app. This breaks the use of `dk::init`, which `take`s those `Peripherals`, within an RTIC app and
thus breaks most of the exercises / examples in the advanced workshop

this PR fixes the issue by making `dk::init` not `take` the `Peripherals`. For more details read
in-line comments in the diff
2021-01-28 16:02:53 +01:00
Lotte Steenbrink
aa5d1e417c make xtask run in dongle dir 2021-01-26 12:45:54 +01:00
Lotte Steenbrink
bf4796f5a9 update docs 2021-01-26 11:04:58 +01:00
Lotte Steenbrink
aaab45189d make cargo xtask runnable from root 2021-01-26 09:48:13 +01:00
Jorge Aparicio
ec03653be4 bump cortex-m versions
to ensure we use versions that don't have debuginfo issues which break probe-run backtraces
2021-01-21 14:03:57 +01:00
Jorge Aparicio
c692e0fa9c change the puzzle secret string 2020-12-09 18:20:02 +01:00
Dave Hylands
172dbc17cd Update cross compilation target
Use the target actually mentioned in the .cargo/config file.

Updated the output in the troubleshooting page and
also updated the target for the board/dongle.
2020-09-16 17:45:40 -07:00
Lotte Steenbrink
529f5ea34c use probe-run instead of dk-run 2020-08-17 14:34:07 +02:00
Jorge Aparicio
613f460978 align usb-2-solution and usb-3
closes #37
2020-07-16 12:09:01 +02:00
Jorge Aparicio
9f7bfe3384 add no-USB variants of the Dongle programs
these are for the case where USB functionality fails and compromises the radio
functionality
2020-07-15 14:09:25 +02:00
Jorge Aparicio
eae0da0153 update hex files 2020-07-13 16:56:04 +02:00
Jorge Aparicio
03f07025e3 add license 2020-07-10 11:15:54 +02:00
Jorge Aparicio
e093f48807 remove outdated code; add puzzle source code 2020-07-09 18:58:26 +02:00
Jorge Aparicio
886487dee6 - spread out USB information
- add intermediate-step solutions
- add more hints
- refactor exercise & text to have the same amount of work on all OSes
- add `usb` parser solutions
- make `dk-run` less silent
- rename rtic binaries (shorter names)
- link to the main svd2rust API docs
2020-06-30 19:02:21 +02:00
Jorge Aparicio
ea2fc91029
Merge pull request #9 from ferrous-systems/puzzle-ch25
puzzle hints, recv_timeout, etc.
2020-06-25 11:40:21 +00:00
Jorge Aparicio
80cb2caa09 add a compiler fence before exiting
the rtt-target implementation is light on compiler fences so the compiler could
be doing unwanted reordering of memory operations. At least patch up a place
where these orderings may result in an observable change of behavior
2020-06-24 17:20:42 +02:00
Jorge Aparicio
9c1e496ef5 dk: print message before exiting 2020-06-24 16:57:53 +02:00
Lotte Steenbrink
56abdbad34 increase rtt buffer & number of attach retries 2020-06-24 15:32:04 +02:00
Lotte Steenbrink
d7cc36d237 boards/dk/src/lib.rs: increase rtt bufsz, set mode to blocking for beginner 2020-06-24 11:31:47 +02:00
Jorge Aparicio
c918a995d7 make the puzzle dongle app operate on channel 25
and adjust puzzle-radio starter code accordingly

this reduces the chance of people using puzzle-radio with the wrong dongle
app (i.e. loopback); that would lead to them getting response different than
what's indicated in the text

I have also added the app name to the dongle / serial-term output:

``` text
deviceid=75fa82ad7588b3c7 channel=20 TxPower=+8dBm app=loopback.hex
```
2020-06-23 11:28:27 +02:00
Jorge Aparicio
8140c7bba9 WIP: show recv_timeout API
TODO update text
2020-06-23 11:28:27 +02:00
Jorge Aparicio
3983ee5310 - beginner and advanced Cargo features
- more work on advanced text
- update hex files
2020-06-11 13:48:35 +02:00
Jorge Aparicio
31c331c1a3 - dk: API docs
- advanced: adapt to changes in usb2 dependency
- dk: add reminder to connect the USB cable to port J3
2020-06-09 18:17:30 +02:00
Jorge Aparicio
53d10f9a4a squashed 2020-06-09 11:58:27 +02:00