Teensyduino 1.55 Beta #1

Status
Not open for further replies.
Changed : DMAMEM char buf[ 490 * 1024 ]; // DMAMEM Uses RAM2 :: Typically survives Restart/Upload

to :: DMAMEM char buf[ 190 * 1024 ]; // DMAMEM Uses RAM2 :: Typically survives Restart/Upload

It is looking right now? Works across restarts

>> Either a ROUNDING/CALC error in RAM2 extents .... or that size drive is getting trashed from something else?

<EDIT>
Going back up to 390 and it fails there too with "R" [ have to do a "F"ormat on disk resize to be sure ]:
Code:
... begin() 

... mounted 
printDirectory RAM_DISK
--------------
FILE	0_bigfile.txt		178176

 0 dirs with 1 files of Size 178176 Bytes
 Total 1 files of Size 178176 Bytes
Bytes Used: 399360, Bytes Total:399360


	WARNING: DISK FULL >>>>>  Bytes Used: 399360, Bytes Total:399360
 
Sorry all was a bit sidetracked. With me loosing USB to the powered hub I reverted to using 1.15 with 1.54.

@alcon - I ran the RAM version of simple logger and confirm that there are some issues when you reset the program...
When I ran it and reset (easier in TyCommander). then did the L command which showed the log file, then did a D
and got garbage... Sometimes this garbage was bad enough it kill TyCommander.... Dito for Serial Monitor.
Getting cryptic spew using the IDE.

Ok still loosing hub.
 
Warning I just pushed up a change to my memory dump function, that allows you to specify maximum number of lines to output...

Here is a simple test program:
Code:
#include <MemoryHexDump.h>  // https://github.com/KurtE/MemoryHexDump
DMAMEM char buf[ 390 * 1024 ];  // DMAMEM Uses RAM2 :: Lost on any restart

void setup() {
  while (!Serial) ; // needs serial
  Serial.begin(115200);

  Serial.println("\n\nSimple DMAMEM startup memory test");
  MemoryHexDump(Serial, buf , sizeof(buf), true, "*** At Startup ***\n", 50);

  memset(buf, 0x2a, sizeof(buf));
  MemoryHexDump(Serial, buf , sizeof(buf), true, "*** After memset ***\n", 50);
}

void loop() {
  // put your main code here, to run repeatedly:

}

So as expected, the output for fist time through:
Code:
Simple DMAMEM startup memory test
*** At Startup ***
20200000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 4 duplicate line(s) removed.
20200050 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
20200060 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
...	 8 duplicate line(s) removed.
202000F0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200100 - 04 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
20200110 - 2F E0 00 10 00 00 02 00  00 01 00 00 18 06 00 00  : /....... ........
20200120 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 70 1F FC 08  : '....... ....p...
20200130 - B0 E9 84 DE FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200140 - 10 1F F8 10 40 00 00 0B  64 61 74 61 6C 6F 67 2E  : ....@... datalog.
20200150 - 74 78 74 20 00 00 0B 70  1F F8 25 9C 67 ED 30 FF  : txt ...p ..%.g.0.
20200160 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200170 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200180 - 70 2F F8 2D B1 00 00 00  11 01 00 00 70 2F F8 38  : p/.-.... ....p/.8
20200190 - 4A CE 1C EB FF FF FF FF  FF FF FF FF FF FF FF FF  : J....... ........
202001A0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
202001B0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
202001C0 - 70 2F F8 38 68 00 00 00  6B 03 00 00 70 2F F8 38  : p/.8h... k...p/.8
202001D0 - 8F 48 2E 29 FF FF FF FF  FF FF FF FF FF FF FF FF  : .H.).... ........
202001E0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
202001F0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200200 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 112 duplicate line(s) removed.
20200910 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
20200920 - 2A 2A 2A 2A 2A 2A 2A 2A  67 E6 09 6A 85 AE 67 BB  : ******** g..j..g.
20200930 - 72 F3 6E 3C 3A F5 4F A5  7F 52 0E 51 8C 68 05 9B  : r.n<:.O. .R.Q.h..
20200940 - 20 26 EF 28 BC 7E 2C 1A  40 19 37 3C 54 AB 15 EF  :  &.(.~,. @.7<T...
20200950 - E5 34 5D 12 4E A5 3F 67  C7 3E FB 23 A9 8D 34 BE  : .4].N.?g .>.#..4.
20200960 - 4E A5 3F 67 82 8B 71 52  72 7D DB 12 BF 38 D4 BC  : N.?g..qR r}...8..
20200970 - 02 6F 9B AF E2 C5 C8 BF  27 4A 43 46 43 61 F8 B7  : .o...... 'JCFCa..
20200980 - 00 EE 36 F1 0D F7 86 48  31 04 09 01 C6 20 04 22  : ..6....H 1.... ."
20200990 - 67 E6 09 6A 85 AE 67 BB  72 F3 6E 3C 3A F5 4F A5  : g..j..g. r.n<:.O.
202009A0 - 7F 52 0E 51 8C 68 05 9B  20 26 EF 28 BC 7E 2C 1A  : .R.Q.h..  &.(.~,.
202009B0 - 40 19 37 3C 54 AB 15 EF  E5 34 5D 12 4E A5 3F 67  : @.7<T... .4].N.?g
202009C0 - C7 3E FB 23 A9 8D 34 BE  4E A5 3F 67 AC 4C 1A 8F  : .>.#..4. N.?g.L..
202009D0 - 3C D9 E2 27 2D C4 10 AB  42 E8 C2 A6 77 3E 96 CB  : <..'-... B...w>..
202009E0 - 94 80 28 A6 2C 77 AA 31  D6 82 E3 54 0D F7 86 48  : ..(.,w.1 ...T...H
202009F0 - 31 04 09 01 20 20 04 22  E2 A2 78 DC 76 F2 2A B6  : 1...  ." ..x.v.*.
20200A00 - 93 39 47 64 AE 99 08 9D  2A 06 8F 6B 3F 85 88 6D  : .9Gd.... *..k?..m
20200A10 - D1 FC B8 C7 80 AE CC 17  00 00 00 00 00 00 00 00  : ........ ........
20200A20 - 00 00 00 00 00 00 00 00  58 03 00 00 AA 66 6F 33  : ........ X....fo3
20200A30 - 76 37 A9 66 2A F6 1F 78  CE 9E F9 E0 B7 17 1E A0  : v7.f*..x ........
20200A40 - DB 70 BE C9 B9 24 3A FE  17 3A 69 E7 95 2A 72 AF  : .p...$:. .:i..*r.
20200A50 - 90 D1 BF 23 2B 0C FA 48  13 12 11 B3 BC 64 41 11  : ...#+..H .....dA.
20200A60 - 67 90 A1 A9 55 15 0D 37  30 36 29 35 86 23 03 2D  : g...U..7 06)5.#.-
20200A70 - 4B F9 EF 13 00 15 57 07  DC 2A 71 F4 37 BF 73 E4  : K.....W. .*q.7.s.
20200A80 - 7C CE E9 95 2D 7A 4D 59  B2 CA 56 A7 2F 06 FC A5  : |...-zMY ..V./...
20200A90 - 26 21 C2 C3 E9 7C E7 36  69 C4 31 0F EC D2 8D B7  : &!...|.6 i.1.....
20200AA0 - 00 00 00 00 3A FF E5 96  D8 0A 20 20 19 74 20 00  : ....:... ..  .t .
20200AB0 - 9A 31 91 60 00 10 20 20  7F 1B 20 20 3A FF E5 96  : .1.`..   ..  :...
20200AC0 - F0 0A 20 20 20 80 0F 40  09 00 00 00 20 0B 20 20  : ..   ..@ .... .  
20200AD0 - 00 00 00 00 D3 77 20 00  80 1B 20 20 3A FF E5 96  : .....w . ..  :...
*** Max Count of Output Lines Reached ***
*** After memset ***
20200000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 24958 duplicate line(s) removed.
202617F0 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********

Then I hit the Rest button in TyCommander and see:
Code:
Simple DMAMEM startup memory test
*** At Startup ***
20200000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 4 duplicate line(s) removed.
20200050 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
20200060 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
...	 8 duplicate line(s) removed.
202000F0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200100 - 04 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
20200110 - 2F E0 00 10 00 00 02 00  00 01 00 00 18 06 00 00  : /....... ........
20200120 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 70 1F FC 08  : '....... ....p...
20200130 - B0 E9 84 DE FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200140 - 10 1F F8 10 40 00 00 0B  64 61 74 61 6C 6F 67 2E  : ....@... datalog.
20200150 - 74 78 74 20 00 00 0B 70  1F F8 25 9C 67 ED 30 FF  : txt ...p ..%.g.0.
20200160 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200170 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200180 - 70 2F F8 2D B1 00 00 00  11 01 00 00 70 2F F8 38  : p/.-.... ....p/.8
20200190 - 4A CE 1C EB FF FF FF FF  FF FF FF FF FF FF FF FF  : J....... ........
202001A0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
202001B0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
202001C0 - 70 2F F8 38 68 00 00 00  6B 03 00 00 70 2F F8 38  : p/.8h... k...p/.8
202001D0 - 8F 48 2E 29 FF FF FF FF  FF FF FF FF FF FF FF FF  : .H.).... ........
202001E0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
202001F0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200200 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 112 duplicate line(s) removed.
20200910 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
20200920 - 2A 2A 2A 2A 2A 2A 2A 2A  67 E6 09 6A 85 AE 67 BB  : ******** g..j..g.
20200930 - 72 F3 6E 3C 3A F5 4F A5  7F 52 0E 51 8C 68 05 9B  : r.n<:.O. .R.Q.h..
20200940 - 20 26 EF 28 BC 7E 2C 1A  40 19 37 3C 54 AB 15 EF  :  &.(.~,. @.7<T...
20200950 - E5 34 5D 12 4E A5 3F 67  C7 3E FB 23 A9 8D 34 BE  : .4].N.?g .>.#..4.
20200960 - 4E A5 3F 67 82 8B 71 52  72 7D DB 12 BF 38 D4 BC  : N.?g..qR r}...8..
20200970 - 02 6F 9B AF E2 C5 C8 BF  27 4A 43 46 43 61 F8 B7  : .o...... 'JCFCa..
20200980 - 00 EE 36 F1 0D F7 86 48  31 04 09 01 C6 20 04 22  : ..6....H 1.... ."
20200990 - 67 E6 09 6A 85 AE 67 BB  72 F3 6E 3C 3A F5 4F A5  : g..j..g. r.n<:.O.
202009A0 - 7F 52 0E 51 8C 68 05 9B  20 26 EF 28 BC 7E 2C 1A  : .R.Q.h..  &.(.~,.
202009B0 - 40 19 37 3C 54 AB 15 EF  E5 34 5D 12 4E A5 3F 67  : @.7<T... .4].N.?g
202009C0 - C7 3E FB 23 A9 8D 34 BE  4E A5 3F 67 AC 4C 1A 8F  : .>.#..4. N.?g.L..
202009D0 - 3C D9 E2 27 2D C4 10 AB  42 E8 C2 A6 77 3E 96 CB  : <..'-... B...w>..
202009E0 - 94 80 28 A6 2C 77 AA 31  D6 82 E3 54 0D F7 86 48  : ..(.,w.1 ...T...H
202009F0 - 31 04 09 01 20 20 04 22  E2 A2 78 DC 76 F2 2A B6  : 1...  ." ..x.v.*.
20200A00 - 93 39 47 64 AE 99 08 9D  2A 06 8F 6B 3F 85 88 6D  : .9Gd.... *..k?..m
20200A10 - D1 FC B8 C7 80 AE CC 17  00 00 00 00 00 00 00 00  : ........ ........
20200A20 - 00 00 00 00 00 00 00 00  58 03 00 00 AA 66 6F 33  : ........ X....fo3
20200A30 - 76 37 A9 66 2A F6 1F 78  CE 9E F9 E0 B7 17 1E A0  : v7.f*..x ........
20200A40 - DB 70 BE C9 B9 24 3A FE  17 3A 69 E7 95 2A 72 AF  : .p...$:. .:i..*r.
20200A50 - 90 D1 BF 23 2B 0C FA 48  13 12 11 B3 BC 64 41 11  : ...#+..H .....dA.
20200A60 - 67 90 A1 A9 55 15 0D 37  30 36 29 35 86 23 03 2D  : g...U..7 06)5.#.-
20200A70 - 4B F9 EF 13 00 15 57 07  DC 2A 71 F4 37 BF 73 E4  : K.....W. .*q.7.s.
20200A80 - 7C CE E9 95 2D 7A 4D 59  B2 CA 56 A7 2F 06 FC A5  : |...-zMY ..V./...
20200A90 - 26 21 C2 C3 E9 7C E7 36  69 C4 31 0F EC D2 8D B7  : &!...|.6 i.1.....
20200AA0 - 00 00 00 00 44 1F 6B CB  D8 0A 20 20 19 74 20 00  : ....D.k. ..  .t .
20200AB0 - 9A 31 91 60 00 10 20 20  7F 1B 20 20 44 1F 6B CB  : .1.`..   ..  D.k.
20200AC0 - F0 0A 20 20 20 80 0F 40  09 00 00 00 20 0B 20 20  : ..   ..@ .... .  
20200AD0 - 00 00 00 00 D3 77 20 00  80 1B 20 20 44 1F 6B CB  : .....w . ..  D.k.
*** Max Count of Output Lines Reached ***
*** After memset ***
20200000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 24958 duplicate line(s) removed.
202617F0 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********

