Hi everyone,
I have the following files in my project. main.c file contains the main function and string.c file contains the UTF-8 encoded data of a word in english and Korean language. This was my sample code before working on my bigger project in the embedded environment. and is being executed on a microcontroller correctly.
Display All
Display All
But in my actual project I am having more number of words converted in UTF-8 format, hence leading to in sufficient RAM . having trouble retrieving the the text by using GUI_LANG_LoadCSVEx(); please help me how to use the above api in embedded environment. As the data is stored in non addressable location (ROM/FLash) and it(microcontroller) does not support any CSV or txt file formats.
I have the following files in my project. main.c file contains the main function and string.c file contains the UTF-8 encoded data of a word in english and Korean language. This was my sample code before working on my bigger project in the embedded environment. and is being executed on a microcontroller correctly.
C Source Code: main.c
- enum{
- Text_001
- };
- enum
- {
- DS_LANG_EN = 0,
- DS_LANG_KO = 1,
- LANG_MAX
- };
- void MainTask(void)
- {
- unsigned char *pLan = NULL;
- unsigned short nLanCnt = 0
- int nLanRet = 0;
- GUI_Init();
- GUI_UC_SetEncodeUTF8();
- getLanguageInfo(&pLan, &nLanCnt);
- nLanRet = GUI_LANG_LoadCSV(pLan, nLanCnt);
- GUI_LANG_SetLang(DS_LANG_EN);
- GUI_DispStringAt(GUI_LANG_GetText(Text_001), 10,0);
- }
C Source Code: string.c
But in my actual project I am having more number of words converted in UTF-8 format, hence leading to in sufficient RAM . having trouble retrieving the the text by using GUI_LANG_LoadCSVEx(); please help me how to use the above api in embedded environment. As the data is stored in non addressable location (ROM/FLash) and it(microcontroller) does not support any CSV or txt file formats.