LFSintegrity show this - pretty near an EDGE case 64KB to 96 KB ITCM:
Code:
RAM1: 22.79% of 512 kB used.
Code (ITCM, 32 kB Blocks): 65.71 kB
Variables (DTCM): 20.69 kB
Available for Variables: 395.31 kB
RAM2: 2.36% of 512 kB used.
Variables (DMAMEM): 12.09 kB
Available for Heap: 499.91 kB
EXTMEM: not used.
FLASH: 1.11% of 7936 kB used.
Code and Constants: 88.13 kB
So having to do MATH (and assume the last digit) I see I broke into block @3 of ITCM for 1752 bytes of code.
And marking :: FLASHMEM void setup() {
RAM1: 22.79% of 512 kB used.
Code (ITCM, 32 kB Blocks): 65.48 kB
Another small func down a few bytes - Still 96KB : FLASHMEM void makeRootDirs() {
Code (ITCM, 32 kB Blocks): 65.43 kB
And another small func down a few bytes - Still 96KB : FLASHMEM void printDirectory() {
Code (ITCM, 32 kB Blocks): 64.93 kB
Moving three printf strings as F() actually adds code. Is the F() code larger than a simple string?
Code (ITCM, 32 kB Blocks): 64.99 kB
Took the F() strings out of the added @mjs513 speedBench() code and it did not change:.
Code (ITCM, 32 kB Blocks): 64.93 kB
Opps - So the math works out - knowing how to do it ... which I was WRONG on as the kB's are really 1024 sets of bytes. thought I was aiming to get below 65536 Bytes, not
NOTE this agrees with the LINKER/build output:
Code:
Memory region Used Size Region Size %age Used
ITCM: 96 KB 512 KB 18.75%
DTCM: 21184 B 512 KB 4.04%
RAM: 12384 B 512 KB 2.36%
FLASH: 90436 B 7936 KB 1.11%
ERAM: 0 GB 16 MB 0.00%
Okay putting the speedBench() to FLASHMEM:
Code:
RAM1: 16.54% of 512 kB used.
Code (ITCM, 32 kB Blocks): 62.57 kB
Variables (DTCM): 20.69 kB
Available for Variables: 427.31 kB
RAM2: 2.36% of 512 kB used.
Variables (DMAMEM): 12.09 kB
Available for Heap: 499.91 kB
EXTMEM: not used.
FLASH: 1.11% of 7936 kB used.
Then undoing the other func()'s from FLASHMEM:
Code:
RAM1: 16.54% of 512 kB used.
Code (ITCM, 32 kB Blocks): 63.35 kB
Variables (DTCM): 20.69 kB
Available for Variables: 427.31 kB
RAM2: 2.36% of 512 kB used.
Variables (DMAMEM): 12.09 kB
Available for Heap: 499.91 kB
EXTMEM: not used.
FLASH: 1.11% of 7936 kB used.
Code and Constants: 88.27 kB