So again not sure what is in this memory after reboot, but is for sure not the same as after I did the memset...
 
Warning I just pushed up a change to my memory dump function, that allows you to specify maximum number of lines to output...

Here is a simple test program:
Code:
#include <MemoryHexDump.h>  // https://github.com/KurtE/MemoryHexDump
DMAMEM char buf[ 390 * 1024 ];  // DMAMEM Uses RAM2 :: Lost on any restart

void setup() {
  while (!Serial) ; // needs serial
  Serial.begin(115200);

  Serial.println("\n\nSimple DMAMEM startup memory test");
  MemoryHexDump(Serial, buf , sizeof(buf), true, "*** At Startup ***\n", 50);

  memset(buf, 0x2a, sizeof(buf));
  MemoryHexDump(Serial, buf , sizeof(buf), true, "*** After memset ***\n", 50);
}

void loop() {
  // put your main code here, to run repeatedly:

}



So again not sure what is in this memory after reboot, but is for sure not the same as after I did the memset...

Got the updated MemoryHexDump to libs!

Not sure what that is showing except that the code wrote into the LFS _RAM?

And this comment has been changed? - or just edited the RAM1 line?:: // DMAMEM Uses RAM2 :: Lost on any restart
Code:
//char buf[ 390 * 1024 ];	// BUFFER in RAM1 :: Lost on any restart
DMAMEM char buf[ 390 * 1024 ];	// DMAMEM Uses RAM2 :: [B]Typically survives Restart/Upload[/B]
 
My assumption is, if you are expecting that LittleFS in DMAMEM will survive a reboot, that would imply the memory contents need to survive a reboot.

And if that were true, I would expect that when I dump buf again after a reboot, that the memory would still contain the answer of all questions (42 or 0x2a) ;)
And it does not appear to be the case.
 
My assumption is, if you are expecting that LittleFS in DMAMEM will survive a reboot, that would imply the memory contents need to survive a reboot.

And if that were true, I would expect that when I dump buf again after a reboot, that the memory would still contain the answer of all questions (42 or 0x2a) ;)
And it does not appear to be the case.

okay, but in scanning the dumps they look the same ... at least as far as compared ...

In general is DOES survive ... when it does ...


>> FOR : DMAMEM char buf[ 290 * 1024 ]; // DMAMEM Uses RAM2 :: Typically survives Restart/Upload
Doing: "F", 'm', '2', "R", '2', '5'
> Will Format, 'm'akedirs, create loop files, restart then further extend or replace those prior files and each is validated to hold expected content in expected order.
Then DO: "D", 'l'
>> And passing errors counted will be shown ... that works for above 290MB.

But 390MB and 490MB seem broken? Something is trashing some intermediate areas it seems?

Need a binary DUMP of "buf[]' to SD, and a Binary Compare to SD dump data with a MemoryHexDump format that shows DIFFS?
 
Got the updated MemoryHexDump to libs!

Not sure what that is showing except that the code wrote into the LFS _RAM?

And this comment has been changed? - or just edited the RAM1 line?:: // DMAMEM Uses RAM2 :: Lost on any restart
Code:
//char buf[ 390 * 1024 ];	// BUFFER in RAM1 :: Lost on any restart
DMAMEM char buf[ 390 * 1024 ];	// DMAMEM Uses RAM2 :: [B]Typically survives Restart/Upload[/B]

Not necessarily true. Just tried an experiment using 1.55 with TD1.54 (probably the same for 1.55b1).

If I start with:
Code:
DMAMEM char buf[ 390 * 1024 ];
and do a quick format to prep the disk the data seems to be retained across restarts. If you don't preformat DMAMEM for LittleFS data seems to get corrupted using that size dmamem.

If I use 190x1024 doesn't appear you have to preformat the disk.


Was trying with 1.55b1 and when it went to load the sketch it said it was loading it as SE Blank RT .... Did a 15sec restore and reloaded the LittleFS_RAM_Simple_Datalogger sketch. This time no issues.

I tested my theory and seems to hold. If you do a quickformat it retains the data using
Code:
DMAMEM char buf[ 390 * 1024 ];

Yes - looks like I got my hub back - at least for a while.


EDIT: Using TyCommander to do the resets - as Kurt said - its easier
 
Sorry, I am sort of trying to think too simplistic.

My sketch knows nothing about nothing... It simply dumps the raw memory right after it can start the Serial port.
I have it setup to cut off after so many lines. But again nothing special.

It then fills that memory with a known value.

Then dumps again to verify that it is there...

Then I somehow reboot the processor and again dump the memory...

Now again again I know nothing about having an FS... So simply hope the memory is in the state I set it.
So would expect all 0x2as...

If that is not true, I would expect that either:
a) Something wrote again to this memory as part of the reboot or program..
b) Part of the boot process uses this memory for something. Like maybe a scratch pad to load stuff from the Flash?
c) Part of the boot process changes hardware settings on the memory which causes it to not necessarily retain the
d) the memset never actually updated the memory only the cache! Will try cache flush after a memset...
e) my head hurts
 
Follow on to the previous...
Updated to flush:
Code:
#include <MemoryHexDump.h>  // https://github.com/KurtE/MemoryHexDump
DMAMEM char buf[ 390 * 1024 ];  // DMAMEM Uses RAM2 :: Lost on any restart

void setup() {
  while (!Serial) ; // needs serial
  Serial.begin(115200);

  Serial.println("\n\nSimple DMAMEM startup memory test");
  MemoryHexDump(Serial, buf , sizeof(buf), true, "*** At Startup ***\n", 100);

  memset(buf, 0x2a, sizeof(buf));
  MemoryHexDump(Serial, buf , sizeof(buf), true, "*** After memset ***\n", 100);
  arm_dcache_flush(buf , sizeof(buf));
}

