1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/cortexm_common_ldscript
Marian Buschsieweke d2a3ff3d83
boards/{bluepill*,blackpill*}: rename and improve doc
- renamed:
    - `bluepill` --> `bluepill-stm32f103c8`
    - `bluepill-128kib` --> `bluepill-stm32f103cb`
    - `blackpill` --> `blackpill-stm32f103c8`
    - `blackpill-128kib` --> `blackpill-stm32f103cb`
- doc:
    - added link to corresponding hardware page on the STM32-base
      project
    - added picture
2023-01-02 16:23:10 +01:00
..
main.c cortexm_common_ldscript: add a test that checks if ROM_LEN is used 2018-08-11 11:33:43 +02:00
Makefile boards/{bluepill*,blackpill*}: rename and improve doc 2023-01-02 16:23:10 +01:00
Makefile.ci tests: add stm32f030f4-demo to Makefile.ci 2019-10-21 15:33:11 +02:00
README.md boards/{bluepill*,blackpill*}: rename and improve doc 2023-01-02 16:23:10 +01:00

Cortexm-common ldscript

This test checks the support for building firmwares with a rom offset and specific sized firmwares using cortexm-common ldscript.

When building all, the compile-tests target is also build and executes build time compilation tests checking different firmwares configurations verified by inspecting the result elf files.

Test output

For a board that does not have a ROM_OFFSET variable configured by default (== a board without bootloader installed), it produces the following output after the normal compilation:

make all BOARD=iotlab-m3
...
Test rom offset 1 byte overflow detection: [OK]
Test rom offset subtracted 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]

For a board that have a ROM_OFFSET variable configured by default (== a board with bootloader installed), it produces the following output after the normal compilation:

make BOARD=bluepill-stm32f103c8  PROGRAMMER=dfu-util
...
Test rom offset 1 byte overflow detection: [OK]
Test rom offset subtracted from rom length in elffile: [OK]
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]