реклама на сайте
подробности

 
 
> IAR ругается на __farflash
west329_
сообщение Sep 29 2008, 10:36
Сообщение #1


Местный
***

Группа: Свой
Сообщений: 378
Регистрация: 10-09-07
Из: UKR/Voz
Пользователь №: 30 423



Проект изначально писался под мегу128, после отладки программы попытались перейти на другой контроллер а именно мегу162.
Компилятор сразу выругался на обьявленные процедуры

Код
Error[Pa043]: the keyword "__farflash" is not available with the  E:\RADIO\IAR4.21A\avr\tutor\Xbox4\main.c 43   current settings   Error[Pe167]: argument of type "char __flash *" is incompatible with  E:\RADIO\IAR4.21A\avr\tutor\Xbox4\main.c 125   parameter of type "unsigned char *"   Warning[Pe111]: statement is unreachable E:\RADIO\IAR4.21A\avr\tutor\Xbox4\main.c 221   Error[Pe167]: argument of type "char __flash *" is incompatible with  E:\RADIO\IAR4.21A\avr\tutor\Xbox4\main.c 238   parameter of type "unsigned char *"   Error[Pe167]: argument of type "char __flash *" is incompatible with  E:\RADIO\IAR4.21A\avr\tutor\Xbox4\main.c 258   parameter of type "unsigned char *"   Error[Pe167]: argument of type "char __flash *" is incompatible with  E:\RADIO\IAR4.21A\avr\tutor\Xbox4\main.c 262   parameter of type "unsigned char *"   Error[Pe167]: argument of type "char __flash *" is incompatible with  E:\RADIO\IAR4.21A\avr\tutor\Xbox4\main.c 275   parameter of type "unsigned char *"   Error[Pe167]: argument of type "char __flash *" is incompatible with  E:\RADIO\IAR4.21A\avr\tutor\Xbox4\main.c 290   parameter of type "unsigned char *"   Error[Pe167]: argument of type "char __flash *" is incompatible with  E:\RADIO\IAR4.21A\avr\tutor\Xbox4\main.c 314   parameter of type "unsigned char *"   Error[Pe167]: argument of type "char __flash *" is incompatible with  E:\RADIO\IAR4.21A\avr\tutor\Xbox4\main.c 329   parameter of type "unsigned char *"   Error[Pe167]: argument of type "char __flash *" is incompatible with  E:\RADIO\IAR4.21A\avr\tutor\Xbox4\main.c 347   parameter of type "unsigned char *"   Error[Pe167]: argument of type "char __flash *" is incompatible with  E:\RADIO\IAR4.21A\avr\tutor\Xbox4\main.c 356   parameter of type "unsigned char *"   Error[Pe167]: argument of type "char __flash *" is incompatible with  E:\RADIO\IAR4.21A\avr\tutor\Xbox4\main.c 364   parameter of type "unsigned char *"


описание самих процедур выглядит так
Цитата
extern void PrintDebug(unsigned char __farflash stringD[25]);


в сырцах ничего особенного не менялось.

ключ в экстраопциях учтён --string_literals_in_flash

подскажите куда копать ?
Go to the top of the page
 
+Quote Post
 
Start new topic
Ответов
MrYuran
сообщение Sep 29 2008, 11:35
Сообщение #2


Беспросветный оптимист
******

Группа: Свой
Сообщений: 4 640
Регистрация: 26-12-07
Из: Н.Новгород
Пользователь №: 33 646



Цитата(west329_ @ Sep 29 2008, 14:36) *
Проект изначально писался под мегу128, после отладки программы попытались перейти на другой контроллер а именно мегу162.

Цитата
__farflash - ну так это только для процов с флешом больше чем 64К, каковым и была Mega128.

Да уж, со стороны может показаться, что 162 круче, чем 128...


--------------------
Программирование делится на системное и бессистемное. ©Моё :)
— а для кого-то БГ — это Bill Gilbert =)
Go to the top of the page
 
+Quote Post



Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 23rd July 2025 - 00:21
Рейтинг@Mail.ru


Страница сгенерированна за 0.0153 секунд с 7
ELECTRONIX ©2004-2016