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

3450 Commits

Author SHA1 Message Date
Gaëtan Harter
17877ca993
boards/ek-lm4f120xl: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

CPU_MODEL is currently kept uppercase. Making it lowercase is a future task.

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
Gaëtan Harter
33816cbbb3
boards/pic32*: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Add the missing space when defining 'CPU_MODEL'.

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
Gaëtan Harter
29459beaf2
boards/hifive1*: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
Gaëtan Harter
0029bb33ef
boards/nrf6310: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
cladmi
5f1a61ed72
boards/common/nrf52: move CPU/CPU_MODEL definiton to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
Gaëtan Harter
49d61bbe6e
boards/common/esp: move CPU/CPU_MODEL definiton to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-09-24 17:29:37 +02:00
Gaëtan Harter
8cebed6792
boards/common/esp: harmonize CPU/CPU_MODEL to other boards
* CPU files should already have 'CPU' defined by the board.
* Do not conditionally define CPU as it is not needed.

This is part of cleanup prior to moving the CPU/CPU_MODEL to
Makefile.features.
2019-09-24 17:29:37 +02:00
Vincent Dupont
1a44d327cb
Merge pull request #11989 from gschorcht/cpu/esp32/periph-can
cpu/esp32: reimplementation of module esp_can as module periph can
2019-09-23 16:52:05 +02:00
Francisco
2346f35bc8
Merge pull request #12289 from cladmi/pr/frdm/minor/remove_export_openocd_extra_init
boards/frdm: remove exporting unset OPENOCD_EXTRA_INIT
2019-09-23 14:28:06 +02:00
Francisco
8467dba680
Merge pull request #12158 from aabadie/pr/boards/stm32_connect_assert_srst
boards/stm32: generalize use of connect_assert_srst for flashing
2019-09-23 14:02:39 +02:00
Francisco
abdebaa86f
Merge pull request #11549 from cladmi/pr/pba_d_01_kw2x/fix_flashing
boards/pba-d-01-kw2x: fix flashing from invalid state
2019-09-23 13:09:02 +02:00
Gaëtan Harter
0724dc71a7
boards/frdm: remove exporting unset OPENOCD_EXTRA_INIT
The default value in `openocd.sh` is being empty, so no use for exporting it.
2019-09-23 12:10:09 +02:00
Francisco
3d2697973a
Merge pull request #12151 from cladmi/pr/pba-d-01-kw2x/do_not_use_OPENOCD_ADAPTER_INIT
boards/pba-d-01-kw2x: rely on the common adapter selection code
2019-09-23 11:47:50 +02:00
Gunar Schorcht
e0f1ab0a16 cpu/esp32: module esp_can removed
CAN controller driver for ESP32 is no longer realized as separate module.
2019-09-20 19:35:02 +02:00
Francisco
04b92683e4
Merge pull request #11800 from aabadie/pr/boards/stm32f723e-disco
boards/stm32f723e-disco: add initial support
2019-09-20 17:04:17 +02:00
b77dd00142
boards/p-l496zg-cell02: move cpu define to Makefile.features 2019-09-20 13:46:58 +02:00
80a5e88403
boards/stm32f723e-disco: add initial support
Peripheral configured:
- 5 UARTs for stdio via STLink, Arduino connector, PMOD connector,
STMOD+ connector and ESP-01 connector
- 1 I2C available on Arduino connector and STMOD+ connector
- 2 SPIs available on Arduino connector and PMOD connector
2019-09-20 13:45:25 +02:00
Francisco
bd5ceb58e7
Merge pull request #11984 from aabadie/pr/boards/p-l496g-cell02
boards/p-l496g-cell02: add support
2019-09-20 11:28:54 +02:00
Francisco
6847d0d268
Merge pull request #12261 from cladmi/pr/frdm/fix_flashing
boards/frdm: fix flashing from invalid state
2019-09-20 09:15:47 +02:00
MichelRottleuthner
66f1cc78ea
Merge pull request #12059 from maribu/msba2-openocd
boards/msba2: Added OpenOCD config
2019-09-19 14:35:58 +02:00
Marian Buschsieweke
8f848e9b38
boards/msba2: Updated board documenation 2019-09-19 14:19:16 +02:00
Marian Buschsieweke
0c04e07740
boards/msba2: Added OpenOCD config 2019-09-19 14:19:16 +02:00
Gaëtan Harter
323050f0e3
boards/frdm: fix flashing from invalid state
When flashing some applications the flasher sometimes gets stuck which
prevents flashing after.
It may be from a specific firmware or operation but do not have one yet.
Connect with reset asserted fix flashing from this state.
2019-09-17 14:02:55 +02:00
Marian Buschsieweke
8fa0c04e23
Merge pull request #12229 from benpicco/lpc238-cleanup
cpu/lpc2387: clean up the platform
2019-09-16 22:06:59 +02:00
Benjamin Valentin
e3b0874305 cpu/lpc2387: clean up the platform
- move clock setup from boards/ to cpu/
 - reduce code duplication
