[riot-notifications] [RIOT-OS/RIOT] boards/particle-{xenon, argon, boron}: add initial support (#10563)

Francisco Acosta notifications at github.com
Sun Mar 24 16:20:37 CET 2019


I just tested the board and flashing works, however since I don't have the DAPLink adapter I did some changes:

```diff
--- a/boards/common/particle-mesh/Makefile.include
+++ b/boards/common/particle-mesh/Makefile.include
@@ -7,6 +7,10 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
 # add the common header files to the include path
 INCLUDES += -I$(RIOTBOARD)/common/particle-mesh/include
 
+# A bootloader is included to hanlde the DFU mode, so we need to
+# limit the real flash size to avoid overwritting it.
+export ROM_LEN ?= 0xF4000
+
 # This board uses a DAP-Link programmer
 # Flashing support is provided through pyocd (default) and openocd.
 # For openocd, a version built against the development branch and containing
@@ -18,7 +22,7 @@ ifeq (pyocd,$(PROGRAMMER))
   export FLASH_TARGET_TYPE ?= -t $(CPU)
   include $(RIOTMAKE)/tools/pyocd.inc.mk
 else ifeq (openocd,$(PROGRAMMER))
-  DEBUG_ADAPTER = dap
+  DEBUG_ADAPTER ?= dap
 endif
```

I tried to spare the bootloader but when I flashed the device it got erased or at least corrupted.

The command I used is:

```console
DEBUG_ADAPTER=jlink PROGRAMMER=openocd BOARD=particle-xenon make -C examples/hello-world/ flash
```

`term` doesn't work since I don't have access to the UART through JLink, however the stdio_rtt might be used.

Let me know if it's of some interest and I can provide the patch to use it.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10563#issuecomment-475969055
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190324/346ed400/attachment.html>


More information about the notifications mailing list