This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

When to Change of GPMC Interface from boot code to application code..

Hi,

I have developed a hardware with AM335X with two NOR FLash connected on CS0 and CS1 line. My boot code should reside on FLASH on CS0 and the application code should reside on the FLASH With CS1.

My confusion is :-


below is the code excerpt after which control is transferred from boot code to application code. Will the code of transfer from CS0 to CS1 will be a part of the boot code or the application code.

int find_NORImage_exec()
{
    unsigned int t_addr = 0;


//#ifndef HW_ICE_V2
//    unsigned int t_blk = 0;
//#endif

    unsigned int sector;

    void (*appEntryNOR)();
    ti_header t_header;
    
    pinmux_NOR();


    ////////////////////////////////////////////////////////////////////////////
    t_header.magic_number = 0x00000000;
    t_header.image_size = 0x00000000;
    t_header.load_addr = 0x00000000;
    t_header.run_addr = 0x08003D04; // GPMC Address after 4Mbyte...

    appEntryNOR = (void (*)(void)) t_header.run_addr;

    (*appEntryNOR)( );
    /////////////////////////////////////////