Posted: Thu Nov 13, 2008 5:57 pm Post subject: Error 8: Out of internal memory
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.
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