8 posts / 0 new
Last post
sfullam
Offline
Last seen:1 year 5 months ago
加入:2015-09-15 01:51
Code Size Limitation

Are there any methods to enable more that 32KB of code for the 14583?

Device:
MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
加入:2015-06-08 11:34
Hi sfullam,

Hi sfullam,

You can have more than 32KB of code for the 583 but you need to have a licence for keil in order to compile more than 32KB of code, additional configurations for extending the the memory mapping of a 58x project should be done in the scatter file of your project for different memory configurations.

Thanks MT_dialog

sfullam
Offline
Last seen:1 year 5 months ago
加入:2015-09-15 01:51
Hello,

Hello,
thank you for your feedback. How much additional code memory is addressable with the upgraded Keil compiler? is there a document with examples of different memory configurations?
Best,
scott

caiziee
Offline
Last seen:2 years 5 months ago
加入:2016-07-29 10:01
Hi, Dialog

Hi, Dialog
你能更详细的解释一下吗?
what is the 'additional configurations for extending the memory mapping'? And do I need to change the 'SetBits32(GP_CONTROL_REG, EM_MAP, 23)' where 23 to 15?
Besides these, what else should be modified?
Thanks a lot.

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
加入:2015-06-08 11:34
Hi caizee,

Hi caizee,

There is no standard procedure from Dialog in order to extend the memory of the device, only a few tips in order to gain some additional space which i ve mentioned in the following post:

https://support.dialog-semiconductor.com/how-build-program-code-larger-32kb

Regarding additional changes or what is the mapping that one should follow again that depends on how one decides to arrange the memory on his system, there is no generic or an optimized solution for this. Regarding if you should change the mapping of the memory again that depends on how much sysram, how much ret ram and exchange memory you would like to have on your system. In general yes you could use a different EM_MAP in order to gain some extra space for the Sysram but this will also require to re-arrange the scatterfile, and again this is application specific and you will have to tailor it to your application.

Thanks MT_dialog

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
加入:2015-06-08 11:34
Hi sfullam,

Hi sfullam,

If you use a licence for Keil the limit is the sysram of the 583, so about 42KB and also the 8KB of the retention RAM can be used, so the absolute maximum of the fw that you can download in the 583 can be up to 50KB in total. There aren't any additional scatterfiles that you could use as an example for additional memory configurations.

Thanks MT_dialog

mutahir (not verified)
So in case my code size is

So in case my code size is greater than 32K, will SUOTA still work. How much is the maximum code size at which SUOTA framework will work

MT_dialog
Offline
Last seen:2 months 3 weeks ago
Staff
加入:2015-06-08 11:34
Hi mutahir,

Hi mutahir,

I ve never tested the SUOTA with code larger than 32K personally, but i don't think that you will have any problems, as far as i am aware the SUOTA profile isn't code size dependant in order to cause you trouble.

Thanks MT_dialog