2019-09-16 13:08:56 +02:00
Dylan Laduranty
e8b08d304f
Merge pull request #12182 from maribu/drop-jiminy
boards: Remove support for the Jiminy-Mega256RFR2
2019-09-16 12:00:28 +02:00
a9a971843b
nucleo-l031/l432: fix wrong i2c configuration 2019-09-15 19:29:14 +02:00
chrysn
667a34205a boards/thingy52: Add description and more precise flashing instructions 2019-09-12 16:44:04 +02:00
Francisco
2d890db6af
Merge pull request #10440 from jcarrano/no-export-ports
makefiles: remove exports so that PORT is not evaluated if it's not needed.
2019-09-12 13:50:24 +02:00
23c1831473
Merge pull request #11470 from cladmi/pr/nrf52/opencd/softdevice
boards/common/nrf52: add openocd support for 'nordic_softdevice_ble'
2019-09-11 15:33:08 +02:00
benpicco
6c35e86e95
Merge pull request #11550 from cladmi/pr/stm32f3discovery/fix_flashing
boards/stm32f3discovery: fix openocd config to flash from invalid state
2019-09-11 14:44:12 +02:00
benpicco
e11d457e63
Merge pull request #11209 from danpetry/boards/mega1284p_xplained
doc/mega-xplained: add JTAG/Atmel-ICE instructions
2019-09-11 14:03:29 +02:00
Gaëtan Harter
f5f275b929
boards/stm32f3discovery: fix openocd config to flash from invalid state
When flashing some applications the flasher sometimes gets stuck which
prevents flashing after.
It may be from a specific firmware or operation but do not have one yet.
Connect with reset asserted fix flashing from this state.

It was found after the `stm32f3discovery` get stuck in a non-flashable mode
after some firmwares.
2019-09-11 12:19:23 +02:00
danpetry
4554b6cb13 doc/mega-xplained: add JTAG/Atmel-ICE instructions
Adds instrucions for the Atmel-ICE with the JTAG header.
2019-09-11 11:49:35 +02:00
benpicco
6f63ef42a7
Merge pull request #11920 from maribu/lpc2387
cpu/lpc2387: Cleanup
2019-09-11 10:12:26 +02:00
Marian Buschsieweke
7092566f1f
cpu/arm7_common: Moved compiler flags here
- Moved compiler & linker flags from boards/common/msba2 to cpu/arm7_common
- Moved dependency to newlib nano to cpu/arm7_common
- Moved config to link in cpu/startup.o to cpu/arm7_common
2019-09-11 01:02:41 +02:00
Juan I Carrano
c50d8fada1
Merge pull request #11646 from cladmi/pr/esp/programmer_update
esp*: updates to the programmer configuration
2019-09-10 17:58:20 +02:00
Gaëtan Harter
fe0b829d5b
boards/common/nrf52: add openocd support for 'nordic_softdevice_ble'
Enable the handling of flashing `softdevice.hex` when flashing the firmware
for openocd.

However, for flashing, only the `hexfile` and `binfile` can currently be used.

The `elffile` is generated with local pages aligned to `0x10000` which makes
the program starting at `0x1f000` be flashed from `0x10000` with padding bytes
even if the `.text` section is indeed at `0x1f000`:

    readelf --sections bin/nrf52dk/gnrc_networking.elf

      ...
      [ 1] .text         PROGBITS    0001f000 00f000 00f698 00  AX  0   0 16
      ...

    readelf --segments  bin/nrf52dk/gnrc_networking.elf

      ...
      LOAD           0x000000 0x00010000 0x00010000 0x1e6a0 0x1e6a0 R E 0x10000
      ...

The padding bytes would go through `verify_image` in `openocd` so be expected
to not be overwritten but are by `softdevice.hex`

