Other Parts Discussed in Thread: AMIC110, , AM3358, AM3359
Tool/software: Code Composer Studio
Hello expert
I use baremetal_template_app_am335x_a8, and I run program, I got following problems.
My board assemble a DDR2 as external memory, I know the problem is that I did not initial DDR2 correctly.
so, I try to use the example bootloader in starterwarer, but I have following questions.
1: I found in bootloader example, all the initial function include in main function(such as the functon SBLPlatformConfig() which config PLL and DDR controller ) .
as far as I know, the bootloader should run before function main(), right?
2: if I want to use bootloader in my project, should I move all the initial function to another function which run before main function?
Such as the function start_boot( I use diag_entry.s as startup document, start_boot run after function Entry), the start_boot function define like this.
int32_t start_boot(void) { // DIAG_init(); /* Copy the vector table to desired location. */ CopyVectorTable(); /* Calling the main */ return main(); }
can I just put the initial function inside this function?
3: I found there is a function BOARDInit(), but the BOARDInit is defined in many different documents, such as bbbAM335x, icAMIC110, icev2AM335x, skAM335x, which one should I choose?
4: I search in this forum, I found the hardware could initial in GEL file, and the program run to function OnTargetConnect() at first time, so, should I initial DDR and PLL inside the funtion OnTargetConnect?
if so, should I write some C function which include DDR and PLL initial code and call this function in OnTargetConnect() , is there any exist function I can use to initial DDR2 and PLL?
5: here is my board's picture, can you tell me the type of this board(bbbAM335x, icAMIC110 or icev2AM335x)?
Best Regards
Jack