We are using the full-bridge LLC firmware as a reference. We were trying to set very simple parameters from the GUI, permanently (in the dflash). For example, VOUT. When we tried this several times, we found out that the vout setting is never being restored properly. It only changes the setting until the next power cycle.
Looking at the code in more detail, I do not see anywhere where the configuration parameters are written and read from the flash. It looks like all the functions read/write constant values.
For example restore_default_all() in store_restore_functions.c, does not appear to read anything from the flash, instead, looks like it copies from the constant pmbus_dcdc_config_constants[0]
Similarly, pmbus_write_store_default_all() function in pmbus_cml_commands.c, does not appear to write anything to the flash at all. First of all, there is no ERASE command sent to the flash, which is strange. Then the data setup to be written is not the data in pmbus_dcdc_config, rather, it is the constant data in pmbus_dcdc_config_constants.
I hope I am wrong about all this but I do not see how this firmware and software can set these values in dflash properly.
Can you please help?