AM6442: Cannot update GPIO interrupt configuration in SysConfig Tool

Part Number: AM6442
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi,

I  imported and built a sample project ( i2c_led_blink_interrupt_lld_am64x-evm_r5fss0-0_nortos_ti-arm-clang)  using CCS12.8.1, SysConfig 1.24, and AM64 MCU SDK 11.00.00.15 without any problem

and added a GPIO with interrupt enabled as shown below.

 

I changed mcu_plus_sdk_am64x_11_01_00_17/source/drivers/sciclient/sciclient_default_boardcfg/am64x/sciclient_defaultBoardcfg_rm.c file to ensure that GET RM DATA button in GPIO configuration page works as    expected.

I applied the patches in the following post.

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1507503/am6442-am64-mcu-sdk-in-ccs-v20-fetch-board-configuraiton-for-resource-table-error?tisearch=e2e-sitesearch&keymatch=PROCESSOR-SDK-DRA8X

Before changing sciclient_defaultBoardcfg_rm.c file

    

   


Changes made to sciclient_defaultBoardcfg_rm.c file.

{
            .num_resource = 8,
            .type = TISCI_RESASG_UTYPE (TISCI_DEV_MAIN_GPIOMUX_INTROUTER0, TISCI_RESASG_SUBTYPE_IR_OUTPUT),
            .start_resource = 0,
            .host_id = TISCI_HOST_ID_A53_2,
        },
        {
            .num_resource = 16,
            .type = TISCI_RESASG_UTYPE (TISCI_DEV_MAIN_GPIOMUX_INTROUTER0, TISCI_RESASG_SUBTYPE_IR_OUTPUT),
            .start_resource = 0,
            .host_id = TISCI_HOST_ID_MAIN_0_R5_1,
        },

   

As shown in the above screenshots GET RM DATA button works fine. After this step I made a second change to sciclient_defaultBoardcfg_rm.c to route all 16 GPIO interruptsto R5_0_0 core.

 /*   {
            .num_resource = 8,
            .type = TISCI_RESASG_UTYPE (TISCI_DEV_MAIN_GPIOMUX_INTROUTER0, TISCI_RESASG_SUBTYPE_IR_OUTPUT),
            .start_resource = 0,
            .host_id = TISCI_HOST_ID_A53_2,
        },*/
        {
            .num_resource = 16,
            .type = TISCI_RESASG_UTYPE (TISCI_DEV_MAIN_GPIOMUX_INTROUTER0, TISCI_RESASG_SUBTYPE_IR_OUTPUT),
            .start_resource = 0,
            .host_id = TISCI_HOST_ID_MAIN_0_R5_0,
        },

When I tried to update routing informatioın using GET RM DATA button I get the following error message. 

I tried this steps with some other SysConfig and MCU+ SDK version combinations  but I get the same error message constantly.

Best regards....

  • Hi,

    Can you please tell what modification you did to list all 16 routers in sysconfig?

    I can only see router list from Router0 to Router7. 

    Regards,

    Tushar

  • Hi Thakur,

    To list all 16 routers in sysconfig I changed  .num_resource to 16  for host_id TISCI_HOST_ID_MAIN_0_R5_1 in sciclient_defaultBoardcfg_rm.c file. 

    It was  set to 8 by default.

    {
         .num_resource = 8,
         .type = TISCI_RESASG_UTYPE (TISCI_DEV_MAIN_GPIOMUX_INTROUTER0, TISCI_RESASG_SUBTYPE_IR_OUTPUT),
         .start_resource = 0,
          .host_id = TISCI_HOST_ID_A53_2,
    },
    {
          .num_resource = 16,
          .type = TISCI_RESASG_UTYPE (TISCI_DEV_MAIN_GPIOMUX_INTROUTER0, TISCI_RESASG_SUBTYPE_IR_OUTPUT),
          .start_resource = 0,
          .host_id = TISCI_HOST_ID_MAIN_0_R5_1,
    },

    Best regards...

  • Hi Murat,

    To list all 16 routers in sysconfig I changed  .num_resource to 16  for host_id TISCI_HOST_ID_MAIN_0_R5_1 in sciclient_defaultBoardcfg_rm.c file.

    The above change should not modify the Sysconfig view. It will allocate the router0 to router15 to R5F core.

    Regards,

    Tushar

  • Hi  Tushar,

    This is the view after I changed and updated  resource configuration  using GET RM DATA button. As you can see list shows all routers from 0 to 16. In the default list(before modifiying resource configuration file) I only see first 8 routers.

    Best regards....

  • Hi Murat,

    Yes, I did the above changes and I can see all the routers are coming in Sysconfig, but when I click on GET RM DATA button I didn't face the issue as you are seeing.

    Am I missing any steps? Please provide a screen record so I can try to replicate the same.

    Regards,

    Tushar

  • Hi Tushar,

    As I described in my first post this part of modfication does not cause any problem unless you make a second change to sciclient_defaultBoardcfg_rm.c file by modifing properties of  GPIOMUX_ROUTER.

    Could you make a second modification in  routing configuration file as seen below to disable all  GPIO interrupts for A53  and route these interrupts to R5_0_0 core. Then please push the GET RM DATA button again to update configuration.

     /*   {
                .num_resource = 8,
                .type = TISCI_RESASG_UTYPE (TISCI_DEV_MAIN_GPIOMUX_INTROUTER0, TISCI_RESASG_SUBTYPE_IR_OUTPUT),
                .start_resource = 0,
                .host_id = TISCI_HOST_ID_A53_2,
            },*/
            {
                .num_resource = 16,
                .type = TISCI_RESASG_UTYPE (TISCI_DEV_MAIN_GPIOMUX_INTROUTER0, TISCI_RESASG_SUBTYPE_IR_OUTPUT),
                .start_resource = 0,
                .host_id = TISCI_HOST_ID_MAIN_0_R5_0,
            },

    Best regards...

  • Hi Murat,

    Thanks for the above details. Looks like the above one is incorrect configuration. The resource for MAIN_0_R5F_1 is shared from A53_2.

    Removing resources from this host will lead to errors. 

    Can you please use the resource partitioning tool, instead of manually configuring the resources? This will help you identify the errors at early stage. 

    Regards,

    Tushar