ConBasic- Hello World

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

ConBasic- Hello World

Post by olzeke51 » Mon May 07, 2018 1:02 pm

Was playing around with the ConBasic option in MakeItC [MiC].
ConB-menu.jpg
ConB-menu.jpg (17.21 KiB) Viewed 821 times
'
Ran the Hello World example on my ARMStamp board.
and it works -- sort of. I don't think it is coming out of the "breakpoint" routine;
in response the the " ^ ", AFAIK the 'continue' option should print the missing text,
then break; out of the while loop and ....
ConB-menu.jpg
ConB-menu.jpg (17.21 KiB) Viewed 821 times
ConB-menu.jpg
ConB-menu.jpg (17.21 KiB) Viewed 821 times
'

Am I not understanding something??
Olzeke
Attachments
HW-breakpoint.jpg
HW-breakpoint.jpg (61.73 KiB) Viewed 820 times
HW-missing.jpg
HW-missing.jpg (70.01 KiB) Viewed 820 times



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

Re: ConBasic- Hello World

Post by olzeke51 » Wed May 16, 2018 11:30 am

G'Morning,
I've been 'mucking' around with "Hello World" on the ARMStamp.
These 'usb' family of files seems to be missing from the installation.

Code: Select all

#include "usbd.h"
#include "usbd_rom_api.h"
#include "usb.h"
Could you post them or a link to them??
Thanks- Olzeke
C:/Users/Zwanster/DOCUME~1/Coridium/include/system_LPC11Uxx.c:31:18:
fatal error: usbd.h: No such file or directory compilation terminated.

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

Re: ConBasic- Hello World

Post by basicchip » Wed May 16, 2018 2:13 pm

If the program is looking for usb files, you are not compiling for C onBASIC. If that is your intention, the files won't be in the include path, which will need ./usb OK, I also see the installer for MakeItC is not copying those, I will update that. For now the files are below

Not sure what the issue with ^ is, I will have to look into that later.
usb.zip
(72.54 KiB) Downloaded 43 times

TodWulff
Posts: 42
Joined: Fri Oct 19, 2012 4:03 am
Location: The Mitten State - Shores of Lake Huron

Re: ConBasic- Hello World

Post by TodWulff » Tue Nov 27, 2018 5:03 am

Can someone please explain what C on Basic is?

Based on the title, it sounds like a means for ARMbasic to compile and run some C source on Basic.

Is this correct?

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

Re: ConBasic- Hello World

Post by olzeke51 » Tue Nov 27, 2018 11:25 am

Yes
it can do upto a 4k section of code - as that is the Flash limit currently in MiC.
the 'hello world' is set kup for bare-metal OR ConBasic via a #def onBasic.
'
onBasic will incorporate at least 17 (iirc) routines that ARMbasic uses, at your disposal
time, interrupts, usart, print I do believe are the general flavor.
-
It currently is config'd for ARM-Stamp (11u37) and I think the BASICchip (1114)
WELL that was some #ifdefs that I saw in one of the files.
'
HTH -Olzeke

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

Re: ConBasic- Hello World

Post by basicchip » Tue Nov 27, 2018 9:18 pm

We did some work with Pokitto. It looks like a cute educational board, and we moved our BASIC to it.

As you know our typical MakeItC overlays BASIC when you compile a program.

As an experiment we wrote a version of some of the example programs and MakeItC to link to BASIC firmware. What this allows is to compile C programs without overwriting the BASIC firmware, and using those firmware routines. it does indeed work for small C programs, we would either need to patch the gcc hex to insert FLash page breaks or the BASIC Flash writer to handle them itself (a bit tougher as MiC loader also needs to pause on those flash pauses).

Where is it going? Who knows. Where is Pokitto going, not sure?

edit -- misspelled Pokitto -- fixed

TodWulff
Posts: 42
Joined: Fri Oct 19, 2012 4:03 am
Location: The Mitten State - Shores of Lake Huron

Re: ConBasic- Hello World

Post by TodWulff » Tue Nov 27, 2018 9:38 pm

Nice. Thank you. Much appreciated.

Post Reply