hm_fa_da
Full Member level 5
Hi,
I am new in C programming language, but experienced in asm for 8051 and AVR ...
I'm trying to drive a segment LCD in Stm32L476 discovery board, i could do it well but i see a problem when using bitmap table, i use a table to assign true active segments for each number.
i used a 3D array for this purpose:
when i declare this constant "upper" than main() function (in global space), it works fine.
but when i declare it "in" main() function it works only if the size of array be decreased to :
( first dimension decreased from 6 to 2)
otherwise if i use more than 2 in first dimension, the Code compiles without any Error but it doesn't run at MCU !
i just put a simple LED on command at the first line of code to test.
What's the problem ?!
is there anything related to size limitation ?
i'm using Keil V5.2 compiler.
I am new in C programming language, but experienced in asm for 8051 and AVR ...
I'm trying to drive a segment LCD in Stm32L476 discovery board, i could do it well but i see a problem when using bitmap table, i use a table to assign true active segments for each number.
i used a 3D array for this purpose:
Code:
const uint32_t Table[6][8][10] = {{ { 0x00400010, ....
but when i declare it "in" main() function it works only if the size of array be decreased to :
Code:
const uint32_t Table[2][8][10] = {{ { 0x00400010, .....
otherwise if i use more than 2 in first dimension, the Code compiles without any Error but it doesn't run at MCU !
i just put a simple LED on command at the first line of code to test.
What's the problem ?!
is there anything related to size limitation ?
i'm using Keil V5.2 compiler.