cancel
Showing results for 
Search instead for 
Did you mean: 

External Loader Algorithm with LTDC Initial Failded

Charlie CHEN
Associate II

Hi,

I`m using small internal flash MCU for my research, so I need to store all function and data on external flash.

The File Extension is called *.stldr that generated from External Loader Algorithm. After programming, all function works fine.

Now I consider to add LCD showing control at my Algorithm when it is in programming situation. All initial is set correctly but it doesn`t work. And I find the function didn`t go into HAL_LTDC_MspInit, then I put a stuck point at LTDC HAL file, everywhere I put it can be stop at that point, but only if (hltdc->State == HAL_LTDC_STATE_RESET) didn`t work.

if (hltdc->State == HAL_LTDC_STATE_RESET)
{
/* Allocate lock resource and initialize it */
hltdc->Lock = HAL_UNLOCKED;
/* Init the low level hardware */
HAL_LTDC_MspInit(hltdc);
}

So I think LTDC is not initial incorrect. 

Is there any suggestion or experience on External Loader for help?

Thanks!

Charlie

 

2 REPLIES 2

I'm having a hard time deciphering what you're saying.

Are you initializing the LTDC from within the External Loader?

Or is the LTDC failing to initialize after you use the loader, or run code from the external flash?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Hi,

Thanks for your reply!

Using no matter CubeProgrammer or IDE build-in Programming tool, must select the External Loader file (*.stldr).
I add LTDC Initial code in Loader_Src.c file which generate the *.stldr, but LCD not work and LCD clock also no signal.

External Loader example 

So I am wondering why the QSPI Initial is work but others No.

Charlie.