HI diaglog:
i am use the patch,I according to the document "AN-B-002 DA14580 Application and ROM code patching",Make the following programming:
SetWord32(PATCH_ADDR0_REG,address);
SetWord32(PATCH_DATA0_REG,data_value);
SetByte(PATCH_VALID_SET_REG,0x01);
SetByte(PATCH_VALID_REG,0x01);
The address is the address of the operation, the data value with the value of need to be replaced.
But when I reread operating variables, know to keep original value, I missed what code, please?
I'm just used to ROM Patching! Hope to get your answer, thank you.
Hi Liujiahang,
ROM patching is normally done by Dialog. It is all stack related and we do not expect mofification from customers.
Could you please tell me why you would need to apply a ROM patch?
Thanks in advance.
HI WT_Dialog:
I want to save some of the mine parameters in the PATCH area. In this way, my some parameters can be saved, and without the need for a block with the help of external eeprom
Hi,
Enabing ROM patch will not solve your problem. Since the Patch content will also be save in the OTP or System RAM.
Are these parameters fixed value? If do, would it an option to save them in the OTP?
HI WT_Dialog:
First of all, these parameters may at any time variable, depending on the user Settings, so these variables should be stored in RAM.
Secondly, after I watched the document is, said the document can be used to RAM, can also be user ROM, I tested two, all not line!
I know dialog in order to save electricity to take the way of the OTP, but we need to preserve some of its parameters, became very trouble, don't know what's in the official solution?
HI dear WT:
I have a question, is it in the ROM of 32 bytes are stored in the system? Or stored in OTP? This did not indicate on the documents?
If stored in ROM, that means your ROM can be erased, so can you provide interface for users to use the 32 bytes of space?
Hi Liujiahang,
Understood. If DA14580 is always being powered, your parameter can be saved in retention RAM (for deep sleep) or in both SystemRAM and RetentionRAM (for extended sleep mode).
If the power supply to the DA14580 is not always on, then we certainly recommand you to store critical data in external flash/eeprom.
ROM patch is either stored in OTP or external storage. You cannot erase ROM.
hi WT:
thank you very much!I'm very clear now.Send best wishes to you!
我是DA14580的新手,看你的身份证好像是中文的拼音,可以交流下嘛?我的QQ 934345073
Hi There, we'd recommend to use the SUOTA (over the air update) project rather the software patching - this will in the end be more simple to use than patching. BR JE_Dialog
他乡遇故知啊:)