Linker Error: _store_far_8 undefined

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linker Error: _store_far_8 undefined

Jump to solution
1,412 Views
Donal
Contributor II
Hello all,

I'm having a problem with defining a parameter of the following function as __far. I want to be able to pass a far pointer for a memory location in paged ROM to this function for erasing flash.

extern void flash_start_erase(unsigned char * __far start_address, ...)
{
...
}

When I compile this, I get an linker error: error _store_far_8 undefined.

Does anyone know what I am doing wrong?

Codewarrior 3.1, dg128.

Cheers,
Donal
Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
921 Views
Donal
Contributor II
0 Kudos
Reply
1 Reply
922 Views
Donal
Contributor II
Ahhh, found the solution here: http://forums.freescale.com/freescale/board/message?board.id=CWCOMM&message.id=1863&query.id=12301#M...

Needed to add the datapage.c file to my project.

Donal
0 Kudos
Reply