1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

79 Commits

Author SHA1 Message Date
Marian Buschsieweke
6551b03640
boards/common/nrf52: Fix detection of JLinkExe
For nRF52 J-Link was intended to be preferred as programmer over OpenOCD
when both are available, but falling back to OpenOCD when JLinkExe is
not found in `$PATH`. However, there was call the shell missing to
actually detect `JLinkExe`.
2023-01-08 20:16:27 +01:00
Marian Buschsieweke
51b6379dee
boards/common/nrf52: fix timer config
The `channels` member should not be set to the number of hardware
channels *n*, but to *n* - 1 instead. The last channel is implicitly
used in `timer_read()`. Hence out of *n* hardware channels, only *n* - 1
are available to the application.

This fixes a bug introduced by 4d02e15247
which incorrectly set the channel number to *n* rather than to
*n* - 1.
2022-11-22 13:20:53 +01:00
Marian Buschsieweke
4d02e15247
boards/common/nrf52: improve default clock config
- All nRF52 timers support 32 bit mode, so use that
- All nRF52 timers support at least 4 channels, the timers NRF_TIMER3
  and NRF_TIMER4 even support 6 channels.
- Add a warning that `TIMER_DEV(1)` is used by the IEEE 802.15.4 driver
2022-10-27 21:12:19 +02:00
Marian Buschsieweke
e3f5ba90fd
boards/{thingy52,ruuvitag}: allow OpenOCD as programmer 2022-06-21 15:04:13 +02:00
Marian Buschsieweke
2bf39e1aca
boards/common/nrf52: fix compilation of thingy52 and ruuvitag 2022-06-08 12:38:23 +02:00
Marian Buschsieweke
6d39b3c993
boards/common/nrf52: only default PROGRAMMER to jlink if installed 2022-06-07 16:45:13 +02:00
Benjamin Valentin
5d111e71aa boards: drop board_init() from board.h 2022-02-25 15:08:58 +01:00
Francisco Molina
766bfeace4 boards: model nrf52 boards 2021-12-08 13:25:29 +01:00
Francisco Molina
3e4b35c445 boards/nrf52840dk-nrf52dk-dwm1000: add kconfig dependencies 2021-09-29 10:19:27 +02:00
Francisco Molina
c9de733c52 cpu/nrf52/Makefile.dep: move radio dependencies from boards/common 2021-09-29 10:16:31 +02:00
Benjamin Valentin
702c3435a8 boards/nrf52: replace gnrc_netdev_default with netdev_default
Only nimble depends on GNRC, but we want to replace gnrc_netdev_default
with netdev_default, so check for gnrc instead.
2021-09-02 14:36:22 +02:00
chrysn
2b09d3162a cpu/nrf52: Expose more timers 2021-03-30 16:34:44 +02:00
18b1e16d3a
boards/nrf52: setup supported programmers 2021-02-24 13:29:38 +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
41a89a31a9
boards: cpu: nfr52: fix typo in nrf52833 cpu model name 2021-02-10 13:39:51 +01:00
13ca17ff24
boards: add initial support for microbit v2 2021-02-10 13:39:51 +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
Benjamin Valentin
bfb7cbfa4d boards/nrf52: resolve netdev dependencies for all family members 2020-12-01 11:42:52 +01:00
c6ad85a7b0
boards: don't include programmer logic at board level 2020-11-25 22:31:13 +01:00
823774358e
Merge pull request #14952 from benpicco/boards/common/cdc_acm
boards: factorize stdio CDC ACM configuration
2020-10-29 14:33:01 +01:00
4d91832795
boards/nrf52: remove softdevice specific handling 2020-10-29 09:02:12 +01:00
Benjamin Valentin
0debe57566 common/samd21-arduino-bootloader: use common stdio CDC ACM config 2020-10-20 10:52:50 +02:00
Benjamin Valentin
22be50da22 boards/common/nrf52: add common config for stdio via CDC ACM 2020-10-13 15:21:21 +02:00
Leandro Lanzieri
d25fc243c4
treewide: change prefix for generated Kconfig symbols.
This changes the prefixes of the symbols generated from USEMODULE and
USEPKG variables. The changes are as follow:

   KCONFIG_MODULE_ => KCONFIG_USEMODULE_
   KCONFIG_PKG_ => KCONFIG_USEPKG_
   MODULE_ => USEMODULE_
   PKG_ => USEPKG_
