Other Parts Discussed in Thread: IND-COMMS-SDK
Tool/software:
Hi,
The customer tried File access over EtherCAT (FoE) included in Industrial Communications SDK, but they were not able to get an expected result. Could you help to answer their question below ?
---- From Customer ---------------------------------
I followed the steps described in C:/ti/motor_control_sdk_am243x_11_00_00_06/ind_comms_sdk/docs/am243x/ethercat_subdevice/_fo_e_page.html, then got an unexpected result. See below for details.
<Used example>
C:\ti\ind_comms_sdk_am243x_11_00_00_08\examples\industrial_comms\ethercat_subdevice_demo\device_profiles\401_simple\am243x-lp\r5fss0-0_freertos
<Steps> I followed:
C:/ti/motor_control_sdk_am243x_11_00_00_06/ind_comms_sdk/docs/am243x/ethercat_subdevice/_fo_e_page.html
"Download file and uploaded file are included in attached zip file.
- download file : this_is_a_test_file.txt
- uploaded file : result.txt"
"The files, this_is_a_test_file.txt and result.txt, are different.
I expected the files should be the same."
"In my debug, foeFileHeader seems to be written correctly, however content of file is failed. 2 files are modified from original example, nvm.c, ESL_foeDemo.c, which are also included in .zip. As you see, some log outputs are added them. Their outputs as follows:
- on downloading
```
EC_SLV_APP_FoE_fileOpen() : pName=test, nameLen=4, isRead=0, password=0x0
EC_SLV_APP_FoE_fileWrite() : size=19
EC_SLV_APP_FoE_fileClose() : errorCode=0x0
NVM_APP_write() : id=0, offset=2097408, length=20, forceErase=1
74 68 69 73 5f 69 73 5f 61 5f 74 65 73 74 5f 66
69 6c 65 00
NVM_APP_write() : id=0, offset=2097152, length=44, forceErase=1
00 00 00 00 14 00 00 00 01 01 04 74 65 73 74 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
```
- on uploading
```
EC_SLV_APP_FoE_fileOpen() : pName=test, nameLen=4, isRead=1, password=0x0
NVM_APP_read() : id=0, offset=2097152, length=44
00 00 00 00 14 00 00 00 01 01 04 74 65 73 74 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00
EC_SLV_APP_FoE_fileRead() : size=1012, fileOffset=0
NVM_APP_read() : id=0, offset=2097408, length=19
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff
```"
------------------------------------------
Could you help to provide any advice to them ?
Thanks and regards,
Hideaki
