C version of BASICchip
-
YahooArchive
- Posts: 1462
- Joined: Fri Oct 19, 2012 5:11 am
-
YahooArchive
- Posts: 1462
- Joined: Fri Oct 19, 2012 5:11 am
Re: C version of BASICchip
The short answer is no.
But you can buy the LPC1114 from Digikey, the same chip.
Our MakeItC tools supports that part.
But you can buy the LPC1114 from Digikey, the same chip.
Our MakeItC tools supports that part.
-
YahooArchive
- Posts: 1462
- Joined: Fri Oct 19, 2012 5:11 am
Re: C version of BASICchip
The DIP version of the LPC1114 is listed as non stock item at digikey. I'll
check around.
I tried to use MakeItC by selecting LPC1114 under Options, and Build HEX on an
old sample
#include "constants.h"
#include "coridium.h" // this is required
#include "cor_init.h" // sets up UARTs -- could toss this someday
#include "cor_hwlib.h"
int main(void)
{
init_coridium(); // REQUIRED OPERATION
OUTPUT(6); // Set Pin 6 as output
while(1){ // loop forever
LOW(6); // turn on the LED
WAIT(1000); // wait a second
HIGH(6); // turn off the LED
WAIT(1000); // wait a second
}
return 1; // never executed, but keeps compiler happy
}
I get this
C:\CORIDI~1\MakeC\bin>arm-none-eabi-gcc -c -Wall -mthumb
-IC:/CORIDI~1/MakeC/Examples
-IC:/CORIDI~1/MakeC/Examples/include -mcpu=cortex-m0 -mfpu=vfp -funsigned-char
-mthumb-interwork -Os -fno-inline -DTHUMB -DLPC1114 -DLPC111x -Wa,
-adhlns=C:/CORIDI~1/MakeC/Examples/Xsample.lst
C:/CORIDI~1/MakeC/Examples/Xsample.c -o
C:/CORIDI~1/MakeC/Examples/Xsample.o
child process exited abnormally
C:/CORIDI~1/MakeC/Examples/Xsample.c: In function 'main_embedded':
C:/CORIDI~1/MakeC/Examples/Xsample.c:16:3: error: 'LPC_GPIO_TypeDef' has no
member named 'CLR'
C:/CORIDI~1/MakeC/Examples/Xsample.c:18:3: error: 'LPC_GPIO_TypeDef' has no
member named 'SET'
is there something I missed.
check around.
I tried to use MakeItC by selecting LPC1114 under Options, and Build HEX on an
old sample
#include "constants.h"
#include "coridium.h" // this is required
#include "cor_init.h" // sets up UARTs -- could toss this someday
#include "cor_hwlib.h"
int main(void)
{
init_coridium(); // REQUIRED OPERATION
OUTPUT(6); // Set Pin 6 as output
while(1){ // loop forever
LOW(6); // turn on the LED
WAIT(1000); // wait a second
HIGH(6); // turn off the LED
WAIT(1000); // wait a second
}
return 1; // never executed, but keeps compiler happy
}
I get this
C:\CORIDI~1\MakeC\bin>arm-none-eabi-gcc -c -Wall -mthumb
-IC:/CORIDI~1/MakeC/Examples
-IC:/CORIDI~1/MakeC/Examples/include -mcpu=cortex-m0 -mfpu=vfp -funsigned-char
-mthumb-interwork -Os -fno-inline -DTHUMB -DLPC1114 -DLPC111x -Wa,
-adhlns=C:/CORIDI~1/MakeC/Examples/Xsample.lst
C:/CORIDI~1/MakeC/Examples/Xsample.c -o
C:/CORIDI~1/MakeC/Examples/Xsample.o
child process exited abnormally
C:/CORIDI~1/MakeC/Examples/Xsample.c: In function 'main_embedded':
C:/CORIDI~1/MakeC/Examples/Xsample.c:16:3: error: 'LPC_GPIO_TypeDef' has no
member named 'CLR'
C:/CORIDI~1/MakeC/Examples/Xsample.c:18:3: error: 'LPC_GPIO_TypeDef' has no
member named 'SET'
is there something I missed.
-
YahooArchive
- Posts: 1462
- Joined: Fri Oct 19, 2012 5:11 am
Re: C version of BASICchip
According to the NXP web site, Mouser has 3500 or so in stock
We haven't ported the Csample.c code to the 1114 yet, right now we are more
focused on the BASIC side. The IO ports of the 1114 are the old ARM style with
address mapping selecting bits, so the defines using the NXP style port will
have to be updated.
But we do know the MakeItC works correctly for the 1114, as the BASIC firmware
is really a C program that we develop using MakeItC.
We haven't ported the Csample.c code to the 1114 yet, right now we are more
focused on the BASIC side. The IO ports of the 1114 are the old ARM style with
address mapping selecting bits, so the defines using the NXP style port will
have to be updated.
But we do know the MakeItC works correctly for the 1114, as the BASIC firmware
is really a C program that we develop using MakeItC.
-
YahooArchive
- Posts: 1462
- Joined: Fri Oct 19, 2012 5:11 am
Re: C version of BASICchip
Thanks - I'll skip it, maybe later.
-
YahooArchive
- Posts: 1462
- Joined: Fri Oct 19, 2012 5:11 am
Re: C version of BASICchip
> >
> > But we do know the MakeItC works correctly for the 1114, as the BASIC
firmware is really a C program that we develop using MakeItC.
> >
>
As we do intend to support C on the PROstart board, I've modified Csample.c to
at least compile and wiggle pins for the LPC1114
I've also re-organized some of the menus to better represent the current
catalog. And some help file changes to highlight how ports beyond port0 can be
used
for all i/o MACRO(pin) use MACROx(pin) with pin=32-63 for port1, 64-95 for port2
...
so that works for IN -> INx ...
> > But we do know the MakeItC works correctly for the 1114, as the BASIC
firmware is really a C program that we develop using MakeItC.
> >
>
As we do intend to support C on the PROstart board, I've modified Csample.c to
at least compile and wiggle pins for the LPC1114
I've also re-organized some of the menus to better represent the current
catalog. And some help file changes to highlight how ports beyond port0 can be
used
for all i/o MACRO(pin) use MACROx(pin) with pin=32-63 for port1, 64-95 for port2
...
so that works for IN -> INx ...