Author Topic: errorcode 256  (Read 6214 times)

Offline stef180

  • Single posting newcomer
  • *
  • Posts: 3
errorcode 256
« on: April 14, 2011, 08:36:22 am »
Hello,
In first, i'm sorry for my very bad english. I'm French and i have a very bad level in english :?
I use code::blocks for make pic program but i have this error message:

-------------- Build: Debug in test ---------------

Compiling: main.c-------------- Build: Debug in test ---------------

Compiling: main.c
at 1: warning 119: don't know what to do with file 'pic16f877a'. file extension unsupported
+ "/usr/bin/sdcpp" -nostdinc -Wall -I"/usr/share/sdcc/include" -I"/usr/share/sdcc/lib" -I"/usr/share/sdcc/scripts" -obj-ext=.o -DSDCC_MODEL_SMALL -DSDCC=290 -DSDCC_REVISION=5416 -DSDCC_pic14 -D__pic14 -DSDCC_PROCESSOR="16f877a" -isystem "/usr/bin/../share/sdcc/include/pic14" -isystem "/usr/share/sdcc/include/pic14" -isystem "/usr/bin/../share/sdcc/include" -isystem "/usr/share/sdcc/include" -isystem "/usr/bin/../share/sdcc/include/pic" -isystem "/usr/share/sdcc/include/pic" "main.c"
+ "/usr/bin/gpasm" -g -c "obj/Debug/main.asm"
Linking console executable: bin/Debug/test
at 1: warning 119: don't know what to do with file 'pic16f877a'. file extension unsupported
message: using default linker script "/usr/share/gputils/lkr/16f877a.lkr"
warning: relocation of section "UDL_main_0" failed, relocating to a shared memory location
error: no target memory available for section "UDL_main_0"
+ "/usr/bin/gplink" -I"/usr/bin/../share/sdcc/lib" -I"/usr/share/sdcc/lib" -I"/usr/bin/../share/sdcc/lib/pic" -I"/usr/share/sdcc/lib/pic" -c -w -r -o bin/Debug/test obj/Debug/main.rel /usr/share/sdcc/lib/pic/pic16f877a.lib /usr/share/sdcc/lib/pic/libsdcc.lib libsdcc.lib pic16f877a.lib
+ "/usr/bin/gplink" -I"/usr/bin/../share/sdcc/lib" -I"/usr/share/sdcc/lib" -I"/usr/bin/../share/sdcc/lib/pic" -I"/usr/share/sdcc/lib/pic" -c -w -r -o bin/Debug/test obj/Debug/main.rel /usr/share/sdcc/lib/pic/pic16f877a.lib /usr/share/sdcc/lib/pic/libsdcc.lib libsdcc.lib pic16f877a.lib returned errorcode 256
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


have already had you this message?
which is its resolution ?
thank for your help !

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7070
    • My Best Post
Re: errorcode 256
« Reply #1 on: April 14, 2011, 04:46:43 pm »
Turn on Full Compiler Logging.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Version of CodeBlocks and Compiler may matter in this case.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stef180

  • Single posting newcomer
  • *
  • Posts: 3
Re: errorcode 256
« Reply #2 on: April 14, 2011, 05:43:20 pm »
thank for your answer

I've already selected "Full command line" but i've always my error

the version is:
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.0 #5416 (Feb  3 2010) (UNIX)
code::blocks : 10.05 rev0

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7070
    • My Best Post
Re: errorcode 256
« Reply #3 on: April 14, 2011, 06:14:12 pm »
I've already selected "Full command line" but i've always my error

Then look at the full command line and fix what is wrong.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stef180

  • Single posting newcomer
  • *
  • Posts: 3
Re: errorcode 256
« Reply #4 on: April 15, 2011, 05:05:32 pm »
thank you for your help
I've find the problem:

If i write
while(RD7 == 1);
Code::Blocks return me an error

And if i write
while(RD7 != 0);
Code::Blocks return me no error

I don't know why but it's functional !  :D

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13162
    • Travis build status
Re: errorcode 256
« Reply #5 on: April 15, 2011, 05:41:54 pm »
It is not C::B, but the compiler, who is returning the error, C::B just displays it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]