I'm using iMXRT1064 with high resolution display and external SDRAM. My sollution uses Emwin library for GUI. My goal is to make my own bootloader (CAN) and start application with jump to loaded application. This is working with simple application, but this GUI app cannot start. I remove bootloader and download application via JTAG and run it. Everything is ok. Then I remove DCD data from this application and make same settings in the beginning of main(). Execution stops into RemoveHoles() function. It is called from GUI init...malloc... This is inside the Emwin library (binary). Whats the difference between DCD settings and pure register settings in main?
已解决! 转到解答。
Hi,
DCD is needed to boot so if you want to add this after boot it will not work correctly. You can see more details of bootable image in the following link.
Generating a Bootable Image for the RT1050 - NXP Community
Best regards,
Felipe
Hi and thanks for quick answer.
Now I don't use bootloader anymore (because these starting problems). I have two applications: 1st has DCD settings and 2nd has any DCD settings but the same settings are done in the beginning of the main() function. Applications are identical except this DCD data init. Application is based on Your EVK example evkmimxrt1064_emwin_GUI_demo.
1st application is ok. 2nd application runs (I can trace it with debugger single stepping) until it calls GUI_Init() function (in emwin library). Execution don't return to main(). If I brake it, debugger shows RemoveHoles() function (assembler), and in call stack there is on top GUI_Init() ... malloc() ... and last RemoveHoles. Attaced DCD data from evkmimxrt1064_sdram_ini_dcd.c
Hi,
It is not totally clear to me what is the DCD settings you are removing and including in main. Can you please provide the detailed steps you are doing and what are your results?
Also if the application is working with JTAG but not with bootloader it is likely that the bootloader is not jumping correctly into application. You can see flashloader example in our MCUXpresso SDK so you can take as reference.
Best regards,
Felipe