Other Parts Discussed in Thread: TMS320F28379D
Hi,everyone
I have this launchpad: www.ti.com/tool/LAUNCHXL-F28379D and these etherCAT modules: www.ti.com/tool/TIDM-DELFINO-ETHERCAT. To serve more application I've tried to write a new ESI file by the use of SSC tool. And the part of code I wrote is as follows:
*//////////////////////////////////////////////////////////////////////////////////////// void APPL_InputMapping(UINT16* pData) { #if _WIN32 #pragma message ("Warning: Implement input (Slave -> Master) mapping") #else #warning "Implement input (Slave -> Master) mapping" #endif *pData=Results0x6000.Result1; pData++; *pData=Results0x6000.Result2; pData++; *pData=Results0x6000.Toggle; } ///////////////////////////////////////////////////////////////////////////////////////// /** \param pData pointer to output process data \brief This function will copies the outputs from the ESC memory to the local memory to the hardware *//////////////////////////////////////////////////////////////////////////////////////// void APPL_OutputMapping(UINT16* pData) { #if _WIN32 #pragma message ("Warning: Implement output (Master -> Slave) mapping") #else #warning "Implement output (Master -> Slave) mapping" #endif SetpointValues0x7000.Value1=*pData; pData++; SetpointValues0x7000.Value2=*pData; } ///////////////////////////////////////////////////////////////////////////////////////// /** \brief This function will called from the synchronisation ISR or from the mainloop if no synchronisation is supported *//////////////////////////////////////////////////////////////////////////////////////// void APPL_Application(void) { #if _WIN32 #pragma message ("Warning: Implement the slave application") #else #warning "Implement the slave application" #endif Results0x6000.Result1 += Parameters0x8000.Inc1; Results0x6000.Result2= SetpointValues0x7000.Value1+SetpointValues0x7000.Value2; }
Unfortunately I found that after writing the ESI file to the EEPROM and scan the box by Twincat 3,my Ethercat couldn't switch its statemachine to OP. For the uC I use TMS320F28379D and the code given on www.ti.com/tool/TIDM-DELFINO-ETHERCAT, And I use the 4th Build configuration. I'm wondering what's wrong.Could you please help me? Thanks a lot.
Thank you for your answers.
Yours,
Timmy