Hi,
Working on Waveshare Open746I-C development board on the STM32F746 MCU with firmware development samples from STemWin based on emWin V5.28 from Segger.
I know that support should normally come from ST and/or Waveshare, but I’m submitting my case here just in case an easy solution pops up to someone right from the beginning with this post. For my part, even after days of searches, I'm totally unable to figure out what could be the issue.
Some part of the GUI demo samples just work fine and other parts are crashing. The GUI samples code were originally done for a 4.3-inch ST discovery board and adapted to the Waveshare board which includes a 7-inch 1024 X 600 display. I took the code from Waveshare written for uVision 5 and convert it to my development tools based on VisualGDB.
For some GUI samples the firmware crashes with the “Call Stack Debug Window” always showing the same functions called just before the break. It seems to come from a “memcpy” called after emWin library function
“_DrawBitmap()”.
> HardFault_HandlerC() C++ (gdb)
<signal handler called>()
memcpy() C++ (gdb)
_DrawBitmap()
_DrawBitmap()
_FlushBuffer.isra.5()
_SetBkIndexBuffered()
_SpriteDraw()
GUI_SPRITE__CreateEx()
GUI_SPRITE_CreateEx()
_DemoTreeview() C++ (gdb)
GUIDEMO_Treeview() C++ (gdb)
GUIDEMO_Main() C++ (gdb)
MainTask() C++ (gdb)
main() C++ (gdb)
Any possible path for a solution would be greatly appreciated.
Regards,
Working on Waveshare Open746I-C development board on the STM32F746 MCU with firmware development samples from STemWin based on emWin V5.28 from Segger.
I know that support should normally come from ST and/or Waveshare, but I’m submitting my case here just in case an easy solution pops up to someone right from the beginning with this post. For my part, even after days of searches, I'm totally unable to figure out what could be the issue.
Some part of the GUI demo samples just work fine and other parts are crashing. The GUI samples code were originally done for a 4.3-inch ST discovery board and adapted to the Waveshare board which includes a 7-inch 1024 X 600 display. I took the code from Waveshare written for uVision 5 and convert it to my development tools based on VisualGDB.
For some GUI samples the firmware crashes with the “Call Stack Debug Window” always showing the same functions called just before the break. It seems to come from a “memcpy” called after emWin library function
“_DrawBitmap()”.
> HardFault_HandlerC() C++ (gdb)
<signal handler called>()
memcpy() C++ (gdb)
_DrawBitmap()
_DrawBitmap()
_FlushBuffer.isra.5()
_SetBkIndexBuffered()
_SpriteDraw()
GUI_SPRITE__CreateEx()
GUI_SPRITE_CreateEx()
_DemoTreeview() C++ (gdb)
GUIDEMO_Treeview() C++ (gdb)
GUIDEMO_Main() C++ (gdb)
MainTask() C++ (gdb)
main() C++ (gdb)
Any possible path for a solution would be greatly appreciated.
Regards,