Go to file
2022-09-25 20:59:33 +02:00
additional initial commit 2022-09-19 01:00:05 +02:00
lib initial commit 2022-09-19 01:00:05 +02:00
linker initial commit 2022-09-19 01:00:05 +02:00
solution initial commit 2022-09-19 01:00:05 +02:00
src initial commit 2022-09-19 01:00:05 +02:00
workspace/.metadata/.plugins initial commit 2022-09-19 01:00:05 +02:00
.gitignore initial commit 2022-09-19 01:00:05 +02:00
CMakeLists.txt made compiler includes relative to the actual compiler,not the hint path 2022-09-25 20:42:14 +02:00
CPPPWorkspace.xjrf initial commit 2022-09-19 01:00:05 +02:00
CPPPWorkspace.xqrf initial commit 2022-09-19 01:00:05 +02:00
Doxyfile initial commit 2022-09-19 01:00:05 +02:00
FM4_TYPE3_MACRO0_1032KB.flash initial commit 2022-09-19 01:00:05 +02:00
FM4_TYPE3_MACRO1_1056KB.flash initial commit 2022-09-19 01:00:05 +02:00
Readme.md more readme 2022-09-25 20:59:33 +02:00
startup_s6e2cc.s initial commit 2022-09-19 01:00:05 +02:00
UMI2_FM4_TYPE3_MACRO0.s32 initial commit 2022-09-19 01:00:05 +02:00
UMI2_FM4_TYPE3_MACRO1.s32 initial commit 2022-09-19 01:00:05 +02:00

Rennorbs experiments to port the winidea setup for compiling to cortex-m4 to a cross platform cmake project

DOES NOT FULLY WORK IN ITS CURRENT STATE

current issues:

  • lib/gfx.c does not properly link against sprintf because of missing __aeabi_f2d. It's not the 'float literals are doubles by default' issue, its something else. Enable -Wdouble-promotion to see that it's a different issue. The documentation for my compiler (share/doc/gcc-arm-none-eabi/html/libc/siprintf.html) specifies that only integer format specifiers are supported by this version. However, seeing as this function isn't currently used currently used (in the main project) it should just be save to comment out the call to sprintf.
  • flashing target. ... yea, kindof important part

Requirements

Compilation:

Flashing/Debugging: (WIP)

  • CmsisDapDriver (CmsisDapDriverInstallerV14.exe), might also work with different versions.
  • DapLink might also be an option

Instructions

  1. clone the project: git clone git@github.com:SaculRennorb/cmake-cortex-m4.git
  2. move to the project root: cd cmake-cortex-m4
  3. configure (this specific command requires ninja): cmake -G Ninja -B build . add -DBOARD=<BOARD> and/or -DCONFIGURATION=<release|debug> to configure those parameters
  4. build: cmake --build build --target <BOARD>_<CONFIG> outputs will be in build/bin
  5. flash (TODO)