Linker Error: _store_far_8 undefined

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Linker Error: _store_far_8 undefined

跳至解决方案
1,132 次查看
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
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
641 次查看
Donal
Contributor II
0 项奖励
回复
1 回复
642 次查看
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 项奖励
回复