how to do use patch? thanks!

11 posts / 0 new
Last post
liujiahang
Offline
Last seen:3 months 3 weeks ago
Joined:2014-04-17 17:00
how to do use patch? thanks!

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.

WT_Dialog
Offline
Last seen:3 years 2 months ago
Staff
Joined:2013-12-05 14:43
Hi Liujiahang,

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.

liujiahang
Offline
Last seen:3 months 3 weeks ago
Joined:2014-04-17 17:00
HI WT_Dialog:

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

WT_Dialog
Offline
Last seen:3 years 2 months ago
Staff
Joined:2013-12-05 14:43
Hi,

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?

liujiahang
Offline
Last seen:3 months 3 weeks ago
Joined:2014-04-17 17:00
HI WT_Dialog:

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?

liujiahang
Offline
Last seen:3 months 3 weeks ago
Joined:2014-04-17 17:00
HI dear WT:

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?

WT_Dialog
Offline
Last seen:3 years 2 months ago
Staff
Joined:2013-12-05 14:43
Hi Liujiahang,

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.

liujiahang
Offline
Last seen:3 months 3 weeks ago
Joined:2014-04-17 17:00
hi WT:

hi WT:
thank you very much!I'm very clear now.Send best wishes to you!

lyncxy119
Offline
Last seen:1 year 10 months ago
Joined:2015-05-14 03:23
我是DA14580的新手,看你ID好像是中文的拼音

我是DA14580的新手,看你的身份证好像是中文的拼音,可以交流下嘛?我的QQ 934345073

JE_Dialog
Offline
Last seen:13 hours 6 min ago
Staff
Joined:2013-12-05 14:02
Hi There, we'd recommend to

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

ericxiong
Offline
Last seen:2 years 1 month ago
Joined:2015-08-16 08:22
他乡遇故知啊:)

他乡遇故知啊:)