View previous topic :: View next topic |
Author |
Message |
setan_paran
Joined: 21 Nov 2007 Posts: 3 Location: jember
|
Posted: Tue Jul 01, 2008 8:11 pm Post subject: bascom51 problem |
|
|
I USE AT89S51 FOR MY PROJECT, BUT WHEN I INITIAL VARIABEL AS STRING MORE THAN ONE, I GET MASSAGE " OUT OF INTERNAL MEMORI IN FILE"
LIKE:
Dim Msg As String * 20
Dim Msg3 As String * 26
Dim Msg2 As Byte
Dim Msg4 As Byte
Dim Dum As Byte
Dim Msg5 As String * 6
WHY LIKE THIS? AND WHAT MUST I DO?
Mr. ADMIN. OR ANY MEMBERS PLEASE HELP ME |
|
Back to top |
|
|
Wael
Joined: 10 Jul 2008 Posts: 3
|
Posted: Thu Jul 10, 2008 6:43 pm Post subject: |
|
|
as i known that mean u must have external memory in ur hard ware
BUT the proplem here how make bascom compiler to know about external memory or add external memory to compiler .
i wanna know that, |
|
Back to top |
|
|
binu_ji
Joined: 07 Jan 2006 Posts: 17
|
Posted: Sun Jul 13, 2008 2:43 pm Post subject: |
|
|
Increase the Byte END value from Options->Compiler->Misc and try |
|
Back to top |
|
|
Wael
Joined: 10 Jul 2008 Posts: 3
|
Posted: Sun Jul 13, 2008 7:31 pm Post subject: |
|
|
i did that until FF and still read that error
i wanna advice in that,
hint:
i have external memory in my hard ware |
|
Back to top |
|
|
Gianni
Joined: 09 Jul 2004 Posts: 61 Location: Italy
|
Posted: Tue Jul 15, 2008 12:37 pm Post subject: |
|
|
$romstart = &H0 'code
$ramstart = &H0 ' XRAM
$ramsize = &H200 ' XRAM
Regards |
|
Back to top |
|
|
baby_gauss
Joined: 15 Jul 2008 Posts: 3
|
Posted: Tue Jul 15, 2008 11:35 pm Post subject: |
|
|
Hi,
Just a thought, if you are using xram you must tell the compiler. There are two ways of doing this: $default XRAM
With the above statement only xram will be used, alternatively when you dimension variables and strings you can mix IRAM and XRAM
DIM hello as XRAM or DIM hello as IRAM.
My advice is to use $default XRAM.
Cheers
Darren |
|
Back to top |
|
|
Wael
Joined: 10 Jul 2008 Posts: 3
|
Posted: Thu Jul 17, 2008 3:28 pm Post subject: |
|
|
Thanks Darren i will take this advice , i apprtiate , thanks Gianni tooand for any help or personal connection here`s my mail wael_1616@yahoo.com |
|
Back to top |
|
|
Aristar
Joined: 13 Sep 2008 Posts: 7
|
Posted: Sat Sep 13, 2008 10:32 am Post subject: |
|
|
You must before use any thing define mcu
sample : REG51.dat
the default MCU is 89c2051 and it has small ram !
Best Regards! |
|
Back to top |
|
|
|