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

Gaƫtan Harter notifications at github.com
Wed May 22 11:49:26 CEST 2019


Currently I have issue with the test output:

The board should be whitelisted here:

```
RIOT_CI_BUILD=1 BOARD=frdm-kw41z APP_VER=$(date +%s) make -C tests/cortexm_common_ldscript/
make: Entering directory '/home/harter/work/git/RIOT/tests/cortexm_common_ldscript'
The selected BOARD=frdm-kw41z is not whitelisted: iotlab-a8-m3 iotlab-m3 samr21-xpro arduino-mkr1000 arduino-mkrfox1200 arduino-mkrzero blackpill bluepill feather-m0 opencm904 spark-core


EXPECT ERRORS!


Building application "tests_cortexm_common_ldscript" for "frdm-kw41z" with MCU "kinetis".

   text    data     bss     dec     hex filename
   8928     116    2544   11588    2d44 /home/harter/work/git/RIOT/tests/cortexm_common_ldscript/bin/frdm-kw41z/tests_cortexm_common_ldscript.elf
Test rom offset 1 byte overflow detection: [OK]
Test rom offset substracted from rom length in elffile: [SKIP](Reason: board does not have a ROM_OFFSET configured)
Test compilation with offset 0x1000: [OK]
Test compilation with offset 0x2000: [OK]
Test compilation with half ROM length: [OK]
Test ROM overflow detection (too_big_for_rom): [OK]
Test ROM overflow detection (offset_and_romlen): [OK]
make: Leaving directory '/home/harter/work/git/RIOT/tests/cortexm_common_ldscript'
```

And the flash fails too with `arithmetic expression: expeting primary: " + "`

```
RIOT_CI_BUILD=1 BOARD=frdm-kw41z FEATURES_REQUIRED+=riotboot APP_VER=$(date +%s) make -C examples/hello-world/ riotboot/flash-extended-slot0
make: Entering directory '/home/harter/work/git/RIOT/examples/hello-world'
"make" -C /home/harter/work/git/RIOT/boards/frdm-kw41z
"make" -C /home/harter/work/git/RIOT/boards/common/kw41z
"make" -C /home/harter/work/git/RIOT/core
"make" -C /home/harter/work/git/RIOT/cpu/kinetis
"make" -C /home/harter/work/git/RIOT/cpu/cortexm_common
"make" -C /home/harter/work/git/RIOT/cpu/cortexm_common/periph
"make" -C /home/harter/work/git/RIOT/cpu/kinetis/periph
"make" -C /home/harter/work/git/RIOT/drivers
"make" -C /home/harter/work/git/RIOT/drivers/periph_common
"make" -C /home/harter/work/git/RIOT/sys
"make" -C /home/harter/work/git/RIOT/sys/checksum
"make" -C /home/harter/work/git/RIOT/sys/newlib_syscalls_default
"make" -C /home/harter/work/git/RIOT/sys/riotboot
"make" -C /home/harter/work/git/RIOT/sys/stdio_uart
compiling /home/harter/work/git/RIOT/dist/tools/riotboot_gen_hdr/bin/genhdr...
make: Nothing to be done for 'all'.
/bin/sh: 1: arithmetic expression: expecting primary: " + "
/home/harter/work/git/RIOT/makefiles/boot/riotboot.mk:25: recipe for target '/home/harter/work/git/RIOT/examples/hello-world/bin/frdm-kw41z/hello-world-slot0.elf' failed
make: *** [/home/harter/work/git/RIOT/examples/hello-world/bin/frdm-kw41z/hello-world-slot0.elf] Error 2
make: Leaving directory '/home/harter/work/git/RIOT/examples/hello-world'
```

