Discussion in "Project Help" started by    Deepakvaishu    Jan 11, 2017.
Thu Jan 19 2017, 03:18 pm
#11
my code is working now..
But the next problem which I am getting is
*** FATAL ERROR L250: CODE SIZE LIMIT IN RESTRICTED VERSION EXCEEDED
MODULE: C:\KEIL_V5\C51\LIB\C51S.LIB (-----)
LIMIT: 0800H BYTES
Target not created.
Build Time Elapsed: 00:00:01

I am sing keil uvision 4 software..
what should I do.

plz help.


[ Edited Thu Jan 19 2017, 03:25 pm ]
Fri Jan 20 2017, 06:20 am
#12
Looks like you are using a demo version of Keil.
Either find a way to cut down your code, or get hold of the full version.

Another option is to move to a free compiler such as
http://sdcc.sourceforge.net
 Deepakvaishu like this.
Fri Jan 20 2017, 02:17 pm
#13
Is the steps of programmming of keil and sdcc same?...
I searched on google for getting started with sdcc compiler but i didnt got any tutorial on it...
plz help
Sat Jan 21 2017, 03:05 am
#14
SDCC is a compiler, it turns text (source code) into bytes to load into the 8051.
Keil is a package, it helps you compose the text , and has a built in compiler
to turn that text into bytes.

The Keil compiler needs some of the text (source code) to be written
in a slightly different way to SDCC .

The meaning is the same, but the words vary.
Fortunately it is not too hard to re-write these bits.

It will not be difficult to modify your code for SDCC.

As Keil is a package, it supplies some built in functions, such as uart_string()
SDCC ( and everyone else) uses printf() instead.
You will need to change that.
I have attached a sample program that SDCC will compile for the 8051.

I use CODE::BLOCKS as an editor for SDCC, but there are others.
http://www.codeblocks.org



Attachment


[ Edited Sat Jan 21 2017, 03:11 am ]
 Deepakvaishuajay_bhargav like this.
Sat Jan 21 2017, 10:12 am
#15
Thanks a lot..
I will try with SDCC, or else I will get the full version of keil
Sat Jan 21 2017, 12:18 pm
#16
I should say that setting up CODE::BLOCKS (or any similar editor)
involves setting up packages from more than one site.
Once done though, you edit, compile and re-edit , as in Keil.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

AntoniaRoons
Fri Apr 19 2024, 09:59 pm
carpinteyrowrl
Fri Apr 19 2024, 02:51 pm
DonaldJAX
Fri Apr 19 2024, 01:08 pm
Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am
DonaldKnown
Thu Apr 18 2024, 12:24 am