Pumpkin, Inc.

Pumpkin User Forums

example CubeSat programs hang at beginning of main()

If you have a general question or comment regarding the CubeSat kit, post it here.

example CubeSat programs hang at beginning of main()

Postby whowes » Thu Jun 05, 2008 2:51 am

I'm running CrossWorks with the MSP-FET430UIF hooked up to the development board JTAG. I'm trying to run the example CubeSat programs (test1, SD1, etc.) I've compiled them and occasionally they run successfully, but usually in execution the program stays in this loop forever [at the beginning of main()]:

do
{
// Wait for XT2 to stablize
IFG1 &= ~OFIFG; // Clear OSCFault flag
for (i = 0xFFF; i > 0; i--); // Time for flag to set
} while ((IFG1 & OFIFG) == OFIFG); // OSCFault flag still set?

I'm not sure what's wrong here because sometimes it works fine but usually it doesn't...any suggestions? Thanks.

whowes
 
Posts: 3
Joined: Wed Jun 04, 2008 11:00 pm
Location: Los Alamos, NM, USA

Re: example CubeSat programs hang at beginning of main()

Postby aek » Thu Jun 05, 2008 3:55 am

That means that it is unhappy re the HF XTAL ... note that all Dev Boards and FM430s go through an extended test before delivery, so they all had to have passed through this section of code. Make sure that X3 is undamaged, that the components around it seem fine, etc.

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

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


Return to CubeSat General

Who is online

Users browsing this forum: No registered users and 3 guests

cron