AMIC110: Changing EMU pins in GEL file

Intellectual 880 points

Replies: 6

Views: 57

Part Number: AMIC110

hello,

I'm using the iceAMIC110 eval board as a base for an own design, now I need to change the EMU pins.

How is that done in the gel file?

what register has to be written?

is there any documentation about it?

thanks for helping

best regards

Thomas

6 Replies

  • Hello,

    Where do I find the setting for the Pin Mux for the iceAMIC110?

    the iceAMIC110 eval board uses for EMU2 pin A15, for EMU3 D14 and for EMU4 A14.

    I'd had expect a configuration something like:

    #define PAD_CNTRL_EMU2 *(unsigned int*)(0x44E109b0)   // pin control A15

    #define PAD_CNTRL_EMU3 *(unsigned int*)(0x44E109b4)   // pin control D14

    #define PAD_CNTRL_EMU4 *(unsigned int*)(0x44E109AC)   // pin control A14 (conf_mcasp0_ahclkx)

    PAD_CNTRL_EMU2 |= 0x6;

    PAD_CNTRL_EMU3 |= 0x6;
    PAD_CNTRL_EMU4 |= 0x4;

    I had a look into the ..\..\emulation\gel\AM335x_trace_dapdebugss.gel file there, I sse he following entry

    #define PAD_CNTRL_EMU2 *(unsigned int*)(0x44E109b0)
    #define PAD_CNTRL_EMU3 *(unsigned int*)(0x44E109b4)
    #define PAD_CNTRL_EMU4 *(unsigned int*)(0x44E10960)

    :

    :

    Enable_Pad_Registers_For_STM_trace_Pins_EMU0_EMU4()
    {
    PAD_CNTRL_EMU2 |= 0x2;
    PAD_CNTRL_EMU3 |= 0x2;
    PAD_CNTRL_EMU4 |= 0x2;
    }

    :

    :

    hotmenu Enable_STM_4PinMode_Trace()
    {
    enableDebugSSFirewall();
    GEL_TextOut( "INFO: set DP[4:0] for STM trace (DP0=d0, DP1=d1, DP2=clk, DP3=d2, DP4=d4\n" ,,,,,);
    DRM_CLAIM = OWNERSHIP_CMD_CLAIM; // claim
    DRM_CLAIM = OWNERSHIP_CMD_ENABLE; // Enable
    DRM_CTL(0) = (0x80000000 | DPM_MODE_STM_DATA0); // set DP0 as STM trace data0
    DRM_CTL(1) = (0x80000000 | DPM_MODE_STM_DATA1); // set DP0 as STM trace data1
    DRM_CTL(2) = (0x80000000 | DPM_MODE_STM_CLK ); // set DP0 as STM trace clock
    DRM_CTL(3) = (0x80000000 | DPM_MODE_STM_DATA2); // set DP0 as STM trace data2
    DRM_CTL(4) = (0x80000000 | DPM_MODE_STM_DATA3); // set DP0 as STM trace data3
    STM_traceClockPDLO();
    Enable_Pad_Registers_For_STM_trace_Pins_EMU0_EMU4();
    GEL_TextOut( "Configure STM to 4 pin mode on DRM is done");
    }

    What is the use of this configuration?

    what means hotmenu?

    Can you "show" me the point where the configuration is done for the iceAmic110 evalboard (EMU2, 3, 4 pins)?

    thanks for helping

    best regards

    Thomas

  • In reply to Thomas Hecht:

    Hi Thomas,

    To get started, check out our cloud PINMUX tool: https://dev.ti.com/pinmux

    Then, upload the pinmux file located in <TI_PDK_DIRECTORY>\packages\ti\starterware\tools\pinmux_config\am335x\iceamic11x_config.pinmux

    In the far left column, click on "DEBUGSS"

    You should then be able to edit the EMU pin assignments.

  • In reply to Max Kross1:

    Hello Max,

    I used the PinMux tool for the pin assignments. But there are still uncertainties how to integrate the generated h and c files into the project, because these files interfere with the PDK.

    At the moment I was busy with putting the new hardware into operation. On my board the EMU4 pin is connected to pin C15 instead of A14 compared to the iceAMIC110. Now I thought, that you have to tell the CCS on which pins EMU2, 3 and 4 are connected (via gel-file) like in the forum post AMIC110: EMU Pins. To my astonishment I can access the AMIC on my board via XDS200, although I did not make any further configuration for the EMU port - how can that be?
    many greetings
    Thomas

    Translated with www.DeepL.com/Translator (free version)

  • In reply to Thomas Hecht:

    Hi Max,

    have you got an idea why it is working?

  • In reply to Thomas Hecht:

    Hi Thomas,

    Instructions on updating the pinmux config can be found here: http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_board.html?highlight=rebuild#am335x-am437x

    It is difficult for me to comment on why it is working, as I'm unfamiliar with your custom hardware.

    Thanks,

    Max

  • In reply to Max Kross1:

    Hi Max,

    thanks for the answer,

    I'm just surprised that the JTAG port works, although I used a different pin for EMU4 on my own board than on the Eval board. All example projects of the Eval board also work on my own board. I wonder, are the signals EMU2 to EMU 4 needed at all? is there some kind of auto detection which EMU signals are switched on which pin?

    best regards

    Thomas