Hi,
I created a simple project in MCUXpresso v11.1.0 [Build 3209] using the new project wizard with all default settings, and changed the heap to use SDRAM as shown above. However as soon as the heap allocation function is called, the program jumps to HardFault_Handler.
This is tested on the RT1050EVKB. And I have the script found in another in the debug config (see screenshot below).
Here is the main function. Please advice, thanks.
int main(void) {
/* Board pin init */
BOARD_InitPins();
BOARD_InitBootClocks();
/* Update the core clock */
SystemCoreClockUpdate();
float* data1 = (float*)malloc (256); // this will cause the jump to HardFault_Handler
free (data1);
}
