Novo & BoostbasicNovo Basic
Posted 30 October 2012 - 03:58 PM
Executing: "C:\Program Files\SourceBoost\boostbasic_pic16.exe" MPLABIDETest.bas -O1 -W1 -t 16F877A
BoostBasic Optimizing Basic Compiler Version 7.10 (for PIC16 architecture)
Copyright© 2004-2012 Pavel Baranov
Copyright© 2004-2012 David Hobday
Licensed to Henry Link under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited
MPLABIDETest.bas(20): error: general error
MPLABIDETest.bas(20): error: failure
BUILD FAILED: Tue Oct 30 11:44:15 2012
If I comment out line 21 (call SysTimerUpdate) the the error above moves to line 27 (the next call to Novo). Any ideas? I get the impression there is very little if any use of Boostbasic with Novo. I've included the source below.
#pragma DATA _CONFIG, _CP_OFF & _WDT_OFF & _BODEN_OFF & _PWRTE_OFF & _XT_OSC & _WRT_OFF & _LVP_OFF & _CPD_OFF
#pragma CLOCK_FREQ 4000000
#pragma OPTIMIZE "1"
dim mscounter as dword 'used to count ms ticks of TIMER0
dim seccounter as byte 'used to count seconds from mscounter
sub interupt ()
tmr0 = 6
mscounter = mscounter + 1
if mscounter = 10000 then
seccounter = seccounter + 1
mscounter = 0
call SysTimerUpdate ()
sub TaskToggleLED(byref PC as byte)
PC = PC ^ 00000001b
portc = PC 'Flip the 1st LED
dim ShadowC as byte = 0
trisc = 0 'Set port c to all output
option_reg = 0x84
intcon = 0xA0
call SysCreateTask(0, 7, TaskToggleLED)
do while 1
Posted 31 October 2012 - 09:33 AM
Don't know if you have already took care of that but...
When using MPLAB you have to explicitly include de novo library in the project.
Unlike the Sourceboost IDE that knows they are needed and were to find them, MPLAB needs to explicitly be told that "novolib_xxxxx" is part of the project.
BTW: Don't forget the "swcs" switch for the linker.
Edited by JorgeF, 31 October 2012 - 09:33 AM.
Posted 01 November 2012 - 09:21 AM
- don't use the 'call' keyword with Novo calls
- incorrect way to create Novo task (check examples from SourceBoost installation for the correct usage)
- incorrect task function signature (check examples from SourceBoost installation for the correct usage)
The best way to start is to use examples from SourceBoost installation as starting point.
Posted 01 November 2012 - 01:34 PM
Posted 01 November 2012 - 02:59 PM
Posted 02 November 2012 - 01:34 PM
Posted 03 November 2012 - 09:33 AM
I found the examples. However, why aren't any of these examples (or the location of these examples) not in the PDF documentation? There should be at lease one example of the BoostBasic & Novo in the Novo PDF document.
Yes there should be. We'll add this into our todo list.
I search the program installation folder and the PDF for examples. I didn't know they were put in "My Documents" folder. If I had known about these examples to begin with it would have made a big difference.
Location for the examples is specified during SourceBoost installation and you can change it to any place on your computer. Maybe you just missed this.
Reply to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users