MakeItC - NOOB eval - LPC8xx

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

MakeItC - NOOB eval - LPC8xx

Post by olzeke51 »

MakeItC - NOOB eval - LPC8xx
June 01, 2014 0546 PDST
Preface: got an LPC*12 eval tssop20 - no instructions
total NOOB using a toolchain (google researched it)
but I have done a lot of reading, 8051 ASM programming, BASIC, some Forth, Linux
therefore - lots of noob errors - selecting wrong things etc.

Platform: WinXP Home, SP2 , 700M ram, HP computer with no serial
Notepad++ is my selected editor
USB-serial dongle - china knockoff of a prolific, registers with Win but code 10's

******** Issues: -- IDE(11.02) arm-none-eabi-g++.exe 4.6.2 - DEMO MODE

Z001 - at startup, the 'window' is all grey (not white like the Help file shows)
[it does list the last file I used]
/* makeitC starts / detects a com but puts me in demo mode (all good)



Z002 - 'Application Error' window popup won't let me 'x' out of it
I have to use the <OK> button
/* I "File menu - choose C file" a file from an old "C" directory,
immediately selected 'ASM listing' from the "Edit menu"
and the error window popped up - couldn't find the xx.elf file (expected)
*/

Z003 - (may not be a true error)- more procedural - lpc8xx_uart.c worked okay
Edit Menu - Search function failed to find 'loop' text;
after closing "error..." window - "Project Search" reports "0 matches found"
[ !? due to no linking ??]
/* selected 'BareMinimum.ino" from Help/Sketches
opened up Edit / Search - type in 'loop' , (not case sensitive)
GOT TWO error windows - 1) big white "MakeItC: ARM development by Coridium"
with a 'linking not done error' message
[this turns out to be the main IDE window - it lost the 'Coridium logo
and the grey part of the window (see Z001)] !!!!
2) a smaller windows-style "error..."
with "c:/Coridium/bin>echo: Unexpected file type: blah blah"
*/

