Other Parts Discussed in Thread: AMIC110
could you tell me the specific details ,how to operate ,the document i do not understand.
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.
could you tell me the specific details ,how to operate ,the document i do not understand.
could you tell me how allocated AMIC110 kernel resources and what is the role of the M3 core? preferably with a block diagram to describe. When running ethercat slave source code, how to work together between the kernel?
Hi
The PRU-ICSS EtherCAT runs on top of TIRTOS based Processor-SDK, not Linux so there is no kernel.
The M3 Core is not used in the AMIC110 applications. It can be used for power management.
The API Guide is available here http://processors.wiki.ti.com/index.php/PRU_ICSS_EtherCAT_firmware_API_guide
Additional information is available on the Sitara FAQ http://processors.wiki.ti.com/index.php/FAQ_Sitara_Industrial .
David
Hi
It looks like you may have installed the Processor SDK in a directory other than the default c:\ti.and CCS is unable to find the paths. When installing the Processor SDK and CCS in a directory other than C:\ti - it is necessary to take additional steps when creating the Processor SDK examples. The start of the description is
Take the link for the custom installation path http://processors.wiki.ti.com/index.php/Processor_SDK_RTOS_Install_In_Custom_Path
On that page you will want to look at two items:
Later when you wish to create a PRU-Industrial Project it will be necessary to update the projectcreate .bat or sh file in C:\your_directory\PRU-ICSS-EtherCAT_Slave_version\protocols\ethercat_slave\projects definitions for
Set CCS installation directory path(Mandatory) - The path where folder 'eclipse' is located
set "CCS_INSTALL_DIR=C:\ti\ccsv7"
::Set the CCS workspace location(Mandatory). Workspace will be created if it doesn't exist! I always leave the base directory %USERPROFILE%\ but name the workspace to something like ECS_verX
set "CCS_WORKSPACE_LOC=%USERPROFILE%\ccs_workspace"
:Set PDK Installation directory path(Mandatory for AM335x projects)
set "AM335x_PDK_INSTALL_PATH=C:\ti\pdk_am335x_1_0_7\packages"
David
The above is the CCS7.3 installation directory
This is ti-processor-sdk-rtos-am335x-evm-04.02.00.09-Windows-x86 installation directory
The above is all the components installed
After installing SDK and CCS, open the CCS installation below
Then build the project and rebuild it
There is still a warning, the warning of other projects is the same
I reinstall the WIN10 system, SDK and CCS are the default installation path, I do not know where the problem appears, how should I do, thank you
Hi
Set PDK Installation directory path(Mandatory for AM335x projects)
set "AM335x_PDK_INSTALL_PATH=C:\ti\pdk_am335x_1_0_7\packages"
When installing Processor SDK 4.0.0 in a directory other than C:\ti
is correct
David
Sorry, I do not understand what you mean
CCS7.3 and SDK4.2 installed in the same directory, as you can see follows
Then I opened the CCS installation component,but there are two warnings during installation edma3_lld_2_12_05_30B , as you can see follow
I do not know if this warning led to a problem later in the build project
and you told me set "AM335x_PDK_INSTALL_PATH=C:\ti\pdk_am335x_1_0_9\packages" Is it like the following operation?
Compile project will be warned as you can see follow
How to set PDK path? What should I do at each step? Thank you
Hi
When following the steps in http://processors.wiki.ti.com/index.php/Processor_SDK_RTOS_Getting_Started_Guide#Download_and_install_software
The warning that you see about unsigned content is normal. We just select OK and continue.
I get the same warning when building the application.
The console should show
'Finished building target: GPIO_LedBlink_iceAMIC110_armTestProject.out'
followed by
C:/ti/pdk_am335x_1_0_9/packages/MyExampleProjects/GPIO_LedBlink_iceAMIC110_armTestProject/Debug GPIO_LedBlink_iceAMIC110_armTestProject AM335x arm
' '
**** Build Finished ***
David
Hi
I am sorry, the most recent EtherCAT release http://software-dl.ti.com/processor-industrial-sw/esd/PRU-ICSS-ETHERCAT-SLAVE/latest/index_FDS.html requires CCS 7.2 and SDK. This is described in the User Guide http://processors.wiki.ti.com/index.php/PRU_ICSS_EtherCAT#Component_Version
David
I proceed to the next step
The next step is to execute the following command on the command line: patch.exe -i C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.04.02\protocols\pdk_patches\04.00.00\PRSDK-2507_amic_spi_pinmux.patch -d C:\ti\pdk_am335x_1_0_7\packages -p0 --binary --verbose
The result shows the following:
The document shows this:
Where is the problem? Related links below
processors.wiki.ti.com/.../Industrial_Protocol_Package_Getting_Started_Guide
I want to download PRU ICSS EtherCAT Slave 01.00.03. could you give me a download link?
I have compiled AMIC11x arm ethercat_slave_full and generated .out file. When I download the app to the development board, the program is running normally, but after the power is turned on, there is no running program on the development board. Is the program not downloaded to flash? What should I do, AMIC11x arm ethercat_slave_full should be configured with TwinCat software?
I have downloaded the above file to flash as required
But I didn't do the following
Apply the PDK patch for Thumb mode. For the DDR-less EtherCAT application to build, it is critical that the Processor SDK is built in Thumb mode. A patch file is included in the PRU-ICSS-ETHERCATSLAVEv1.00.05 package at [INSTALLDIR]/protocols/pdk_patches/04.01.00/AM335x_PDK_1_0_8_thumb_mode.patch. After applying this patch the Processor SDK PDK needs to be cleaned and rebuilt. Follow the PDK rebuild procedure.
I want to know where the LLD path is Is the following right?
patch.exe -i C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\protocols\pdk_patches\04.01.00\AM335x_PDK_1_0_8_thumb_mode.patch -d C:\ti\pdk_am335x_1_0_8\packages\ti\drv
Use the command line cd to the C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\patch-2.5.9-7-bin\bin folder to execute the command patch.exe -i C:\ti\PRU-ICSS- EtherCAT_Slave_01.00.05.00\protocols\pdk_patches\04.01.00\AM335x_PDK_1_0_8_thumb_mode.patch -p0 -d C:\ti\pdk_am335x_1_0_8\packages
The following problem occurs
Where does the problem occur?
CCS7.2 SDK4.1 PRUICSS1.0.5
Successfully built AMIC11x arm ethercat_slave_full release mode
Start this step now On-chip Memory (DDRless) Execution of EtherCAT Slave Application
steps as follows
1: start/run/comand cd AM335x_PDK_1_0_8_thumb_mode.patch Execute the following command
C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\dos2unix-7.4.0-win32\bin\unix2dos.exe AM335x_PDK_1_0_8_thumb_mode.patch
2:cd to C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\patch-2.5.9-7-bin\bin Execute the following command
patch.exe -i C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\protocols\pdk_patches\04.01.00\AM335x_PDK_1_0_8_thumb_mode.patch -d C:\ti\pdk_am335x_1_0_8\packages
3: cleaned and rebuilt PDK Execute the following command
cd to C:\ti\pdk_am335x_1_0_8\packages Execute pdksetupenv.bat Execute gmake all
4:Copy the files in this directory(C:\ti\pdk_am335x_1_0_8\packages\ti\starterware\tools\ti_image) tiimage.exe to C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\protocols\ethercat_slave\firmware\v1.0
start/run/comand cd to C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\protocols\ethercat_slave\firmware\v1.0
Execute the following command
tiimage.exe 0x4a334000 NONE ecat_frame_handler.bin ecat_frame_handler_ti.bin
tiimage.exe 0x4a338000 NONE ecat_host_interface.bin ecat_host_interface_ti.bin
tiimage.exe 0x4030F400 NONE tiesc_eeprom.bin tiesc_eeprom_ti.bin
note:
1) tiesc_eeprom.bin can be generated from ESI file using SSC Tool. Below is the detailed procedure:
a. Open SSC Tools
b. Go to Tools->EEPROM Programmer
c. In EEPROM Programmer, go to File->Open. Here select the TI_ESC.xml ESI file from the path “[IA_SDK_HOME]\protocols\ethercat_slave\ecat_appl\esi”
d. Now in the Device Description drop down select “TIESC-001”
e. File->Save as. Select “Save as type” as “binary (*.bin)”. Provide the path and Save.
f. This will generate the binary file for TIESC-001 eeprom. Using “tiimage.exe” to convert this binary to tiimage binary which can be flashed to the board.
tiimage.exe 0x4030F400 NONE tiesc_eeprom.bin tiesc_eeprom_ti.bin
5:Open ccs launch selected configuration and connect A8
use <PDK_INSTALL_DIR\packages\ti\starterware\starterware\tools\flash_writer\spi_flash_writer_AM335X.out to flash
load file follows
a flash MLO to 0x0 (MLO get from SDK4.3 bootloader_boot_mcspi_noDDR_a8host_release_ti)
b tiesc_eeprom_ti.bin 0x10000
c ecat_host_interface_ti.bin 0x14000
d ecat_frame_handler_ti.bin 0x19000
e flash app to 0x20000
(app get from C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\protocols\ethercat_slave\projects\ethercat_slave_full_AMIC11x_arm\AMIC11x_release\app)
6 Power on and restart
The result is it's not working.
Please help to check are there any mistake in my steps
my questions
I did not do the following work about step one 1) Step 2 is the same as above
None of these steps have been done
What I want to ask is which folder should I go to and which commands should I perform?
Please tell me the specific steps
My development board is ICE-AMIC110
Thank you
CCS7.2 SDK4.1 PRUICSS1.0.5
Successfully built AMIC11x arm ethercat_slave_full release mode
Start this step now On-chip Memory (DDRless) Execution of EtherCAT Slave Application
steps as follows
1: start/run/comand cd AM335x_PDK_1_0_8_thumb_mode.patch Execute the following command
C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\dos2unix-7.4.0-win32\bin\unix2dos.exe AM335x_PDK_1_0_8_thumb_mode.patch
2:cd to C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\patch-2.5.9-7-bin\bin Execute the following command
patch.exe -i C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\protocols\pdk_patches\04.01.00\AM335x_PDK_1_0_8_thumb_mode.patch -d C:\ti\pdk_am335x_1_0_8\packages
3: cleaned and rebuilt PDK Execute the following command
cd to C:\ti\pdk_am335x_1_0_8\packages Execute pdksetupenv.bat Execute gmake all
4:Copy the files in this directory(C:\ti\pdk_am335x_1_0_8\packages\ti\starterware\tools\ti_image) tiimage.exe to C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\protocols\ethercat_slave\firmware\v1.0
start/run/comand cd to C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\protocols\ethercat_slave\firmware\v1.0
Execute the following command
tiimage.exe 0x4a334000 NONE ecat_frame_handler.bin ecat_frame_handler_ti.bin
tiimage.exe 0x4a338000 NONE ecat_host_interface.bin ecat_host_interface_ti.bin
tiimage.exe 0x4030F400 NONE tiesc_eeprom.bin tiesc_eeprom_ti.bin
note:
1) tiesc_eeprom.bin can be generated from ESI file using SSC Tool. Below is the detailed procedure:
a. Open SSC Tools
b. Go to Tools->EEPROM Programmer
c. In EEPROM Programmer, go to File->Open. Here select the TI_ESC.xml ESI file from the path “[IA_SDK_HOME]\protocols\ethercat_slave\ecat_appl\esi”
d. Now in the Device Description drop down select “TIESC-001”
e. File->Save as. Select “Save as type” as “binary (*.bin)”. Provide the path and Save.
f. This will generate the binary file for TIESC-001 eeprom. Using “tiimage.exe” to convert this binary to tiimage binary which can be flashed to the board.
tiimage.exe 0x4030F400 NONE tiesc_eeprom.bin tiesc_eeprom_ti.bin
5:Open ccs launch selected configuration and connect A8
use <PDK_INSTALL_DIR\packages\ti\starterware\starterware\tools\flash_writer\spi_flash_writer_AM335X.out to flash
load file follows
a flash MLO to 0x0 (MLO get from SDK4.3 bootloader_boot_mcspi_noDDR_a8host_release_ti)
b tiesc_eeprom_ti.bin 0x10000
c ecat_host_interface_ti.bin 0x14000
d ecat_frame_handler_ti.bin 0x19000
e flash app to 0x20000
(app get from C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\protocols\ethercat_slave\projects\ethercat_slave_full_AMIC11x_arm\AMIC11x_release\app)
6 Power on and restart
The result is it's not working.
Please help to check are there any mistake in my steps
Hello, the document does not say the specific steps in the application PRSDK_4_2_migration.patch, can you tell me how to do it?
I know I need to use the [Dos2Unix/Unix2Dos-DIR]/bin/unix2dos.exe and patch.exe commands
But I don't know which path to use these commands
I read the following document
But do not know how to operate
>>I downloaded SDK 4.2 and replaced SDK4.1 startware folder with SDK4.2 startware folder Is this okay?
No, but you can copy the 3 updated files (sbl_am335x_platform.c, component.mk, platform.mk) from PRSDK 4.3 to PRSDK4.2 and then build in the PRSDK4.2 to get the MLO.
You can skip the step two for AMIC110 ICE, "The default SYSBOOT settings for the AMIC110 ICE are 1000_0000_0001_1000b. These settings correspond to a boot sequence of SPI0, MMC0, USB0, and UART0.", see details in section 2.1 Boot Configuration,
Regards,
Garrett
Thank you very much for your guidance. The ICE-AMIC110 is working, but I have encountered some problems in configuring Twincat.
This is the status after scanning in Connection Twincat
project:AMIC11x arm ethercat_slave_full
AMIC11x arm ethercat_slave_full successfully working in ddrless mode
Next step is to configure Twincat software as follow
1 I do not know which file should be copied to <Drive>:\TwinCAT\3.1\Config\Io\EtherCAT folder
note(C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\examples\ethercat_slave\esi\TiEtherCATLib
or C:\ti\PRU-ICSS-EtherCAT_Slave_01.00.05.00\protocols\ethercat_slave\ecat_appl\esi\TI_ESC) could you told me which one?
2 Start the TwinCAT XAE (VS2013)
3 Create a new TwinCAT XAE project: File > New > Project > TwinCAT Project
4 Goto TwinCAT > Show Real Time Ethernet Compatible Devices and Install TwinCAT RT Ethernet intermediate driver
5 In Solution Explorer go to your new TwinCAT project > I/0 > right click Device1(EtherCAT)> select Scan Boxes
my question is why TI Boxn (ti-esc) is not detected automatically?
Is it related to the TwinCAT installation directory or related to the TwinCAT project workspace?
How should I get TwinCAT driver for real-time Ethernet adapter?
as you said I just install realtek PCIe GBE Family Controller for demo use only
could you send me a link about Supported Network Controller by Beckhoff Ethernet Driver The link on the document cannot be opened