NUCLEOF103RG target
commit4e9923569a6539bdd4491d62d90e44bc120704f8
authorjflyper <shinoda@jaist.ac.jp>
Sun, 22 Sep 2019 08:55:47 +0000 (22 17:55 +0900)
committerjflyper <shinoda@jaist.ac.jp>
Mon, 23 Sep 2019 14:58:03 +0000 (23 23:58 +0900)
treec0c35c79112b82a8c55136bf8bd3cd597eb30ce6
parent031a21b9fce39525cf4d287e2db9f01239c819e6
NUCLEOF103RG target

NUCLEOF103RG is a target for Nucleo-F103RG (Nucleo-F103RB transplanted
with STM32F103RG which has 1MB of FLASH).
Such hardware with this target comes in handy when a firmware that
doesn't fit in smaller FLASH variant when compiled with DEBUG option.

The target definition files are straight copy of NAZE, except LED0_PIN
has been redefined to use Nucleo's LD2 (User LED).

It is also easy to convert exisiting F1 targets to be built to run on
the Nucleo-F103RG board:

- Add
    #define FLASH_PAGE_SIZE 0x800
    to target.h

- Also add
    #undef USE_DSHOT
    #undef USE_LED_STRIP
    #undef USE_TRANSPONDER
    #undef USE_CAMERA_CONTROL
    to target.h to avoid non-F1 compatible code from getting in.

- Add
FLASH_SIZE  = 1024
    to target.mk
make/targets_list.mk
src/link/stm32_flash_f103_1024k.ld [new file with mode: 0644]
src/main/target/NUCLEOF103RG/README.txt [new file with mode: 0644]
src/main/target/NUCLEOF103RG/config.c [new file with mode: 0644]
src/main/target/NUCLEOF103RG/hardware_revision.c [new file with mode: 0644]
src/main/target/NUCLEOF103RG/hardware_revision.h [new file with mode: 0644]
src/main/target/NUCLEOF103RG/initialisation.c [new file with mode: 0644]
src/main/target/NUCLEOF103RG/target.c [new file with mode: 0644]
src/main/target/NUCLEOF103RG/target.h [new file with mode: 0644]
src/main/target/NUCLEOF103RG/target.mk [new file with mode: 0644]