[STM32F769] Hang-up inside setLanguage function in flashing(burning) mode, but working ok in debug mode.(with flash : M29W128GL)
My board(custom board) hang-up while init(setLanguage function) after burning image to flash. In debug mode(debug->run target), board is working ok.
Here's the hang-up point:
//Texts.cpp
currentLanguageIndices = staticLanguageIndices[id];
sprintf(dbgbuf, "setLanguage[6] \r\n");
HAL_UART_Transmit(&huart7, (uint8_t *)dbgbuf, strlen(dbgbuf), 10); //--> pass without problem
currentLanguageTypedText = typedTextDatabaseArray[id]; // --> board hang-up here in burning mode (in debug, have no problem)
sprintf(dbgbuf, "setLanguage[7] \r\n");
HAL_UART_Transmit(&huart7, (uint8_t *)dbgbuf, strlen(dbgbuf), 10);
1) both typedTextDatabaseArray & texts_all_language is located in external flash
2) here's the map file for 2 variable
TextFlashSection
0x0000000060b91680 0x119c TouchGFX/generated/texts/src/Texts.o
0x0000000060b91680 texts_all_languages
TextFlashSection
0x0000000060b9281c 0x33c TouchGFX/generated/texts/src/TypedTextDatabase.o
0x0000000060b9281c typedText_database_DEFAULT
0x0000000060b92b54 typedTextDatabaseArray
3) ld file
ExtFlashSection :
{
*(ExtFlashSection ExtFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >NOR
FontFlashSection :
{
*(FontFlashSection FontFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >NOR
TextFlashSection :
{
*(TextFlashSection TextFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >NOR
please hele me why that function fail to boot.
