Tool/software: TI-RTOS
Hi, I am so new and working on EtherCAT with IDKAM437x.
I want to add a simple UART_read task, and of course later more tasks, to run concurrently with current ethercat_slave_demo(PRU ICSS EtherCAT Slave) code, I tried several ways:
1- Because I can add tasks and edit pinmux easily on rtos_template_app(located in the latest pdk).
I tried to add an etherCAT task to it. I get the ethercat slave controller files (ties*.c files) out from the ethercat_slave_demo project, copied .c files to the rtos_template_app , added the ethercat task of the ethercat_slave_demo near other given tasks , it ended up with many problems.
2 - I later decided to move on with working ethercat_slave_demo code and add more tasks into it, found this issue : "e2e.ti.com/.../729390" where I tried to add an UART task uses UART1, needed to alter the pinmux correctly. I tried to change the .pinmux file under ${PDK_INSTALL_DIR}\packages\ti\starterware\tools\pinmux_config\am43xx\idkevmam437x.pinmux as stated in the link.
I found the file "idkevm.pinmux" under that directory, loaded it to the ti cloud pinmux tool, added UART1, and save the edited version, replaced it to the very directory, make pdk, rebuilt the project, and it gives an runtime error(angel_swi).
My questions are simple:
- Do you encourage the 1.way or if I am developing a project including etherCAT, I should develop it in given ethercat_slave_demo project( Namely, can one easily reuse the etherCAT files and the tasks in ethercat_slave_demo, easily integrate it as a task to another project)?
- In ethercat_slave_demo project," Which pinmux files" located under "which directories" in ethercat_slave_demo project (PRU ICSS EtherCAT Slave) should be edited to configure?
Thanks in advance!