Topic : Reqiere a simple clear C manual for e newby

Forum : ST7/STM8

Original Post
Post Information Post
September 26, 2010 - 9:58pm
Guest

I'm a new user just purchased an Rlink. I'm working in electronics from 1980 and I use uC for fun.
I play many year ago on 8051 (eprom version) and recently with MSP430 and ST7Lite09 for little applications as hobby.
All done in assembler.
I am a programmer in my job (ATE ) using CLI- IDE running in pascal-like languange, a lot easyer then C but no so efficient(and fun) Is planned to move to C/C++ in a future then I decide to play with C , start with Cosmic C with my Softech ICP/ICD INDART.
After some truoble I decide to buy Rlink because of price (a lot cheeper then Softhec one not anymore supported by STDV ) and fully compatible with new ST7-STM8-ARM ST Microelectronics production .
I'm struggling with keywords and C structure ( define ,pragma, structure case unions ) . I'm an old man and slow to learn a new language.
I download Cosmic C manual , Bjarne-Stroustrup CPP... , Essential C(Stanfor Library) , the best for my knoledge and usage with 8Bit uC is Cosmic C.
I Used app note documenting diference between Cosmic and Ride that help me to write my first C app with Ride (interupt and _Bool definition) .
Did Raisonance a manual similar to Cosmic ? If not wich is Your suggestion to download that match with Raisonance standards?
I had a look into all forum and a appreciate the fast and professionals usefull reply from all Raisonance stuff, Well done.

Regards Poalo.

Replies
Post Information Post
+1
0
-1
September 27, 2010 - 11:28am
Raisonance Support Team

Hi Paolo,

Thanks for your interest into Raisonance products.
We do not have basic-level documentation about C programming, but Googling "C language tutorial" will raise a few nice entries.

C is a standard language, and nowadays switching from one compiler to another is not difficult.
The main items to take care about are:
- I/O, which is severely limited on a microcontroller (no fopen/fputs/fwrite and the like),
- Interrupts and startup code, which is specific to a given hardware,

C programming on microcontrollers requires some time, but it is definitely easier than using assembler! Except perhaps for very simple examples, as assembly is very close to your hardware.

Once you understand the C language a bit better,
- Use the examples provided with our software (in C:\Program Files\Raisonance\Ride\Examples)
- Read the compiler documentation. Even if it is not written as a tutorial, it is well written, with lots of examples, and this will help you understand how to use the compiler at its best.
- Also our software (Ride7 and RKits) is designed for simplicity, so that its intuitive user interface helps you make the best without too many headaches...

Regards,

+1
0
-1
October 8, 2010 - 10:36am
Raisonance Support Team

Also http://publications.gbdirect.co.uk/c_book/ is an interesting book on C, although it is more for intermediate-level developers than beginners.

Regards,