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/PRU-ICSS-INDUSTRIAL-SW: PRU-ICSS EtherCat Slave demo

Part Number: PRU-ICSS-INDUSTRIAL-SW

Tool/software: TI-RTOS

Hello,

I would like you to confirm about below.


* I am trying to build PRU-ICSS-ethercat-slave 01.00.07.02.
At first, I performed "bat" file to create CCS project. There is no error.
After that, I import this project to CCS(version 9.1) and build this project.
Then, I observed following error.

Error : c:/ti/ccs910/ccs/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe : region `SRAM_HI1' overflowed by xxxx bytes

So, I confirmed following file to check memory map.
"amic11x_onchip_mem_app.xdt"

To increase region of ".text" section, I changed length of "SRAM_HI1".(decrease region of ".bss".)
After that, region error of "SRAM_HI1" disappeared but region error of "SRAM_HI0" appeared.
So, I doubt that this project can be closed only internal memory.
Can you build without any error by using default memory map setting ?

Best Regards,

  • Hi Ryuuichi,

    You need to run dos2unix and apply the AM335x_PDK_thumb_mode.patch protocols\pdk_patches\05.01.00 and rebuild PDK, then build the EtherCAT project.

    The patch file converting and applying procedure is similar as note here  -

    The procedure of rebuilding PDK is here - http://software-dl.ti.com/processor-sdk-rtos/esd/docs/05_01_00_11/rtos/Overview.html#rebuild-pdk

    Regards,

    Garrett

  • Hello Garrett-san,


    Thank you for your reply.


    I tried to run patch file. However, previous error remained. Here is my procedure.

    --
    * Download Windows Patch Utility from gnuwin32.sourceforge.net/.../patch-bin-zip.php


    * Extract the zip file to the Windows PC.


    * Launch DOS Command prompt and move to bin folder.


    * Execute patch.exe with following syntax in windows environment


    patch.exe -i C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.07.02\protocols\pdk_patches\05.01.00\AM335x_PDK_thumb_mode.patch -d C:\ti\pdk_am335x_1_0_12 -p

    (Question : I'm not sure how I should set number of "-p". I did not find any error by using above command, however, the reason which error remains may be related to this item.)

    * move to C:\ti\pdk_am335x_1_0_12\packages

    * Run "pdksetupenv.bat"

    * Perform "gmake clean" and "gmake all".
    --

    I did not see any error in above procedure.
    After that, I performed "projectCreate.bat" to create ethercat_slave project and import CCS.

    Best Regards,

  • Ryuuichi,

    There are two line changes only for the thumb mode if you open the patch file, so you can manually update the ti/build/makerules/rules_a8.mk file or check if it has been patched correctly.

    Or try this command:

    patch.exe -i C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.07.02\protocols\pdk_patches\05.01.00\AM335x_PDK_thumb_mode.patch -d C:\ti\pdk_am335x_1_0_12\packages -p0

    Regards,

    Garrett

  • Hello Garrett-san,

    Thank you for your reply.

    I could build project on CCS by following your advice. I will close this thread.

    BR,