binary too big if emwin font is included

Learn MoreFAQsTutorials

3 posts / 0 new
Last post
火鸟
Offline
Last seen:2 days 4 hours ago
加入: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 21 min ago
Staff
加入: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 512kB为更多的信息。第二个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

火鸟
Offline
Last seen:2 days 4 hours ago
加入:2019-07-12 09:48
Thanks for your answer.

Thanks for your answer.

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