2406247_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2406247_en-US

2406247_en-US

SDK example flash and LWIP hard-fault

Hi, 

When I combine the two SDK examples “frdmimxrt1186_lwip_ipv4_ipv6_echo_freertos_cm33” and “frdmimxrt1186_flexspi_nor_polling_transfer_cm33,” I eventually get a hard fault after executing the function “ FLEXSPI_SoftwareReset(base);” eventually results in a hard fault. I also notice that the “base” address 0x445E0000 changes. I'm using the FRDM-RT1186 EVA kit. What could be causing this?

I'm using MCUXpressoIDE_25.6.136.

Thank´s for feedback.

Re: SDK example flash and LWIP hard-fault

Hi Pablo,

thank´s to go in contact with me.

I use SDK 26.03.00 (928 2026-03 , Manifest Version 3.15.0

I start with "frdmimxrt1186_lwip_ipv4_ipv6_echo_freertos_cm33".

This happens consistensly, no specific conditions.

I import the files from the example "frdmimxrt1186_flexspi_nor_polling_transfer_cm33"

board/hardware_init_Flash.c
drivers/fsl_flexspi.c
drivers/fsl_flexspi.h
source/appFlash/flexspi_nor_flash_ops.c
source/appFlash/flexspi_nor_polling_transfer.c


board/app.h  // this containes both app.h

source/lwip_ipv4_ipv6_echo_freertos.c  // this includes two function-calls:

int main(void)
{
BOARD_InitHardware();
BOARD_InitHardware_Flash();

main_Flash();


void BOARD_InitHardware_Flash(void)
{
BOARD_CommonSetting();
// BOARD_ConfigMPU(); // bord.c = identisch mit Lwip prj
// BOARD_InitBootPins(); // pin_mux.c ""
BOARD_InitFLASHPins();
// BOARD_InitBootClocks(); // clock_config.c ""
// BOARD_InitDebugConsole(); // board.c ""
}

int main_Flash(void)
{
uint32_t i = 0;
status_t status;
uint8_t vendorID = 0;

// BOARD_InitHardware_Flash();

...

return 1;
/*
while (1)
{
}
*/

}


I think that's it.

Thank you in advance.

Gerd

Re: SDK example flash and LWIP hard-fault

Hi @GerdMartin,

Could you please provide more details about how you combined the two SDK examples?
What changes were made?

Which example did you use as the starting point?

Which SDK version are you currently using?

Also, you mentioned that a hard fault eventually occurs after executing FLEXSPI_SoftwareReset(base);. Does this happen consistently every time the function is called, or only under specific conditions?

Best Regards,
Pablo

Tags (1)
No ratings
Version history
Last update:
16 hours ago
Updated by: