[riot-notifications] [RIOT-OS/RIOT] boards/frdm-kw41z-k64f: add riotboot (#11562)

MrKevinWeiss notifications at github.com
Mon Jun 3 16:21:13 CEST 2019


Tested on the frdm-k22f board after adding `FEATURES_PROVIDED+=riotboot` to the makefile.features.

Results:
`PORT=/dev/ttyACM1  BOARD=frdm-k22f make flash test -C tests/riotboot`

```
2019-06-03 16:15:48,468 - INFO # main(): This is RIOT! (Version: 2019.07-devel-430-g7f0a17-tstxxx/11562)
2019-06-03 16:15:48,469 - INFO # Hello riotboot!
2019-06-03 16:15:48,473 - INFO # You are running RIOT on a(n) frdm-k22f board.
2019-06-03 16:15:48,476 - INFO # This board features a(n) kinetis MCU.
2019-06-03 16:15:48,479 - INFO # riotboot_test: running from slot 0
2019-06-03 16:15:48,482 - INFO # Image magic_number: 0x544f4952
2019-06-03 16:15:48,484 - INFO # Image Version: 0x5cf52b8d
2019-06-03 16:15:48,487 - INFO # Image start address: 0x00002100
2019-06-03 16:15:48,489 - INFO # Header chksum: 0x648f4724
2019-06-03 16:15:48,490 - INFO # 
> 2019-06-03 16:15:48,576 - INFO #  curslotnr
2019-06-03 16:15:48,577 - INFO # Current slot=0
> curslothdr
2019-06-03 16:15:48,632 - INFO #  curslothdr
2019-06-03 16:15:48,634 - INFO # Image magic_number: 0x544f4952
2019-06-03 16:15:48,637 - INFO # Image Version: 0x5cf52b8d
2019-06-03 16:15:48,640 - INFO # Image start address: 0x00002100
2019-06-03 16:15:48,642 - INFO # Header chksum: 0x648f4724
2019-06-03 16:15:48,642 - INFO # 
> getslotaddr 0
2019-06-03 16:15:48,697 - INFO #  getslotaddr 0
2019-06-03 16:15:48,699 - INFO # Slot 0 address=0x00002100
> dumpaddrs
2019-06-03 16:15:48,753 - INFO #  dumpaddrs
2019-06-03 16:15:48,757 - INFO # slot 0: metadata: 0x2000 image: 0x00002100
2019-06-03 16:15:48,760 - INFO # slot 1: metadata: 0x41000 image: 0x00000000
```

`BOARD=frdm-k22f FEATURES_REQUIRED+=riotboot APP_VER=$(date +%s) make -C examples/hello-world/ riotboot/flash-slot1`

```
### Flashing Target ###
Value in fcfield is not checked when flashing at $IMAGE_OFFSET >= 0x410
Binfile detected, adding ROM base address: 0x00000000
Flashing with IMAGE_OFFSET: 0x00041000
Open On-Chip Debugger 0.10.0+dev-00399-g09076d1 (2018-04-12-17:12)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
Info : add flash_bank kinetis kx.pflash
adapter speed: 1000 kHz
none separate
cortex_m reset_config sysresetreq
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 1.0
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 1000 kHz
Info : SWD DPIDR 0x2ba01477
Info : MDM: Chip is unsecured. Continuing.
Info : kx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Listening on port 35643 for gdb connections
    TargetName         Type       Endian TapName            State       
--  ------------------ ---------- ------ ------------------ ------------
 0* kx.cpu             cortex_m   little kx.cpu             unknown
Info : MDM: Chip is unsecured. Continuing.
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x00000538 msp: 0x1fff0200
auto erase enabled
Info : Kinetis MK22FN512xxx12 detected: 2 flash blocks
Info : 2 PFlash banks: 512k total
Info : This device supports Program Longword execution only.
Info : Disabling Kinetis watchdog (initial WDOG_STCTRLH = 0x01d3)
Info : WDOG_STCTRLH = 0x01d2
wrote 10240 bytes from file /home/kevinweiss/WorkingDirectory/RIOT/examples/hello-world/bin/frdm-k22f/hello-world-slot1.riot.bin in 1.203952s (8.306 KiB/s)
verified 9752 bytes in 0.272987s (34.886 KiB/s)
Info : MDM: Chip is unsecured. Continuing.
shutdown command invoked
Done flashing
make: Leaving directory '/home/kevinweiss/WorkingDirectory/RIOT/examples/hello-world'
```


-- 
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/11562#issuecomment-498277228
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190603/47497f6a/attachment-0001.html>


More information about the notifications mailing list