/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / First project on STM32, something is very wrong!!

Username:     
Password:     
             

Forum

# 1   2008-12-31 11:59:28 First project on STM32, something is very wrong!!

vello66
New member
Registered: 2008-12-19
Posts: 4

First project on STM32, something is very wrong!!

Hello
According to the STM32-Primer manual point 5.2 "Developing your first CircleOS application" I have to use the DRAW_DisplayString CircleOS service to display the “msg” string variable
I have just created on the STM32-Primer display:

DRAW_DisplayString( 5, 20, msg, sizeof(msg)); // X, Y, string, length

But where must I type the command above? In what function, and in what line in the function?
Application_Ini?
Application_Handler?
MsgVersion?
First I typed it in the function MsgVersion, below the lines:
   DRAW_DisplayString(5,60,"CircleOS",17);
   DRAW_DisplayString(80,60,UTIL_GetVersion(),3);
   DRAW_DisplayString(5,34,NEEDEDVERSION,3);
   DRAW_DisplayString(40,34," required",12);
Then, when I debugged it, I got some error messages like:
C:\Program Files\Raisonance\Ride\examples\Application.c:38: error: 'msg' undeclared (first use in this function) 
C:\Program Files\Raisonance\Ride\examples\Application.c:38: error: (Each undeclared identifier is reported only once 
C:\Program Files\Raisonance\Ride\examples\Application.c:38: error: for each function it appears in.)


I'm sorry if it seems silly, but I have never done anything like this at all.
Awaiting you answers.

Last edited by vello66 (2008-12-31 12:06:07)

Offline

 

# 2   2008-12-31 12:51:14 First project on STM32, something is very wrong!!

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: First project on STM32, something is very wrong!!

The best would be to get the tutorial project at the following address:
     http://www.stm32circle.com/projects/project.php?id=14
The guide will help you at each step.

Offline

 

# 3   2008-12-31 14:55:24 First project on STM32, something is very wrong!!

vello66
New member
Registered: 2008-12-19
Posts: 4

Re: First project on STM32, something is very wrong!!

I solved the problem, thank you for the reply.

Offline

 

Board footer