Part Number: AM3358
Other Parts Discussed in Thread: PROFIBUS, TMDSICE3359
Tool/software: TI-RTOS
I have Profibus master working (the demo stack and as a slave I have the TMDSICE3359). Also the networking works. But if I combine this two I have a problem. As long as I don't have traffic on ethernet the profibus communication works. If I add the ethernet communication the profibus communication will stop after few seconds. The slave doesn't get any packages, but the master stack thinks that the communication is still ok. The master stack returns connected status with the GetStatus() function. It doesn't matter if I remove the cable or switch off the slave, the Profibus master stack still returns connected status for the slave. I guess it has to be some kind of timing problem, but I just don't know where to search because I don't have the source code of the profibus master library.
I'm using PDK 1.0.7 and Profibus Master 1.00.1.1
The profibus loop has the priority of 4, and If I set it higher then the ethernet doesn't work and software will crash because hwi 41 (CPSW (Ethernet) c0_rx_pend) is not implemented or something like that. The tasks which uses ethernet, which I have two, both have priority of 1.
Any ideas where I could search the failure or how should I set the priorities for the tasks?
The Profibus master has also another bug. I can't stop the stack with ResetBoard();, because ThreadDPMasterProxy is still running and the function tries to delete the task which is not allowed while task is in running state and the program will crash.
Edit:
Extra question. Why doesn't profibus master work when cache is enabled?
JHi
