⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
13 posts / 0 new
Last post
BenjaminDu
Offline
Last seen:1 month 3 weeks ago
Joined:2016-03-14 02:38
DSPS size

Hi Dialog support team,

Da14580 can have 42Kb firm ware.
I downloaded DSPS 1458X, after build(sps_device_580.hex), it's 49Kb,I think 49Kb Da14580 doesn't have enough space.

but inhttps://support.dialog-semiconductor.com/connectivity/product/da14580?qt...
Memory Size of application image: 15 Kbytes(for dsps,memory size is 15Kb)

What on earth the firmware is for dsps example?
If 15Kbytes, Da14580 can be used.
If 49Kb, then Da14580 can not be used.

Thanks a lot.

Device:
PM_Dialog
Offline
Last seen:6 days 7 hours ago
Staff
Joined:2018-02-08 11:03
Hi BenjaminDu,

Hi BenjaminDu,

You are correct, in DA14580 you are not allowed to have firmware more than 42KB which is the size of System-RAM. But, could you please let me know if you are using the default DSPS project or if you have done any modifications? I am using the default sps_device project without any modifications and the size of the binary images in not more than 42KB. Specifically, when running the project in optimization level -o0, the size of the firmware is around 25KB. So, I am able to download it into the System-RAM and the DA14580 advertises correctly.

Thanks, PM_Dialog

BenjaminDu
Offline
Last seen:1 month 3 weeks ago
Joined:2016-03-14 02:38
Hi dialog support team,

Hi dialog support team,

I'm using Keil uV5 to build the firmware, if I set the optimization -o0, the built firmware sps_device_580.hex(what is your binary image?) is 77Kb, and if I use -o3 the firmware sps_device_580.hex is 52Kb, and I can not get 25Kb or even 15Kb as in the above link indicates.

Can you have a look of the attached, may be there could be improvement of optimization seeting to downsize the firmware?

Or you use other tool to build the firmware?

My DSPS version is DA1458x_DSPS_v_5.150.2, I tested ..DSPS_v_5.150.2\projects\target_apps\dsps\sps_device\Keil_5\sps_device.uvprojx, and I did not do any modification.

Thanks

Benajmin April 20th

一个ttached is

BenjaminDu
Offline
Last seen:1 month 3 weeks ago
Joined:2016-03-14 02:38
Hi dialog support team,

Hi dialog support team,

If I setUse Cross-Module Optimization, I can't create .Hex, it is said I need to compile twice, but still can't created the firmware.

The output as following:

compiling user_spss_task.c...
compiling user_buffer.c...
linking...
Program Size: Code=16152 RO-data=2420 RW-data=72 ZI-data=10200
".\out_580\sps_device_580.axf" - 0 Errors, 1 Warning(s).

*** Performing Cross-Module-Optimization:
*** Feedback file '.\out_580\sps_device_580.fed' not found.
Target not created

Thanks a lot

Benjamin

BenjaminDu
Offline
Last seen:1 month 3 weeks ago
Joined:2016-03-14 02:38
Hi dialog support team,

Hi dialog support team,

Do you use command Line to build the firmware?

If yes, as I never used commandline to build,can you help to give an example ?

Thanks

Benjamin

PM_Dialog
Offline
Last seen:6 days 7 hours ago
Staff
Joined:2018-02-08 11:03
I am using the sps_device

I am using the sps_device project of the DSPS reference design as it is on our support website (version DA1458x_DSPS_v_5.150.2) but I am not able to replicate your issue. Please check the attached images. In O3 optimization, the code size is around 16KB and in O0 optimization the code size is around 25KB. I am not using the command line interface in order to build the DSPS project. I am working on Keil IDE version 5.26.2.0. Could you please let me know if you have done any modifications in the Keil environment? Please check the attachments in order to see the configurations that I am using. Also, can you please download it again and try to build the DSPS project?

Thanks, PM_Dialog

Attachment:
BenjaminDu
Offline
Last seen:1 month 3 weeks ago
Joined:2016-03-14 02:38
Dear Dialog,

Dear Dialog,

I checked the images, the settings are the same.(In the target tab, I also set Use Cross-Module Optimization )
My Keil IDE version is 5.1x, I will update to version 5.26.2.0 if everything is done while still can not solve the problem.
About Keil modification, I installed ARM.CMSIS.5.1.1.pack, I wonder if the pack is the reason why I can not build .Hex.
Yesterday I tried to build a project with SDK 3.x, and I succeeded even if I set Use Cross-Module Optimization , is there any difference between SDK3.x and SDK5.x that can be the reason?
I downloaded DSPS again and still can not build .Hex if I set Use Cross-Module Optimization in the target tab.(I can build without set Use Cross-Module Optimization,but the firmware is bigger than 42Kb)

Maybe Windows(Win7) setting? In mycomputer-(right click)-property-advanced system seetings-Environment Variables, do you have any special settings for user variables or System variables?

Thanks
Benjamin Apr 23

PM_Dialog
Offline
Last seen:6 days 7 hours ago
Staff
Joined:2018-02-08 11:03
Hi BenjaminDu,

Hi BenjaminDu,

I would not recommend you to use the SDK3 because it is very old version of SDK and it is not currently supported. Your problem is very weird, and I am not able to replicate it. Could you please try to download again the latest DSPS version and then try to re-install the Keil tool? Are you using any of our development boards? I suppose that your issue is not related with any windows settings.

Thanks, PM_Dialog

BenjaminDu
Offline
Last seen:1 month 3 weeks ago
Joined:2016-03-14 02:38
Hi dialog,

Hi dialog,

Transferred my project from SDK3.x to SDK5.x, and I will not go back, I simply to have different try to compare.

Can you please tell me the difference between 3.x and 5.x that might come to the different compile result?

I downloaded DSPS again, but the result is the same.

Benjamin

BenjaminDu
Offline
Last seen:1 month 3 weeks ago
Joined:2016-03-14 02:38
Hi Dialog,

Hi Dialog,

The newly downloaded project can't be compiled successfully if I setUse Cross-Module Optimizationin the Target tab. I need to change the Misc controls in the Linker tab from --feedback=".unused.txt" to --feedback=".\out_580\sps_device_580.fed", and it can be compiled.but still the .HEX is big than expected.

Can you help to have a look of all the settings in the attached. and compare with yours to find out the difference?

Or can you help to give your seetings to me for me to compare?

maybe the reason is in the settings.

Thanks

Benjamin.

Attachment:
BenjaminDu
Offline
Last seen:1 month 3 weeks ago
Joined:2016-03-14 02:38
Hi dialog,

Hi dialog,

你设置使用跨模块优化吗?

If I do not set it , the firmware is big.

Benjamin

BenjaminDu
Offline
Last seen:1 month 3 weeks ago
Joined:2016-03-14 02:38
Hi dialog,

Hi dialog,

Did you build the project immediately without any setting and you got the firmware less than 42 kb?

Thanks

Benjamin

PM_Dialog
Offline
Last seen:6 days 7 hours ago
Staff
Joined:2018-02-08 11:03
Hi BenjaminDu,

Hi BenjaminDu,

Apologies but I am still unable to replicate your issue and I am using the DSPS projects as it is in our support website without any modification. Could you please share me a screenshot showing the size of the firmware? Are you able to download the DSPS firmware into the System-RAM?

Thanks, PM_Dialog