chipKIT® Development Platform

Inspired by Arduino™

Uecide linker message

Created Wed, 15 Oct 2014 15:41:01 +0000 by tcsaba101


tcsaba101

Wed, 15 Oct 2014 15:41:01 +0000

I have got this message.

I was using an external editor Notepad++ while it happened.

It is the same if I compile an other code file was ok before.

The console message:

Compiling... Compiling Sketch... Compiling Core... ...api Compiling Libraries... Linking sketch... C:/Program Files (x86)/Majenko Technologies/UECIDE/Uecide settings/compilers/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: C:\Users\csaba.TMARKTDOMAIN\Documents_a_14_11_Projektek\Arduino_Pic\Uecide_Pde\BATLOG_01_01\build/BATLOG_01_01.elf section .bss' will not fit in region kseg1_data_mem' C:/Program Files (x86)/Majenko Technologies/UECIDE/Uecide settings/compilers/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: address 0xa0004d90 of C:\Users\csaba.TMARKTDOMAIN\Documents_a_14_11_Projektek\Arduino_Pic\Uecide_Pde\BATLOG_01_01\build/BATLOG_01_01.elf section .heap' is not within region kseg1_data_mem' C:/Program Files (x86)/Majenko Technologies/UECIDE/Uecide settings/compilers/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: address 0xa0005590 of C:\Users\csaba.TMARKTDOMAIN\Documents_a_14_11_Projektek\Arduino_Pic\Uecide_Pde\BATLOG_01_01\build/BATLOG_01_01.elf section .stack' is not within region kseg1_data_mem' C:/Program Files (x86)/Majenko Technologies/UECIDE/Uecide settings/compilers/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: address 0xa0005800 of C:\Users\csaba.TMARKTDOMAIN\Documents_a_14_11_Projektek\Arduino_Pic\Uecide_Pde\BATLOG_01_01\build/BATLOG_01_01.elf section .ramfunc' is not within region kseg1_data_mem' C:/Program Files (x86)/Majenko Technologies/UECIDE/Uecide settings/compilers/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: address 0xa0004d90 of C:\Users\csaba.TMARKTDOMAIN\Documents_a_14_11_Projektek\Arduino_Pic\Uecide_Pde\BATLOG_01_01\build/BATLOG_01_01.elf section .heap' is not within region kseg1_data_mem' C:/Program Files (x86)/Majenko Technologies/UECIDE/Uecide settings/compilers/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: address 0xa0005590 of C:\Users\csaba.TMARKTDOMAIN\Documents_a_14_11_Projektek\Arduino_Pic\Uecide_Pde\BATLOG_01_01\build/BATLOG_01_01.elf section .stack' is not within region kseg1_data_mem' C:/Program Files (x86)/Majenko Technologies/UECIDE/Uecide settings/compilers/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: address 0xa0005800 of C:\Users\csaba.TMARKTDOMAIN\Documents_a_14_11_Projektek\Arduino_Pic\Uecide_Pde\BATLOG_01_01\build/BATLOG_01_01.elf section .ramfunc' is not within region kseg1_data_mem' C:/Program Files (x86)/Majenko Technologies/UECIDE/Uecide settings/compilers/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/bin/ld.exe: region `kseg1_data_mem' overflowed by 6144 bytes collect2: ld returned 1 exit status Failed linking sketch


majenko

Wed, 15 Oct 2014 17:39:54 +0000

BATLOG_01_01.elf section .bss' will not fit in region kseg1_data_mem'

Your BSS is too big, supposedly.

That means you have too much data.

region `kseg1_data_mem' overflowed by 6144 bytes

6144 bytes too much data.

What board / chip are you compiling for? Do you have any large arrays in your program?


tcsaba101

Wed, 15 Oct 2014 19:14:40 +0000

This is a Fubarino SD.

Meantime I have found the mistake. The board definition has been changed by accident.

This morning I was brushing the code and it has been compiled without problem many times, using the same size array (about 8 kbyte). Then I had used the "Undo" function in editing, and -as many times before- uecide scrambled my code.

I had to use the previous version to rejuvenate the code, I did it in Notepad++ as external editor. I compiled during the rejuvenation process, and this error happened.

Anyway the Undo made me many times code scrambling in Uecide. What is the problem with Undo? What can be done?

Thanks, Csaba


majenko

Wed, 15 Oct 2014 22:36:18 +0000

Scrambled? In what way did it scramble it?


tcsaba101

Thu, 16 Oct 2014 07:37:19 +0000

I wanted to undo a line deletion. Then it jump to total different code part and cut or copy there an other code part. So i have to put the prev version and this code on paralell windows and check line by line.

Actually this case there was two of this scramble both was cut and paste.

Now i cant recreate this, but this was not the first time. Next time I try to send you evidence.


majenko

Thu, 16 Oct 2014 12:49:00 +0000

Cheers. I don't like bugs like these - ones that vanish when you try and replicate them ;)

The copy/paste and undo are all handled by the editor widget, so there shouldn't be any problems with it, except one that I do know of (which is quite a nasty surprise sometimes - I really must get around to fixing it), and that is if you press undo immediately after opening a file it erases all the content. I need to find out how to purge the undo buffer after populating the widget...