Требуется программист в Зеленограде
- обработка данных с датчиков; ColdFire; 40 тыс. e-mail:jobsmp@pochta.ru |
#include < pic18.h >
// заводим массив констант для примера
char const massiv[2]= { 0x00, 0x01 };
// заводим переменную
char abc;
void main(void)
{
for(;;)
{
// работаем с элементом массива
abc=massiv[1];
}
}
------------
3. Результат компиляции
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\PIC\test_save_i2s\main.obj".
Clean: Deleted file "C:\PIC\test_save_i2s\main.cce".
Clean: Deleted file "test_slave_i2s.cof".
Clean: Done.
Executing: "D:\Program Files\HI-TECH Software\PICC-18\pro\9.61\bin\picc18.exe" -C -E"main.cce" "main.c" -O"main.obj" -Q -MPLAB -18F1320
Advisory[1207] : some of the command line options you are using are now obsolete
Advisory[1208] : use --help option or refer to the user manual for option details
Executing: "D:\Program Files\HI-TECH Software\PICC-18\pro\9.61\bin\picc18.exe" -E"test_slave_i2s.lde" "C:\PIC\test_save_i2s\main.obj" -M"test_slave_i2s.map" -O"test_slave_i2s.cof" -O"test_slave_i2s.hex" -Q -MPLAB -18F1320
Memory Usage Map:
Program space:
CODE used 1Ch ( 28) of 2000h bytes ( 0.3%)
CONST used 0h ( 0) of 2000h bytes ( 0.0%)
SMALLCONST used 0h ( 0) of 1F00h bytes ( 0.0%)
MEDIUMCONST used 0h ( 0) of 1F00h bytes ( 0.0%)
Data space:
RAM used 0h ( 0) of 100h bytes ( 0.0%)
BIGRAM used 0h ( 0) of 100h bytes ( 0.0%)
BANK0 used 0h ( 0) of 100h bytes ( 0.0%)
COMRAM used 0h ( 0) of 80h bytes ( 0.0%)
NVRAM used 0h ( 0) of 100h bytes ( 0.0%)
EEPROM space:
EEDATA used 0h ( 0) of 100h bytes ( 0.0%)
ID Location space:
IDLOC used 0h ( 0) of 8h nibbles ( 0.0%)
Configuration bits:
CONFIG used 0h ( 0) of 7h words ( 0.0%)
Extra space:
SMALLCONS used 2h ( 2) of 1h unit (200.0%)
Summary:
Program space used 1Ch ( 28) of 2000h bytes ( 0.3%)
Data space used 0h ( 0) of 100h bytes ( 0.0%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
ID Location space used 0h ( 0) of 8h nibbles ( 0.0%)
Configuration bits used 0h ( 0) of 7h words ( 0.0%)
used 2h ( 2) of 1h unit (200.0%)
Advisory[1207] : some of the command line options you are using are now obsolete
Advisory[1208] : use --help option or refer to the user manual for option details
Loaded C:\PIC\test_save_i2s\test_slave_i2s.cof.
BUILD SUCCEEDED: Sun Apr 01 09:23:33 2007
----------------------------------
4. Проблемы начинаются после установки вылеченной версии
Тот же исходный текст вызывает ошибку:
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\PIC\test_save_i2s\main.obj".
Clean: Deleted file "C:\PIC\test_save_i2s\main.cce".
Clean: Deleted file "test_slave_i2s.cof".
Clean: Done.
Executing: "D:\Program Files\HI-TECH Software\PICC-18\pro\9.61\bin\picc18.exe" -C -E"main.cce" "main.c" -O"main.obj" -Q -MPLAB -18F1320
Advisory[1207] : some of the command line options you are using are now obsolete
Advisory[1208] : use --help option or refer to the user manual for option details
Error[800] C:\PIC\test_save_i2s\main.c 143 : undefined symbol "_massiv"
Halting build on first failure as requested.
BUILD FAILED: Sun Apr 01 09:27:16 2007
--------------------
Причем строки 143 нет как класса нигде.
Просьба помочь больному.