I want to read the SRAM of KW41Z before the initialization of NXP flow. Is there any way to read the device SRAM with c code or with assembly? Is there a location where I can insert code in order to be executed before the initialation of NXP flow? I am using the freertos examples given from NXP.
I believe they mean they want to read the RAM before the startup code clears it, in the belief that would be a good random seed for some encryption process. I would not go that route myself.
I'm going by my knowledge of how SRAM tends to work.
I can also tell you using a real time clock is not a good encryption seed. Again it does not nave enough entropy.
The KW41Z does have a True Random Number generator that is intended for such applications.
I really would like to see some data from NXP on how it works and what tests its has passed. What some places do is take a mediocre noise source and run it through a hash algorithm to make it appear better than it truly is. Any true random process will also make a really good thermometer.