DSPRelated.com
Forums

Linker error on CW for 56800

Started by Unknown February 1, 2002

I use CodeWarrior IDE 4.1 (buil 0622) for Motorola 56800 on Windows 95. I
have also upgraded with patch 4.0.2 came with SDK 2.4 CDROM.

When I link the simple code of main.c this error occur:
"
Link Error : Symbol Feanpos_table is too far away for a R_56800_WORD
relocation
from section .text in file main.c.
Link failed.
"
Simple code:
=======================
void* Pn;
short Temp;
unsigned short Temp2;
unsigned short ref;

typedef struct /* hook callback info */
{
unsigned short type;
void * address;
const void * low_limit;
const void * high_limit;
} table_row;
static const table_row eanpos_table [ 2 ] =
{
/* type address uplimit
lowlimit */
{ 0x0023, &Temp, &Pn, &Pn
}, /* 2 */
{ 0x1710, &Temp, &Pn, &Pn
} /* 86 */
};
void main (void)
{
Temp2 = eanpos_table[ref - 3000].type;
return; /* C statements */
}
================

Does anyone have the same problem ?
I also attach a simple project if someone want test it !!!
Thank you in advance.
---------------------------------
Giuliano Tognon tel: +39-0444-440061
Software department fax: +39-0444-440229
Quality in Electronic Manufacturing srl e-mail:
Mail: SS11, LocalitSignolo web: www.qem.it
36054 Montebello Vic.no (VI) ITALY
---------------------------------
(See attached file: help.zip)


Attachment (not stored)
help.zip
Type: application/zip


Hi Giuliano,

I checked with our technical support team and they told me that they had a
report on this and hand responded in private e-mail.

If you have any problems with supports reply, feel free to write directly to
me and I'll look into it and see what I can do. I trust this won't be
necessary.

Ron
Giuliano Tognon, <> wrote:

> I use CodeWarrior IDE 4.1 (buil 0622) for Motorola 56800 on Windows 95. I
> have also upgraded with patch 4.0.2 came with SDK 2.4 CDROM.
>
> When I link the simple code of main.c this error occur:
> "
> Link Error : Symbol Feanpos_table is too far away for a R_56800_WORD
> relocation
> from section .text in file main.c.
> Link failed.
> "
> Simple code:
> =======================
> void* Pn;
> short Temp;
> unsigned short Temp2;
> unsigned short ref;
>
> typedef struct /* hook callback info */
> {
> unsigned short type;
> void * address;
> const void * low_limit;
> const void * high_limit;
> } table_row;
> static const table_row eanpos_table [ 2 ] =
> {
> /* type address uplimit
> lowlimit */
> { 0x0023, &Temp, &Pn, &Pn
> }, /* 2 */
> { 0x1710, &Temp, &Pn, &Pn
> } /* 86 */
> };
> void main (void)
> {
> Temp2 = eanpos_table[ref - 3000].type;
> return; /* C statements */
> }
> ================
>
> Does anyone have the same problem ?
> I also attach a simple project if someone want test it !!!
> Thank you in advance.
> ---------------------------------
> Giuliano Tognon tel: +39-0444-440061
> Software department fax: +39-0444-440229
> Quality in Electronic Manufacturing srl e-mail:
> Mail: SS11, LocalitSignolo web: www.qem.it
> 36054 Montebello Vic.no (VI) ITALY
> ---------------------------------
> (See attached file: help.zip)
>
--
Check out the codewarrior.* usenet newsgroups
for assistance with your programming questions.

Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - - http://www.metrowerks.com



Hi All,
I'm very new to DSPs, and find I am in need of some more help.
I have found the
"Digital Signal Processing Applications With Motorola's Dsp56002 Processor"
book,
but wonder if there is a more recent publication. Or is the above book
going to be still very relevant to the DSP568xx series. I have experience
with Motorola micros (HC12 etc.). So it's the DSP bit I still don't get.

Any suggestions most welcome.

Thanks.

Peter L.



Hi,

> I'm very new to DSPs, and find I am in need of some more help.
> I have found the
> "Digital Signal Processing Applications With Motorola's Dsp56002 Processor"
> book,
> but wonder if there is a more recent publication. Or is the above book
> going to be still very relevant to the DSP568xx series. I have experience
> with Motorola micros (HC12 etc.). So it's the DSP bit I still don't get.
Peter,

The book that you have is a good introduction into DSP in general (as the
DSP56002 was a good DSP for Motorola for many years but has now kind of hit
the end of its lifetime), but if you will be specifically using the
DSP56800, I recommend that you try taking a look at the following materials
and use the following resources:

A) DSP5680X User's Manual (DSP56801-7UM/D)- Detailed User's Manual for the
DSP5680X series of processors (801,803,805,807).
B) DSP56800 Family Manual (DSP56800FM/D) - Contains the instruction set for
the DSP568xx and talks about the DSP568xx family.

This documentation will help you with the hardware and detailed chip details
that you need to know.......however the other side of the story is the
software which is also very important for the DSP568xx series of processors.
For this information, I recommend that you try CodeWarriorU.com which has a
course that specifically targets the DSP568xx family of processors and deals
with how to work with the development software (CodeWarrior + Embedded SDK)
that is necessary for success using this part. To get more info, please
visit:

www.codewarrioru.com

Ron

--
Free Programming Courses at CodeWarrior U
<http://www.codewarrioru.com>
Now Including Palm OS Programming & PowerPlant Courses

Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - - http://www.metrowerks.com