LPC812 BASIC breakout - CPU Define

Questions about the BASICtools and MakeItC
Post Reply
FIREWALL
Posts: 15
Joined: Thu Nov 08, 2012 6:31 pm

LPC812 BASIC breakout - CPU Define

Post by FIREWALL »

I have been playing around with the latest version of the BASICtools and I noticed that
LPC812 is not being auto defined by the pre-compiler the way LPC1756 gets defined for the SuperPro.

Here is where I am seeing the error. If I add:

Code: Select all

#elif defined LPC812
	#define LED_PIN  7
to the top of BLINKY.bas
the compiler still gets into the "catch all" error case

Code: Select all

#error undefined CPU type, please install new BASICtools from www.coridium.us/Support.php
Is there something I need to do to enable the auto add of the LPC812, or is this a bug?
-Dan


EDIT: (here is the ID string of the breakout board and the BASICtools I am using (to verify that I have the latest tools etc) I downloaded the BASICtools within the last week.

on start-up the breakout board displays
Welcome to ARMbasic Kernel[8.28] with Floating Point Copyright 2013, Coridium Corp.
for LPC800 family
the "About BASICtools" dialog shows
ARMbasic[9.28]
BASICtools[5.19]



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

Re: LPC812 BASIC breakout - CPU Define

Post by basicchip »

It's actually being defined as LPC0812

FIREWALL
Posts: 15
Joined: Thu Nov 08, 2012 6:31 pm

Re: LPC812 BASIC breakout - CPU Define

Post by FIREWALL »

Yes, indeed LPC0812 is defined. However the following files are then erroneously looking for LPC812 (not LPC0812) to be defined:

Code: Select all

BASIClib\CORIDIUM_PCB.bas
BASIClib\COUNTER.bas
BASIClib\HWPWM8.bas
BASIClib\ONEWIRE.bas
BASIClib\RTC.bas
Examples\GPIO_INT8.bas
Examples\MRTIMER.bas
Examples\PORT-RD.bas
Examples\PORT-WR.bas
Examples\SCTIMER.bas
Examples\TIMER1.bas
Examples\TIMER2.bas
Examples\TIMER3.bas
Examples\TIMER8.bas
and LPC0812 is not used in any of the BASIClib or Example files

-Dan

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

Re: LPC812 BASIC breakout - CPU Define

Post by basicchip »

I'll change that in BASICtools which is where that is defined. And I'll give you credit for a compiler bug.

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

Re: LPC812 BASIC breakout - CPU Define

Post by basicchip »

This version of BASICtools does a #define LPC812 rather than LPC0812
BASICtools.exe
(3.82 MiB) Downloaded 1537 times

Post Reply