2020-08-31 09:37:09 +02:00
benpicco
52bf3096cf
Merge pull request #14480 from benpicco/openocd-adapters_swd
openocd-adapters: select transport based on adapter
2020-08-04 11:37:32 +02:00
Benjamin Valentin
8f1d32bb2d boards/common/nrf52: add note about ST-LINKV2 as programmer 2020-08-04 10:36:40 +02:00
Benjamin Valentin
d06b26dfd8 boards/common/nrf52: remove transport selection from openocd.cfg 2020-08-04 10:36:40 +02:00
Leandro Lanzieri
e5af981df6
boards/common/nrf52: Add Kconfig symbols 2020-07-16 10:23:50 +02:00
Your Name
9dea6a14da
boards/common/nrf52: revert early inclusion of Makefile.dep 2020-06-25 09:24:05 +02:00
benpicco
9f707bf121
Merge pull request #14057 from bergzand/pr/nrf52/dma_spi
nrf52: Implement EasyDMA-based SPI peripheral implemenation
2020-05-18 19:42:33 +02:00
628d3e9080
nrf52: Adapt SPI periph config 2020-05-18 19:18:29 +02:00
Marian Buschsieweke
7cf49d145d
boards/common/nrf52: Allow external boards
Replace `$(RIOTBOARD)/$(BOARD)` with `$(BOARDDIR)`, which also works for
external boards. This allows external boards to build on top of
`$(RIOTBOARD)/common/nrf52`.
2020-05-14 13:56:12 +02:00
Philipp Blum
3240dfc0b2 boards/common/nrf52: add config for bmp 2020-05-12 15:54:38 +02:00
5773db93f8
Merge pull request #14025 from fjmolinas/pr_nrf5x_rtt_conf
boards/common/nrf5x: add configurable RTT_FREQUENCY
2020-05-05 17:46:05 +02:00
Francisco Molina
409185c5ce
boards/common/nrf5x: add configurable RTT_FREQUENCY
Adds: RTT_MAX_FREQUENCY, RTT_MIN_FREQUENCY & RTT_CLOCK_FREQUENCY
2020-05-05 14:52:55 +02:00
Benjamin Valentin
dc58ef59ae boards: remove duplicate gnrc_netdev_default from Makefile.dep
`gnrc_netdev_default` will pull in `netdev_default`, so no need to
check for both in `Makefile.dep`
2020-05-05 09:58:45 +02:00
010aca2638
Merge pull request #13719 from aabadie/pr/boards/flash_export_remove
boards*: remove remaining uses of export with some openocd related variables
2020-04-07 11:58:28 +02:00
Francisco Molina
72a2220d21
boards/common/nrf52: include Makefile.board.dep in hack
nrf52 includes include $(RIOTBOARD)/$(BOARD)/Makefile.dep to know
if `nordic_softdevice_ble` is used, this changes dependency
resolution sinnce -include $(APPDIR)/Makefile.board.dep should
be resolved before.

This can be removed once #9913 is if `nordic_softdevice` is
deprecated.
2020-04-02 14:51:22 +02:00
f2aa38c8f9
boards*: don't export OPENOCD_PRE_FLASH_CMDS 2020-03-26 09:31:22 +01:00
91d883df47
boards*: don't export OPENOCD_PRE_VERIFY_CMDS 2020-03-26 09:31:21 +01:00
c49ad27499
boards: don't export JLINK_PRE_FLASH 2020-03-10 16:31:32 +01:00
8489a0af53
boards: don't export FLASH_ADDR
This variable is already export in vars.inc.mk
2020-03-10 16:31:01 +01:00
1e9879fbcf
boards: unexport JLINK_DEVICE variable 2020-03-10 16:28:03 +01:00
9363f077d6
boards: don't export globally OPENOCD_CONFIG
The variable is already exported to required target in openocd.inc.mk
2020-02-24 10:04:11 +01:00
Francois Berder
b4ab22673e boards: Use ARRAY_SIZE for setting UART_NUMOF, SPI_NUMOF, I2C_NUMOF
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2020-02-09 20:55:46 +00:00
748ffff931
boards/nrf52: remove use of export for LINKER_SCRIPT 2020-01-03 16:07:15 +01:00
Hauke Petersen
4bf14822cb nrf5x: move nimble_ble feat. to cpu 2019-11-13 13:43:55 +01:00
Benjamin Valentin
0ea2cbf1eb boards: remove RTT_NUMOF/RTC_NUMOF
Those macros are defined but never used.
2019-11-08 14:20:33 +01:00