I have al questions.
I am doing Dataflash write using the c40 maininterface write function.
I am trying to dataflash write by setting high the PGM of the MCR and setting high the EHV of the MCR, but writing to Dataflash is not possible because WDI is set.
Why is MCRS's WDI SET?
Also, in this case, is there a way to clear the WDI of the MCRS before setting high the PGM and EHV of the MCR
or Can I disable the Flash WDI? (How can I control AMCR Register?)
Hi @kjy106906,
As per the RM (21.5.3 Program and erase watchdog timer), it can be disabled through the alternate MCR (AMCR[WDD]), however, this interface is used exclusively by the HSE_B.
To clear the flag, terminate the operation ERS = 0, PGM = 0.
Regards,
Daniel
Thank you very much. @danielmartynek
But I didn't understand about "however, this interface is used exclusively by the HSE_B"
So how can I change the settings (Disable or timeout) of Flash WDI?
Hi @kjy106906,
It can be disabled in AMCR, as already mentioned.
The Main interface (MCR) is allocated to the application cores whereas the Alternate interface (AMCR) is allocated to HSE_B (Hardware security engine).
All the HSE_B, HSE_FW information is available in Secure Files under NDA.
Best regards,
Daniel