Tool/software:
Hello Ti Dev,
Recently, I found a thread regarding triggering udma using gpio interrupt.
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1378150/faq-how-to-trigger-dma-with-the-help-of-gpio-on-am64x-am243-and-am62x-devices
My goal is very similar to above just a little different on gpio direction (i am using gpio as an input to trigger udma during gpio interrupt). The default example provided in MCU_SDK v10 on AM62A7 cannot directly trigger gpio. Therefore, I reallocated the sciclient using this link: https://dev.ti.com/tirex/explore/node?node=A__AG9KcMsTr.iTW5L9U3aIjw__com.ti.MCU_PLUS_SDK_AM62AX__snSiJ-B__LATEST. I allocated the 15th instance of MAIN_GPIOMUX_INTROUTER0 to c75.
After modification, it worked properly without any error. Then, I started to proceed with interrupt source and number change according to TRM. As I look into TRM, there are 10 interrupts that can be routed to BCDMA as shown below. I set TISCI_DEV_DMASS0_INTAGGR_0 as dst_id and GPIOMUX_INTROUTER_OUTP24 as dst_host_irq.
I got an error as shown below. As I got error, I could not proceed to check udma. I have attached project file below.
4760.empty_am62ax-sk_c75ss0-0_freertos_ti-c7000.zip
Regards,
Key
Hi Key,
Please tell us which version of MCU+SDK are you using?
Regards,
Tushar
8206.empty_am62ax-sk_c75ss0-0_freertos_ti-c7000.zip
Hello Tushar,
Any update on this issue?
As I read TRM, I checked the interrupt sources on C7X256V0_CLEC_INTERRUPT_MAP. As it tells me to allocate the interrupt index to between 32-42 to trigger udma using gpio interrupt.
So I made a modification sciclient_boardcfg_rm as followed.
After I debug to check the interrupt, the error regarding sciclient event config failed occurs.
Could you please update me on this issue?
Regards,
Key
Hello Key,
First, my suggestion is to check for the DMA functionality on C7X devices and later do the GPIO trigger implementation and testing.
So I made a modification sciclient_boardcfg_rm as followed.
The above configuration seems wrong.
The MAIN GPIO MUX router outputs from 22 to 31 go to BCDMA triggers.
So, you need to configure MAIN ROUTER outputs from 22 to 31.
Now, you can configure the start resource as 22 and the HOST ID must be the HOST_ID_ALL.
Next, compile the board rm cfg file.
Flash, the updated SBL bin file.
Next, in the example, L2G_EVENT_ID0 should be changed to the 16th. If this is not working check from 16th to 25th values and do the same Testing .
Sorry for this trail and error .I could not find this information in the TRM properly .So, we need to do like this way and I can check internally to get more details on this topic.
After the above changes, compile the Application.
Finally, load an application and see if this example works or not.
Regards,
Anil.
Hello Anil,
I think I solved it.
Originally, src_id and src_index are TISCI_DEV_MAIN_GPIOMUX_INTROUTER0 and bankNum. When I tried to change src_id TISCI_DEV_GPIO1 and pinNum, the sciclient error was gone.
Regards,
Key
Hello Key,
Good to hear that, you have solved the issue.
I am closing this thread now and please open new threads for new queries.
Regards,
Anil.