I am working on a program with 3 arrays. Right now all three arrays contain 13 bytes, but i would like to expand all of those. Unfortunately the compiler makes som kind of memory-error, when I try to expand to 14 bytes per array.
I have attacched the .msg.txt file with the error message.
I have tried to make som investigation of the problem, and when I take a look at the memory while I compile with 12 and 13 bytes in each array i see that the difference in memory isn't very big.
With 13-bytes in each array I get the following memory-summary
With 12-bytes in each array I get the followingMemory Summary:
Program space used E2Fh ( 3631) of 1000h words ( 88.6%)
Data space used C4h ( 196) of 170h bytes ( 53.3%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Data stack space used 0h ( 0) of 60h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
I am using Microchips PIC16F88 as microcontroller.Memory Summary:
Program space used E2Fh ( 3631) of 1000h words ( 88.6%)
Data space used C1h ( 193) of 170h bytes ( 52.4%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Data stack space used 0h ( 0) of 60h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
I would like to hear if there is anything I can do to maybe free up the missing memory og use it in a better way.
I read about that it could have something to do with how the code is distributed into the controllers individual memory-banks.
I have a function in FlowCode which only uses assembly-code, because it drives some time-critical hardware, and I do not want to mess to much around with it. Of some reason FlowCode is pointing to one of the C-blocks with assembly-code in that function as an error result, when the compilation-error occours, as if it is excatly that c-block that is causing the error, which is weird because it does not use any of the arrays.
Thank you in advance
-Andreas