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.

  • TI Thinks Resolved

CODELOADER: About codeloader 4 command

Prodigy 110 points

Replies: 13

Views: 1198

Part Number: CODELOADER

Hi Ti,

    I am from China, we are preparing program  Device LMK03318,According to the official website, we purchased the USB2ANY Tool to program.

First we downloaded the codeloader 4 software , Successfully program EEPROM using GUI(program file :CVN_Clock_eeprom_0_2.epr),The problem we are having now is that we use another platform to call the burn through the command, However, the command description in the user manual does not describe how to program EEPROM. Can you give us a suggestion?How to use command to program eeprom?

  • In reply to seven xiao:

    Hello,

    seven xiao
      we use tp.WriteAddressData(0x53,7) in python ,The log displayed by the GUI is “Wrote Register R0x53 ad 0x5307” ,it is right? we find that from the "USB communications" --> "Interface"  the I2C address is not update ,Can I think that set address is unsuccessful?

    I'm sorry the WriteAddressData, the address is for the register, not for the device.

    seven xiao
        we use PLLobject.WriteAddressData(&H53, 7) in VBA ,show syntax error.Do you know how to write correctly?

    I'll have to check on this.

    seven xiao
    BTW,Why doesn't we automatically connect USB2ANY when we open the software in Python, but VBA can. Do you have any problems with my python code? .Please see attachment picture.

    I think the reason for this is the TICS Pro that was started by VBA is not really closed and is still holding onto the USB2ANY connection.  TICS pro should not be closed by the "X" when automating.  Instead a call to, tp.CloseTICSPro() should be given.

    73,
    Timothy

    ____________________________________________________________________________________

    To design your own Clock Tree solution, visit WEBENCH Clock Architect​​​​
    More information Clock and Timing System products: http://www.ti.com/clock-and-timing/overview.html

  • In reply to Timothy T:

    Hello Timothy,

          Thank you for your answer.

          Then do you know how to modify the I2C address of the LMK03318 IC?Also help me to confirm how the VBA grammar is written?

  • In reply to seven xiao:

    Hello Seven,

    When you call PLLobject.WriteAddressData, I think you may need to cast to a long.
    PLLobject.WriteAddressData CLng(&H12), CLng(&H34)
    Which will write 0x34 to register 0x12.
    - If this does not work, you could try creating long varaibles, assigning their values, then calling the function with variable names instead of immediate values.... but if it works in python with 'immediate' values, I expect it would work in VBA also, but a debugging idea just in case.

    If you are asking how to change the I2C address the TICS Pro software writes to in an automated fashion, it currently doesn't support this. You would have to change and then press Set I2C address button in the communications setup.

    Note that GPIO1 can function as I2C slave address LSB select. The address is binary 10100xx where the two LSBs are set by GPIO1 pin in soft pin mode. Otherwise the LSB = 00. Refer to table 9 on page 53 of the datasheet.

    73,
    Timothy

    ____________________________________________________________________________________

    To design your own Clock Tree solution, visit WEBENCH Clock Architect​​​​
    More information Clock and Timing System products: http://www.ti.com/clock-and-timing/overview.html

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.