void loop() {
  // put your main code here, to run repeatedly:

}
After adding the flush...
I power cycled and see:
Code:
Simple DMAMEM startup memory test
*** At Startup ***
20200000 - 74 16 8B 0A 1F 89 26 CC  AB F6 1E 5A 21 28 6D D0  : t.....&. ...Z!(m.
20200010 - 7A E0 56 1E C6 28 E3 3D  0F 12 73 AD 05 35 04 52  : z.V..(.= ..s..5.R
20200020 - 0E 68 72 EE EC 0E C2 36  7C 8C 04 BA 5B 06 E3 D8  : .hr....6 |...[...
20200030 - DC 32 5D 86 56 97 FE EF  90 6E 00 17 31 CF E7 3C  : .2].V... .n..1..<
20200040 - CE 82 D1 AB 17 35 EB 06  C4 23 79 76 3A 04 11 A4  : .....5.. .#yv:...
20200050 - 23 EF E0 EF F1 6C 87 11  B0 5B B9 0C E9 C4 E1 48  : #....l.. .[.....H
20200060 - 8B 42 E3 F9 98 C3 AA C4  E9 68 0A 9A 63 6B FD A3  : .B...... .h..ck..
20200070 - 11 43 FD C8 E1 04 45 9A  94 18 0C 10 A1 BB 87 F0  : .C....E. ........
20200080 - FB 82 93 F1 FB 08 6E 52  EB B7 B8 CF 1F 08 2C 28  : ......nR ......,(
20200090 - 6C 66 CA C6 A5 87 47 50  A0 CB B0 FE B4 81 B2 53  : lf....GP .......S
202000A0 - FF 70 49 8A BF FD 5C 4A  01 F0 85 C0 D3 02 48 4B  : .pI...\J ......HK
202000B0 - 39 07 C1 53 82 8C 23 DB  0E 44 85 C0 58 D0 10 C1  : 9..S..#. .D..X...
202000C0 - 5E EF 52 8A 81 5C 1F 58  DD 66 52 1A 4D AC 73 AB  : ^.R..\.X .fR.M.s.
202000D0 - E1 8B 87 19 48 B8 AB 21  81 2A 93 79 14 00 F0 99  : ....H..! .*.y....
202000E0 - 49 97 A8 BE 0B 13 54 EB  00 A9 AE 14 63 AD 15 CB  : I.....T. ....c...
202000F0 - EE 62 B6 11 48 72 01 B0  B0 10 E4 82 19 6E 95 7D  : .b..Hr.. .....n.}
20200100 - 1F A6 9D 0D A8 44 BF 93  49 A8 A7 D0 A4 30 6F 57  : .....D.. I....0oW
20200110 - 9B 46 1C E4 02 C0 A0 3A  7D 8E 6C F7 2D 64 8C 1F  : .F.....: }.l.-d..
20200120 - 83 51 58 DE A1 9D EE 3E  2F 46 5F 74 B2 BE D6 0D  : .QX....> /F_t....
20200130 - A6 D8 F7 93 B3 53 C6 7D  DA 05 91 8D 8A 12 EB F9  : .....S.} ........
20200140 - F4 F4 37 7B 98 DD 34 22  E1 6A 98 BD B8 EB E9 DE  : ..7{..4" .j......
20200150 - 7D C0 AE 21 D4 2D 32 1D  FB 3A 9A FD E0 C6 05 C7  : }..!.-2. .:......
20200160 - E5 E4 D4 2A F4 37 10 A1  7C 00 AC 65 3D 37 FD 65  : ...*.7.. |..e=7.e
20200170 - DE 22 B3 16 B1 82 4F 84  29 EE 49 C8 AB 14 99 77  : ."....O. ).I....w
20200180 - 71 3A 05 7D F3 F4 05 B9  D4 FE 47 63 06 66 28 62  : q:.}.... ..Gc.f(b
20200190 - 4D 26 FD 10 DB 61 B4 01  E8 CF 1B C8 FB 4E F1 5E  : M&...a.. .....N.^
202001A0 - 76 58 91 10 93 D0 58 6B  9F 8A 62 91 2D 5F FE 50  : vX....Xk ..b.-_.P
202001B0 - C5 7F 2D 59 EC 2C B6 B6  B8 E7 A1 85 DF B5 38 87  : ..-Y.,.. ......8.
202001C0 - 93 33 1E 27 4E 57 87 AB  8F BC B9 4B 5A E7 FB 2E  : .3.'NW.. ...KZ...
202001D0 - FC 9B 36 72 0F 16 3B 48  77 09 BB BF AC A2 D8 53  : ..6r..;H w......S
202001E0 - C2 1A 99 C2 88 5F 82 F9  10 42 AA AA 66 6B 72 D7  : ....._.. .B..fkr.
202001F0 - 24 4A D1 A7 75 FF 01 B2  F3 13 0A 90 F3 FF EF 67  : $J..u... .......g
20200200 - 17 3F 25 F5 E2 9D 20 17  38 ED F6 6F A4 E0 E5 F4  : .?%... . 8..o....
20200210 - 7E DC 74 5F 0C 2A 65 48  F6 FD 25 7A CD 10 62 11  : ~.t_.*eH ..%z..b.
20200220 - 05 80 3D 69 2E 71 BD EE  2D 5F 4C 72 9B F3 BF 2F  : ..=i.q.. -_Lr.../
20200230 - 43 A0 CF AA A5 DC 49 C9  F1 63 72 21 9A 5B 93 07  : C.....I. .cr!.[..
20200240 - 8B F2 7A F1 6D 2E C6 8C  18 FD 72 33 E0 E0 60 B6  : ..z.m... ..r3..`.
20200250 - F9 DE 65 81 B9 D7 31 D6  60 A5 C8 84 00 60 19 56  : ..e...1. `....`.V
20200260 - 62 6A 67 90 D5 CB CE C1  59 24 95 4C 67 0F 65 BD  : bjg..... Y$.Lg.e.
20200270 - 92 9A C0 F5 28 97 ED 86  82 51 09 15 EF 6F AC 53  : ....(... .Q...o.S
20200280 - 7D 6D 54 6A D1 72 7D FA  B3 A7 94 81 B4 06 29 E4  : }mTj.r}. ......).
20200290 - ED E5 BB 6B 0E C1 46 29  1F 91 97 DF 88 89 00 47  : ...k..F) .......G
202002A0 - C6 38 1B 02 F7 3F 7E 6F  10 56 6A 20 B9 67 53 7E  : .8...?~o .Vj .gS~
202002B0 - B6 9F 1B 44 E7 FD 4B C2  BA C2 63 23 57 00 F6 B4  : ...D..K. ..c#W...
202002C0 - 86 3D 24 05 3A A0 BB BD  02 4D AF A4 10 45 51 00  : .=$.:... .M...EQ.
202002D0 - 5F B5 FF 09 14 7C E9 C5  4B 76 37 D4 0B BF 14 8A  : _....|.. Kv7.....
202002E0 - 00 F5 0F 86 DC ED B0 AB  49 84 38 60 23 92 AA 44  : ........ I.8`#..D
202002F0 - C0 10 C2 1D A9 7E 29 E1  06 45 82 23 7E 90 8E 06  : .....~). .E.#~...
20200300 - EB 30 7E FE ED 9E 40 E0  E5 FE E1 EE 09 C5 C3 DA  : .0~...@. ........
20200310 - 94 55 2E 0A A9 07 55 BD  E7 0E 55 59 10 B0 41 69  : .U....U. ..UY..Ai
20200320 - 44 98 42 BB B9 B9 D5 3D  AB D0 92 78 59 EF 5C F7  : D.B....= ...xY.\.
20200330 - 5A 16 91 2F F9 77 E1 08  3D A5 EF 6F C4 C5 2B A8  : Z../.w.. =..o..+.
20200340 - 83 C7 3E CB 39 94 33 4C  89 5B 2F D8 78 B1 E4 27  : ..>.9.3L .[/.x..'
20200350 - F4 A7 84 A1 05 E0 09 79  A3 4A 36 DD 6B ED 37 C5  : .......y .J6.k.7.
20200360 - 68 DE 4D 40 EC F7 20 DA  F0 EE 0D F1 F5 6F 8E FE  : h.M@.. . .....o..
20200370 - 99 00 03 26 82 61 E9 15  B8 8C 50 08 35 D0 5F 5A  : ...&.a.. ..P.5._Z
20200380 - BF DF 19 DC D3 E3 FE AD  E2 7F B3 8A 07 08 0C F4  : ........ ........
20200390 - 57 60 E7 2F 94 1D 49 08  A1 5C 96 7F A2 C8 44 7F  : W`./..I. .\....D.
202003A0 - 92 36 58 F5 D9 A6 D7 34  80 3F 52 F8 99 A7 47 FB  : .6X....4 .?R...G.
202003B0 - 27 2C 1F 84 1B FB 08 FB  29 F5 59 06 75 DF B4 5D  : ',...... ).Y.u..]
202003C0 - 2A 2E E0 E7 FF 09 72 EA  F2 4E DA A7 62 1F 02 78  : *.....r. .N..b..x
202003D0 - B1 95 30 4B E5 D1 BE 41  81 09 DF 22 2B 20 B6 08  : ..0K...A ..."+ ..
202003E0 - 81 24 98 6D 72 99 5B 35  1B 48 63 8F BD B4 10 C2  : .$.mr.[5 .Hc.....
202003F0 - 52 13 03 7C 73 38 66 D0  5E E8 30 44 FD F2 76 AF  : R..|s8f. ^.0D..v.
20200400 - 5E F4 4C AD 38 0A 2E BB  20 F7 4F BD CF AC 8D BF  : ^.L.8...  .O.....
20200410 - 08 86 14 51 91 1E DA 0F  21 62 27 C9 61 92 0C 8C  : ...Q.... !b'.a...
20200420 - 36 8C 65 B9 C6 91 A4 BB  83 D3 F0 C1 63 C5 FB B5  : 6.e..... ....c...
20200430 - 97 B8 B2 90 62 44 DD 35  65 69 92 37 C2 DB B2 7A  : ....bD.5 ei.7...z
20200440 - 7F EB A4 59 35 5B 24 1E  36 75 53 BC B8 8C 93 91  : ...Y5[$. 6uS.....
20200450 - 72 39 31 56 9F 30 DE F8  B1 8F 58 57 4B 68 20 C8  : r91V.0.. ..XWKh .
20200460 - 63 EF 3C 69 2F FE EE 66  BB 4E 65 36 45 AA B2 1D  : c.<i/..f .Ne6E...
20200470 - 0C ED 28 CD 4C E4 F1 C5  22 24 1D 30 D7 99 41 F5  : ..(.L... "$.0..A.
20200480 - 3E 5F EB F5 99 7B B7 21  9F 7B CC 69 66 D1 46 C3  : >_...{.! .{.if.F.
20200490 - 49 DD 52 42 63 A1 68 FE  AE 5E E8 DB AD D2 06 C2  : I.RBc.h. .^......
202004A0 - 89 F1 02 60 3F AE BC 64  7E EC 08 1B 43 B1 43 E1  : ...`?..d ~...C.C.
202004B0 - D5 C9 E5 5D E5 DB EF 50  C1 C4 57 7E FD F1 E6 BA  : ...]...P ..W~....
202004C0 - 03 4C 0B A3 0E B6 9B A3  9C 47 EC 63 8C 5D 97 BA  : .L...... .G.c.]..
202004D0 - 94 86 AE 5E 28 D3 F6 A9  6A 66 A9 F8 69 B2 71 8A  : ...^(... jf..i.q.
202004E0 - EB 49 3B 6F 85 04 58 45  27 1B C5 8F C6 CB DB 1B  : .I;o..XE '.......
202004F0 - D8 18 76 36 9C 9A E3 DA  21 34 91 80 86 08 A3 C8  : ..v6.... !4......
20200500 - 28 D8 7A 43 B2 19 51 61  66 04 4C 2F EE 74 4B A3  : (.zC..Qa f.L/.tK.
20200510 - 65 02 54 F7 8C 28 79 B1  7D 47 D2 CD F4 3E 88 58  : e.T..(y. }G...>.X
20200520 - A0 C9 C0 16 B4 E2 94 25  08 54 D1 84 9D 7C 58 6F  : .......% .T...|Xo
20200530 - 69 53 A3 60 B3 BC 10 2F  09 DB 9A 92 AA 0F DC 51  : iS.`.../ .......Q
20200540 - 27 53 EC 52 09 9D B5 64  47 CD 56 C1 B9 EB 6B 18  : 'S.R...d G.V...k.
20200550 - 80 95 25 EF 9F 32 14 CE  BB A0 FF F3 D5 C6 B7 7D  : ..%..2.. .......}
20200560 - 1A A3 63 B4 1C 22 62 4B  E8 F5 03 F2 D3 A7 5C BE  : ..c.."bK ......\.
20200570 - DC 5C 77 3A 5B 95 6A 24  31 B3 17 C2 97 DE CD E9  : .\w:[.j$ 1.......
20200580 - 7B 27 9D 3F 6D 8A BB 90  3A 67 97 38 6C D6 BC 1E  : {'.?m... :g.8l...
20200590 - 0C 70 43 C3 84 EE D5 6A  F7 B2 BC 31 2E 53 85 D6  : .pC....j ...1.S..
202005A0 - F1 E2 09 9A D6 67 67 41  13 00 60 34 7E 87 BE D5  : .....ggA ..`4~...
202005B0 - 21 E0 91 CF EC 15 37 90  4D 18 02 A9 FD CF 2F 52  : !.....7. M...../R
202005C0 - 90 B5 52 A9 F5 EF 75 EE  EC 1B AA BC 27 F0 61 E4  : ..R...u. ....'.a.
202005D0 - A0 35 AD 89 94 9C 38 AF  68 C3 F2 DA 8A 68 84 BD  : .5....8. h....h..
202005E0 - 8E 64 A1 42 31 B9 9C 9C  46 14 05 03 B6 E8 6D 4C  : .d.B1... F.....mL
202005F0 - A9 90 DD D4 67 A4 2A 23  12 F0 8D DA 59 BB 7A 57  : ....g.*# ....Y.zW
20200600 - 26 F2 E0 1F 14 4F 52 75  7A A9 3F 35 EC E2 4C 72  : &....ORu z.?5..Lr
20200610 - A1 6F 4A D1 6F A4 A1 E1  5B 73 31 17 81 98 9D 42  : .oJ.o... [s1....B
20200620 - E2 03 47 9D 78 F8 BF AA  5C F2 80 40 72 9B E9 F0  : ..G.x... \..@r...
20200630 - E8 6F 2B 16 D0 1D AF D5  15 20 CE 45 EB 9E E9 4F  : .o+..... . .E...O
*** Max Count of Output Lines Reached ***
*** After memset ***
20200000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 24958 duplicate line(s) removed.
202617F0 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********

Now after reset:
Code:
Simple DMAMEM startup memory test
*** At Startup ***
20200000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 144 duplicate line(s) removed.
20200910 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
20200920 - 2A 2A 2A 2A 2A 2A 2A 2A  67 E6 09 6A 85 AE 67 BB  : ******** g..j..g.
20200930 - 72 F3 6E 3C 3A F5 4F A5  7F 52 0E 51 8C 68 05 9B  : r.n<:.O. .R.Q.h..
20200940 - AC 88 82 8B E1 92 E2 1C  BA 41 32 5A 23 F0 3A 95  : ........ .A2Z#.:.
20200950 - 6D AA 06 D3 80 79 CC 25  25 18 BA 84 62 78 4E DC  : m....y.% %...bxN.
20200960 - 80 79 CC 25 7C E8 E6 6C  31 85 F5 85 62 A9 24 BF  : .y.%|..l 1...b.$.
20200970 - DD 00 58 BA D8 55 0D 75  E4 AC 44 F8 E4 8B 5E F2  : ..X..U.u ..D...^.
20200980 - CA FF 9B A0 0D F7 86 48  31 04 09 01 C6 20 04 22  : .......H 1.... ."
20200990 - 67 E6 09 6A 85 AE 67 BB  72 F3 6E 3C 3A F5 4F A5  : g..j..g. r.n<:.O.
202009A0 - 7F 52 0E 51 8C 68 05 9B  AC 88 82 8B E1 92 E2 1C  : .R.Q.h.. ........
202009B0 - BA 41 32 5A 23 F0 3A 95  6D AA 06 D3 80 79 CC 25  : .A2Z#.:. m....y.%
202009C0 - 25 18 BA 84 62 78 4E DC  80 79 CC 25 79 6D BD 3E  : %...bxN. .y.%ym.>
202009D0 - 66 D5 C6 E7 AD CD 20 13  EC 00 D0 3F 5E 2F B4 D6  : f..... . ...?^/..
202009E0 - D9 5C 85 74 D6 C7 1A 58  AB A6 4B 95 0D F7 86 48  : .\.t...X ..K....H
202009F0 - 31 04 09 01 EA 20 04 22  DF BD 82 6A 32 A3 08 1E  : 1.... ." ...j2...
20200A00 - C2 8E B5 03 36 86 A0 32  86 16 C3 06 19 C5 87 A4  : ....6..2 ........
20200A10 - C8 3D BB 81 80 25 3B F3  00 00 00 00 00 00 00 00  : .=...%;. ........
20200A20 - 00 00 00 00 00 00 00 00  58 03 00 00 A1 A7 71 ED  : ........ X.....q.
20200A30 - 8E 2E 49 CE C9 40 16 26  27 6D 59 6C B3 2F 3E EE  : ..I..@.& 'mYl./>.
20200A40 - 20 BA 9E EA 2E F4 28 CE  E1 2B 43 55 3F 5A B8 25  :  .....(. .+CU?Z.%
20200A50 - 89 7D 4C 6F 24 AB E5 85  03 79 AC 9F 44 65 76 4B  : .}Lo$... .y..DevK
20200A60 - 6B 4B AF 81 9A 9D 31 04  AE E5 4D AA 41 78 33 AA  : kK....1. ..M.Ax3.
20200A70 - E5 99 33 A9 B5 6A DF B0  EA 41 AB 69 63 A5 1C BA  : ..3..j.. .A.ic...
20200A80 - D1 67 F5 30 BB BD A4 41  FC D9 08 8B 86 E2 BB 98  : .g.0...A ........
20200A90 - 5C 5E 8D CB F9 CE 50 87  05 71 49 77 16 4C DA 10  : \^....P. .qIw.L..
20200AA0 - 00 00 00 00 E1 72 CD 1D  D8 0A 20 20 19 74 20 00  : .....r.. ..  .t .
20200AB0 - 2E 26 75 9D 00 10 20 20  7F 1B 20 20 E1 72 CD 1D  : .&u...   ..  .r..
20200AC0 - F0 0A 20 20 20 80 0F 40  09 00 00 00 20 0B 20 20  : ..   ..@ .... .  
20200AD0 - 00 00 00 00 D3 77 20 00  80 1B 20 20 E1 72 CD 1D  : .....w . ..  .r..
20200AE0 - 00 00 00 00 20 80 0F 40  F0 C7 21 00 1D 7F 20 00  : .... ..@ ..!... .
20200AF0 - 01 00 00 00 E1 72 CD 1D  28 0B 20 20 19 74 20 00  : .....r.. (.  .t .
20200B00 - 20 80 0F 40 80 1B 20 20  3F 37 20 20 E1 72 CD 1D  :  ..@..   ?7  .r..
20200B10 - CC 0B 20 20 20 80 0F 40  01 00 00 00 E1 72 CD 1D  : ..   ..@ .....r..
20200B20 - 50 0B 20 20 19 74 20 00  40 37 20 20 80 1B 20 20  : P.  .t . @7  ..  
20200B30 - 3F 37 20 20 E1 72 CD 1D  CC 0B 20 20 20 80 0F 40  : ?7  .r.. ..   ..@
20200B40 - F8 1C 20 20 CC 0B 20 20  C8 0C 20 20 73 74 20 00  : ..  ..   ..  st .
20200B50 - 40 37 20 20 E1 72 CD 1D  01 00 00 00 E1 72 CD 1D  : @7  .r.. .....r..
20200B60 - 90 0B 20 20 19 74 20 00  98 0B 20 20 80 1B 20 20  : ..  .t . ..  ..  
20200B70 - 01 00 00 00 E1 72 CD 1D  A8 0B 20 20 19 74 20 00  : .....r.. ..  .t .
20200B80 - 01 00 00 00 E1 72 CD 1D  B8 0B 20 20 19 74 20 00  : .....r.. ..  .t .
20200B90 - 40 37 20 20 80 1B 20 20  3F 37 20 20 E1 72 CD 1D  : @7  ..   ?7  .r..
20200BA0 - 00 00 00 00 20 80 0F 40  10 1C 20 20 00 00 00 00  : .... ..@ ..  ....
20200BB0 - 08 4B 00 60 73 74 20 00  40 37 20 20 E1 72 CD 1D  : .K.`st . @7  .r..
20200BC0 - 20 80 0F 40 20 80 0F 40  00 00 00 00 2D 77 20 00  :  ..@ ..@ ....-w .
20200BD0 - 00 00 00 00 33 00 00 1D  00 00 00 00 00 00 00 00  : ....3... ........
20200BE0 - 00 00 00 00 E1 72 CD 1D  00 00 00 00 00 00 00 00  : .....r.. ........
20200BF0 - 0C 4C 00 60 CD 9B 20 00  C8 0C 20 20 80 78 C3 84  : .L.`.. . ..  .x..
20200C00 - 83 93 3F F1 8E 4A 00 60  0C 4C 00 60 A4 10 20 20  : ..?..J.` .L.`..  
20200C10 - F9 4A 00 60 00 00 00 00  78 0D 20 20 3E 96 DF 9A  : .J.`.... x.  >...
20200C20 - BC BD 1E 89 00 00 00 00  01 00 00 00 E1 F0 F0 F0  : ........ ........
20200C30 - F0 F0 F0 F0 A2 01 00 00  69 00 00 00 2F 00 00 00  : ........ i.../...
20200C40 - 22 00 00 00 22 00 00 00  20 00 00 00 20 00 00 00  : "..."...  ... ...
20200C50 - 6B 00 00 00 00 00 00 00  00 00 00 00 33 00 00 00  : k....... ....3...
20200C60 - 00 00 00 00 E1 72 CD 1D  98 0C 20 20 19 74 20 00  : .....r.. ..  .t .
20200C70 - 00 00 00 00 00 10 20 20  7F 1B 20 20 E1 72 CD 1D  : ......   ..  .r..
20200C80 - 00 00 00 00 20 80 0F 40  0C 00 00 00 00 00 00 00  : .... ..@ ........
20200C90 - 00 00 00 00 D3 77 20 00  80 1B 20 20 E1 72 CD 1D  : .....w . ..  .r..
20200CA0 - E1 72 CD 1D 20 80 0F 40  20 80 0F 40 51 7D 20 00  : .r.. ..@  ..@Q} .
20200CB0 - 00 10 20 20 E1 72 CD 1D  10 00 00 00 7D 75 20 00  : ..  .r.. ....}u .
20200CC0 - 80 1B 20 20 33 00 00 20  01 00 00 00 E1 72 CD 1D  : ..  3..  .....r..
20200CD0 - 00 0D 20 20 19 74 20 00  0C 00 00 00 80 1B 20 20  : ..  .t . ......  
20200CE0 - 3F 37 20 20 E1 72 CD 1D  08 00 00 00 20 80 0F 40  : ?7  .r.. .... ..@
20200CF0 - B8 1B 20 20 C0 1B 20 20  20 80 0F 40 73 74 20 00  : ..  ..    ..@st .
20200D00 - 40 37 20 20 E1 72 CD 1D  20 80 0F 40 C0 1B 20 20  : @7  .r..  ..@..  
20200D10 - C0 1B 20 20 2D 77 20 00  B8 1B 20 20 E1 72 CD 1D  : ..  -w . ..  .r..
20200D20 - F0 00 00 00 D7 6E 20 00  78 0D 20 20 E1 72 CD 1D  : .....n . x.  .r..
20200D30 - 30 44 00 60 60 00 10 00  00 00 34 00 33 00 00 1D  : 0D.``... ..4.3...
20200D40 - 00 00 00 00 E1 72 CD 1D  78 0D 20 20 19 74 20 00  : .....r.. x.  .t .
20200D50 - 00 00 00 00 E1 72 CD 1D  88 0D 20 20 19 74 20 00  : .....r.. ..  .t .
20200D60 - 00 00 00 00 00 10 20 20  7F 1B 20 20 E1 72 CD 1D  : ......   ..  .r..
20200D70 - 00 00 00 00 E1 72 CD 1D  A8 0D 20 20 19 74 20 00  : .....r.. ..  .t .
20200D80 - B4 1B 20 20 00 10 20 20  7F 1B 20 20 E1 72 CD 1D  : ..  ..   ..  .r..
20200D90 - E1 72 CD 1D 20 80 0F 40  09 00 00 00 F0 0D 20 20  : .r.. ..@ ......  
20200DA0 - 0C 00 00 00 D3 77 20 00  00 00 00 00 E1 72 CD 1D  : .....w . .....r..
20200DB0 - E0 0D 20 20 19 74 20 00  00 00 00 00 E1 72 CD 1D  : ..  .t . .....r..
20200DC0 - F0 0D 20 20 19 74 20 00  20 80 0F 40 00 10 20 20  : ..  .t .  ..@..  
20200DD0 - 7F 1B 20 20 E1 72 CD 1D  A0 00 00 00 20 80 0F 40  : ..  .r.. .... ..@
20200DE0 - DB 00 00 00 00 00 00 00  00 00 00 00 D3 77 20 00  : ........ .....w .
20200DF0 - 80 1B 20 20 07 00 00 00  CC 00 00 00 03 00 00 00  : ..  .... ........
20200E00 - 00 00 00 00 E1 72 CD 1D  38 0E 20 20 19 74 20 00  : .....r.. 8.  .t .
20200E10 - 00 72 CD 1D 00 10 20 20  7F 1B 20 20 E1 72 CD 1D  : .r....   ..  .r..
20200E20 - 4B 0E 20 20 20 80 0F 40  DB 00 00 00 33 00 00 00  : K.   ..@ ....3...
20200E30 - 00 00 00 00 E1 72 CD 1D  68 0E 20 20 19 74 20 00  : .....r.. h.  .t .
20200E40 - E1 72 CD 1D 00 10 20 20  7F 1B 20 20 E1 72 CD 1D  : .r....   ..  .r..
20200E50 - 00 00 00 00 20 80 0F 40  DB 00 00 00 33 00 00 00  : .... ..@ ....3...
20200E60 - 00 00 00 00 D3 77 20 00  80 1B 20 20 E1 72 CD 1D  : .....w . ..  .r..
20200E70 - E1 72 CD 1D 20 80 0F 40  00 00 00 00 2D 7C 20 00  : .r.. ..@ ....-| .
20200E80 - 00 00 00 00 E1 72 CD 1D  00 00 00 00 68 0F 20 20  : .....r.. ....h.  
20200E90 - E8 0E 20 20 20 80 0F 40  C4 0E 20 20 8F 7D 20 00  : ..   ..@ ..  .} .
20200EA0 - C4 0E 20 20 E1 72 CD 1D  00 00 00 00 20 80 0F 40  : ..  .r.. .... ..@
20200EB0 - E1 72 CD 1D F0 00 00 00  00 03 20 00 A5 23 20 00  : .r...... .. ..# .
20200EC0 - 00 00 00 00 33 00 00 20  00 00 00 00 00 00 00 00  : ....3..  ........
20200ED0 - 00 00 00 00 E1 72 CD 1D  08 0F 20 20 E1 72 CD 1D  : .....r.. ..  .r..
20200EE0 - 71 23 20 00 01 09 21 00  7F 1B 20 20 E1 72 CD 1D  : q# ...!. ..  .r..
20200EF0 - E1 72 CD 1D 20 80 0F 40  DB 00 00 00 00 00 00 00  : .r.. ..@ ........
20200F00 - 00 00 00 00 E1 72 CD 1D  38 0F 20 20 19 74 20 00  : .....r.. 8.  .t .
20200F10 - E1 72 CD 1D 07 00 00 00  CC 00 00 00 03 00 00 00  : .r...... ........
20200F20 - E1 72 CD 1D 00 80 0F 40  21 48 21 00 01 00 00 00  : .r.....@ !H!.....
20200F30 - 00 72 CD 1D 07 00 00 00  CC 00 00 00 03 00 00 00  : .r...... ........
*** Max Count of Output Lines Reached ***
*** After memset ***
20200000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 24958 duplicate line(s) removed.
202617F0 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
So now it looks like some memory is now being preserved...
 
Sorry, I am sort of trying to think too simplistic.

My sketch knows nothing about nothing... It simply dumps the raw memory right after it can start the Serial port.
I have it setup to cut off after so many lines. But again nothing special.

It then fills that memory with a known value.

Then dumps again to verify that it is there...

Then I somehow reboot the processor and again dump the memory...

Now again again I know nothing about having an FS... So simply hope the memory is in the state I set it.
So would expect all 0x2as...

If that is not true, I would expect that either:
a) Something wrote again to this memory as part of the reboot or program..
b) Part of the boot process uses this memory for something. Like maybe a scratch pad to load stuff from the Flash?
c) Part of the boot process changes hardware settings on the memory which causes it to not necessarily retain the
d) the memset never actually updated the memory only the cache! Will try cache flush after a memset...
e) my head hurts

Your head hurts..... something definitely changed between when we first tested and now
 
Wanted to see what LFS Ram would give with memhexdump. From a cold start at startup:
Code:
*** At Startup ***
20200000 - E8 AB 5B 3F CA 0E A1 D6  55 A8 04 E4 29 33 9C A9  : ..[?.... U...)3..
20200010 - 58 5D 52 D6 04 CC D1 8D  64 C4 00 C4 EF 1E A7 8C  : X]R..... d.......
20200020 - EF BC 80 54 09 E5 24 2E  C8 D5 EB B5 61 30 56 6B  : ...T..$. ....a0Vk
20200030 - D1 0D EB CB 21 89 1D B5  72 FC 9D ED 22 1D 08 1A  : ....!... r..."...
20200040 - 49 08 47 8E 53 DE 1C 01  66 BE 31 2C 04 E6 96 E9  : I.G.S... f.1,....
20200050 - AF 26 FC FA A3 FB CD 25  5A 3D EA E6 C6 E7 33 04  : .&.....% Z=....3.
20200060 - F2 7A C7 F0 F6 00 90 98  DC 21 95 AC 98 E2 02 B2  : .z...... .!......
20200070 - A6 DA 45 91 A0 01 E5 41  4A 25 BC 47 C5 4B D1 2D  : ..E....A J%.G.K.-
20200080 - 03 89 C9 17 BF 32 34 2F  D3 D6 EB 26 4C 3E 47 9F  : .....24/ ...&L>G.
20200090 - 20 62 45 88 A3 AE 9B B8  C5 99 0C 55 69 71 86 4B  :  bE..... ...Uiq.K
202000A0 - 5C 6F CE D6 98 5A D6 DD  22 AB F4 8F 3D 30 19 0E  : \o...Z.. "...=0..
202000B0 - 10 00 8B E9 32 07 06 B6  C5 4E 9A F5 29 D2 81 00  : ....2... .N..)...
202000C0 - D3 84 94 43 28 B8 73 BD  39 3F 57 7A A9 FA 54 F4  : ...C(.s. 9?Wz..T.
202000D0 - 96 1E 54 1A C2 B9 64 CF  87 29 B0 A2 58 35 05 0E  : ..T...d. .)..X5..
202000E0 - 63 C8 A4 DB 76 6D 31 B6  1B B0 7B D0 29 7D 70 96  : c...vm1. ..{.)}p.
202000F0 - 85 E4 75 BE 83 1D D1 BF  56 43 AE BA F6 76 41 27  : ..u..... VC...vA'
20200100 - 8A 2C 2F EB 99 91 65 8C  9C 5C 50 AA 51 AE 9B 64  : .,/...e. .\P.Q..d
20200110 - CD 8D A3 47 45 87 B9 75  E7 05 01 1A 3F 9E B3 B3  : ...GE..u ....?...
20200120 - 1A AA 98 29 14 B5 7A 9E  2F 7F F5 F0 21 21 8B 5B  : ...)..z. /...!!.[
20200130 - 0A 2B 5D 17 77 A4 8E F4  75 E6 05 B6 9D 3D 9F D3  : .+].w... u....=..
20200140 - C6 38 46 02 C6 7F 0D B4  20 AF EF 36 01 A9 19 DD  : .8F.....  ..6....
20200150 - 6D A0 F8 15 8A 8A 74 93  8C 3F 0B D3 F1 57 E1 F4  : m.....t. .?...W..
20200160 - 50 68 EB 70 F7 AF 97 B7  D1 CA 96 5B C1 EA 7D A2  : Ph.p.... ...[..}.
20200170 - 67 61 3D F9 52 C1 40 0F  B8 5D 33 97 26 DA 34 65  : ga=.R.@. .]3.&.4e
20200180 - 55 51 76 F6 81 05 42 93  26 83 EF D8 5A 58 45 9A  : UQv...B. &...ZXE.
20200190 - 6F 06 BE 29 A8 9D CE 79  98 9A A1 C8 21 AD 2E 3C  : o..)...y ....!..<
202001A0 - 1D A7 EE A9 90 F3 27 E0  10 28 D4 D9 C6 A1 AC FA  : ......'. .(......
202001B0 - 08 C4 B9 08 67 7B 6E 24  B0 6B 57 91 8B 1C D9 72  : ....g{n$ .kW....r
202001C0 - B2 29 38 4F E3 82 F2 F5  82 6D D5 D9 11 9A BC 6A  : .)8O.... .m.....j
202001D0 - 46 64 0C A9 78 F4 9B 4D  68 EA A1 6C B9 35 2C CE  : Fd..x..M h..l.5,.
202001E0 - EB AA 66 1C 07 63 4D 41  F5 96 88 03 ED 1C 36 C3  : ..f..cMA ......6.
202001F0 - 7D 70 E0 E6 E2 5B D0 5C  1D 91 AC 19 DC C8 C8 37  : }p...[.\ .......7
20200200 - 86 76 01 0A E2 E6 96 D5  94 38 32 78 E9 65 68 77  : .v...... .82x.ehw
20200210 - 47 21 04 F1 D8 39 A3 31  97 0F EA A0 DF D9 D4 3D  : G!...9.1 .......=
20200220 - DB A7 F5 9F 9C 95 42 21  8E ED 41 EC F5 E0 3F 84  : ......B! ..A...?.
20200230 - 12 84 D2 D5 3A 24 24 D6  3C 7A DE 93 C3 57 9F 9D  : ....:$$. <z...W..
20200240 - 9B 0E D1 69 FD 7C 38 20  63 15 0B 61 B7 6D 3F 1C  : ...i.|8  c..a.m?.
20200250 - E0 0C C0 24 FF CF 1A 67  25 59 F6 B3 B9 50 84 A5  : ...$...g %Y...P..
20200260 - 0B 96 12 F5 54 30 F5 24  EA EB 3C A8 03 85 C1 68  : ....T0.$ ..<....h
20200270 - BD 76 23 42 1E A9 23 FD  64 B2 22 15 B4 3C 44 0B  : .v#B..#. d."..<D.
20200280 - EE 67 67 A2 F0 FB 05 1E  A4 08 25 D3 C2 DB 54 C1  : .gg..... ..%...T.
20200290 - 36 41 EC 75 50 34 BE 85  52 D7 06 06 4D 7C 24 DE  : 6A.uP4.. R...M|$.
202002A0 - C1 CF 41 C7 95 12 5E 86  DF 85 8E 7D 58 CF 42 D5  : ..A...^. ...}X.B.
202002B0 - AF 6F DF 7C 45 65 ED 63  98 65 50 DE 80 2F 2A 98  : .o.|Ee.c .eP../*.
202002C0 - A4 AD 71 66 35 AC A3 F5  DC 87 60 6D ED 2A 14 A1  : ..qf5... ..`m.*..
202002D0 - B2 42 29 E2 33 4E A1 6D  79 6E 3B 26 76 52 B9 2E  : .B).3N.m yn;&vR..
202002E0 - C8 FD 5B DD 17 90 AF 10  7C ED 35 CC 1C 02 20 D0  : ..[..... |.5... .
202002F0 - CA 22 A0 66 CA 24 8E AC  D9 E1 FE 8C 07 61 5E 5B  : .".f.$.. .....a^[
20200300 - CD 46 2A 4F DC 97 D9 34  23 07 7E AB 7C 94 88 CD  : .F*O...4 #.~.|...
20200310 - 5D E1 D7 1B 02 1A 0E F1  8A 9A 05 00 EA 9D A7 5D  : ]....... .......]
*** Max Count of Output Lines Reached ***
everything is gibberish as you showed before.

Now after initialization (Note - probably the disk is corrupted:
Code:
20200000 - 01 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
20200010 - 2F E0 00 10 00 00 02 00  00 01 00 00 18 06 00 00  : /....... ........
20200020 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 70 1F FC 08  : '....... ....p...
20200030 - 1C B6 F2 15 FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200040 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
...	 10 duplicate line(s) removed.
202000F0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200100 - 02 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
20200110 - 2F E0 00 10 00 00 02 00  00 01 00 00 18 06 00 00  : /....... ........
20200120 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 70 1F FC 08  : '....... ....p...
20200130 - 78 83 20 53 FF FF FF FF  FF FF FF FF FF FF FF FF  : x. S.... ........
20200140 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
...	 24938 duplicate line(s) removed.
202617F0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
LittleFS initialized.
LFS initializes the whole disk.

Now after writing some data and restarting in TyCom we are back to the disk being corrupted ?
Code:
20200000 - 01 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
20200010 - 2F E0 00 10 00 00 02 00  00 01 00 00 18 06 00 00  : /....... ........
20200020 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 70 1F FC 08  : '....... ....p...
20200030 - 1C B6 F2 15 FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200040 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
...	 10 duplicate line(s) removed.
202000F0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200100 - 02 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
20200110 - 2F E0 00 10 00 00 02 00  00 01 00 00 18 06 00 00  : /....... ........
20200120 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 70 1F FC 08  : '....... ....p...
20200130 - 78 83 20 53 FF FF FF FF  FF FF FF FF FF FF FF FF  : x. S.... ........
20200140 - 10 1F F8 10 40 00 00 0B  64 61 74 61 6C 6F 67 2E  : ....@... datalog.
20200150 - 74 78 74 20 00 00 0B 70  1F F8 25 9C 67 ED 30 FF  : txt ...p ..%.g.0.
20200160 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200170 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200180 - 70 2F F8 2D 79 00 00 00  3F 01 00 00 70 2F F8 38  : p/.-y... ?...p/.8
20200190 - C0 10 48 51 FF FF FF FF  FF FF FF FF FF FF FF FF  : ..HQ.... ........
202001A0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
...	 170 duplicate line(s) removed.
20200C50 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200C60 - FF FF FF FF FF FF FF FF  40 78 7D 01 80 F0 FA 02  : ........ @x}.....
20200C70 - 00 E1 F5 05 40 59 73 07  00 C0 0F 40 BC 0C 20 20  : ....@Ys. ...@..  
20200C80 - 10 0D 20 20 00 00 00 00  00 00 00 00 53 BB 20 00  : ..  .... ....S. .
20200C90 - 00 C0 0F 40 11 BA 20 00  00 01 00 00 00 01 00 00  : ...@.. . ........
20200CA0 - 00 00 00 00 FF FF 00 00  00 80 2A 40 00 00 00 00  : ........ ..*@....
20200CB0 - 10 0D 20 20 10 0D 20 20  00 80 2A 40 04 00 00 00  : ..  ..   ..*@....
20200CC0 - 46 43 46 42 00 00 00 00  00 00 00 00 00 00 00 00  : FCFB.... ........
20200CD0 - 00 00 00 00 27 20 21 00  00 00 00 00 10 0D 20 20  : ....' !. ......  
20200CE0 - 70 3A 20 20 10 0D 20 20  00 00 00 00 64 41 51 DE  : p:  ..   ....dAQ.
20200CF0 - 20 0D 20 20 19 74 20 00  64 41 51 DE 00 10 20 20  :  .  .t . dAQ...  
20200D00 - 7F 1B 20 20 64 41 51 DE  00 00 00 00 20 80 0F 40  : ..  dAQ. .... ..@
20200D10 - 0C 00 00 00 00 00 00 00  00 00 00 00 D3 77 20 00  : ........ .....w .
20200D20 - 80 1B 20 20 64 41 51 DE  64 41 51 DE 20 80 0F 40  : ..  dAQ. dAQ. ..@
20200D30 - 20 80 0F 40 51 7D 20 00  00 10 20 20 64 41 51 DE  :  ..@Q} . ..  dAQ.
20200D40 - 08 00 00 00 7D 75 20 00  80 1B 20 20 33 00 00 20  : ....}u . ..  3.. 
20200D50 - 00 00 00 00 00 00 00 00  00 00 00 00 64 41 51 DE  : ........ ....dAQ.
20200D60 - 0C 00 00 00 C0 0D 20 20  20 80 0F 40 00 10 20 20  : ......    ..@..  
20200D70 - 00 00 00 00 64 41 51 DE  A8 0D 20 20 19 74 20 00  : ....dAQ. ..  .t .
20200D80 - 00 00 00 00 64 41 51 DE  B8 0D 20 20 19 74 20 00  : ....dAQ. ..  .t .
20200D90 - 33 00 00 00 00 10 20 20  7F 1B 20 20 64 41 51 DE  : 3.....   ..  dAQ.
20200DA0 - 0C 00 00 00 20 80 0F 40  0C 00 00 00 00 00 00 00  : .... ..@ ........
20200DB0 - 00 00 00 00 D3 77 20 00  80 1B 20 20 64 41 51 DE  : .....w . ..  dAQ.
20200DC0 - 64 41 51 DE 20 80 0F 40  20 80 0F 40 51 7D 20 00  : dAQ. ..@  ..@Q} .
20200DD0 - 00 10 20 20 64 41 51 DE  14 00 00 00 7D 75 20 00  : ..  dAQ. ....}u .
20200DE0 - 80 1B 20 20 33 00 00 20  00 00 00 00 00 00 00 00  : ..  3..  ........
20200DF0 - 00 00 00 00 07 00 00 00  CC 00 00 00 01 00 00 00  : ........ ........
20200E00 - 00 00 00 00 64 41 51 DE  38 0E 20 20 19 74 20 00  : ....dAQ. 8.  .t .
20200E10 - 00 41 51 DE 00 10 20 20  7F 1B 20 20 64 41 51 DE  : .AQ...   ..  dAQ.
20200E20 - 4B 0E 20 20 20 80 0F 40  DB 00 00 00 33 00 00 00  : K.   ..@ ....3...
20200E30 - 00 00 00 00 D3 77 20 00  80 1B 20 20 64 41 51 DE  : .....w . ..  dAQ.
20200E40 - 64 41 51 DE 20 80 0F 40  00 00 00 00 2D 7C 20 00  : dAQ. ..@ ....-| .
20200E50 - 00 00 00 00 64 41 51 DE  00 00 00 00 38 0F 20 20  : ....dAQ. ....8.
and you try and print out the file it is corrupted spew.
 
