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.

66AK2H12: SPI Boot frequency register value

Part Number: 66AK2H12


Hi Champs,

We would like to confirm register value for SPI Boot parameter table of "Bus Freq, 100Khz ".

Could you please provide this "SPI Bus Freq" default value information ?

I think this default speed is "100Khz". We would like to confirm this value set correctly when system boot up.

(Table 10-22)

http://www.ti.com/lit/ds/symlink/66ak2h12.pdf

  • Hi,

    Yes, the SPI bus frequency is 100Khz. It cannot be controlled by the bootcfg pins.

    Best Regards,
    Yordan
  • Hi , I know it is not configurable.
    Could you please tell us this default register value (ex:00, 10, and so on.) ? 

  • Sorry, I am having trouble to understand which register are you asking about. Do you mean BYTE OFFSET: 22 NAME: Options from the SPI Boot Parameters Table?

    Best Regards,
    Yordan
  • No, I mean BYTE:OFFSET:34 Bus freq 100khz. We would like to confirm default register value. I think this digit value is for "100khz".
    Could you please tell us this digit number for 100Khz ?

    I think this "100khz" is defined by some default alternative register value.

  • Hi,

    As far as I understand the boot parameter tables are part of the RBL and are programmed in the on-chip ROM at the factory:
    "The ROM Bootloader (RBL) uses a set of tables to carry out the boot process. The boot parameter table is the most common format the RBL employs to determine the boot flow.These boot parameter tables have certain parameters common across all the boot modes, while the rest of the parameters are unique to the boot modes."

    They do not have an alternative register value.

    Best Regards,
    Yordan
  • Hi , I understand this register is not able to read value.
    I would like to make sure . this "SPI speed = 100khz" at SPI Boot. After system boot, SPI speed depend on clock value , right ?
  • Kaz,

    For SPI and I2C boot on this device, the ROM boots the device with PLL in bypass mode so the Main PLL and ARM PLL are running in bypass at the same clock as SYSCLKCLKIN/OSCIN used.

    The ROM reads configures the boot parameter table and sets the frequency in that boot parameter table as a multiple of 100Khz so for 5MHZ setting, the value 50 will be used. The default SPI clock for SPI boot is 500 Khz so this value should show up as 5 after boot.

    I ran a quick test using the ROM symbols to confirm that setting as you can see from below screenshot:

    Hope this helps. Let us know if you need any more information 

    Regards,

    Rahul

  • Hi Rahul,

    We have additional question regarding this ?

    So, you tried to read SPI speed value and this default was 500Khz.

    However, when customer measure this default speed , it was 160Khz after reset.

    So, Could you please tell me which SPI boot point indicate this SPI speed default register value at your experiments ?
  • Kaz,

    Can you indicate what is the SYSCLKIN used on the board.  This is the code in the ROM by which the SPI clock is configured. The default reference frequency used by the ROM is 312 Mhz.

    v = (UINT32)p_boot_params->sysFreqMhz * 1000;  /* CPU frequency in kHz */
    
    v = v / (DEVICE_SPI_MOD_DIVIDER * (((UINT32)(p_boot_params->busFreq100Khz) * 100)));
    
    if (v > DEVICE_SPI_MAX_DIVIDER)
    
           v = DEVICE_SPI_MAX_DIVIDER;
    
    spiCfg.clkdiv = v;

    Where

    #define DEVICE_SPI_MOD_DIVIDER          6               /* sysclock 6, which is div by 6 */
    
    #define DEVICE_SPI_MAX_DIVIDER          0xff            /* The maximum value that should be programmed into the SPI divider */

    If the clock on the custom board is configured at 100 Mhz and the boot parameter indicates 312.5 Mhz (due to ROM defaults) might explain why the clock in 3.125 times slower than expected. 

    Regards,

    Rahul

  • Thanks. Rahul. We can close this query.