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.

CCS/PGA970: Load program Error

Part Number: PGA970

Tool/software: Code Composer Studio

Hi,

I 'm in trouble.

when I turn on the "COMBUF_TESTING" switch, and add some code about SPI_ENABLE(DIG_IF_CTRL |=1; MICRO_INTERFACE_CONTROL|=1;), then I compile the project, debug the project succesfully.But when I exit the debug and enter the debug secondly, I can't do it anymore. 

the notice is following:

  • Hi le li,

    Not sure at the moment where the problem might be, can you provide your memory map details?  Where do you have the pga970_combuf.c and .h files?

  • Hi,

    I  think maybe this sentence "MICRO_INTERFACE_CONTROL |=1;" has something wrong? this moment, the M0-processor isn't at reset mode but the code has enable the directly access to all the memory? 

    I want to communication with PGA970 when the professor is running .so I use COMBUF reg. I  discard the code "MICRO_INTERFACE_CONTROL |=1;" and download a new demo-board. now I can debug successfully. But I have another new question. I use SPI master to send a word to the PGA970, but it can't generate a spi receive interrupt.

    the relevant configuration is as following:

    COM_RX_INT_ENABLE = COMBUF_RXRDY_INT_ENABLE;

     DIG_IF_CTRL = SPI_ENABLE | OWI_ENABLE |OWI_DEGLITCH_FILTER_1MS;

    interrupt void COMBUF_Handler(void)
    {
       COMBUF_Rx_Buf[0] = COM_DIF_TO_MCU_B; /* Read combuf data */
       COMBUF_RX_STATUS_CLEAR();            /* Clear receive status */
       COMBUF_Flag = 1;                     /* Flag to process rx data */
    }

    void Interrupt_Config(void)

    {
       /* Clear interrupt pending register */
       NVIC_UNPEND0 = 0xFFFFFFFF;
       /* Set priority of NVIC interrupt */
       NVIC_PRI0 = 0x80404000;
       NVIC_PRI1 = 0xC0C0C0C0;
       /*
        * Enable NVIC interrupts
        * NVIC interrupt for external interrupt 1 i.e. TADC is disabled
        */
       NVIC_ENABLE0 = 0xFFFFFFFF;
    }
  • or  sorry   it's processor, not professor.

  • Hi,

    I need your help !

     best regard!

  • Hi Le Li,

    Are you currently working off of the PGA970 generic firmware example? To clarify, is the code not running the combuf section because it isn't registering a command to the combuf? When you test, are you attempting to write to the combuf registers? Or is the problem that it doesn't seem to be acknowledging SPI communication at all?

    As a note, the firmware development support model for the PGA970 has changed and will be limited to the available documentation on ti.com as well as the M0 support from the ARM website (user's guide here: http://infocenter.arm.com/help/topic/com.arm.doc.dui0497a/DUI0497A_cortex_m0_r0p0_generic_ug.pdf). Please see this thread with more details on the change: https://e2e.ti.com/support/sensors/f/1023/t/802433 


    Regards,

  • Hi

    Thank you for your help!

    1、yes, it's the generic firmware. 

    2、I have enable the COMBUF compile switch, what do I do more to register a command to the combuf? 

    3、yes, I use a SPI master (stm32f3xx) to write a byte to the PGA970 combuf register by the SPI bus, but the PGA970 doesn't acknowledge at all.

    looking forward your answer.

    best regards! 

  • Hi Le Li,

    With the current configuration are you able to communicate at all through SPI? Can you send an SPI command to place the microcontroller into reset as a test? I'm trying to determine if the SPI communication as a whole is not working properly, or if only the COMBUF is not registering the communication.

    Regards,