Page 1 of 1

Programming in C

Posted: Wed Dec 19, 2007 11:15 am
by tekruma
It's fun and easy to program the Formuala with help of Flowcode. But is it possible to program the Formula with a standard C compiler?

Posted: Wed Dec 19, 2007 11:27 am
by Steve
Yes - it is possible. But make sure the code for your program is relocated to 0x800 because there is a bootloader in 0x000 to 0x7FF.

Programming in C

Posted: Wed Dec 19, 2007 11:52 am
by tekruma
Intersting but how is that done?
I suppose the C compiler must know something about Formuala and how do I transfer the C code to Formula?

Posted: Wed Dec 19, 2007 12:00 pm
by Steve
For the BoostC compiler, you must use the following linker parameter to relocate the code:

-rb 0x800

I do not know about other compilers.

The "BuggyProg.exe" program that is installed with Flowcode can be used to send programs to the buggy. This is in the same folder as the Flowcode exe.

Programming in C

Posted: Wed Dec 19, 2007 2:04 pm
by tekruma
I have got the BoostC compiler but where do I insert the code -rb 0x800 ?

Posted: Wed Dec 19, 2007 3:53 pm
by Steve
You will need to add this to the "extra linker options" entry within the SourceBoost IDE.

Re: Programming in C

Posted: Wed Nov 28, 2012 2:30 pm
by Sofie
I tried to do everything you said:
linkeroption in Sourceboost : -rb 0x800 and compile and link
When i send this to the pic using buggyprog, i always get the error: send Failed...

Can you help me

(excuse me for my english)

Re: Programming in C

Posted: Fri Nov 30, 2012 4:58 pm
by Benj
This FAQ topic adopted for the formula flowcode should help to get you up and running.

http://www.matrixmultimedia.com/support ... f=20&t=537