Gunar Schorcht
9d2d9db73e
makefiles/boards/stm32: fix DFU_USB_ID handling
...
The variable `DFU_USB_ID` is used by `dfu-util` to specify the device to be flashed. The STM32 make system prevents `dfu-util` from being used as programmer if this variable is not set, although `dfu-util.mk` generates a default value for this variable from the `USB_VID` and `USB_PID` variables if necessary. Therefore, checking the `DFU_USB_ID` variable is removed here. If a board requires a specific combination of VID/PID for `dfu_util`, it is responsible for setting the `DFU_USB_ID` variable.
2023-03-10 10:02:15 +01:00
Marian Buschsieweke
08d88ee557
makefiles/boards/stm32.inc.mk: improve stm32flash support
...
Allow issuing a reset to bootloader sequence by abusing the RTS and
the DTR pins of a TTL adapter. This makes flashing via UART much
more convenient, as no jumpers need to be placed to select booting to
the bootloader / flash and no reset buttons need to be pressed.
2022-08-16 22:00:06 +02:00
Francisco Molina
9260cfb4f0
sys/xtimer: prefer ztimer_xtimer_compat
2022-03-17 14:37:40 +01:00
df8086091f
sys/ztimer: add ztimer64_xtimer_compat
...
The ztimer64_xtimer_compat modules implements the whole xtimer api
on top of ztimer64_usec
2022-02-24 09:10:58 +01:00
Martine Lenders
13cc189a8a
Revert "Remove which
from shell invocations"
2021-09-03 11:27:03 +02:00
chrysn
6b50033766
makefiles: Replace which
with command -v
...
As the POSIX documentation[1] of `command -v` guarantees that on error
there will be no output (and there will be output in the other cases),
the tests in Makefiles were simplified to test for output equality to
the empty string.
Redirects swallowing error outputs were removed, as the command produces
no error output there (as recommended at [2]).
Existing uses of `command` are simplified as well.
[1]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html
[2]: https://salsa.debian.org/debian/debianutils/-/blob/master/debian/NEWS
2021-09-02 16:30:46 +02:00
b4fecf33ed
makefiles/stm32.inc.mk: allow to override supported programmers
...
The check on supported programmers is now also done in the main Makefile.include, so it's removed from there
2021-02-24 13:28:01 +01:00
32cbbe05f2
makefiles/sam0.inc.mk: define list of supported programmers
2021-02-24 13:28:01 +01:00
74274d9e19
boards: remove openocd/pyocd config conditionals
2021-02-23 21:22:52 +01:00
603186f913
make: namespace openocd DEBUG_ADAPTER variable
2021-02-23 21:22:52 +01:00
f8822b5f8f
boards: remove not need PORT_LINUX/PORT_DARWIN
...
They defined the same in serial.inc.mk. Some Darwin default are changed because they are probably wrong
2020-12-02 09:20:57 +01:00
4c290e1f92
boards: remove include of serial.inc.mk
2020-12-02 09:20:57 +01:00
3bafb6e2bc
makefiles/edbg: include openocd.inc.mk to define debug vars
2020-11-25 22:31:13 +01:00
c6ad85a7b0
boards: don't include programmer logic at board level
2020-11-25 22:31:13 +01:00
Marian Buschsieweke
d5c0e30a11
boards/waspmote: Fix timer config
...
- Set XTIMER_HZ to something that is actually possible to generate with one
of the available clock dividers from the core frequency
- Use xtimer_on_ztimer if xtimer is used and not ztimer_xtimer_compat is used
- This is needed because xtimer is simply not compatible with any of the
possible clock frequencies of this board
2020-09-23 20:12:06 +02:00
c7189cfe99
makefiles/sam0: only fail on missing device with explicit targets
2020-07-03 10:24:40 +02:00
Benjamin Valentin
a653667172
makefiles/boards/sam0.inc.mk: dap: use OpenOCD for debugging
...
ebdg can only be used for flashing, we still have to use OpenOCD for
debugging.
fixes #14328
2020-06-24 16:06:12 +02:00
Marian Buschsieweke
98824df68b
makefiles/boards/sam0.inc.mk: Allow other programmers
...
Modified to allow including sam0.inc.mk even if none of the programmers handled
their is used. This is useful for boards that by default are programmed via a
bootloader. Still including sam0.inc.mk allows users to specify the `PROGRAMMER`
to use jlink, openocd, or edgb instead of the bootloader.
2020-06-04 21:28:17 +02:00
Hauke Petersen
c333b7e896
mk/boards/stm32: add JLink support
2020-05-04 16:42:25 +02:00
Dylan Laduranty
faa0afd8c1
Merge pull request #13381 from benpicco/sam0-jlink-fix
...
makefiles/sam0.inc.mk: fix detection of JLinkExe
2020-04-14 20:29:43 +02:00
benpicco
a0cc4b0515
Merge pull request #13623 from Scallog/add_rom_offset_stm32
...
makefiles/boards/stm32.ink.mk: Use ROM_OFFSET with stm32flash
2020-03-16 12:09:40 +01:00
Corentin 'Kmikaz' Vigourt
6a559f1924
makefiles/boards/stm32.ink.mk: Use ROM_OFFSET with stm32flash
2020-03-16 10:47:32 +01:00
Francisco
3153a86551
Merge pull request #11192 from aabadie/pr/tools/dfu
...
boards: include common dfu logic where applicable
2020-03-12 09:05:32 +01:00
Corentin 'Kmikaz' Vigourt
a4976c3333
makefiles/boards/stm32.inc.mk: add stm32flash support
2020-03-11 11:00:49 +01:00
f56470925b
boards: include common dfu logic where applicable
2020-03-10 11:42:10 +01:00
95d607b54d
Merge pull request #13480 from aabadie/pr/tools/openocd_export_variables
...
tools/openocd: export configuration variables only to required targets
2020-03-03 18:16:05 +01:00
b7f5b18991
boards: don't export ROM_OFFSET variable
2020-03-03 14:18:03 +01:00
f1ba22534a
boards: don't export globally OPENOCD_RESET_USE...
2020-03-03 11:42:19 +01:00
Benjamin Valentin
e8d248648f
makefiles/sam0.inc.mk: fix detection of JLinkExe
...
`command -v` doesn't work for me, but `which` finds the correct JLinkExe.
2020-02-14 12:07:16 +01:00
Benjamin Valentin
bd19a55804
boards: remove EDBG_DEVICE_TYPE
...
EDBG_DEVICE_TYPE is a property of the CPU, is should not be set
by every board individually.
2020-01-31 09:35:27 +01:00
Marian Buschsieweke
327060ca40
makesfiles/boards: Added common programmer config
...
Added common configuration for the programmer, debugger and serial for STM32
based boards.
2019-11-12 19:43:42 +01:00
Benjamin Valentin
756cab9385
makefiles/sam0: fix debugging with edbg
...
OpenOCD should *always* be included for debugging if JLinkExe is not used.
fixes #12652
2019-11-06 15:43:15 +01:00
Benjamin Valentin
81fe1b9c9c
makefiles/sam0: fix typo
...
Somehow an additional parenthesis sneaked in. Remove it to fix the Makefile.
2019-10-21 11:04:13 +02:00
Benjamin Valentin
b617e40950
sam0: allow flashing with JLinkExe
...
Currently sam0 will always use OpenOCD, even when the JLink programmer is selected.
Instead, use JLinkExe when it's availiable and a J-Link programmer is used.
2019-06-24 18:44:36 +02:00
79a2db89e0
makefiles/tools: remove useless export when setting DEBUG_ADAPTER_ID
2019-06-03 10:32:08 +02:00
6ecc16dd5d
makefiles/sam0: remove useless export when setting DEBUG_ADAPTER
2019-06-03 10:32:08 +02:00
Gaëtan Harter
5e053bffe9
boards: use RIOTTOOLS variable
2018-06-28 14:05:33 +02:00
Joakim Nohlgård
697f0b00f3
edbg: Use DEBUG_ADAPTER_ID to select which USB programmer to use
2017-11-17 10:03:05 +01:00
biboc
ff235803f4
Sam0: fix edbg flash with serial number
2017-06-07 14:16:55 +02:00
d7d796b80d
makefiles: add edbg tool support
2017-05-24 14:52:44 +02:00
ee1e2af232
makefiles: add shared sam0 board makefile include
2017-05-19 00:50:40 +02:00