[riot-commits] [RIOT-OS/RIOT] 82ea9a: boards: Enable STM32F103C8 flash hack via env var

Kaspar Schleiser kaspar at schleiser.de
Tue Nov 6 14:41:08 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 82ea9a02deedebaa0fa16a8d195f1102c7c50310
      https://github.com/RIOT-OS/RIOT/commit/82ea9a02deedebaa0fa16a8d195f1102c7c50310
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2018-11-05 (Mon, 05 Nov 2018)

  Changed paths:
    M boards/bluepill/doc.txt
    M boards/common/stm32f103c8/Makefile.include

  Log Message:
  -----------
  boards: Enable STM32F103C8 flash hack via env var

The STM32F103C8 secretly comes with 128KiB flash instead of 64KiB. Still, only
64KiB of it are tested and guaranteed to work. However, most of the times the
whole 128KiB flash works just fine. In the BluePill documentation this fact is
already documented and by using

    $ make BOARD=bluepill CPU_MODEL=stm32f103cb

the whole 128 KiB can be used by RIOT. When using this hack routinely, it easier
to use environment variables instead. But allowing to overwrite CPU_MODEL via
environment variables seems to be a bad thing, as it is easy to forget to clear
that environment variable when changing the BOARD variable.

This commit introduces the new STM32F103C8_FLASH_HACK variable, which unlocks
the 128KiB FLASH when set to "1". The BluePill documentation has been updated
accordingly.


  Commit: 880b3319db3a9ae34d5364ee89614c08d0a9ca24
      https://github.com/RIOT-OS/RIOT/commit/880b3319db3a9ae34d5364ee89614c08d0a9ca24
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
    M boards/bluepill/doc.txt
    M boards/common/stm32f103c8/Makefile.include

  Log Message:
  -----------
  Merge pull request #10323 from maribu/stm32f103c8_rom_hack

boards: Enable STM32F103C8 ROM hack via env var


Compare: https://github.com/RIOT-OS/RIOT/compare/1f6ea0ec0817...880b3319db3a
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the commits mailing list