• AVR Freaks

AnsweredHot!Several errors like: .config_BFC0FFC0' will not fit in region `config_BFC0FFC0'

Author
RodoPIC
Senior Member
  • Total Posts : 180
  • Reward points : 0
  • Status: offline
2018/04/25 21:08:59 (permalink)
0

Several errors like: .config_BFC0FFC0' will not fit in region `config_BFC0FFC0'

Hi,
This is for MPLAB x 4.15, XC32 v1.44 and MCH 2.05_1
I'm new to harmony. I followed "Creating Your First Project" from harmony_help_volume_I.pdf for a board I have with a PIC32MZ1024EFG100. I have 3 LEDs (PIN23=LED_Red ,PIN24=LED_Yellow, PIN25=LED_Green) connected. I made them blink without a problem. Then I changed the project configuration setting name from "default" to "Real". I'm using REAL ICE to program. All happy I closed MPLABX and shutdown my laptop.
The next day I wanted to use it again and I noticed that the MCH configurator didn't show the names I assigned to the LED pins. After a while I figured that when I changed the project configuration setting name, something got messed up so I used "import" to read the "default" settings and "export" to save them to the new "Real". BTW I imported all. I closed everything and reloaded and when I was asked for the configuration file I clicked the newly created "Real.???" file. After finishing loading I click compile (hammer and broom icon) and the project compiled and programmed fine.
I wanted to change the OSC setting to test the external 12MHz crystal. I used internal FRC the first time. So I lunched the MCH configurator. After making the changes and clicking "Generate code" I clicked the compile icon and this below is what I get. It looks like changing the project setting messed up more than I realized or maybe I should have not imported all.
Can anyone shed some light into these errors pls?
Thanks
 
dist/Real/production/RodoFirstProject.X.production.elf section `.config_BFC0FFC0' will not fit in region `config_BFC0FFC0'
c:\program files (x86)\microchip\xc32\v1.44\bin\bin\gcc\pic32mx\4.8.3...bin/xc32-ld.exe: dist/Real/production/RodoFirstProject.X.production.elf section `.config_BFC0FFC4' will not fit in region `config_BFC0FFC4'
c:\program files (x86)\microchip\xc32\v1.44\bin\bin\gcc\pic32mx\4.8.3...bin/xc32-ld.exe: dist/Real/production/RodoFirstProject.X.production.elf section `.config_BFC0FFC8' will not fit in region `config_BFC0FFC8'
c:\program files (x86)\microchip\xc32\v1.44\bin\bin\gcc\pic32mx\4.8.3...bin/xc32-ld.exe: dist/Real/production/RodoFirstProject.X.production.elf section `.config_BFC0FFCC' will not fit in region `config_BFC0FFCC'
c:\program files (x86)\microchip\xc32\v1.44\bin\bin\gcc\pic32mx\4.8.3...bin/xc32-ld.exe: dist/Real/production/RodoFirstProject.X.production.elf section `.config_BFC0FFDC' will not fit in region `config_BFC0FFDC'
c:\program files (x86)\microchip\xc32\v1.44\bin\bin\gcc\pic32mx\4.8.3...bin/xc32-ld.exe: dist/Real/production/RodoFirstProject.X.production.elf section `.config_BFC0FFF0' will not fit in region `config_BFC0FFF0'
c:\program files (x86)\microchip\xc32\v1.44\bin\bin\gcc\pic32mx\4.8.3...bin/xc32-ld.exe: Link terminated due to previous error(s).
collect2.exe: error: ld returned 255 exit status
make[2]: *** [dist/Real/production/RodoFirstProject.X.production.hex] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 6s)
 
 
 
EDIT: Sorry I can post what the output window shows, I keep getting "ACCESS DENIED" here. I'm erasing and trying to post ...one of this should work...
post edited by RodoPIC - 2018/04/25 21:12:32
#1
aschen0866
Super Member
  • Total Posts : 4505
  • Reward points : 0
  • Joined: 2006/01/08 22:18:32
  • Location: San Diego
  • Status: offline
Re: Several errors like: .config_BFC0FFC0' will not fit in region `config_BFC0FFC0' 2018/04/26 07:38:04 (permalink) ☼ Best Answerby RodoPIC 2018/04/26 14:17:45
5 (2)
You probably have multiple versions of configuration words defined. Search the project, you should only have one place where all the #pragma config's are aggregated together.
#2
RodoPIC
Senior Member
  • Total Posts : 180
  • Reward points : 0
  • Status: offline