Z004 - there is no Xsample.c file in the above listed IDE
/* this is referenced in the "(C) Help - Libraries - Sample Programs" -- see I am RTFM/Help !!



basicchip
Posts: 1030
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA
Contact:

Re: MakeItC - NOOB eval - LPC8xx

Post by basicchip »

Z001-
Does your knockoff USBserial device show up as a COM channel under Options->Serial ?
If not then you don't have the proper driver for that.
In addition to do C with it you will have to run in MANUAL mode and have to manually short the pin 5 (loadC) to GND during downloads. Also your knockoff board may not control RESET either. To download C programs we recommend you use a Coridium USBserial dongle, it is the only one that controls both outputs to put the CPU into ISP (In System Program) mode by program control. For BASIC many any of the FTDI serial boards we have seen on eBay will work, in fact we have bought about 20 ourselves.

Z002 - You can't generate an ASM file listing until the program has been compiled

Z003 - If 'loop' is not found it is probably not in any of the files, search IS case sensitive

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

Re: MakeItC - NOOB eval - LPC8xx

Post by olzeke51 »

Z001 -- windows sees it as com9 but not enabled - code 10 -
this is a known issue by Prolific with website note to that effect. Prolific driver will install but still no enable
will your Dongle2.pdf show me what will work??

My issue for Z001 was the grey window at startup.

**********
Z002 issue was the "error " window wouldn't let me do the "x" out of it function built into the windows frame
(along side of the min/max symbols) I HAD to use the <OK> button.

************
Z003 - search case sensitivity can be unchecked
'loop' is a standard part of sketch.ino files,
in the description of the Edit / Search menu item - it was commented that Search would look at all
the project files for that term - evidently only if the file(s) linked properly as the error message
would indicate

******
Thanks - that was fast [ do you get one day in 7 off ??]

basicchip
Posts: 1030
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA
Contact:

Re: MakeItC - NOOB eval - LPC8xx

Post by basicchip »

a day off-- what's that, but we do sleep

Z001-
When you start MakeItC it should show a gray screen, but with a Coridium MakeItC Flash
micflash.jpg
micflash.jpg (47.09 KiB) Viewed 11786 times
If you don't see that picture, setupC didn't run correctly or that picture core2.GIF is missing (the very first time you run it you will see core1.GIF)

Z002-
Feature of Tcl, you must close the error/info screen before closing the program, not much we can do about that

Z003-
loop is standard as part of a Sketch, which we do have limited support for, though we have not done any sketches for the LPC812.

basicchip
Posts: 1030
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA
Contact:

Re: MakeItC - NOOB eval - LPC8xx

Post by basicchip »

You might take a look at this thread in the forum

http://www.coridiumcorp.com/forum/viewt ... ebay#p2201

As I remember the cheapest USB serial I saw on ebay only did serial (it had no controls for reset or load-C). The FTDI ones did control reset, but not load-C

Be aware if you load a C program or a Sketch you will erase the BASIC from the LPC812, and so far we are not supporting a way to reinstall it.

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

Re: MakeItC - NOOB eval - LPC8xx

Post by olzeke51 »

Well, this is where the evaluation hits the pavement.

Z001 - still open - see my 2nd_start vs. your core2
I uninstalled the old makeitC, downloaded the latest from the tech support page and installed it in c:\Coridium\ folder
[Basic was also installed to the same directory !] Fired it up - got the core1.gif on grey, selected 'demo' mode -(serial device)
[I am assuming C found a 'com9' port but not being enabled - it didn't prompt me for any serial devices]
SHUTDOWN immediately
restarted and got the core2.gif BUT still on grey background. I selected Help/About then did a crop of a 'printscreen' via
windows and Paint -- here is the pix - see attached

********
re: dongle -- is your dongle2.pdf adequate for the '812 ??, I have a dongle coming from adafruit that had 6 pins on it

Z002 & Z003 are closed in my mind - procedural & tools

**********
Z004 - there is no Xsample.c file in the above listed IDE
/* this is referenced in the "(C) Help - Libraries - Sample Programs" -- see I am RTFM !!
Attachments
olzeke51_2nd_start.GIF
olzeke51_2nd_start.GIF (27.58 KiB) Viewed 11780 times

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

Re: MakeItC - NOOB eval - LPC8xx

Post by olzeke51 »

Z005 - attempted to create the "Csample.c" hex file and got this error: (no dongle yet for my serial)

Analyzing C:/Coridium/Csample.c

C:\Coridium\bin>echo off

C:\Coridium\bin>arm-none-eabi-gcc C:/Coridium/Csample.c -M -IC:/Coridium -IC:/Coridium/include -DLPC800 -DTHUMB
child process exited abnormally
C:/Coridium/include/adc.h:214:4: error: #error Unknown CPU type in adc.h
linking... C:/Coridium/Csample.c

Csample is 0.00K code 0.31K data

basicchip
Posts: 1030
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA
Contact:

Re: MakeItC - NOOB eval - LPC8xx

Post by basicchip »

Something else to look into, though Csample.c may be too large to compile on the LPC812 anyway, it only has 16K of space.

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

Re: MakeItC - NOOB eval - LPC8xx

Post by olzeke51 »

Still trying to make a Csample.hex file
// -- Z005 - from previous post
2nd attempt to run Csample.c for the LPC800
I put an "#ifndef LPC800" at line 19
and DID NOT get another adc.h error messag
IMO the fix should be in ADC not in my main (Csample) program

BUT THESE CAME UP
// Z006
// the CMSIS include files don't appear to have been searched in Project Searches ??


Analyzing C:/Coridium/Csample800.c // grz my copy of Csample.c that I WAS going to
// make my modifications to -- only did the mod
// at line 19 & corresponding endif -- see above
................................

processing C:/Coridium/Csample800.c

C:\Coridium\bin>echo off

C:\Coridium\bin>arm-none-eabi-gcc -c -Wall -mthumb -IC:/Coridium -IC:/Coridium/include -mcpu=cortex-m0 -mfpu=vfp -funsigned-char -mthumb-interwork -Os -fno-inline -DLPC800 -DTHUMB -Wa,-adhlns=C:/Coridium/Csample800.lst C:/Coridium/Csample800.c -o C:/Coridium/Csample800.o
child process exited abnormally
C:/Coridium/Csample800.c: In function 'main_embedded':

// Z007
C:/Coridium/Csample800.c:67:2: warning: implicit declaration of function 'initAD' [-Wimplicit-function-declaration]
// added [&& (!defined LPC800) ] at line 66


// Z008
C:/Coridium/Csample800.c:93:5: error: 'LPC_GPIO0' undeclared (first use in this function)
// Project Search indicates that 'LPC_GPIO0' shows up in "coridium_pcb.h"
C:/Coridium/Csample800.c:93:5: note: each undeclared identifier is reported only once for each function it appears in

// Z009
C:/Coridium/Csample800.c:145:47: error: 'LPC_TIM0' undeclared (first use in this function)
// Project Search indicates 2 files that reference 'LPC_TIM0'
// coridium_pcb.h & cor_bitbang.c both in the /Coridium/include directory


// Z010
C:/Coridium/Csample800.c:195:5: warning: implicit declaration of function 'AD' [-Wimplicit-function-declaration]
// this is a "#ifdef LPCcncnc " statement in the 'case 30:" scenario
// added:
// #elif LPC800
// printf("LPC800 has no A/D"); // grz

********************
after making the above mentioned additions [ Z007 , Z010 ]- only got the LPC_GPIOO and LPC_TIM0 errors
makin' headway

basicchip
Posts: 1030
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA
Contact:

Re: MakeItC - NOOB eval - LPC8xx

Post by basicchip »

We actually have what we (Coridium) needs working in C for the LPC812, which is to compile the BASIC firmware. We are more interested in evaluation of the LPC812 in BASIC (we know it does C).

And as we support MakeItC for our own use, and as an example for the CPUs that we have ported code to we will support that, and publish that. And as I said last time I looked Csample was bigger than 16K, we really are not going to worry too much about Csample.c running for the LPC812, as after all it is just a sample program, though a bit more elaborate than the typical "Hello World" one. But please feel free to hack away to get a working Csample.c if that is what you need.

Post Reply