binary too big if emwin font is included

⚠️
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.
3 posts / 0 new
Last post
firebird
Offline
Last seen:4 days 52 min ago
Joined:2019-07-12 09:48
binary too big if emwin font is included

When using emWin library, if I use GUI_DispString() or other font-involved function, the binary size is easily overflowed and get the following errors.

ld.exe: xxxx.elf section `.text' will not fit in region `ROM' ld.exe: region `ROM' overflowed by 48864 bytes

How can I make font data not to use .text section?

Is there any guideline?

Device:
PM_Dialog
Offline
Last seen:7 hours 57 min ago
Staff
Joined:2018-02-08 11:03
Hi firebird,

Hi firebird,

The first solution might be to application image size. By default, both the SDK and chip configurations support running application images of up to 512 kB in size. The DA1469x Bluetooth SoC is capable of executing code from any address in FLASH. This feature is supported due to re-mapping capabilities of the M33 application CPU of the DA1469x. Please readDA1469x Supporting Images Bigger than 512kBfor more information. The second solution might be to use bit stream. Please refer to section 11.3.3 External Bitmap Font (XBF) format in the UM03001_emWin5.pdf located under emwin_lib\segger\emwin\Doc library path. For this solution, I would suggest you to wait until next GDI release which will come very soon.

Thanks, PM_Dialog

firebird
Offline
Last seen:4 days 52 min ago
Joined:2019-07-12 09:48
Thanks for your answer.

Thanks for your answer.

I'll test >512 image myself, and wait new GDI release.