MakeItC - Csample.c

Questions about the BASICtools and MakeItC
Post Reply
olzeke51
Posts: 414
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

MakeItC - Csample.c

Post by olzeke51 »

You referenced Csample.c as compiling so....
using the Csample.c in the CMSIS directory - I get this::
'
nalyzing C:/Coridium/MakeItC/CMSIS/Csample.c
.....................

processing C:/Coridium/MakeItC/CMSIS/Csample.c

C:\Coridium\MakeItC\bin>echo off

C:\Coridium\MakeItC\bin>arm-none-eabi-gcc -c -Wall -mthumb -IC:/Coridium/MakeItC/CMSIS -IC:/Coridium/MakeItC/CMSIS/include -mcpu=cortex-m0 -mfpu=vfp -funsigned-char -mthumb-interwork -Os -fno-inline -DLPC1114 -DTHUMB -Wa,-adhlns=C:/Coridium/MakeItC/CMSIS/Csample.lst C:/Coridium/MakeItC/CMSIS/Csample.c -o C:/Coridium/MakeItC/CMSIS/Csample.o
child process exited abnormally
C:/Coridium/MakeItC/CMSIS/Csample.c: In function 'main_embedded':
C:/Coridium/MakeItC/CMSIS/Csample.c:190:5: error: too many arguments to function 'WriteFlash'
C:/Coridium/MakeItC/CMSIS/include/flash.h:166:5: note: declared here
*****************************
Can you update something?
Thanks, Olzeke51
'
' the /CMSIS/include/flash.h is dated 12-31-2014
'the /CMSIS/include/flash.c is dated jan 06, 2015
'the /CMSIS/Csample.c is dated 9/11/2014
AFAIK these were in the setupC.exe that I downloaded on the 20th - BUT windows properties for the file is 53,750,952 bytes (size)
'----and created on August 30,2014 [!!!! doesn't make sense - you have files from Dec & January in it !!! ]
downloaded from the TechSupport top page



basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: MakeItC - Csample.c

Post by basicchip »

Delete the last parameter in the call to WriteFlash.

We update the C routines from time to time, and we do change them to make our BASIC firmware easier to port between CPUs. WriteFlash was getting too complex with all the #ifdefs or checks for CPU type (we are handling over a dozen now). We move things around so that the 95% of the code in BASIC.c which is the firmware needs to change less with each new CPU.

Here is the latest include directories, but use them with caution as we don't always back test with all possibilities. And this does include lots of old routines that probably no longer compile
include.zip
(522.16 KiB) Downloaded 1105 times

olzeke51
Posts: 414
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

Re: MakeItC - Csample.c

Post by olzeke51 »

Thank you for the updates, and the caution. I will try to work through them and post any mods.
'
I am attempting to use a SeeedStudio TFT sketch on the ArchPro. I noticed in the first run-through
that the cpu type was coded for the 1768 - good call !! I'v got my work cut out for me.
'
until next time - - Have a good day!. gary

Post Reply