Here is an interesting thing... I ran it on a normal T4... And after the reboot I see:
Code:
Simple DMAMEM startup memory test
*** At Startup ***
20200000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 196 duplicate line(s) removed.
20200C50 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
20200C60 - 2A 2A 2A 2A 2A 2A 2A 2A  40 78 7D 01 80 F0 FA 02  : ******** @x}.....


So the locked one had 144 duplicate lines this as 196. Ditto for T4.1...

@Paul and others...

Wondering something, When the Teensy reboots, and goes through bootdata.c ... What is the initial Stack pointer and the like set to.
Could it be doing stuff assuming that this is trash-able memory especially before it has set up the DTCM/ITCM stuff in Ram1?

So could this be growing down and in the case of locked T4, needs more stack space to setup?

Again sorry this a WAG!
 
Follow up. If I do an erase (quickFormat), write a bunch of data and reset:
Code:
D:\Users\Merli\Documents\Arduino\T4 Security Beta\LittleFS_RAM_Simple_Datalogger\LittleFS_RAM_Simple_Datalogger.ino Aug 21 2021 14:57:17
*** At Startup ***
20200000 - 05 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
20200010 - 2F E0 00 10 00 00 02 00  00 01 00 00 18 06 00 00  : /....... ........
20200020 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 70 1F FC 08  : '....... ....p...
20200030 - 6C 05 35 E3 FF FF FF FF  FF FF FF FF FF FF FF FF  : l.5..... ........
20200040 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
...	 10 duplicate line(s) removed.
202000F0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200100 - 06 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
20200110 - 2F E0 00 10 00 00 02 00  00 01 00 00 18 06 00 00  : /....... ........
20200120 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 70 1F FC 08  : '....... ....p...
20200130 - 08 30 E7 A5 FF FF FF FF  FF FF FF FF FF FF FF FF  : .0...... ........
20200140 - 10 1F F8 10 40 00 00 0B  64 61 74 61 6C 6F 67 2E  : ....@... datalog.
20200150 - 74 78 74 20 00 00 0B 70  1F F8 25 9C 67 ED 30 FF  : txt ...p ..%.g.0.
20200160 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200170 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200180 - 70 2F F8 2D 0B 00 00 00  51 03 00 00 70 2F F8 38  : p/.-.... Q...p/.8
20200190 - 0B AC C7 CB FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
202001A0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
...	 100 duplicate line(s) removed.
202007F0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200800 - 39 2C 39 2C 31 30 30 36  0D 0A 31 34 2C 31 31 2C  : 9,9,1006 ..14,11,
20200810 - 31 30 30 34 0D 0A 31 35  2C 31 30 2C 31 30 30 35  : 1004..15 ,10,1005
20200820 - 0D 0A 31 36 2C 39 2C 31  30 30 36 0D 0A 31 35 2C  : ..16,9,1 006..15,
20200830 - 31 30 2C 31 30 30 35 0D  0A 31 35 2C 31 31 2C 31  : 10,1005. .15,11,1
20200840 - 30 30 34 0D 0A 31 34 2C  31 30 2C 31 30 30 34 0D  : 004..14, 10,1004.
20200850 - 0A 31 35 2C 31 30 2C 31  30 30 34 0D 0A 31 36 2C  : .15,10,1 004..16,
20200860 - 39 2C 31 30 30 35 0D 0A  31 37 2C 39 2C 31 30 30  : 9,1005.. 17,9,100
20200870 - 36 0D 0A 31 34 2C 31 31  2C 31 30 30 34 0D 0A 31  : 6..14,11 ,1004..1
20200880 - 36 2C 31 30 2C 31 30 30  36 0D 0A 31 37 2C 38 2C  : 6,10,100 6..17,8,
20200890 - 31 30 30 37 0D 0A 31 34  2C 31 30 2C 31 30 30 33  : 1007..14 ,10,1003
202008A0 - 0D 0A 31 36 2C 38 2C 31  30 30 37 0D 0A 31 34 2C  : ..16,8,1 007..14,
202008B0 - 31 31 2C 31 30 30 34 0D  0A 31 36 2C 38 2C 31 30  : 11,1004. .16,8,10
202008C0 - 30 36 0D 0A 31 34 2C 31  31 2C 31 30 30 34 0D 0A  : 06..14,1 1,1004..
202008D0 - 31 37 2C 38 2C 31 30 30  37 0D 0A 31 34 2C 31 31  : 17,8,100 7..14,11
202008E0 - 2C 31 30 30 35 0D 0A 31  37 2C 31 30 2C 31 30 30  : ,1005..1 7,10,100
202008F0 - 36 0D 0A 31 36 2C 39 2C  31 30 30 35 0D 0A 31 34  : 6..16,9, 1005..14
20200900 - 08 00 00 00 2C 31 30 2C  31 30 30 35 0D 0A 31 35  : ....,10, 1005..15
20200910 - 2C 31 30 2C 31 30 30 35  0D 0A 31 36 2C 39 2C 31  : ,10,1005 ..16,9,1
20200920 - 30 30 35 0D 0A 31 36 2C  39 2C 31 30 30 35 0D 0A  : 005..16, 9,1005..
20200930 - 31 35 2C 31 30 2C 31 30  30 35 0D 0A 31 36 2C 38  : 15,10,10 05..16,8
20200940 - 2C 31 30 30 37 0D 0A 31  35 2C 31 30 2C 31 30 30  : ,1007..1 5,10,100
20200950 - 35 0D 0A 31 36 2C 39 2C  31 30 30 36 0D 0A 31 34  : 5..16,9, 1006..14
20200960 - 2C 31 31 2C 31 30 30 34  0D 0A 31 36 2C 38 2C 31  : ,11,1004 ..16,8,1
20200970 - 30 30 36 0D 0A 31 35 2C  31 30 2C 31 30 30 35 0D  : 006..15, 10,1005.
20200980 - 0A 31 37 2C 39 2C 31 30  30 36 0D 0A 31 34 2C 31  : .17,9,10 06..14,1
20200990 - 31 2C 31 30 30 34 0D 0A  31 37 2C 39 2C 31 30 30  : 1,1004.. 17,9,100
202009A0 - 36 0D 0A 31 36 2C 39 2C  31 30 30 36 0D 0A 31 36  : 6..16,9, 1006..16
202009B0 - 2C 31 30 2C 31 30 30 35  0D 0A 31 36 2C 31 30 2C  : ,10,1005 ..16,10,
202009C0 - 31 30 30 36 0D 0A 31 36  2C 39 2C 31 30 30 36 0D  : 1006..16 ,9,1006.
202009D0 - 0A 31 36 2C 31 30 2C 31  30 30 35 0D 0A 31 36 2C  : .16,10,1 005..16,
202009E0 - 31 30 2C 31 30 30 35 0D  0A 31 36 2C 39 2C 31 30  : 10,1005. .16,9,10
202009F0 - 30 36 0D 0A 31 34 2C 31  31 2C 31 30 30 35 0D 0A  : 06..14,1 1,1005..
*** Max Count of Output Lines Reached ***
and after LFS initialization

