Jump to content
Sign in to follow this  
Donny M. Carter

Load Error

Recommended Posts

Hello everyone, I've been lurking for a while trying to get my head around a few things! I recently received some code to blink some 2801's, but I'm getting an error. I'm sure someone can point me in the right direction. I've attached a screen shot. Thanks in advance for any help!

Donny

 

post-31935-0-20238700-1372786344_thumb.jpg

Share this post


Link to post
Share on other sites

Were you able to run anything else?

Create a new CCS project, name it and select MSP430G2553 as your target.

Open the main in that project and hit Debug.

If that works, then there must be something with your 2801 blink project.

Share this post


Link to post
Share on other sites

Were you able to run anything else?

Create a new CCS project, name it and select MSP430G2553 as your target.

Open the main in that project and hit Debug.

If that works, then there must be something with your 2801 blink project.

 

Works fine. Maybe I messed up something when importing the code.

Share this post


Link to post
Share on other sites

Ok. I just tried antoher code from this thread and I get the same error. Apparently I'm doing this incorrectly. I'm copying and pasteing the code in to a new project. I've tried to import a project but can't ever seem to see the file. Maybe I should read a little more! :-(

Share this post


Link to post
Share on other sites

That error looks like when the code doesnt compile correctly, check the "console" and it should give you some indication of what failed

Here's the message from the console.

 

MSP430: GEL: Encountered a problem loading file: C:\Users\Donny M. Carter\workspace_v5_4\test3\Debug\test3.out Could not open file

 

Description    Resource    Path    Location    Type

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/5.html">#5</a>  could not open source file "ws2811.h"    main.c    /test3    line 5    C/C++ Problem

 

Share this post


Link to post
Share on other sites

Ok. I took a code from here. Opened it in DevC, copied and pasted it and got an error.

 

>> Compilation failure
gmake: *** [2801 test.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

When I hit proceed is when I get;

MSP430: GEL: Encountered a problem loading file: C:\Users\Donny M. Carter\workspace_v5_4\2801 test\Debug\2801 test.out Could not open file

 

I just went and retried the blink led code and it worked fine.

Share this post


Link to post
Share on other sites

Ok. I took a code from here. Opened it in DevC, copied and pasted it and got an error.

 

>> Compilation failure

gmake: *** [2801 test.out] Error 1

gmake: Target `all' not remade because of errors.

 

**** Build Finished ****

When I hit proceed is when I get;

MSP430: GEL: Encountered a problem loading file: C:\Users\Donny M. Carter\workspace_v5_4\2801 test\Debug\2801 test.out Could not open file

 

I just went and retried the blink led code and it worked fine.

Could you list the errors?

Share this post


Link to post
Share on other sites

Could you list the errors?

 

First 3 are listed as errors. Last 12 are listed as warnings:

Description    Resource    Path    Location    Type

#10010 errors encountered during linking; "2801 test.out" not built    2801 test             C/C++ Problem

Description    Resource    Path    Location    Type

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain    2801 test             C/C++ Problem

Description    Resource    Path    Location    Type

unresolved symbol write_ws2811, first referenced in ./main.obj    2801 test             C/C++ Problem

 

 

Description    Resource    Path    Location    Type

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/MSP430/10374.html">#10374-D</a>  Interrupt vector "ADC10" does not have an interrupt handler routine.    lnk_msp430g2553.cmd    /2801 test    line 114    C/C++ Problem

Description    Resource    Path    Location    Type

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/MSP430/10374.html">#10374-D</a>  Interrupt vector "TIMER1_A1" does not have an interrupt handler routine.    lnk_msp430g2553.cmd    /2801 test    line 121    C/C++ Problem

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/MSP430/10374.html">#10374-D</a>  Interrupt vector "TIMER1_A0" does not have an interrupt handler routine.    lnk_msp430g2553.cmd    /2801 test    line 122    C/C++ Problem

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/MSP430/10374.html">#10374-D</a>  Interrupt vector "WDT" does not have an interrupt handler routine.    lnk_msp430g2553.cmd    /2801 test    line 119    C/C++ Problem

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/MSP430/10374.html">#10374-D</a>  Interrupt vector "COMPARATORA" does not have an interrupt handler routine.    lnk_msp430g2553.cmd    /2801 test    line 120    C/C++ Problem

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/MSP430/10374.html">#10374-D</a>  Interrupt vector "TIMER0_A1" does not have an interrupt handler routine.    lnk_msp430g2553.cmd    /2801 test    line 117    C/C++ Problem

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/MSP430/10374.html">#10374-D</a>  Interrupt vector "TIMER0_A0" does not have an interrupt handler routine.    lnk_msp430g2553.cmd    /2801 test    line 118    C/C++ Problem

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/MSP430/10374.html">#10374-D</a>  Interrupt vector "USCIAB0TX" does not have an interrupt handler routine.    lnk_msp430g2553.cmd    /2801 test    line 115    C/C++ Problem

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/MSP430/10374.html">#10374-D</a>  Interrupt vector "USCIAB0RX" does not have an interrupt handler routine.    lnk_msp430g2553.cmd    /2801 test    line 116    C/C++ Problem

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/MSP430/10374.html">#10374-D</a>  Interrupt vector "PORT2" does not have an interrupt handler routine.    lnk_msp430g2553.cmd    /2801 test    line 112    C/C++ Problem

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/MSP430/10374.html">#10374-D</a>  Interrupt vector "PORT1" does not have an interrupt handler routine.    lnk_msp430g2553.cmd    /2801 test    line 111    C/C++ Problem

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/MSP430/10374.html">#10374-D</a>  Interrupt vector "NMI" does not have an interrupt handler routine.    lnk_msp430g2553.cmd    /2801 test    line 123    C/C++ Problem

 

Share this post


Link to post
Share on other sites

"write_ws2811" is being used as a variable somewhere but you arent telling the program what it is,  that is like saying "P1OUT = n;" without ever defining "n"  you need an "int n = 0;" somewhere in the top of the file to tell the program what "n" is.  or you are calling function n(); without ever defining that function.

 

search your code for where that is used "write_ws2811" and see what is is being asked to do.

 an alternative is posting the code here and well pick through it :smile:

 

in the code in the other thread I see a lot of references to a function named "write_ws2811_hs" is that related?

Share this post


Link to post
Share on other sites

@@JWoodrell. I'm using code that is posted on this forum. In post #9, chaser.c is one of them. The other code I've tried RobG posted it in post #8. The only code so far to work is from TI's wiki page on blinking an LED.

 

In the chaser code (post #9) it says;

 

void write_ws2811 (uint8_t +data, unsigned length, uint8_t pinmask) ;

Share this post


Link to post
Share on other sites

there is your problem right there...  you are giving the function a prototype 

"void write_ws2811 (uint8_t +data, unsigned length, uint8_t pinmask) ;"

 

but that isn't a function definition.  it is compiling because it is expecting the definition to be "somewhere" but there is none.  you have to write out what that function does.

 

void write_ws2811 (uint8_t +data, unsigned length, uint8_t pinmask) {

blah = blah;

+data blahl

}

 

whatever, but you have to tell it WHAT that function does, not just "how its written"

 

that code expects to be included with a larger project that has that function defined somewhere

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×