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.

How to use FLOCK Register in Flash Wrapper?

Other Parts Discussed in Thread: HALCOGEN

Hello Support,

In F021 Flash Wrapper there is a register called FLOCK at offset 0x64. In the HALCOGEN generated file sys_selftest.c, there is a function called fmBus2Check() which writes to FEDACCTRL1 Register. By following FLOCK Register description, I changed the fmcBus2Check() function as shown below :

flashWREG->FLOCK = 0xAA55U;   ---  Added by me
flashWREG->FEDACCTRL1 = 0x000A060AU;   --- This was the original line in fmcBus2Check() function within sys_selftest.c file of HALCOGEN
flashWREG->FLOCK = 0x55AAU;   -- Added by me

 Once I add FLOCK Register, fmcBusCheck() function fails.

Am I not supposed to use FLOCK Register at all?
TRM says that FLOCK Register to be used while writing to FEDACCTRL1.
Please help,
Thank you.
Regards
Pashan