Skip to main content

DA1469x project memory is not enough with emWin_Demo and other ble/i2c/spi tasks

DA1469x

5 months ago

Posted by jerryjuan 225 points 3 replies
0 upvotes

Hi Dialog Team,

We are building a project base on emWin sample project.
And besides emWin, we also need to integrate ble_adv and i2c/spi...etc tasks. With all tasks, it caused memory is not enough while building the project. So we have tried to decrease heap size of emWin from 30000 to 20000, it can build after modification. However, it make system hang up while GUI_Init. Could you give us suggestion about this out of memory condition? 

Best Regards,
Jerry Juan

5 months ago

PM_Dialog

Hi Jerry,

Can you please indicate if the FW size is more than 512KB?

If yes, please follow this tutorial : http://lpccs-docs.dialog-semiconductor.com/tutorial_da1469x_supporting_fw_images_bigger_than_512kb/index.html

Thanks, PM_Dialog

5 months ago

jerryjuan 225 points

Yes, FW size is bigger than 512KB, we have already followed tutorial to set partition to 4MB and also cache_flash_region size to 0x3, 4MB.

 

However current issue is RAM is not enough to run all task, it seems heap size is not enough. .bss is bigger than 512KB when we set original heap size of sample code with all other task we added. Any other suggestions ? Or we only can added more RAM to support it?

5 months ago

PM_Dialog

Hi Jerry,

According to your initial post : “So we have tried to decrease heap size of emWin from 30000 to 20000”

Could you please clarify what you have changed? Do you mean the configTOTAL_HEAP_SIZE macro?

I’d suggest to run debug mode and indicate where the code freezes.

If you revert back this change, what is the error that you are getting when building the project? Please share a screenshot.

Thanks, PM_Dialog