Code:
Initializing LittleFS ...*** After LittleFS initialized ***
20200000 - 05 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
20200010 - 2F E0 00 10 00 00 02 00  00 01 00 00 18 06 00 00  : /....... ........
20200020 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 70 1F FC 08  : '....... ....p...
20200030 - 6C 05 35 E3 FF FF FF FF  FF FF FF FF FF FF FF FF  : l.5..... ........
20200040 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
...	 10 duplicate line(s) removed.
202000F0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200100 - 06 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
20200110 - 2F E0 00 10 00 00 02 00  00 01 00 00 18 06 00 00  : /....... ........
20200120 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 70 1F FC 08  : '....... ....p...
20200130 - 08 30 E7 A5 FF FF FF FF  FF FF FF FF FF FF FF FF  : .0...... ........
20200140 - 10 1F F8 10 40 00 00 0B  64 61 74 61 6C 6F 67 2E  : ....@... datalog.
20200150 - 74 78 74 20 00 00 0B 70  1F F8 25 9C 67 ED 30 FF  : txt ...p ..%.g.0.
20200160 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200170 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200180 - 70 2F F8 2D 0B 00 00 00  51 03 00 00 70 2F F8 38  : p/.-.... Q...p/.8
20200190 - 0B AC C7 CB FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
202001A0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
...	 100 duplicate line(s) removed.
202007F0 - FF FF FF FF FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
20200800 - 39 2C 39 2C 31 30 30 36  0D 0A 31 34 2C 31 31 2C  : 9,9,1006 ..14,11,
20200810 - 31 30 30 34 0D 0A 31 35  2C 31 30 2C 31 30 30 35  : 1004..15 ,10,1005
20200820 - 0D 0A 31 36 2C 39 2C 31  30 30 36 0D 0A 31 35 2C  : ..16,9,1 006..15,
20200830 - 31 30 2C 31 30 30 35 0D  0A 31 35 2C 31 31 2C 31  : 10,1005. .15,11,1
20200840 - 30 30 34 0D 0A 31 34 2C  31 30 2C 31 30 30 34 0D  : 004..14, 10,1004.
20200850 - 0A 31 35 2C 31 30 2C 31  30 30 34 0D 0A 31 36 2C  : .15,10,1 004..16,
20200860 - 39 2C 31 30 30 35 0D 0A  31 37 2C 39 2C 31 30 30  : 9,1005.. 17,9,100
20200870 - 36 0D 0A 31 34 2C 31 31  2C 31 30 30 34 0D 0A 31  : 6..14,11 ,1004..1
20200880 - 36 2C 31 30 2C 31 30 30  36 0D 0A 31 37 2C 38 2C  : 6,10,100 6..17,8,
20200890 - 31 30 30 37 0D 0A 31 34  2C 31 30 2C 31 30 30 33  : 1007..14 ,10,1003
202008A0 - 0D 0A 31 36 2C 38 2C 31  30 30 37 0D 0A 31 34 2C  : ..16,8,1 007..14,
202008B0 - 31 31 2C 31 30 30 34 0D  0A 31 36 2C 38 2C 31 30  : 11,1004. .16,8,10
202008C0 - 30 36 0D 0A 31 34 2C 31  31 2C 31 30 30 34 0D 0A  : 06..14,1 1,1004..
202008D0 - 31 37 2C 38 2C 31 30 30  37 0D 0A 31 34 2C 31 31  : 17,8,100 7..14,11
202008E0 - 2C 31 30 30 35 0D 0A 31  37 2C 31 30 2C 31 30 30  : ,1005..1 7,10,100
202008F0 - 36 0D 0A 31 36 2C 39 2C  31 30 30 35 0D 0A 31 34  : 6..16,9, 1005..14
20200900 - 08 00 00 00 2C 31 30 2C  31 30 30 35 0D 0A 31 35  : ....,10, 1005..15
20200910 - 2C 31 30 2C 31 30 30 35  0D 0A 31 36 2C 39 2C 31  : ,10,1005 ..16,9,1
20200920 - 30 30 35 0D 0A 31 36 2C  39 2C 31 30 30 35 0D 0A  : 005..16, 9,1005..
20200930 - 31 35 2C 31 30 2C 31 30  30 35 0D 0A 31 36 2C 38  : 15,10,10 05..16,8
20200940 - 2C 31 30 30 37 0D 0A 31  35 2C 31 30 2C 31 30 30  : ,1007..1 5,10,100
20200950 - 35 0D 0A 31 36 2C 39 2C  31 30 30 36 0D 0A 31 34  : 5..16,9, 1006..14
20200960 - 2C 31 31 2C 31 30 30 34  0D 0A 31 36 2C 38 2C 31  : ,11,1004 ..16,8,1
20200970 - 30 30 36 0D 0A 31 35 2C  31 30 2C 31 30 30 35 0D  : 006..15, 10,1005.
20200980 - 0A 31 37 2C 39 2C 31 30  30 36 0D 0A 31 34 2C 31  : .17,9,10 06..14,1
20200990 - 31 2C 31 30 30 34 0D 0A  31 37 2C 39 2C 31 30 30  : 1,1004.. 17,9,100
202009A0 - 36 0D 0A 31 36 2C 39 2C  31 30 30 36 0D 0A 31 36  : 6..16,9, 1006..16
202009B0 - 2C 31 30 2C 31 30 30 35  0D 0A 31 36 2C 31 30 2C  : ,10,1005 ..16,10,
202009C0 - 31 30 30 36 0D 0A 31 36  2C 39 2C 31 30 30 36 0D  : 1006..16 ,9,1006.
202009D0 - 0A 31 36 2C 31 30 2C 31  30 30 35 0D 0A 31 36 2C  : .16,10,1 005..16,
202009E0 - 31 30 2C 31 30 30 35 0D  0A 31 36 2C 39 2C 31 30  : 10,1005. .16,9,10
202009F0 - 30 36 0D 0A 31 34 2C 31  31 2C 31 30 30 35 0D 0A  : 06..14,1 1,1005..
*** Max Count of Output Lines Reached ***
you can see the data written pretty clear - if you try it make sure your write about 100 lines of data. And of course if you try and print the file it works.

