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.

C6746 loading program after HPI BOOT

Guru 15510 points

Hi,

I have a question about C6746 Boot.

In my customer's board, HPI Boot are used and BOOTMODE pin state are fixed to HPI BOOT.

But they want to load user program via JTAG emulator after HPI boot.

In their program, EDMA are used. But when they load the program via emulator and start execution, EDMA never start. If they load this program during HPI boot, it seems that program are running successfully.

They assert CPU reset from CCS before program load but this doesn't work for this issue. We don't know how to solve this issue. Please give me an advise.

best regards,

g.f.

  • Hi,

    In their program, EDMA are used. But when they load the program via emulator and start execution, EDMA never start. If they load this program during HPI boot, it seems that program are running successfully.

    Able to load and run successfully while during HPI boot ?

    Please make sure that loading gel file while connecting target on CCS.
    gel file initialize the DDR,PLL etc., once you connect the DSP core vis JTAG.
  • it would be good to give a register dump of EDMA registers and PaRAM set in the failing test and clarify what is the source/destination for the EDMA transfer.
    It could be as simple as they forgot to enable the clocks to EDMA CC/TC , if they didnt use the GEL file to initialize the PSCs etc, as Titus mentioned.
  • Hi Titus and Mukul,

    Thank you for the reply and I'm sorry for the delay.

    >Able to load and run successfully while during HPI boot ?
    Yes, HPI boot finish successfully and loaded program are running fine.

    The following is dump of PaRAM and EDMA Registers:
    //////////////////////////////////
    OPT:
    ITCCHEN = 0
    TCCHEN = 0
    ITCINTEN = 0
    TCINTEN = 0
    TCC = 0
    TCCMOD = 0
    FWID = 1h (16 bit)
    STATIC = 0
    SYNCDIM = 0
    DAM = 0
    SAM = 0

    SRC = 0x01D10000 (McBSP0 DRR)
    ACNT = 2, BCNT = 48
    DST = 0x118105C0 (L2RAM)
    DSTBIDX = 2, SRCBIDX = 0
    BCNTRLD = 48, LINK = 0xFFFF
    DSTCIDX = 0, SRCCIDX = 0
    CCNT = 1

    DMAQNUM0 = 0x00000000
    EESR(Event Enable Set Register) = 0x00000004

    *PSC0 Module Control Register*
    MDCTL0 = 0x00000003
    MDCTL1 = 0x00000003
    MDCTL2 = 0x00000003
    //////////////////////////////////

    best regards,
    g.f.