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.

EVMK2H: A question about EVMK2H boot modes

Part Number: EVMK2H

Hi 

Recently I bought the EVMK2H and can run some simple project which I ran on 6678 before like Client, Hello world and Image Processing.

Now I faced with some problems that confused me. I use these softwares:

CCS v7.4.0

processor_sdk_rtos_k2hk_4_03_00_05 

mcsdk_bios_3_01_04_07

my qustions:

1. What is the differences between mcsdk and processor_sdk_rtos? 

2. How can I build Bin file for EEPROM, SPI and Ethernet boot mode for DSP and ARM(single stage or multi stage)? I know I should use C6000 and ARM code generation tools but I don't know how should I convert and which tools I should use for each boot mode.

3. Can I compile all projects even ARM on windows or I must use linux? for example if I want to change and build u-boot and program it, have to use linux os?

4. for now my target is building the Matrix project and load as u-boot on SPI flash. But I don't know where can I find this project and how I should compile and make bin file for SPI.

If you can introduce me any tread which can help, I will be appreciate. 

Thanks

  • Hi Patrick,

    1). In general Processor SDK is the new RTOS for Keystone devices it replaces the outdated MCSDK. Contains RTOS kernel, NDK, DSP Libs & PDK (peripheral drivers & examples) as well as the needed tools for its compilation and usage (just like the mcsdk).

    2). Here is the user guide on how to build Processor SDK RTOS boot loader: software-dl.ti.com/.../Foundational_Components.html

    And this is the guide on how to build Processor SDK Linux u-boot: software-dl.ti.com/.../Foundational_Components.html

    3). This depends on which SDK you use. Processor SDK RTOS (andl all included examples) can be compiled on both Windows & Linux PCs. Processor SDK Linux must be compiled on Linux pc OR you can use Windows PC with virtual machine that runs linux.

    4). See the Processor SDK RTOS boot loader user guide from 2).

    Best Regards,
    Yordan
  • Thanks for your quick and good helps. I will update, if my problem solved.
  • Dear Yordan
    I read the link which you sent. I can make sbl.out and sbl.bin now. Also I know I should use out2rprc.exe for converting my app.out file to app.bin. Is it right command: "out2rprc.exe app.out app.bin"? If yes, What is sbl.out? How can I use that?
    I want to convert GPIO_LedBlink_K2H_EVM_c66xTestProject.out to bin file for SPI, NAND, Ethernet and EEPROM and load them. Can u explain more?
  • Hi,

    Is it right command: "out2rprc.exe app.out app.bin"?

    Yes, this is correct. But you need one more step, as explained in the link I provided:

    For converting the compiled .out files to a format loadable by TI’s Secondary Boot Loader (SBL), you must follow these two steps:
    out2rprc.exe [.out file] [rprc output]
    MulticoreImageGen.exe LE 55 [output name] 0 [rprc output]

    If yes, What is sbl.out? How can I use that?

    This is a bootloader binary, which can be sued from CCS. CCS can load .out files to the TI EVMs.

    I want to convert GPIO_LedBlink_K2H_EVM_c66xTestProject.out to bin file for SPI, NAND, Ethernet and EEPROM and load them. Can u explain more?


    out2rprc.exe PIO_LedBlink_K2H_EVM_c66xTestProject.out <custom_rprc_name>
    MulticoreImageGen.exe LE 55 <app.bin or a custom name you'd like to use> 0 <custom_rprc_name>

    Best Regards,
    Yordan
  • Dear Yordan
    Thanks for help. Now I can make bin file.
    In 6678 evaluation we had nor writer out file and a text which can define start address for programming nor flash. Is it SBL.out the same nor writer? How can I define the start address? Is it like before?
  • Hi,

    NO, sbl is NOT a nor writer it is the bootloader. The .out file has the debug symbols defined so that you can load the sbl.out through JTAG & CCS.
    For booting the board you should use the program_evm.js script:
    processors.wiki.ti.com/.../Program_EVM_UG

    Best Regards,
    Yordan
  • Sorry I have another question too. This bin file is suitable just for nor flash or I can use for other boot modes like Ethernet? If no, How can I make them?
  • Hi,

    In the beginning of the BOOT user guide: software-dl.ti.com/.../Foundational_Components.html

    You can see that the supported boot modes are: MMCSD, QSPI, SPI, UART and NAND. For EVMK2H it is recommended to use SPI boot mode.
    For other boot modes you need to tweak the Processor SDK RTOS boot code & build it with the appropriate BOOTMODE variable set, as explained in the user guide.

    Best Regards,
    Yordan
  • Dear Yordan
    First, Thanks a lot for your good helps.
    I am very confused in boot modes.
    In 6678 I can program NOR flash in 2 different ways.
    1. I program "eeprom51.bin" on EEPROM and then rename "myapp.out" to "myapp.bin" and load it to NOR.
    2. I make "myapp.dat" and program directly to NOR.

    Now in EVMK2H I want to do this but I need a document which can help me what I should do step by step.
    1. First, I want to know what is the kind of binary file?(dat, bin or anything else)
    2. How can I convert "myapp.out" to this binary file? You helped me to make bin file with out2rprc.exe but it doesn't wrork.(maybe I can not use this bin file properly)
    3. What is the proper writer for programming binary file.
    If it is possible please for now just consider single stage for being simple.
    Thanks again dear Yordan

  • Hi. I have the same problem and i did all these steps for convert .out to .bin. but when i burned the bin file on the spi flash, it doesn't work!!!
    my app was a simple standalone blinky LED.
    is there any Setting or option in CCS and project properties related to set SBL for app?

    I saw some setting in project properties (C6000 HEX Utility) that seem related to build image and bootabe app. is there any User manual for use these setting?

  • Dear Alireza
    Now I have power failure problem in my board and can not do any test. Please inform me if you found any solutions.
    Thanks
  • Hi ,

    Please refer below post from Rahul for boot procedure and boot image generation.

    Thank you.

  • Hi dear Raja
    Your helps always are useful. I faced with "SOC Power Failure" problem in my EVM and even programming UCDs or BMC was not effective. I bring it up in the below post.
    e2e.ti.com/.../2612575
    Please help me if you can till solve it.
    Thanks.
  • Hi Patrick,

    I am aware of your other thread and I think you're facing a hw problem, which is not related to the boot procedure. If you're trying to boot the same board through SPI boot, then you need to fix your hw issue first.
    I've escalated the other thread to the hw designers, wait for their feedback.

    I am closing this thread for now.

    Best Regards,
    Yordan
  • Thanks a lot. I will wait for your good helps. Truly the board stopped suddenly and I did nothing.