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.

Ice & spi ethercat slave code

Hello,

I stored ecat_appl_spi.bin on ice board by using Twincat application, it's ok, the program run correctly in spi flash.

The probleme now, is that if I try to debug with Jtag probe/CCS5 an other project (bigTimeICE or I2C_led), the project is loaded, but it's not possible to debug it.

Is it due to the ecat_appl_spi.bin spi boot code which can not disable ethercat interrupts, a bad mapping ?

I thought that the Jtag probe took the control of all the registers, is it true ?

After, if I store bootSpi.bin by using Twincat, it's ok, it's now possible to load/debug any project step by step.

An idea ?

 

  • Hi Jean,

    could you provide what product, version, and example you're using?

  • Hi Tom,

    My config: Seven64, TMDX ICE 3359 hardware, CCS 5.4.0.00091 and SDK am335x_sysbios_ind_sdk_1.1.0.1.

    Today, it's ok, friday I have loaded and ran with success the flashing toolscode: isdk_spi_flasher.out. to re-programm the bootloader boot_spi.bin. It's possible now for me to debug (step by step) the ICE board with the JTag probe.

    But i don't understand why (when botloader not flashed) JTag probe + CCS debug could'nt debug step by step in memory whatever sdk projects examples.

    I thought the Jtag probe + CCS took total control of the ice board regardless the programm flashed, finally, the boot loader is compulsory to debug.

    Thank you for your involvement.

    JM

     

     

  • Now it's different, ice board was flased with boot loader (boot_SPI.bin Sept/02/2013), if i run ecat_appl with CCS, the communication with TwinCat is ok.

    I try to flash ecat_appl_spi.bin file using Twincat:

    click on <Init> button => current state: Init

    click on <BootStrap> button => current state: Boot

    click on <DownLoad> button => Select <ECATFW__ecat_appl_spi.bin> (generated by CC5 in release mode).

    At the botom of the window, the loading bar grow...

    When it's terminated, I click on <init> button to reset.

    If I switch off /On the supply (wait 10 secunds), the ethercat code is not running, it's the boot block which is running.

    I think that the loading action is ok, but not the flashing, why ????

     

     

  • Hi,

    Can you share the UART debug messages for this application( Please  capture after firmware download and after power cycle)?   

    Regards,

    Shahid