defragster
Senior Member+
@defragster
Great that it worked for you was busy soldering up a T4.1 with 2 PSRAMs for testing
Worked up to this point - with changed code - on the 16MB 4.1:
>> uint32_t COUNT_ALLOC = 1250000;
Code:
COUNT_ALLOC = (external_psram_size *1024*1024/3/sizeof(uint16_t))-16;
buffer1 = (uint16_t*)malloc_extmem(COUNT_ALLOC * sizeof(uint16_t));
buffer2 = (uint16_t*)malloc_extmem(COUNT_ALLOC * sizeof(uint16_t));
buffer3 = (uint16_t*)malloc_extmem(COUNT_ALLOC * sizeof(uint16_t));
This just showed up … suppose there is some over flow wrap with the 16MB/3 math?::
Code:
Pass 1535 error count: 0
Pass 1536 error count: 0
Pass 1537 error count: 0
Pass 1538 error count: 0
31199 79df 603 7fdd
43999 abdf 603 addd
45023 afdf 603 a9dd
49119 bfdf 603 b9dd
Pass 1539 error count: 901
12095 2f3f 605 293b
15679 3d3f 605 3b3b
22501 57e5 604 51f1
27103 69df 604 7fdb
…
Pass 1617 error count: 1640554
8 8 752 65a
13 d 652 75f
14 e 1652 65c
18 12 752 640
Pass 1618 error count: 1922122
1 1 1753 652
2 2 1753 651
25 19 1653 64a
29 1d 653 74e
Pass 1619 error count: 1949024
Pass 1620 error count: 0
Pass 1621 error count: 0
Pass 1622 error count: 0
Pass 1623 error count: 0
Pass 1624 error count: 0
Pass 1625 error count: 0
Pass 1626 error count: 0
Pass 1627 error count: 0
Pass 1628 error count: 0
Pass 1629 error count: 0
Pass 1630 error count: 0
Pass 1631 error count: 0
Pass 1632 error count: 0
281867 4d0b 661 5b6a
623749 8485 661 92e4
624360 86e8 661 8189
624373 86f5 661 9094
Pass 1633 error count: 29
229968 8250 1673 9533
229974 8256 662 9534
229975 8257 662 9535
229976 8258 662 953b
…
the 8MB code running fine - and twice as fast :
Code:
...
Pass 4050 error count: 0
Pass 4051 error count: 0
Pass 4052 error count: 0
Pass 4053 error count: 0
Pass 4054 error count: 0
...