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.

How to flash the TMS470R1B1M using Jlink?

Other Parts Discussed in Thread: TMS470R1B1M, SEGGER

I know theTMS470R1B1M status is NRND, Now I just maintain old project which was done by the former engineer. Since he had left, so I only have a limited document about that project.

I use Jlink 4.98a + Jlink V8, in J-Flash IDE.

I load TMS470R1B1M.jflash firstly, and try to connect the chip, Unfortunately, getting the error as "could not detect CPU clock speed" or " 'Memory access timed out @ 0040FFE0 ".

when I use J-link commander, it can automatically identify the chip ID, but I can 't take any further commander, getting the error as " Not able to access the RAM/FLASH".

 

so would you please give me some suggestion about how to program the TMS470R1B1M.

 

Thanks very much.

 

PS: AWD connect to the ground by 10K resistance.

  • Sorry, I don't have any information on using JLINK with this part. You might want to contact SEGGER. I will transfer this thread to the High Reliability forum as they might have a better answer.
  • Hi Bob,

        Thanks very much for your support.

         And in the Jflash IDE, I need to know the clock speed of TMS470, the default setting is "Clock Speed" is Auto detetion. Unfortunately, I encounter a wrong as below.

    i think this setting is better for the below board. Not for my board.

    the system clock is 7.5M.  

    the step 19 is setting the system clock is from 7.5M to 20M.

    So I want to know, if I use the same code for my board, there is 12M clock is on my board.

    After init steps, is my system clock 32M?

    Is it right?

    Need I modify the setting?

    From

    to

     

    Thank very much.

     

    PS: In IAR mac file

    the clock setting code is different

     

      __writeMemory32( 0x00000000, 0xffffffdc, "Memory" ) ;  // GCR SYSCLK *8 and /4 = SYSCLK  /1

    // Setup clock ICLK = SYSCLK/16.

      __writeMemory32(0x0000000b, 0xfffffd30, "Memory");  // PCR - set CLKDIV

     

    Which clock setting is better for me?thanks very much.

     

  • Kelly,
    I know we had several customers encounter issues related to IAR EWARM software. One instance was caused by a code limited free version expiring.
    They re-installed IAR EWARM, and was able to resolve the connection issue.
    Regards,
    Wade
  • Wade,

    Sorry, I think I make you confused.
    I have hex file for this project, so I do not need the IAR to compile it.
    I indicate IAR mac file, just want know how to set the clock speed in Jflash IDE.
    In mac file,
    0xffffffdc = 0x00000000, 0xfffffd30 = 0x0000000b
    If the TMS470R1B1M crystal is 7.5M, the system clock is ?

    Due to I can't find the specific PLL user guide document for TMS470R1B1M, I don't know
    how to calculate clock speed?

    In IAR TMS470R1B1M EVM, the crystal is 7.5M, 0xFFFFFFDC = 0x00000002,
    the system clock is 20M.
    There is 12M crystal in my board, How the System clock speed in my board?
    32M or others?
  • Kelly,

    Unfortunately I am preparing to be out of office until the 1st.  I will not have time to research this.

    However, there are support documents for the R1B1M in the SM470R1B1M product folder.  These should be able to help you in the mean time.


    See

    BTW, the issue I mentioned had a very similar signature, and was not related to compiler, but code to download and validate transfer.

    Regards,

    Wade

  • Wade,

    Thanks very much for you support.
    I will learn documents you provide.
    Many thanks.

    BR
    Kelly