So something on power up is corrupting something??????


EDIT: This is all on a normal teensy
 
NEW TEST IDEA - not yet done: :: This will add up to the problematic 490MB - in two halves - ideally bufBACK[] will be in SAFE LOW portion and buf[] above it.
Code:
DMAMEM char bufBACK[ 245 * 1024 ];	// BACKUP copy of LFS _RAM 
DMAMEM char buf[ 245 * 1024 ];	// DMAMEM Uses RAM2 :: Typically survives Restart/Upload
> Start LFS with buf[] :: "F" and fill some loop data
-> On "R" - memcpy buf[] >> bufBACK[]
-> CACHE_FLUSH
// --- after restart
compare buf[] and bufBACK[] for any DIFFS and MemoryHexDump() them


DMAMEM : Indeed when tested for release of TD 1.54 when persistence was added it looked right. Unless something is violating HEAP space - or other change - it should remain usable.

-> NOTE: The lfs_mount() can find the signature VALID - but if the size of DMAMEM buf[] changes between runs - always force a "F" to assure no confusion with actual FS sizing for use.


Indeed noted pages back :: IDE Verify Build the TyComm Bootloader is best programming using it as SerMon - and the same for controlled Resets. It can't program - but it is a better SerMon with multiple Teensy online - and Verify and TyComm control of Bootloader/Reset work well.
-> seems to have TeensyLoader use HEX or eHex as proper for the device.

>> Wanted to NOTE: Teensy SerMon through IDE was doing a good job of connecting and restarting with the device when I was using a single Beta T_4 earlier.
-> IIRC it wouldn't always track and restart well on some prior generation as the Teensy came and went.
 
First: I have not read everything.
But when I went home earlier through the darkness, and I thought a minute about it., it occurred to me that maybe the cache is not considered in your tests?
It must be ensured that before the first access the corresponding adresses are invalidated. This applies to both the external RAM and DTCM.
Also, it's needed that (esp for PSRAM - but, of course. DTCM, too) that all new contents are written before reboot.

Just as an idea....
 
First: I have not read everything.
But when I went home earlier through the darkness, and I thought a minute about it., it occurred to me that maybe the cache is not considered in your tests?
It must be ensured that before the first access the corresponding adresses are invalidated. This applies to both the external RAM and DTCM.
Also, it's needed that (esp for PSRAM - but, of course. DTCM, too) that all new contents are written before reboot.

Just as an idea....

Indeed the cache can be an issue.
When tested for TD1.54 PSRAM and DMAMEM disks worked - and when edited for RAM DMAMEM persist the media area had a cache_flush added when 'lfs' calls back with : static_sync()
Added this - hopefully the extents are correct? Is there any 'lfs critical/used' area outside the block count*size? : T:\Arduino_1.8.15td155\hardware\teensy\avr\libraries\LittleFS\src\LittleFS.h
Code:
arm_dcache_flush_delete(c->context, c->block_count * c->block_size );

Maybe a diff case was tested that didn't get this behavior - or possibly some change in update to TD 1.55 triggered some DMAMEM edits not expected?

Starting suggested edits to RAM_SPLIT version of the RAM.ino noted in p#216 - but lunch and other going to keep it undone some hours.
Code:
LittleFS_RAM myfs;  // CAN use either RAM1 or RAM2 as available
DMAMEM char bufBACK[ 245 * 1024 ];  // DMAMEM Uses RAM2 :: Backup LFS _RAM
DMAMEM char buf[ 245 * 1024 ];  // DMAMEM Uses RAM2 :: Typically survives Restart/Upload

