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/PGA900: PGA900: SCI problem

Part Number: PGA900


Tool/software: Code Composer Studio

hello:

my hex can do well on debug mode with SCI (Modbus RTU). I transmit  0x03 command  and the chip respond the message weill;

But when I OTP the same hex to chip and turn off ,turn on the VCC. 

I send the same commend to the chip .

The SCI can't respond the message but the GPIO2 is normal as I want it to do ;

Addtional,I use the MODBUS ID as same as EEPROM CELLS on the address of 0x40000005;

By the way ,In my opinion the  EEPROM CELLS don't change whether OTP or DEVRAM?

  • Hi Chennangan,

    So when it is working correctly, you are running the your firmware using the CCS debugger with the program in them DEVRAM of the PGA900? Is that correct?

    When you program your hex file to the OTP, the MODBUS communication does not work, but other portions of the code work? How are you programming the OTP? When you program it, are you making sure to apply 7.5V to the VP_OTP pin?

    The EEPROM will stay the same regardless of whether the program is being run from DEVRAM or the OTP.


    Regards,

  • Hi Scott:

    Yes,In my program,I have two function,the one is  square wave output with GPIO2, the other one is MODBUS;

    In DEVRAM mode on debug ,it can do well both two function;

    Ater OTP,No mater how many  times I  power on or power off, My square wave output with GPIO2 work as same as DEVRAM debugger; But the MODBUS function fail;

    I OTP with Code Composer Studio  Version: 7.3.0.00019 and XDS200;

    I change two place on PGA900.gel file:

    turn

    WR_MEM_08(REMAP_ADDR,0x01);

    to

    WR_MEM_08(REMAP_ADDR,0x00); 

    turn 

       GEL_MapAddStr(0x00000000, 0, 0x00002000, "R|W", 0);  // OTP

    to

       GEL_MapAddStr(0x00000000, 0, 0x00002000, "RAM|AS4", 0);  // OTP

  • Hi Chennangan,

    You should not have to change the GEL_MapAddStr settings. The only change you should have to make is to the Config_Remap function. Those other functions are mainly there to designate how the memory space is used in the device, and it should not change.

    Regards,