Hi,
I got to the point where I am forced to use emWin with the external SRAM. When I run the code with emWin in SRAM of the MCU, everything is fine. When I run the very same code with external SRAM, execution of the code ends on the first creation of the GUI widget, in the function GUI_ALLOC_UnlockH, with the HardFault handler.
I have searched the forum posts and verified following suggested solutions
My configuration is: MCU is SAM3S4C, Keil compiler, emWin 5.16d as lib.
I would be grateful for any suggestions.
Best Regards
Petr
I got to the point where I am forced to use emWin with the external SRAM. When I run the code with emWin in SRAM of the MCU, everything is fine. When I run the very same code with external SRAM, execution of the code ends on the first creation of the GUI widget, in the function GUI_ALLOC_UnlockH, with the HardFault handler.
I have searched the forum posts and verified following suggested solutions
- external SRAM is writable/readable, full range of the memory allocated to emWin is accessible
- external SRAM supports 8, 16 and 32-bit access
My configuration is: MCU is SAM3S4C, Keil compiler, emWin 5.16d as lib.
I would be grateful for any suggestions.
Best Regards
Petr