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

 
 
> декларирование переменных (перемещаемый код)
ilya30
сообщение Sep 22 2006, 19:45
Сообщение #1





Группа: Новичок
Сообщений: 8
Регистрация: 14-09-06
Пользователь №: 20 389



помогите разобраться с ошибкой...

текст программы (из заготовки поставляемой в пакете МПЛАБ):

list p=16f874 ; list directive to define processor
#include <p16f874.inc> ; processor specific variable definitions

;***** VARIABLE DEFINITIONS
udata
w_temp res 1 ; variable used for context saving
status_temp res 1 ; variable used for context saving
count res 1 ; temporary variable

RESET_VECTOR CODE 0x000 ; processor reset vector
movlw high start ; load upper byte of 'start' label
movwf PCLATH ; initialize PCLATH
goto start ; go to beginning of program

MAIN CODE
start
nop ; code starts here (example)
goto start
END ; directive 'end of program'


выдает ошибку:

MPLINK 4.05, Linker
Copyright © 2006 Microchip Technology Inc.
Error - section '.udata' can not fit the section. Section '.udata' length=0x00000003
Errors : 1


линкерный файл стандартный из пакета (МПЛАБ)
Go to the top of the page
 
+Quote Post



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

 


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


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