I need help with RAM usage please.
Posted: Wed Jun 01, 2016 10:46 am
Hello all
Before anyone moans at me, I did see the other topic about this and i did read it and i did try to use the solution given in it but im still using to much RAM. The program isn't very complicated nor is it excessively long.
(I am open to constructive criticism but please go easy on me im still a serious n00b)
I am will attach the .c file (complied by flow code V5)
and i will attach the flow chart file.
Any tips and tricks to help me use less RAM will be greatly appreciated.
The compiler Error:
Memory Usage Report
===================
Error: No remaining RAM block (on target) big enough for:
'CompTempVar2252' size:1 bytes
'CompTempVar2254' size:1 bytes
'CompTempVar2255' size:1 bytes
'$ret' size:2 bytes
'bInterruptsEnabled' size:1 bytes
'del' size:1 bytes
RAM available:64 bytes, used:66 bytes (103.1%), free:-2 bytes (-3.1%),
Heap size:0 bytes, Heap max single alloc:0 bytes
ROM available:1024 words, used:0 words (0.0%), free:1024 words (100.0%)
failure
Return code = -2
Flowcode was unable to assemble the ASM file due to the following errors:
FINISHED
The chip im using : 16f676 Thank you in advance.
Before anyone moans at me, I did see the other topic about this and i did read it and i did try to use the solution given in it but im still using to much RAM. The program isn't very complicated nor is it excessively long.
(I am open to constructive criticism but please go easy on me im still a serious n00b)
I am will attach the .c file (complied by flow code V5)
and i will attach the flow chart file.
Any tips and tricks to help me use less RAM will be greatly appreciated.
The compiler Error:
Memory Usage Report
===================
Error: No remaining RAM block (on target) big enough for:
'CompTempVar2252' size:1 bytes
'CompTempVar2254' size:1 bytes
'CompTempVar2255' size:1 bytes
'$ret' size:2 bytes
'bInterruptsEnabled' size:1 bytes
'del' size:1 bytes
RAM available:64 bytes, used:66 bytes (103.1%), free:-2 bytes (-3.1%),
Heap size:0 bytes, Heap max single alloc:0 bytes
ROM available:1024 words, used:0 words (0.0%), free:1024 words (100.0%)
failure
Return code = -2
Flowcode was unable to assemble the ASM file due to the following errors:
FINISHED
The chip im using : 16f676 Thank you in advance.