Using --nmagic at link time removes the local page alignement but would
need dedicated testing.
2019-09-10 16:02:04 +02:00
3059e03c7c
Merge pull request #11620 from cladmi/pr/softdevice/ensure_memory_value
pkg/nordic_softdevice_ble: reset memory in the .hex file
2019-09-10 14:38:33 +02:00
b80a41f28f
Merge pull request #12153 from cladmi/pr/iotlab/use_openocd_reset_use_connect_assert_srst
boards/iotlab: rely on OPENOCD_RESET_USE_CONNECT_ASSERT_SRST
2019-09-10 08:41:08 +02:00
88e07c06d2
Merge pull request #11367 from maribu/arm_early_stdio
cpu: Moved stdio_init() prior to periph_init() for ARM targets
2019-09-09 16:52:30 +03:00
benpicco
c082ada36f
Merge pull request #12141 from aabadie/pr/boards/stm32_common_i2c
boards/stm32: introduce and use shared i2c config with I2C1 on PB6/PB7
2019-09-09 14:26:59 +02:00
Kevin "Tristate Tom" Weiss
a138f1466f
Merge pull request #11975 from fjmolinas/pr_nucleof103_xtimer_backoff
boards/common/nucleo: increase XTIMER_BACKOFF for STM32F103
2019-09-09 11:15:37 +02:00
Marian Buschsieweke
232aed3e18
boards: Remove support for the Jiminy-Mega256RFR2
- The Jiminy-Mega256RFR2 is seemingly unmaintained, as no one has responded
  on requests to test changes on it. This lack of support has been blocking
  various PRs in the last few months
- No one seems to use it
- Boards that are added to RIOT should match at least one of the following
    - It is actively maintained
    - It has a significant user base
    - It is an off-the-shelf product, so it might be easily obtained for testing
==> The Jiminy is matching none of the above
2019-09-09 10:20:00 +02:00
Francisco
6d800ed85a
Merge pull request #11366 from maribu/early_stdio_atmega
cpu/atmega_common: Moved atmega_stdio_init() to cpu_init()
2019-09-09 10:22:53 +03:00
Marian Buschsieweke
73424c1d1e
board/msba2: Added stdio_init()
The MSB-A2 uses a custom boot up sequence and does not have a cpu_init(). This
adds the missing call to stdio_init() to that custom boot up sequence.
2019-09-06 16:54:24 +02:00
MrKevinWeiss
853540ce32 boards/slstk3402a: Add reset before flashing
It seems that this board needs a reset command before flashing with jlink
This adds the reset - r - to the JLINK_PRE_FLASH
2019-09-03 13:19:27 +02:00
MrKevinWeiss
699892cc7c boards/slstk3401a: Add reset before flashing
It seems that this board needs a reset command before flashing with jlink
This adds the reset - r - to the JLINK_PRE_FLASH
2019-09-03 11:01:21 +02:00
Francisco
900b23626a
Merge pull request #12148 from aabadie/pr/boards/nrf52832-mdk_i2c
boards/nrf52832-mdk: enable I2C and use default configuration
2019-09-03 08:52:24 +02:00
e45388e210
boards/stm32l0: use connect_assert_srst when flashing 2019-09-02 21:46:54 +02:00
281273f362
boards/stm32: remove use of connect_assert_srst for flashing stm32l0 2019-09-02 21:46:15 +02:00
01642b9075
boards/nucleo-f091rc: remove duplicate use of connect_assert_srst 2019-09-02 21:45:32 +02:00
fc923baa42
boards/nucleo: generalize use of connect_assert_srst for flashing
This allows to flash/reset even over a crashed or sleeping firmware
2019-09-02 21:44:58 +02:00
Gaëtan Harter
c1b32fe1f3
boards/iotlab: rely on OPENOCD_RESET_USE_CONNECT_ASSERT_SRST
Use the new OPENOCD_RESET_USE_CONNECT_ASSERT_SRST to configure
'reset_config connect_assert_srst' when flashing and resetting only.

This removes the need for a special debug configuration and should allow
connecting to a running target again.
2019-09-02 16:12:55 +02:00
Gaëtan Harter
94dfc4dd94
boards/pba-d-01-kw2x: fix flashing from invalid state
When in an invalid state, the board could not flash anymore.
Like for example after flashing `tests/driver_adt7310` this makes it
flash again.

I used `reset_config srst_only` as the other kinetis boards are also
configured that way.
2019-09-02 15:56:14 +02:00
Kevin "Tristate Tom" Weiss
d9b0db0d61
Merge pull request #11976 from fjmolinas/pr_stm32f0x_extra_flash
dist/tools/openocd: add OPENOCD_EXTRA_INIT_RESET use for nucleo-f091rc
2019-09-02 15:54:24 +02:00
Francisco Molina
06c830e8cd boards/nucleo-f091rc: set OPENOCD_RESET_USE_CONNECT_ASSERT_SRST
- Nucleo-f091rc can become unflashable when hardfaults occure.
  To make sure flashing succeeds `connect_assert_srst` is called
  before connecting to flash threw openocd.
