This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello team - I was told that the sanitization method for the TMS320F280049C is "Programmed bits cannot be re-used. If sanitization is required all bits in a section/word could be programmed to all 0x0000, but that section cannot be re-used". If we wanted to program all bits to 0x0000 then how would we do this?
Thanks
Hello Alex,
Are you talking about clearing memory or is this some Functional Safety requirement? If you're just trying to write 0's to all memory addresses of a specific RAM unit, there is a driverlib function "MemCfg_initSections(uint32_t ramSections)" which can initialize memory units passed in as the parameter.
Best regards,
Omer Amir
Omer,
Would you confirm the steps and example write that we need to execute in order to write 0’s to that space in memory?
Hello Collin,
Please confirm the answer to my question; for Functional Safety there are certain definite requirements which will need to be answered by another expert.
Best regards,
Omer Amir
This is not specifically for industrial "functional safety" application, but is a similar application where we need to ensure that the memory is in a known and defined state. Writing 0's to the unused space seems to be the best option to make sure that it won't get written to/changed in the future.
Thanks for your response.
To answer your question, the driverlib function MemCfg_initSections can be called and run as-is. Once run, the respective RAMINITDONE register should be polled to make sure it is done with initialization before proceeding with the rest of the program (refer to the MEM_CFG_REGS register section in the System Control and Interrupts chapter for more details on the DxINITDONE, LSxINITDONE, GSxINITDONE, and MSGxINITDONE registers). There are no other extra steps unless you're trying to re-write the function for yourself (in which case you can refer to the memcfg.c file in C2000Ware).
These are the only real steps that need to be taken to initialize memory during runtime, but if you need an explicit example let me know.
Best regards,
Omer Amir