Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Error 8: Out of internal memory

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-8051
View previous topic :: View next topic  
Author Message
thiagorod

Bascom Member



Joined: 13 Nov 2008
Posts: 109

brazil.gif
PostPosted: Thu Nov 13, 2008 5:57 pm    Post subject: Error 8: Out of internal memory Reply with quote

I am trying to write a program that uses some arrays. As a test, I have declared the following arrays: (the program has those lines only)

dim canal_1(4) as byte
canal_1(1) = &H0B
canal_1(2) = &H12
canal_1(3) = &H85
canal_1(4) = 02

dim canal_2(4) as byte
canal_2(1) = &H0B
canal_2(2) = &H12
canal_2(3) = &H85
canal_2(4) = 02

dim canal_3(4) as byte
canal_3(1) = &H0B
canal_3(2) = &H12
canal_3(3) = &H85
canal_3(4) = 02

dim canal_4(4) as byte
canal_4(1) = &H0B
canal_4(2) = &H12
canal_4(3) = &H85
canal_4(4) = 02

dim canal_5(4) as byte
canal_5(1) = &H0B
canal_5(2) = &H12
canal_5(3) = &H85
canal_5(4) = 02

dim canal_6(4) as byte
canal_6(1) = &H0B
canal_6(2) = &H12
canal_6(3) = &H85
canal_6(4) = 02

dim canal_7(4) as byte
canal_7(1) = &H0B
canal_7(2) = &H12
canal_7(3) = &H85
canal_7(4) = 02

dim canal_8(4) as byte '<- program stops here
canal_8(1) = &H0B
canal_8(2) = &H12
canal_8(3) = &H85
canal_8(4) = 02

dim canal_9(4) as byte
canal_9(1) = &H0B
canal_9(2) = &H12
canal_9(3) = &H85
canal_9(4) = 02

end

But when I compile, the program stops where indicated, with Error 8: Out of internal memory. My microcontroller is a 89S52. And I will need to declare much more arrays. What is wrong? Is there any better way to declare arrays, like : dim x(2) as byte = (1 , 2) ?? I am using version 2.0.12 of BASCOM.

Thanks
Back to top
View user's profile
thiagorod

Bascom Member



Joined: 13 Nov 2008
Posts: 109

brazil.gif
PostPosted: Fri Nov 14, 2008 3:00 pm    Post subject: Reply with quote

Resolved. Very Happy
Back to top
View user's profile
sakaz

Bascom Member



Joined: 02 May 2007
Posts: 99

blank.gif
PostPosted: Sat Nov 23, 2013 3:58 pm    Post subject: Reply with quote

how did you resolve this problem?

Shan
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-8051 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum