Max possible value of dg_configQSPI_CODE_SIZE_AA

⚠️
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.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
火鸟
Offline
Last seen:6 days 1 hour ago
加入:2019-07-12 09:48
Max possible value of dg_configQSPI_CODE_SIZE_AA

嗨,团队,

Recently, I am suffering from binary size issue in DA1469x.

Before considering increase 512KB limit described inhttp://lpccs-docs.dialog-semiconductor.com/tutorial_da1469x_supporting_fw_images_bigger_than_512kb/index.html, I noticed that dg_configQSPI_CODE_SIZE_AA is set to 370KB, but some examples modify this value to increase binary size.

In the commentation, it says "take into account CMI firmware".

What is the CMI firmware, and what is the maximum value I can safely increase of?

Device:
attentools
Offline
Last seen:1 year 1 month ago
加入:2020-02-19 08:45
Good idea, i like it Very

Good idea, i like it Very much

FMS RC JET

PM_Dialog
Offline
Last seen:2 days 20 hours ago
工作人员
加入:2018-02-08 11:03
Hi firebird,

Hi firebird,

This is the CMAC code, so you should take it into account when defining the dg_configQSPI_CODE_SIZE_AA. By default, the SDK expects that the FW image size is 512 KB. However, if an application image of different size is to be supported, the dg_configQSPI_CODE_SIZE_AA macro in bsp_memory_defaults.h should be changed accordingly. Please follow step by step this tutorial and you should be able to support FW images bigger than 512MB.

Thanks, PM_Dialog

火鸟
Offline
Last seen:6 days 1 hour ago
加入:2019-07-12 09:48
I still cannot fully

I still cannot fully understand about CMAC code.

1. When I am building application based on normal examples in SDK, CMAC code is built together, or not?

2. If CMAC code is not built together, can I use up to maximum 504KB(=NVMS_FIRMWARE_PART_SIZE)?

PM_Dialog
Offline
Last seen:2 days 20 hours ago
工作人员
加入:2018-02-08 11:03
Hi firebird,

Hi firebird,

小脑模型代码included as library in the QSPI build, so that the maximum code size is: IMAGE_PARTITION_SIZE - 0x2000 (reserved for the primary and backup product headers) - 0x400 (reserved for the image header).

Thanks, PM_Dialog