The root directory where this readme.txt is located has two sub directories.
.\build
.\inc

The files in these two directories are setup to compile a source file main.c to create a *.elf
file which armcfgenV143a.bas then converts to a CSUB. The completed CSUB .bas is created and then opened in Notepad
so it can be copied easily into the clipboard for pasting into the MMBasic code.
The main.c is expected to contain the line below so it knows where to find the header file.
#include "../inc/ARMF4CFunctions.h"

The /inc directory contains the ARMF4CFunction.h header file.
The /build directory contains all the other necessary files.
Three batch files in the /build directory are used.

MakeF4.bat
The other two batch files call this file with the necessary parameters.
It expects the arm-none-eabi-gcc.exe and arm-none-eabi-ld.exe to be at the default locations. It will need editting
if they are not located at:
"C:\Program Files (x86)\GNU Arm Embedded Toolchain\9 2020-q2-update\bin\arm-none-eabi-gcc.exe"
"C:\Program Files (x86)\GNU Arm Embedded Toolchain\9 2020-q2-update\bin\arm-none-eabi-ld.exe" 

1-MAKEwithMERGE.bat
This file copies the main.c from where you developing it into the /build directory and then calls Make.bat
with the -m MERGE option and the CSUB name to create.
It expects the main.c to be located at: 
C:\workspace\myF4CSUBS\src\main.c
If it is not located there you need to edit the batch file to match its location.
The batch file also needs to have the CSUB name editted. It is ST7789 by default.
DOUBLE CLICK this batch file to run it and create a CSUB with -m MERGE option

2-MAKEwithJOIN.bat
This calls Make.bat with the -j JOIN option.
It expects the main.c to be located at: 
C:\workspace\myF4CSUBS\src\main.c
If it is not located there you need to edit the batch file to match its location.
The CSUB name of main should not be changed. The join option will product individual CSUBs for each function.
DOUBLE CLICK this batch file to run it and create a CSUB with -j JOIN option

DEPENDANCY:
The GCC ARM compiler need to be installed. Get it from here.
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads
Select the download below and install it.
gcc-arm-none-eabi-9-2020-q2-update-win32.exe 
