Pumpkin, Inc.

Pumpkin User Forums

absolute beginer

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).

absolute beginer

Postby piratemurray » Tue Jul 04, 2006 7:13 am

hey

i'm trying to follow the CubeSat manual and have got to the stage where it says debug/programming interface on page 7.

i cant figure out how to "communicate with the flight MCU" using my development software. i have cross studio for MSP 430 installed. is that the correct development software to be using?

sorry if this question seems really basic.

piratemurray
 
Posts: 16
Joined: Mon Jul 03, 2006 11:00 pm
Location: london

Re: absolute beginer

Postby aek » Wed Jul 05, 2006 10:13 am

You need to follow the CrossWorks help to establish a connection between CrossWorks and the MSP430 via the FET you have (usually the parallel one). Once you make a connection (and your CrossWorks must be registered to be able to do that), you'll get a line on the bottom of the IDE that says what kind of MSP430 you're connected to ...

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

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

Re: absolute beginer

Postby piratemurray » Wed Jul 12, 2006 4:23 am

cheers i can now connect to the MCU.

i'm having another problem trying to run the turoials on crosstudio though.

i have gone into the ..sysx folder of the tutorials and selected the .hzp file that appears with the Rowley icon but crosstudio shows an error message, "project fialed to load - the file is not a solution file"

is there a way to fix this? am i using the tutorials correctly?

piratemurray
 
Posts: 16
Joined: Mon Jul 03, 2006 11:00 pm
Location: london

Re: absolute beginer

Postby piratemurray » Wed Jul 12, 2006 5:04 am

oooooo hold that thought........

i've just found note AN-23 on the web. i'll have a read of that first and if i dont understand i'll come back here.

cheers

piratemurray
 
Posts: 16
Joined: Mon Jul 03, 2006 11:00 pm
Location: london

Re: absolute beginer

Postby piratemurray » Wed Jul 12, 2006 6:21 am

hia

ok now i am in a pickle. i followed the note AN-23 and tried to run tutorial 1 from the salvo installation and when i try and compile it i get the following error

Linking tut1.hzx — 2 errors
undefined symbol '_OSInit'
undefined symbol '_OSSched'

how can i resolve these?

[This message has been edited by piratemurray (edited July 12, 2006).]

piratemurray
 
Posts: 16
Joined: Mon Jul 03, 2006 11:00 pm
Location: london

Re: absolute beginer

Postby aek » Thu Jul 13, 2006 11:41 am

It appears that CW430 v1.4 cannot read libraries built with an earlier version of CrossWorks.

We will have to release new libraries to fix this.

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

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

Re: absolute beginer

Postby aek » Thu Jul 13, 2006 11:42 am

I should mention that Salvo Pro users can use CrossWorks 430 v1.4 in Salvo source-code builds without any apparent difficulties.

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

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

Re: absolute beginer

Postby aek » Thu Aug 03, 2006 1:53 am

don't include delay.c

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

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

Re: absolute beginer

Postby piratemurray » Thu Aug 03, 2006 7:20 am

hi again!

i've been trying to test out the ADC on the MSP430f169 chip that came with the cubesat kit and tried to incorporate your temperature sensor code from one of your presentations.

unfortunatly i'm having troubles getting it to work in crossworks 1.3.

the error i get is:

quote:
Build active project
Building “adctemptest” in configuration “Debug”
Compiling main.c
Compiling delay3.c
Compiling delay2.c
Compiling delay.c
Compiling mem.c
Linking adctemptest.hzx
C:/Program Files/Rowley Associates Limited/CrossWorks MSP430 1.3/bin/hld: duplicate symbol '_OSDelay'
Build failed

my main.c file looks like this:

code:
 
quote:

#include <msp430x16x.h>
#include <salvocfg.h>
#include <delay.c>

unsigned int ADCresult;
unsigned long int DegC;


void TaskMeasureAmbientTemp( void )
{
/* setup ADC12 to read ch 10, etc. */
ADC12CTL0 = ADC12ON+REFON+REF2_5V+SHT0_6;
ADC12CTL1 = SHP;
ADC12MCTL0 = INCH_10+SREF_1;
/* wait 10ms for reference startup */
OS_Delay(1, label);
/* enable conversions */
ADC12CTL0 |= ENC;
for (;
{
ADC12CTL0 |= ADC12SC; // start conversion
OS_Delay(200, label); // wait 2s
ADCresult = ADC12MEM0; // read result
DegC = ((((long)ADCresult-1615)*704)/4095); // calc. DegC



[This message has been edited by piratemurray (edited August 03, 2006).]

piratemurray
 
Posts: 16
Joined: Mon Jul 03, 2006 11:00 pm
Location: london

Re: absolute beginer

Postby piratemurray » Fri Aug 04, 2006 1:07 am

hey thanx for the insight.

i've commented out #include <delay.c> but a new error arises (which is why i thought to include delay.c in the first place)

i know i've fixed this problem before...... somehow. i just cant for the life of me remember how.

the new error is:

code:
Building “adctemptest” in configuration “Debug”
Compiling main.c
c:/documents and settings/mp503/desktop/adctemptest/main.c(16): warning W2051: missing prototype for 'OS_Delay'
c:/documents and settings/mp503/desktop/adctemptest/main.c(16): error E2050: undeclared identifier 'label'
Build failed

thanks again for all the help. its much appreciated.

piratemurray
 
Posts: 16
Joined: Mon Jul 03, 2006 11:00 pm
Location: london

Next

Return to TI's MSP430

Who is online

Users browsing this forum: No registered users and 3 guests

cron