NXP emWin library broken with apps running from external SPIFI or SDRAM...

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by achieveforce on Tue Oct 14 11:26:33 MST 2014
The following issues found are based on a design using LPC1788 with external SDRAM on the EMC bus. It has an RTOS resides in the internal Flash, while the emWin application runs from the external SDRAM. The emWin application is built as an re-locatable ELF binary.

(1) In the situation of running emWin application from external SDRAM (address starting at 0xA0000000) or SPIFI in LPC4088 case, emWin calls the RTOS functions (such as memcpy) which reside in the internal flash memory (address starting at 0). The function calls fail. It seems that emWin pre-built library is not built with -mlong-calls. We have confirmed that JMP24 is observed.

The use of external SPIFI or SDRAM to run apps is quite common in many applications. If anyone hits this scenario, the emWin library is broken in that sense.

(2) A less serious issue is the -fno-common is not in building the emWin library either. It is a fact that not all RTOS or maybe some flavors of embedded Linux support common section.

Your prompt response will be really appreciated.