Go to previous topic
Go to next topic
Last Post 04 Feb 2011 01:22 AM by  oliver.nottrodt
Accessing code part of init_clocks() of BSL
 2 Replies
Author Messages
oliver.nottrodt
New Member
New Member
Posts:


--
03 Feb 2011 06:25 AM
    Hi,
    I am wondering when the code part of the BSL package within this if clause of evmam35xx.c ist excecuted or what conditions have to be fulfilled.

    // Don't run if we're running in DDR
    if (
    ((uint32_t) init_clocks < DDR_MEM_BASE)
    ||
    ((uint32_t) init_clocks >= DDR_MEM_END)
    )
    {
    ...this part of code for clock initialisation
    }

    Thanks,
    Oli
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    03 Feb 2011 01:22 PM
    Oli,

    Here is the response from the BSL guys:

    The point was to check if we were running in DDR or not. I believe the assumption was that if we were in DDR, then we were launched by U-Boot and we would not need to set up the clocks (and the code path hung the system). If we were in SRAM, then we needed to set up the clocks (loaded through JTAG).

    Thanks
    oliver.nottrodt
    New Member
    New Member
    Posts:


    --
    04 Feb 2011 01:22 AM
    Thanks Richardl,

    I supposed it to be like that. I was just wondering how the clocks are initialized if the app is in DDR.

    Oli


    ---