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.

RTOS/TMDSICE3359: Profibus boot problem

Expert 2730 points
Part Number: TMDSICE3359
Other Parts Discussed in Thread: PROFIBUS

Tool/software: TI-RTOS

I have problems getting the ICE v2 to boot from SPI or SD-card. I'm trying to get the Profibus-slave to work. The example works fine when I run it from CCS. I need to get it as standalone solution and therefore I try to boot from SPI-flash or MMC. I first tried with SPI.

First I programmed with spi_flash_writer_AM335X.out the bootloader bootloader_boot_mcspi_a8host_release_ti.bin to address 0x0 and afterwards the profibus slave bin to address 0x20000. The profibus slave bin has the TI headers because it will be created with the pdkAppImageCreate.bat.

That didn't work. The board does nothing. The board did boot when it was delivered from the SPI with Ethercat software so the jumper is also correct and SPI works. After that I erased the SPI or at least the Bootloader section, until to 0x10000. Then I made with win32DiskImage software a bootable SD-card and copied the profibus bin to there and changed the name to app but it didn't start either.

So the question is what am I doing wrong?

JHi

  • The RTOS team have been notified. They will respond here.
  • Hi JHi, want to confirm you created a bootable SD card, and you also copied the right bootloader (MLO)
    processors.wiki.ti.com/.../Processor_SDK_RTOS_Creating_a_SD_Card_with_Windows

    About, flashing the application, your procedure sounds correct, I would suggest to erase the flash first and then flash the bootloader and app.
    processors.wiki.ti.com/.../AM437x

    Also please confirm boot jumpers are correct. J5 pin 1&2 shorted.
    processors.wiki.ti.com/.../AM335x_SYSBIOS_Industrial_SDK_Getting_Started_Guide

    thank you,
    Paula
  • JHi,

    The steps that you have described for SPI boot appear to be fine and should work. I have a few questions regarding your setup that may help clarify a few things:

    * Please provide the version of the Processor SDK RTOS that you are using?
    * Are the binaries that you are using pre-built binaries provided by TI or are you using modified version of the the binaries.
    * Either with SD card or the SPI flash, can you indicate if you are seeing any UART log on the serial terminal to indicate bootloader started.
    * If you have built your own Profinet binary, can you confirm that he entry point of the application is 0x8000_0000 and that your profinet application doesn`t use any memory in OCMC RAM that may be used by the SBL.

    Some common debug steps for debugging Bootloading issues have been discussed here:
    processors.wiki.ti.com/.../Processor_SDK_RTOS_Boot

    Regards
    Rahul
  • Hi Paula,

    I used the image in C:\ti\processor_sdk_rtos_am335x_4_00_00_04\prebuilt-sdcards\evmAM335x\sd_card_img to create the SD card. It has then the MLO and app. The original app also didn't show anything on terminal window.

    Boot jumper is correctly installed. SPI worked as the board was delivered with the Ethercat example.

  • Hi Rahul,
    - The SDK is processor_sdk_rtos_am335x_4_00_00_04. I'm using older one because the Profibus examples were made for this version
    - The bootloader image was pre-built from: C:\ti\pdk_am335x_1_0_7\packages\ti\starterware\binary\bootloader\bin\am335x-evm\gcc\bootloader_boot_mcspi_a8host_release_ti.bin. The Profibus bin was compiled directly from the project which was created with the project create.bat.
    - I had to compile it my self because there isn't any pre-build binary. Or at least I couldn't find one.
    - The bootloader from SD-card or SPI didn't spit out any messages to terminal. Before I erased the original bootloader it was printing some messages.

    edit:

    I just changed my terminal to putty which seems to work better than Terra Term Pro and when I boot from SD I can see following (the app is the original from the image)

    StarterWare Boot Loader
    BOARDInit status [0x0]
     SoC                   : [AM335X]
     Core                  : [A8]
     Board Detected        : [ICE Ver 2]
     Base Board Revision   : [UNKNOWN]
     Daughter Card Revision: [UNKNOWN]
    GPIO Instance number: 0
    Pin number: 18
    
    MMC/SD Card Detect Pin Not Used on Hardware
    Copying application image from MMC/SD card to RAM
    Jumping to StarterWare Application...
    

    Should the app do something?

    edit 2:

    added the map file for the profibus


    JHi

    profibus_slave_AM335x_arm.map.txt

  • I converted the .out file myself to ti_bin and it worked (at least from SD-card).
    JHi