2019-09-02 14:54:38 +02:00
Gaëtan Harter
19290fe8b7
boards/pba-d-01-kw2x: rely on the common adapter selection code
Do not set 'OPENOCD_EXTRA_INIT' but rely on
'openocd/openocd-adapters/dap.inc.mk' to select the adapter.
Using 'OPENOCD_EXTRA_INIT' for this was deprecated.

When 'DEBUG_ADAPTER_ID' was set it was already the case but not with
'SERIAL'.
The compatibility with using 'SERIAL' is maintained.
2019-09-02 14:48:01 +02:00
cb51cee2ba
boards/nrf52832-mdk: enable I2C and use default configuration 2019-09-02 13:12:40 +02:00
afb8509034
boards/nucleo: use shared I2C configuration 2019-09-02 08:17:21 +02:00
df18dba378
boards/stm32: introduce shared i2c configuration
This configuration corresponds to I2C1 connected to PB6 (SCL) and PB7 (SDA)
2019-09-02 08:17:21 +02:00
Marius
d6b6b7a529 board/nucleo-l031k6: Add i2c to periph_conf 2019-09-01 17:14:06 +02:00
Kevin "Tristate Tom" Weiss
969e3b3e95
Merge pull request #12098 from cladmi/pr/export/remove_local_export_compilation_variables
make: do not locally export compilation variables
2019-08-29 14:32:22 +02:00
e9ea6a02ed
Merge pull request #12068 from twostairs/board_nucleo-l432kc_i2c
board/nucleo-l432kc: Implementing I2C for board
2019-08-29 13:33:57 +02:00
Martine Lenders
b83c7dd61d
Merge pull request #11927 from maribu/arduino-leonardo
cpu/atmega32u4: Fixed external interrupts; boards/arduino-leonardo: Fixed dependency tracking
2019-08-29 12:12:56 +02:00
Hauke Petersen
d961ceefbe boards/reel: add missing radio_nrf52840 feature 2019-08-29 10:51:17 +02:00
Gaëtan Harter
ef542ef92c
boards: do not locally export compilation variables
These are already exported by `makefiles/vars.inc.mk`.
It is a prerequisite to allow handling compilation without global exports.
2019-08-29 10:35:44 +02:00
Hauke Petersen
dff436be63 boards/reel: make nrf802154 the default radio 2019-08-28 16:49:21 +02:00
Hauke Petersen
da494251b6 board/nrf52840dk: fix order in Makefile.dep 2019-08-28 16:49:21 +02:00
Hauke Petersen
d127d18384 boards/nrf52: set NimBLE for gnrc_netdev_default 2019-08-28 16:49:20 +02:00
Hauke Petersen
14662da1db boards/nrf52dk: add nimble_netif dependency 2019-08-28 16:48:42 +02:00
Marius
80c521b2c3 boards/nucleo-l432kc: provide I2C configuration 2019-08-28 10:50:24 +02:00
Gaëtan Harter
367aa841a2
boards/pyterm: change TERMFLAGS to PYTERMFLAGS
The boards are using `pyterm` specific options that do not work on any
other `RIOT_TERMINAL`. It is a shame this is required but at least do
not pass arbitrary arguments to the other RIOT_TERMINAL.
So use the new PYTERMFLAGS for this.
2019-08-27 14:25:02 +02:00
Gaëtan Harter
42d658419f
boards/common/msba2: remove duplicate PORT
PORT is already given in pyterm TERMFLAGS.
2019-08-27 12:06:10 +02:00
Juan I Carrano
e2b2b8e43c
Merge pull request #12014 from cladmi/pr/cpu_cpu_model/migration/straightforward_ones
boards: move CPU/CPU_MODEL definition to Makefile.features
2019-08-21 18:52:28 +02:00
Marian Buschsieweke
137c2c0adf
boards: Added cc110x params for MSB-A2 & MSB-IoT 2019-08-20 16:38:49 +02:00
Gaëtan Harter
636285ebe4
boards: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-08-20 16:11:50 +02:00
cladmi
8305390a05
boards/common: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-08-20 16:11:50 +02:00
Marian Buschsieweke
615e25f319
drivers: Removed driver for CC110x transceivers
- Removed cc110x driver
- Updated all makefiles
- Kept both board specific configurations and support for it in RIOT's
  upper layers, so re-implementations don't need to start from zero