Re: Several errors like: .config_BFC0FFC0' will not fit in region `config_BFC0FFC0' 2018/04/26 11:04:03 (permalink)
0
You're correct. I have a copy of the project that compiles if I don't run and generate code with the harmony configurator (MCHC). This project shows system_init.c under "default" (I'll try to include pictures with this post). It is the only copy. If I run and generate code with MCHC then a new copy of "Real" shows up that includes system_init.c again so now there are two copies of the configuration bits. I removed it from the project (not from the disk) and try to compile but the errors do not go away. I check to see where the directive to include these files was but I got some xml files.
Any ideas to fix this? This isn't a big or important project at this point so I can just start from scratch but it would be nice to know how to fix the problem and how to avoid it in the future.
 
Thanks
 
post edited by RodoPIC - 2018/04/27 09:41:35
#3
RodoPIC
Senior Member
  • Total Posts : 180
  • Reward points : 0
  • Status: offline
Re: Several errors like: .config_BFC0FFC0' will not fit in region `config_BFC0FFC0' 2018/04/26 14:17:50 (permalink)
0
Well... It looks like I fixed it. I run MCHC and after it loaded I remove the old "default" folder (and sub folders) from the project. Then click Generate Code in MCHC. After it was done I click compile and I got no errors.
#4
Mohammed_Hassan
Starting Member
  • Total Posts : 31
  • Reward points : 0
  • Joined: 2019/03/13 06:05:20
  • Location: 0
  • Status: offline
Re: Several errors like: .config_BFC0FFC0' will not fit in region `config_BFC0FFC0' 2019/07/31 05:57:56 (permalink)
0
I have the same error! 
section `.config_BFC0FFDC' will not fit in region `config_BFC0FFDC'
 
RodoPIC
Well... It looks like I fixed it. I run MCHC and after it loaded I remove the old "default" folder (and sub folders) from the project. Then click Generate Code in MCHC. After it was done I click compile and I got no errors.


I tried this solution but also the same error again! 


Could anyone help please? 
#5
Paul PortSol
Super Member
  • Total Posts : 503
  • Reward points : 0
  • Joined: 2015/07/03 11:52:03
  • Location: Newfoundland, Canada
  • Status: offline
Re: Several errors like: .config_BFC0FFC0' will not fit in region `config_BFC0FFC0' 2019/07/31 06:30:00 (permalink)
4 (1)
To stop MHC from generating a file you no longer want you can:
** Comment out all lines in the file (instead of deleting the file). 
** Then at least MHC will prompt you before putting the lines back in, and you can see that you purposely commented them out
#6
Mohammed_Hassan
Starting Member
  • Total Posts : 31
  • Reward points : 0
  • Joined: 2019/03/13 06:05:20
  • Location: 0
  • Status: offline
Re: Several errors like: .config_BFC0FFC0' will not fit in region `config_BFC0FFC0' 2019/07/31 06:42:37 (permalink)
1 (1)
Paul PortSol
To stop MHC from generating a file you no longer want you can:
** Comment out all lines in the file (instead of deleting the file). 
** Then at least MHC will prompt you before putting the lines back in, and you can see that you purposely commented them out


which files do you mean? 
 Could you clarify the reason for this error to me please? 
I am pretty new to microchip and harmony that's why it is not easy to get your meaning directly .. sorry for that
 
regards,
#7
ric
Super Member
  • Total Posts : 24180
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: Several errors like: .config_BFC0FFC0' will not fit in region `config_BFC0FFC0' 2019/07/31 20:55:25 (permalink) ☄ Helpfulby Mohammed_Hassan 2019/08/01 04:57:48
4 (1)
Mohammed_Hassan
 Could you clarify the reason for this error to me please?

The reason was given in post#2.
It means your project contains two copies of the code setting the configuration bits.
They must be in ONE C file only.
Do not put them into a header file that is included into multiple C files.
 
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#8
Mohammed_Hassan
Starting Member
  • Total Posts : 31
  • Reward points : 0
  • Joined: 2019/03/13 06:05:20
  • Location: 0
  • Status: offline
Re: Several errors like: .config_BFC0FFC0' will not fit in region `config_BFC0FFC0' 2019/08/01 04:57:36 (permalink)
0
Thank you ,, It is solved now (Y) 
#9
ric
Super Member
  • Total Posts : 24180
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: Several errors like: .config_BFC0FFC0' will not fit in region `config_BFC0FFC0' 2019/08/01 04:58:44 (permalink)
0
What had you done?
i.e. what did you have to change to fix it?
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#10
Mohammed_Hassan
Starting Member
  • Total Posts : 31
  • Reward points : 0
  • Joined: 2019/03/13 06:05:20
  • Location: 0
  • Status: offline
Re: Several errors like: .config_BFC0FFC0' will not fit in region `config_BFC0FFC0' 2019/08/01 05:03:09 (permalink)
0
ric
What had you done?
i.e. what did you have to change to fix it?
 


I found some that actually I have 2 c files sets the configuration bits using #pragma ,, 
Just commented the generated one from harmony and used mine.
#11
Jump to:
© 2019 APG vNext Commercial Version 4.5