Hi,
after purchasing the Pro version of Embedded Wizard, we're attempting to migrate the UI generated from Embedded Wizard into our "native" environment/source tree (Keil MDK). Our hardware platform is the STM32F7 discovery disco.
We currently have a Keil project that builds and links all Embedded Wizard RTE and STM32F7 HAL/platform package source code, with a Keil-based startup file that sets up heap and stack sizes to be the same as those used by the gcc environment. I'm consistently getting a hard fault when the EwWiMainLoop executes, specifically during an attempt to create the rootObject with a call to EwNewObjectIndirect.
The hard fault always occurs the first time a control that uses an image is attempted to be initialized:
ControlsStartButton__Init >> _this->BitmapProperty = EwLoadResource( &ResNextFramesBitmap, ResourcesBitmap >> ViewsImage_OnSetBitmap( &_this->Image, EwLoadResource( &ResNextFramesBitmap, ResourcesBitmap
The heap manager (tlsf.c) is what ultimately causes the fault.
I'm assuming I have a either the memory space setup incorrectly, or there is some other locating error, but I can't seem to find any glaringly obvious differences between my Keil projectand the gcc makefile. Are controls with images handled any differently from other types of controls (where they store data, etc)? Knowing what these differences are might help me to narrow down the actual cause for the hard fault.
Any suggestions/hints would be greatly appriciated
thanks!
Brian Amos