2019-08-19 12:56:47 +02:00
Gaëtan Harter
f3e72009e8
pkg/nordic_softdevice_ble: reset memory in the .hex file
softdevice needs the memory at 0x2000 to be initialized to 0xffffffff
according to #5893 and testing. However, the addresses [0x8bc, 0x3000[ are not
set in softdevice.hex.

So use a modified hex file with all the memory set to 0xff as it is the rom
reset value anyway.

This change updates the `.hex` file instead on relying on erasing the
memory.
2019-08-12 15:54:45 +02:00
Gaëtan Harter
e70efb769c
murdock: nordic_softdevice_ble: softdevice.hex is a test input
When running tests using 'nordic_softdevice_ble', the 'softdevice.hex'
file must also be taken into account for the test hashing and be
uploaded to the separated murdock testing boards.

When listed as dependency from `test-input-hash` the file must have a
target, which he has not. The file is implicitly created when compiling
`ELFFILE` so declare it as order only dependency.
In practice `BASELIBS` could be enough or even `pkg-build-softdevice`
but I do not want to be depend that much on internals there.
2019-08-12 14:35:58 +02:00
9cf8da0287
Merge pull request #11899 from fjmolinas/pr_stm32f7_riotboot_requirements
cpu/stm32f7: add riotboot requirements
2019-08-09 15:36:50 +02:00
Francisco Molina
644cb9f461 boards: add riotboot for nucleo-f722ze/f746zg/f767zi 2019-08-09 13:15:02 +02:00
6f14de38c5
Merge pull request #11900 from fjmolinas/pr_stm32f2_riotboot_requirements
cpu/stm32f2: add riotboot requirements
2019-08-09 11:06:49 +02:00
d1fef4803e
boards: add basic support for b-l496g-cell02 2019-08-09 08:26:17 +02:00
f802bbb5ae
Merge pull request #11682 from fjmolinas/pr_stm32f4_riotboot
cpu/stm32f4: add riotboot requirements
2019-08-08 18:05:36 +02:00
Lena Boeckmann
58955b39c6 board/saml11-xpro: update implementation status in doc
Co-Authored-By: benpicco <benpicco@googlemail.com>
2019-08-08 14:49:05 +02:00
Lena Boeckmann
1b81f6d4a2 board/saml10-xpro: update implementation status in doc 2019-08-08 14:49:04 +02:00
Francisco Molina
7231088b7c boards/nucleo-f207zg: add riotboot 2019-08-07 18:34:48 +02:00
francisco
bfcb963d1e boards/nucleo-f446re: add riotboot 2019-08-07 18:29:51 +02:00
fjmolinas
9418eef573 boards/stm32f429i-disc1: add riotboot 2019-08-07 18:29:51 +02:00
430d80729a
boards/nrf51: provide ble_nimble feature 2019-08-07 09:53:55 +02:00
Hauke Petersen
c9e5d2ccc4
boards/common/nrf51: add alternative xtimer mapping 2019-08-07 09:53:55 +02:00
32f54178ea
Merge pull request #11974 from fjmolinas/pr_xtimer_shoot_early
boards: remove unused XTIMER_SHOOT_EARLY defines
2019-08-07 09:29:43 +02:00
Francisco Molina
ed3a716ffd boards/common/nucleo: increase XTIMER_BACKOFF for STM32F1 boards
- Boards using stm32f103xx use the same custom config for xtimer
  which relies on the same underlying hardware timers that hang
  when sleeping for <20us so spin when approaching that limit.
2019-08-07 09:07:24 +02:00
Francisco Molina
294aff2ef1 boards: remove unused XTIMER_SHOOT_EARLY defines 2019-08-07 08:49:14 +02:00
Benjamin Valentin
8af04cd939 boards: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
Francisco
b8cd3c0724
Merge pull request #11809 from aabadie/pr/boards/stm32_timer_conf_common
boards/stm32: introduce common timer configurations and use them where possible
2019-08-06 17:07:22 +02:00
b388a5b3d2
Merge pull request #11572 from aabadie/pr/boards/native_fix_log
boards/native: fix overriden INCLUDES leading to build failure
2019-08-06 12:05:26 +02:00
Martine Lenders
d13d49d11f
Merge pull request #11814 from aabadie/pr/doc/remove_duplicate_group_define
doc: remove duplicate definitions of Doxygen groups
2019-08-06 09:50:59 +02:00