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.

CCSv5 memory browser

Is there an easier way to modify string in the memory? Currently, I need to enter one character at a time and click mouse to enter the next one. Also, it does not take all characters in the character table, such as '.', '/', etc. I need to enter them as hex values. Is this something can be addressed?

  • hi ,

    Why not trying a memory load with a text file containing your string?

    Or maybe a memory fill with the pattern you want if not too long

    rgds

  • Hi,

    Is the text file similar to the .dat file when we save the memory out to? Doesn't the text file still need to be prepared with hex values for the characters? Memory fill is done one byte by one byte and not taking special characters. Is it possible to use string expression and CCS take the whole string and write to memory? Thanks!

  • hi rex,

    you can use raw file without formating.

    you can use the java script (in the javaconsole)

    loadRaw (<your address>,0,"you text file",8,false)

    Opening a memory window with data displayed as character you will see your text file content displayed here.

    rgds

     

  • Hi,

    My text file, test.txt, has the content of "abcdefghijklmnopqrstuvwxyz1234567890" (without quotes), and I issued

       loadRaw(0x80001000,0,"test.txt",8,false)

    The result in memory shows that each character takes a word as following and only writes 10 characters.

    a . . . b . . . c . . . d . . . e . . .
    f . . . g . . . h . . . i . . . j . . .
    . . . . . . . . . . . . . . . . . . . .
    . . . . . . . . . . . . . . . . . . . .
    . . . . . . . . . . . . . . . . . . . .
    . . . . . . . . . . . . . . . . . . . .

    The application of this is to load the ELF format kernel image and change the kernel command line for console type, nfs server IP address, etc.  I wish memory can be modified and looks like

    c o n s o l e = t t y S 0 , 1 1 5 2 0 0
    . i p = d h c p . r o o t = / d e v / n
    f s . n f s r o o t = 1 5 8 . 2 1 8 . 1
    0 9 . 2 9 : / o p t / m i n - r o o t -
    b e t a 2 , v 3 , t c p . r w . . . . .
    . . . . . .

    Is there a way to get around that 4 byte per character and length issue?

    Thanks!

     

     

  • Hi,

    I changed the bit size to 32 and it seems to work. Thanks!