Other Parts Discussed in Thread: TDA4VL
Hi expert,
In TDA4VL SDK V8.04,the freeRTOS timer for MCU1_0 is default dmtimer 1. For our application, we need move this timer to main domain,such as dmtimer19,how to config it?
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.
Hi,
Why do you need to use main domain timer on mcu r5f? There are around 10 mcu domain timer, can you use one of the mcu domain timer on mcu r5f?
Regards,
Brijesh
Hi,
If possible, can you free up one of the mcu domain timer and use main domain timer for USS capture?
We can try using main domain timer, but can take multiple iterations/more time to get it working..
Rgds,
Brijesh
HI expert,
For USS Capture,we need timers with Timer_IOs. In fact,we use 10 MCU dmtimers and 2 main dmtimers. Because we use SD card to debug SW,If move more dmtimer to main domain,it will conflict with the SD pins.
Rgds,
wl.wang
Hi wl.wang,
We are checking this internally and will get back to you as soon as we have solution..
Regards,
Brijesh
Hi wl.wang,
I have shared the changes with Cary Zhang, can you please get the changes and try them on the board?
Regards,
Brijesh
Hi Brijesh,
I've shared the changes to Wang, but it failed after they applied the patch on the board. could you give some other tips?
Regards,
Cary
Hi Cary,
Where does it fail? Can you please share some error log? Is it failing in running Os_init?
Regards,
Brijesh
Hi wl.wang,
Do you have JTAG and CCS connection on this board? Can you please connect to mcu1_0 and see where it is stuck/halted? I am suspecting timer19 may not be powered on, which is why it might be stuck. Can you please also try to read Timer19 registers from the CCS memory window and see if there are readable.
Regards,
Brijesh
Hi Wang,
ok, which exactly example are you running from SBL?
Regards,
Brijesh
Hi Wang,
Can you please apply attached patch on top of ti-processor-sdk-rtos-j721s2-evm-08_05_00_11\pdk_j721s2_08_05_00_36 folder and check the output? I am able to run one of the PDK example on mcu1_0 with these changes?
Essentially, we need to make three changes in order to change timer in the FreeRTOS
1, Changed the timer id ie configTIMER_ID in the appropriate config file of the core.
2, Make sure that this timer parameters are available in the gDmTimerPInfoTbl table in TimerP_default.c file.
3, Any additional configuration like interrupt router or timer enablement or clock selection should be done as part of Os_init API.
Regards,
Brijesh
Hi wl.wang,
We can use any free interrupt from 160 to 191, as per below link. This is the first 32 output pins from Main2MCU Interrupt router and their irq numbers on mcu1_0 is from 160 to 191.. so we can use any free irq in this range.
Regards,
Brijesh