```
RIOT_CI_BUILD=1 BOARD=frdm-kw41z FEATURES_REQUIRED+=riotboot APP_VER=$(date +%s) make -C examples/hello-world/ riotboot/flash-slot1 
make: Entering directory '/home/harter/work/git/RIOT/examples/hello-world'
compiling /home/harter/work/git/RIOT/dist/tools/riotboot_gen_hdr/bin/genhdr...
make: Nothing to be done for 'all'.
/bin/sh: 1: arithmetic expression: expecting primary: " + "
/home/harter/work/git/RIOT/makefiles/boot/riotboot.mk:25: recipe for target '/home/harter/work/git/RIOT/examples/hello-world/bin/frdm-kw41z/hello-world-slot1.elf' failed
make: *** [/home/harter/work/git/RIOT/examples/hello-world/bin/frdm-kw41z/hello-world-slot1.elf] Error 2
make: Leaving directory '/home/harter/work/git/RIOT/examples/hello-world'
```

And currently, `tests/riotboot` does not work:

```
RIOT_CI_BUILD=1 BOARD=frdm-kw41z make -C tests/riotboot  flash test
make: Entering directory '/home/harter/work/git/RIOT/tests/riotboot'
Building application "tests_riotboot" for "frdm-kw41z" with MCU "kinetis".

"make" -C /home/harter/work/git/RIOT/boards/frdm-kw41z
"make" -C /home/harter/work/git/RIOT/boards/common/kw41z
"make" -C /home/harter/work/git/RIOT/core
"make" -C /home/harter/work/git/RIOT/cpu/kinetis
"make" -C /home/harter/work/git/RIOT/cpu/cortexm_common
"make" -C /home/harter/work/git/RIOT/cpu/cortexm_common/periph
"make" -C /home/harter/work/git/RIOT/cpu/kinetis/periph
"make" -C /home/harter/work/git/RIOT/drivers
"make" -C /home/harter/work/git/RIOT/drivers/periph_common
"make" -C /home/harter/work/git/RIOT/sys
"make" -C /home/harter/work/git/RIOT/sys/checksum
"make" -C /home/harter/work/git/RIOT/sys/newlib_syscalls_default
"make" -C /home/harter/work/git/RIOT/sys/riotboot
"make" -C /home/harter/work/git/RIOT/sys/stdio_uart
compiling /home/harter/work/git/RIOT/dist/tools/riotboot_gen_hdr/bin/genhdr...
make: Nothing to be done for 'all'.
creating /home/harter/work/git/RIOT/tests/riotboot/bin/frdm-kw41z/tests_riotboot-slot0.riot.bin...
   text    data     bss     dec     hex filename
  12440     500    2608   15548    3cbc /home/harter/work/git/RIOT/tests/riotboot/bin/frdm-kw41z/tests_riotboot.elf
/home/harter/work/git/RIOT/dist/tools/openocd/openocd.sh flash /home/harter/work/git/RIOT/tests/riotboot/bin/frdm-kw41z/tests_riotboot-slot0-combined.bin
### Flashing Target ###
arm-none-eabi-objdump: /home/harter/work/git/RIOT/tests/riotboot/bin/frdm-kw41z/tests_riotboot-slot0-combined.bin: File format not recognized
arm-none-eabi-objdump: section '.fcfield' mentioned in a -j option, but not found in any input file
Danger of bricking the device during flash!
Flash configuration field of /home/harter/work/git/RIOT/tests/riotboot/bin/frdm-kw41z/tests_riotboot-slot0-combined.bin:
arm-none-eabi-objdump: /home/harter/work/git/RIOT/tests/riotboot/bin/frdm-kw41z/tests_riotboot-slot0-combined.bin: File format not recognized
arm-none-eabi-objdump: section '.fcfield' mentioned in a -j option, but not found in any input file
Abort flash procedure!
pre-flash checks failed, status=1
/home/harter/work/git/RIOT/tests/riotboot/../../Makefile.include:538: recipe for target 'flash' failed
make: *** [flash] Error 1
make: Leaving directory '/home/harter/work/git/RIOT/tests/riotboot'
```

-- 
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-494733749
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190522/d97b3963/attachment.html>


More information about the notifications mailing list