Regarding emwin deployment over LPC54618J512 microcontroller

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Regarding emwin deployment over LPC54618J512 microcontroller

1,228 次查看
SunnyT
Contributor II

Dear Sir/mam

 

We have our custom lpc54618j512 board and i am trying to deploy emwin on that microcontroller but i am not able to assign   GUI_ALLOC_AssignMemory((void*)MemoryBuff, GUI_NUMBYTES) in external ram. But with internal ram it is working fine But in internal ram we have a size constraint and  we have not enabled the debugger on the board .Please help me to find  the root cause and fix that without debugger .But  we have one uart enabled using serial data transmission i arrived at the conclusion that once it is entering to GUI_ALLOC_AssignMemory() function  program control is not coming out .Might be executing the hardfault routine.

 

Please help

 

0 项奖励
回复
3 回复数

1,209 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi

I suppose that the GUI_ALLOC_AssignMemory((void*)MemoryBuff, GUI_NUMBYTES) api function allocates memory from heap.

As the following screenshot, you can allocate the heap from SDRAM. Furthermore, you have to initialize the SDRAM in the main() with the line BOARD_InitSDRAM();

Pls have a try.

 

xiangjun_rong_0-1657691618376.png

Hope it can help you

BR

XiangJun Rong

 

0 项奖励
回复

1,204 次查看
SunnyT
Contributor II

Dear @xiangjun_rong

 

Thanks for your fast reply.

I tried out the solution what you have mentioned as per image but still it is  hung  there  in  GUI_ALLOC_AssignMemory((void*)MemoryBuff, GUI_NUMBYTES) api function only. Can you suggest any other possible solution .

 

 

Regards

@SunnyT 

0 项奖励
回复

1,186 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I do not know where  the api function GUI_ALLOC_AssignMemory(); is? is it included in SDK package for LPC?

Anyway, as a workaround, I suppose you can declare a data pointer, for example

uint64_t *MemoryBuff;

MemoryBuff=(uint64_t)0xA0000_0000; //dependent the SDRAM chip select pin

Note that the low three bits 2:0 must be zero, so the pointer must be uint64_t type.

xiangjun_rong_0-1657855331991.png

 

Hope it can help you

BR

XiangJun Rong

 

 

0 项奖励
回复