4 posts / 0 new
Last post
Joacimwe
Offline
Last seen:1 year 3 months ago
Guru
加入:2014-01-14 06:45
Execute code from OTP?

I see that OTP is memory mapped when the OTP clock is enabled. Is it theoretically possible to execute code directly from OTP without mirroring it to RAM first? That would mean we could have some code in flash/eeprom (that is copied to RAM) and some code on the OTP to make it possible to have a larger code base than what fits into the 50 kB RAM.
If so, what are the downsides (if any)?

Device:
MT_dialog
Offline
Last seen:2周6天前
工作人员
加入:2015-06-08 11:34
Hi Joacimwe

Hi Joacimwe

Yes, theoretically it is possible, but your system it's going to be slower and consume more power than it is supose to consume because of the OTP, generally is not supported or recomended by Dialog.

Thanks MT_dialog

Joacimwe
Offline
Last seen:1 year 3 months ago
Guru
加入:2014-01-14 06:45
Hi. Thank you for your answer

Hi. Thank you for your answer. About how much slower will it be?

MT_dialog
Offline
Last seen:2周6天前
工作人员
加入:2015-06-08 11:34
Hi Joacimwe

Hi Joacimwe

The chip is going to be slower because the OTP is 1 byte and the system will need two fetches in order to get one instruction....i suppose that this will make the system run in half speed at least than normal, but its difficult to say exactly.

Thanks Marios