Bonjour,
J'ai besoin de votre aide SVP le plus vite possible :s
je veux tester la capacité maximale de la mémoire RAM du PIC18F46K20, j'utilise MPLAB X , j'ai fais le programme suivant :
et quand je compile , on m'affiche l'erreur suivante :Code:#include <p18cxxx.h> #include <stdlib.h> void main(void); int i; int mot[251]; int duree[251]; void main(void) { for(i=0 ; i<251 ; i++) { mot[i]=0xFF; duree[i]=0xFF; } while(1); }
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `C:/Users/ACER/MPLABXProjects/code_1.X'
make -f nbproject/Makefile-default.mk dist/default/production/code_1.X.production.hex
make[2]: Entering directory `C:/Users/ACER/MPLABXProjects/code_1.X'
"C:\Program Files\Microchip\mplabc18\v3.41 \bin\mcc18.exe" -p18F46K20 -I "C:\Program Files\Microchip\mplabc18\v3.41 \bin"\\..\\h -fo build/default/production/mainp18.o mainp18.c
MPLAB C18 v3.41 (evaluation)
Copyright 2000-2011 Microchip Technology Inc.
Days remaining until evaluation becomes feature limited: 53
WARNING: The procedural abstraction optimization will not be supported when the evaluation becomes feature limited.
"C:\Program Files\Microchip\mplabc18\v3.41 \bin\mplink.exe" -p18f46k20 -w -z__MPLAB_BUILD=1 -u_CRUNTIME -l "C:\Program Files\Microchip\mplabc18\v3.41 \bin"\\..\\lib -o dist/default/production/code_1.X.production.cof build/default/production/mainp18.o
MPLINK 4.42, Linker
Device Database Version 1.7
Copyright (c) 1998-2011 Microchip Technology Inc.
Error - section '.udata_mainp18.o' can not fit the section. Section '.udata_mainp18.o' length=0x000003ee
Errors : 1
make[2]: Leaving directory `C:/Users/ACER/MPLABXProjects/code_1.X'
make[1]: Leaving directory `C:/Users/ACER/MPLABXProjects/code_1.X'
make[2]: *** [dist/default/production/code_1.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 2s)
alors que dois-je faire ??
Mercii
-----