plan ???:
On "F"ORMAT - will perform a memcpy buf >> bufBACK and cache Flush
Should add a 't' to perform the buffer compare { buf == bufBACK } and on diff dumpHex of both ( if the bufBACK isn't a non-image, perhaps test 'littlefs' bytes :: 20200000 - 05 00 00 00 F0 0F FF F7 6C 69 74 74 6C 65 66 73 )
on "R"estart - will perform a memcpy buf >> bufBACK and cache Flush

<EDIT>:: FIRST STEP COMPILE WITH above DUAL bufs and OBSERVE :: FAIL
> Start with RAM as : DMAMEM char buf[ 245 * 1024 ]
New Disk Formatted on start
'2'
'd' //okay
"R"
// DISK BAD
Code:
...
 4 dirs with 2 files of Size 2816 Bytes
 Total 13 files of Size 45312 Bytes
Bytes Used: 250880, Bytes Total:250880


	WARNING: DISK FULL >>>>>  Bytes Used: 250880, Bytes Total:250880
 
Last edited:
At this point, until maybe @Paul chimes in, I think the easiest thing to do is to say that the DMAMEM is not fully retained between reboots...

For this latest test, I turned on the kernel debug printing on Serial4. I then configured a TMOD to be USB to Serial adapter to locked T4...

I rebuilt with debug turned on...

I also added this to my sketch:
Code:
extern "C" {
  void startup_early_hook(void) {
    printf("*** startup_early_hook ***\n");

    // See how many bytes are our 2a
    uint32_t index_first_none_2a = (uint32_t)-1;
    uint32_t count_none_2a = 0;
    for (uint32_t i = 0; i < sizeof(buf); i++) {
      if (buf[i] != 0x2a) {
        if (count_none_2a == 0) index_first_none_2a = i;
        count_none_2a++;
      }
    }
    printf("buff size: %u first none 2a: %u, count: %u\n", sizeof(buf), index_first_none_2a, count_none_2a);
    
  }
}

Debug output on Serial 4:
Code:
usb_cdc_line_coding, baud=134
usb_cdc_line_coding, baud=134
usb_cdc_line_coding, baud=115200
usb_cdc_line_coding, baud=115200

***********IMXRT Startup**********
test 1 -1234567 3
CCM_ANALOG_PLL_USB1=80003000
  enable USB clocks
CCM_ANALOG_PLL_USB1=80003040
Increasing voltage to 1250 mV
need to switch to alternate clock during reconfigure of ARM PLL
USB PLL is running, so we can use 120 MHz
Freq: 12 MHz * 100 / 2 / 1
ARM PLL=80002042
ARM PLL needs reconfigure
ARM PLL=80002064
New Frequency: ARM=600000000, IPG=150000000
[COLOR="#FF0000"]*** startup_early_hook ***
buff size: 399360 first none 2a: 2344, count: 28371[/COLOR]
BURSTSIZE=00000808
BURSTSIZE=00000808
USB1_TXFILLTUNING=00000000
USB reset took 6 loops
analogInit
usb_serial_reset
usb_serial_configure
rx queue i=0
rx queue i=1
rx queue i=2
rx queue i=3
rx queue i=4
rx queue i=5
rx queue i=6
rx queue i=7
usb_cdc_line_coding, baud=0
So again the majority of this memory is not 0x2a but the first 2344(0x928) bytes are.. Which matches my dump. Not sure if there are any earlier hooks...

So again not sure how much more to do until have more idea of why only this memory range preserved
 
Something Very Odd showing - thanks to MemoryHexDump()

Code:
DMAMEM char bufBACK[ 245 * 1024 ];  // DMAMEM Uses RAM2 :: Backup LFS _RAM
DMAMEM char bufREAL[ 245 * 1024 ];  // DMAMEM Uses RAM2 :: Typically survives Restart/Upload

Code:
  Serial.println("LittleFS Test : File Integrity"); delay(5);
  MemoryHexDump(Serial, bufREAL , sizeof(bufREAL), true, "*** bufREAL[] At Startup ***\n", 10);
  MemoryHexDump(Serial, bufBACK , sizeof(bufBACK), true, "*** bufBACK[] At Startup ***\n", 10);

//  if (!myfs.begin(bufREAL, sizeof(bufREAL))) {
[B]  if (!myfs.begin(bufBACK, sizeof(bufBACK))) {[/B]
    Serial.printf("Error starting %s\n", szDiskMem);
    while ( 1 );
  }
  MemoryHexDump(Serial, bufREAL , sizeof(bufREAL), true, "*** bufREAL[] At Startup ::  BEGUN ***\n", 10);
  MemoryHexDump(Serial, bufBACK , sizeof(bufBACK), true, "*** bufBACK[] At Startup ::  BEGUN ***\n", 10);

It doesn't matter which buf????{} is declared first , or changing the name
and it doesn't matter which buff????[] is used for myfs.begin()

The LFS _RAM is always active on this LOWER address:
Code:
[B]*** bufBACK[] At Startup ::  BEGUN ***
20200000 - 03 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
[/B]20200010 - 2F E0 00 10 00 00 02 00  00 01 00 00 D4 03 00 00  : /....... ........

And restart always shows corruption on the drive created there. - so it is the lower end of DMAMEM that dies not the upper end ????

Then swapping - tracks to SAME ADDRESS and FAILS THE SAME:
Code:
[B]  if (!myfs.begin(bufREAL, sizeof(bufREAL))) {[/B]
//  if (!myfs.begin(bufBACK, sizeof(bufBACK))) {

Code:
[B]*** bufREAL[] At Startup ::  BEGUN ***
20200000 - 03 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
[/B]20200010 - 2F E0 00 10 00 00 02 00  00 01 00 00 D4 03 00 00  : /....... ........
20200020 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 20 30 04 1D  : '....... .... 0..
20200030 - 31 5F 64 69 72 20 20 00  0D 13 00 00 00 14 00 00  : 1_dir  . ........
20200040 - 00 20 20 0C 0D 32 5F 64  69 72 20 20 00 0D 15 00  : .  ..2_d ir  ....
20200050 - 00 00 16 00 00 00 20 20  04 0D 33 5F 64 69 72 20  : ......   ..3_dir 
20200060 - 20 00 0D 17 00 00 00 18  00 00 00 20 20 1C 0D 34  :  ....... ...  ..4
20200070 - 5F 64 69 72 20 20 00 0D  19 00 00 00 1A 00 00 00  : _dir  .. ........
20200080 - 40 0F EC 00 19 00 00 00  1A 00 00 00 30 00 00 38  : @....... ....0..8
20200090 - 40 BD AB 09 FF FF FF FF  FF FF FF FF FF FF FF FF  : @....... ........
*** Max Count of Output Lines Reached ***
*** bufBACK[] At Startup ::  BEGUN ***
2023D400 - 39 8B 89 F9 28 8D 89 F6  05 8B 83 CA CE 18 CB C5  : 9...(... ........
2023D410 - D6 04 FF EE 53 00 A6 88  57 02 4B FD E8 02 71 17  : ....S... W.K...q.

Makes it work okay ... FORCING IT TO MOVE WITH:
Code:
  if (!myfs.begin([B][COLOR="#FF0000"]&bufREAL[1024], sizeof(bufREAL)-2048)[/COLOR][/B]) {
//  if (!myfs.begin(bufBACK, sizeof(bufBACK))) {
    Serial.printf("Error starting %s\n", szDiskMem);
    while ( 1 );
  }
  MemoryHexDump(Serial, bufREAL , sizeof(bufREAL), true, "*** bufREAL[] At Startup ::  BEGUN ***\n", 10);
[B]  MemoryHexDump(Serial, &bufREAL[1024], sizeof(bufREAL)-2048, true, "*** bufREAL[] At Startup ::  BEGUN ***\n", 10);[/B]
  MemoryHexDump(Serial, bufBACK , sizeof(bufBACK), true, "*** bufBACK[] At Startup ::  BEGUN ***\n", 10);

This is on a production T_4.0 after power OFF - then : '2', d, D, R ::
Code:
... begin() 

... mounted 
*** bufREAL[] At Startup ::  BEGUN ***
20200000 - 55 BF 67 07 EA 7B BB A9  83 49 A8 AD 4B C8 5E DB  : U.g..{.. .I..K.^.
20200010 - 8F C1 48 69 55 65 66 E2  CF E6 83 07 32 63 53 DC  : ..HiUef. ....2cS.
20200020 - 5E 28 F3 B4 C1 20 F1 86  F1 0A 23 AA 72 AE DA FD  : ^(... .. ..#.r...
20200030 - 28 09 71 05 CF 07 83 70  F0 DF 86 01 99 9D 5A 55  : (.q....p ......ZU
20200040 - 1A EB EB 06 2A F6 1A F4  3C B6 4E 01 41 9A 2D 7F  : ....*... <.N.A.-.
20200050 - FB 14 A7 B5 14 DC 04 CB  3F B8 64 D2 8E 07 86 FB  : ........ ?.d.....
20200060 - 05 C3 01 0E 86 B8 CD 35  83 64 13 C2 C0 E0 7B A2  : .......5 .d....{.
20200070 - 01 08 22 B4 8D 1A D3 A1  B3 6C 4E 2F 73 D6 4E 1E  : .."..... .lN/s.N.
20200080 - 98 53 5F 76 49 AA 67 F6  63 50 42 CB F1 03 09 9E  : .S_vI.g. cPB.....
20200090 - 06 F9 7C 8F 0C 5B 62 B1  5A 74 B3 15 1D 2E C0 02  : ..|..[b. Zt......
*** Max Count of Output Lines Reached ***
[B]*** bufREAL[] At Startup ::  BEGUN ***
[COLOR="#FF0000"]20200400[/COLOR] - 03 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
20200410 - 2F E0 00 10 00 00 02 00  00 01 00 00 CC 03 00 00  : /....... ........
20200420 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 20 30 04 1D  : '....... .... 0..
20200430 - 31 5F 64 69 72 20 20 00  0D 84 00 00 00 85 00 00  : 1_dir  . ........
20200440 - 00 20 20 0C 0D 32 5F 64  69 72 20 20 00 0D 86 00  : .  ..2_d ir  ....
20200450 - 00 00 87 00 00 00 20 20  04 0D 33 5F 64 69 72 20  : ......   ..3_dir 
20200460 - 20 00 0D 88 00 00 00 89  00 00 00 20 20 1C 0D 34  :  ....... ...  ..4
20200470 - 5F 64 69 72 20 20 00 0D  8A 00 00 00 8B 00 00 00  : _dir  .. ........
20200480 - 40 0F EC 00 8A 00 00 00  8B 00 00 00 30 00 00 38  : @....... ....0..8
20200490 - BA FB B0 09 FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
*** Max Count of Output Lines Reached ***
[/B]*** bufBACK[] At Startup ::  BEGUN ***
2023D400 - 39 AA 89 F9 68 AD C9 F2  05 8B 81 82 CE 18 CB C5  : 9...h... ........
2023D410 - D6 05 FF EE 53 00 E6 0A  57 0A 4A FD E8 02 79 17  : ....S... W.J...y.
2023D420 - 06 AC DE E1 B3 6C 1A EE  0C F4 29 0F E1 42 24 A9  : .....l.. ..)..B$.
2023D430 - E4 52 B9 85 6F 2E E2 8A  9C A2 77 44 C6 12 E5 1A  : .R..o... ..wD....
2023D440 - F0 22 6B A7 49 7B 7D 24  82 BF F2 6E 6B 72 4E F9  : ."k.I{}$ ...nkrN.
2023D450 - D5 65 55 10 8C AC AE 8E  8E D1 DA 60 1D C1 E0 68  : .eU..... ...`...h
2023D460 - CA A7 D2 63 A1 4F 5E E9  86 22 32 6C 29 38 B1 AE  : ...c.O^. ."2l)8..
2023D470 - C7 81 8D BB 0C DA 34 ED  5B A3 0A C6 7B 01 49 59  : ......4. [...{.IY
2023D480 - E0 78 FB 34 3C FB D8 BB  B2 DC E2 28 19 94 34 C0  : .x.4<... ...(..4.
2023D490 - E9 79 ED 0E C4 3F 60 6A  08 89 95 52 86 7E 80 BC  : .y...?`j ...R.~..
*** Max Count of Output Lines Reached ***
 
Well this blows that theory - about the corrupting in first 1K of buffer from outside sources!:
Code:
*** HEADER >> bufREAL[] At Startup ::  BEGUN ***
20200000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 62 duplicate line(s) removed.
202003F0 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
*** bufREAL[] At Startup ::  BEGUN ***
20200400 - 03 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
20200410 - 2F E0 00 10 00 00 02 00  00 01 00 00 CC 03 00 00  : /....... ........
20200420 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 20 30 04 1D  : '....... .... 0..
20200430 - 31 5F 64 69 72 20 20 00  0D 84 00 00 00 85 00 00  : 1_dir  . ........
20200440 - 00 20 20 0C 0D 32 5F 64  69 72 20 20 00 0D 86 00  : .  ..2_d ir  ....
20200450 - 00 00 87 00 00 00 20 20  04 0D 33 5F 64 69 72 20  : ......   ..3_dir 
20200460 - 20 00 0D 88 00 00 00 89  00 00 00 20 20 1C 0D 34  :  ....... ...  ..4
20200470 - 5F 64 69 72 20 20 00 0D  8A 00 00 00 8B 00 00 00  : _dir  .. ........
20200480 - 40 0F EC 00 8A 00 00 00  8B 00 00 00 30 00 00 38  : @....... ....0..8
20200490 - BA FB B0 09 FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
*** Max Count of Output Lines Reached ***
*** TAIL >> bufREAL[] At Startup ::  BEGUN ***
2023D000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 62 duplicate line(s) removed.
2023D3F0 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********

Code above put LFS DMAMEM REALbuf with 1024 bytes before and after.

Above shows those 0x2A bytes persist AND the drive works across reset ONCE?

The 1K buffer space survives intact - but after first drive : 2,d,D,R
Then AGAIN do : 2, d, D, R

Code:
 4 dirs with 2 files of Size 11264 Bytes
 Total 13 files of Size 114048 Bytes
Bytes Used: 248832, Bytes Total:248832


	[B][COLOR="#FF0000"]WARNING: DISK FULL >>>>>  Bytes Used: 248832, Bytes Total:248832[/COLOR][/B]

The drive mounts as VALID and the 1K buffers are secure ... but the drive indicates "DISK FULL":
Code:
... begin() 

... mounted 
*** HEADER >> bufREAL[] At Startup ::  BEGUN ***
20200000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 62 duplicate line(s) removed.
202003F0 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
*** bufREAL[] At Startup ::  BEGUN ***
20200400 - 03 00 00 00 F0 0F FF F7  6C 69 74 74 6C 65 66 73  : ........ littlefs
20200410 - 2F E0 00 10 00 00 02 00  00 01 00 00 CC 03 00 00  : /....... ........
20200420 - 27 00 00 00 FF FF FF 7F  FE 03 00 00 20 30 04 1D  : '....... .... 0..
20200430 - 31 5F 64 69 72 20 20 00  0D 84 00 00 00 85 00 00  : 1_dir  . ........
20200440 - 00 20 20 0C 0D 32 5F 64  69 72 20 20 00 0D 86 00  : .  ..2_d ir  ....
20200450 - 00 00 87 00 00 00 20 20  04 0D 33 5F 64 69 72 20  : ......   ..3_dir 
20200460 - 20 00 0D 88 00 00 00 89  00 00 00 20 20 1C 0D 34  :  ....... ...  ..4
20200470 - 5F 64 69 72 20 20 00 0D  8A 00 00 00 8B 00 00 00  : _dir  .. ........
20200480 - 40 0F EC 00 8A 00 00 00  8B 00 00 00 30 00 00 38  : @....... ....0..8
20200490 - BA FB B0 09 FF FF FF FF  FF FF FF FF FF FF FF FF  : ........ ........
*** Max Count of Output Lines Reached ***
*** TAIL >> bufREAL[] At Startup ::  BEGUN ***
2023D000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 62 duplicate line(s) removed.
2023D3F0 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
*** bufBACK[] At Startup ::  BEGUN ***
2023D400 - 39 AB 89 F9 68 8C C9 F6  07 8B 81 8A DE 18 CB C5  : 9...h... ........
2023D410 - 96 01 FF EE 53 00 E6 88  57 0A 4A FD E8 02 71 17  : ....S... W.J...q.
2023D420 - 06 AC DE C1 B3 6C 18 E6  0C F4 39 8D E1 42 00 A9  : .....l.. ..9..B..
2023D430 - F4 53 B9 85 6E 3E E2 8A  BD A2 77 C4 CC 1A F5 1A  : .S..n>.. ..w.....
2023D440 - F0 22 6B A7 49 0B 7D 24  82 BF D2 4E 7B 72 4E F9  : ."k.I.}$ ...N{rN.
2023D450 - D5 E5 55 10 8C AC AE 8E  86 D3 DA 61 1D E1 E0 60  : ..U..... ...a...`
2023D460 - CA A6 D2 E3 A1 6F 4E EB  92 22 32 6C 29 38 31 AE  : .....oN. ."2l)81.
2023D470 - C7 81 0C FB 0C DA 34 EC  5B B3 0A 86 73 01 49 59  : ......4. [...s.IY
2023D480 - E0 78 FB 3C 1C FF D8 BB  B2 DC E2 2C 19 94 34 80  : .x.<.... ...,..4.
2023D490 - F9 EF ED 0E C6 1F 70 6A  08 89 91 50 86 7E 80 BC  : ......pj ...P.~..
*** Max Count of Output Lines Reached ***

So - now to finish the BUFFER copy and Compare << bufREAL and bufBACK >> to see if anything gets changed on Restart - or if it returns as it was left - indicating the "lfs" low level code just not getting something flushed to cache?
 
WIP debug posted : github.com/Defragster/T4LockBeta/tree/main/RAM_SPLIT

most New Edits will be in 'functions.ino' to add 't' and "T" and modify "R" to force a "T" and flush_cache the bufBACK
<edit> : keys and calls added to functions.ino ... but main INO much smaller to funcs added there.

't' : will compare two buff regions : bufBACK == bufREAL

"T" : will do explicit copy of : bufREAL >> bufBACK
 
@Frank B - @KurtE - @defragster
Just created a bunch of Simple Datalogger examples and a Basic Usage Example in my fork of the LittleFS repository. Toying with the idea of another example but we'll see. If you want to take a look at them the fork is here: https://github.com/mjs513/LittleFS. Feel free to test them.
 
@mjs513 - Looks good, will play later.

@all - to make sure it was not TyCommander screwing up memory with reboot.

So added:
Code:
  Serial.println("Press any Key to reboot the Teensy");
  while (Serial.read() == -1) ;
  Serial.println("Now Resetting");
    for (uint32_t i = 0; i < sizeof(buf); i++) {
      if (buf[i] != 0x2a) {
        Serial.print("Found something changed before reset: ");
        Serial.print(i, DEC);
        break;
      }
    }
  
  delay(100);

  SCB_AIRCR = 0x05FA0004;
to end up setup... And it did not find any memory changed before the SCB... But memory still changed after:
Code:
*** After memset ***
20200000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 24958 duplicate line(s) removed.
202617F0 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
Press any Key to reboot the Teensy
Now Resetting


Simple DMAMEM startup memory test
*** At Startup ***
20200000 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
...	 151 duplicate line(s) removed.
20200980 - 2A 2A 2A 2A 2A 2A 2A 2A  2A 2A 2A 2A 2A 2A 2A 2A  : ******** ********
20200990 - 67 E6 09 6A 85 AE 67 BB  72 F3 6E 3C 3A F5 4F A5  : g..j..g. r.n<:.O.
202009A0 - 7F 52 0E 51 8C 68 05 9B  FF 07 D3 1F BE BB BB 92  : .R.Q.h.. ........
202009B0 - 83 44 2C EF 6F 34 A8 3F  5C 37 F2 18 91 D2 61 03  : .D,.o4.? \7....a.
 
Interesting Kurt! YES - Stuff is changing! Again I'll say :: MemoryHexDump() is awesome and well done!

Just updated : github.com/Defragster/T4LockBeta/tree/main/RAM_SPLIT

> Verify build the linked code
> Unplug the Teensy to wipe DMAMEM
> TeensyLoader online with Verify HEX >> Plug IN Teensy Holding the Button
> Hit Enter - normal start Blank RAM
> dirs are created : do 'd'ir
> { optional "T", then 't' to see no compare issues }
> { optional '2' before restart to create drive data }
> "R"estart : this "T" copies bufREAL to bufBACK with cache_flush before Restart
> Hit Enter - 'Prior' disk image
> "t'est compare the two bufs

-->> you'll see lots of diffs - above address not included ???


Not sure if this is APPLES to APPLES? Either DMAMEM buf could be changing ... but clearly there are areas with no Integrity!

Doing the noted { optional '2' } before restart shows fidd data compare but similar addresses?
 
Status
Not open for further replies.
Back
Top