Pumpkin, Inc.

Pumpkin User Forums

Problems by compiling Tu6

For issues specific to TI's MSP430 line of ultra-low-power microcontrollers, including compilers (e.g. Quadravox AQ430), IDEs (e.g. IAR Embedded Workbench) and development tools (e.g. TI MSP-FET430 Flash Emulation Tool).

Problems by compiling Tu6

Postby aek » Fri Apr 30, 2004 7:54 am

Hello.

You're getting the error because (by default) binary semaphores are not enabled (see OSENABLE_BINARY_SEMAPHORES in the Configuration chapter of the User manual).

This is done so that you can control which parts of the source code are compiled and ultimately make their way into your application.

All you need to do is add

code:
#define OSENABLE_BINARY_SEMAPHORES TRUE

to your salvocfg.h and it'll work.

------------------

[This message has been edited by aek (edited April 30, 2004).]

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: Problems by compiling Tu6

Postby mswu » Fri Apr 30, 2004 9:07 am

Hi I am using the Salvo Professional Version and use IAR 3.2. I extended the Tu6pro Example in the way that I use also OSCreateBinSem() in that example. I linked the binsem.c to the Salvo Sources and in Salvocfg.h i changed the OSEVENTS to 3. Now I get problems with my Linker. Why I get that error, I linked binsem.c, I dont understand. Hope you can help me. Thanx Maik
Here is the error message:

IAR Universal Linker V4.56E/386
Copyright 1987-2003 IAR Systems. All rights reserved.
Error[e46]: Undefined external "OSCreateBinSem" referred in main ( C:MSP430SalvoPRO ut u6sysqDebugObjmain.r43 )

1 466 bytes of CODE memory
133 bytes of DATA memory (+ 10 absolute )
34 bytes of CONST memory

Errors: 1
Warnings: none


Total number of errors: 1
Total number of warnings: 0

mswu
 
Posts: 2
Joined: Thu Apr 29, 2004 11:00 pm
Location: Germany

Re: Problems by compiling Tu6

Postby mswu » Sat May 01, 2004 7:56 am

Thank you for your quick help. Now its working very well.
MAik
mswu
 
Posts: 2
Joined: Thu Apr 29, 2004 11:00 pm
Location: Germany


Return to TI's MSP430

Who is online

Users browsing this forum: No registered users and 1 guest

cron