Other Parts Discussed in Thread: UNIFLASH
Hi, I'm trying to program the UserRegister0 and UserRegister1 registers using the command line. I have the followint command:
./dslite -c user_files/configs/tm4c123gh6pm.ccxml -s FlashUserRegister0Input=12345678 -s FlashUserRegister0Commit=true -s FlashUserRegister1Input=87654321 -s FlashUserRegister1Commit=true -b ProgramUserRegister0 -b ProgramUserRegister1 -a ReadUserRegister0 -a ReadUserRegister1
My first problem is that the command crashes most of the time. This is the output from a typical session where I had to run the command three times to get through.
First attempt:
Executing the following command: > "C:\Users\Workbench\Desktop\Lars\uniflash_windows_64\ccs_base\DebugServer\bin\DSLite" flash -c user_files/configs/tm4c123gh6pm.ccxml -s FlashUserRegister0Input=12345678 -s FlashUserRegister0Commit=true -s FlashUserRegister1Input=87654321 -s FlashUserRegister1Commit=true -b ProgramUserRegister0 -b ProgramUserRegister1 -a ReadUserRegister0 -a ReadUserRegister1 For more details and examples, please visit processors.wiki.ti.com/.../UniFlash_v4_Quick_Guide CORTEX_M4_0: GEL Output: Memory Map Initialization Complete info: CORTEX_M4_0: User Register operation... info: CORTEX_M4_0: Writing 0x12345678 to User Register 0 info: CORTEX_M4_0: Programmed value was committed to User Register 0 info: CORTEX_M4_0: Operation completed successfully. info: CORTEX_M4_0: User Register operation... info: CORTEX_M4_0: Writing 0x87654321 to User Register
Then it just exits.
Second attempt;
Executing the following command: > "C:\Users\Workbench\Desktop\Lars\uniflash_windows_64\ccs_base\DebugServer\bin\DSLite" flash -c user_files/configs/tm4c123gh6pm.ccxml -s FlashUserRegister0Input=12345678 -s FlashUserRegister0Commit=true -s FlashUserRegister1Input=87654321 -s FlashUserRegister1Commit=true -b ProgramUserRegister0 -b ProgramUserRegister1 -a ReadUserRegister0 -a ReadUserRegister1 For more details and examples, please visit processors.wiki.ti.com/.../UniFlash_v4_Quick_Guide CORTEX_M4_0: GEL Output: M
Then it just exits.
Third attempt;
Executing the following command: > "C:\Users\Workbench\Desktop\Lars\uniflash_windows_64\ccs_base\DebugServer\bin\DSLite" flash -c user_files/configs/tm4c123gh6pm.ccxml -s FlashUserRegister0Input=12345678 -s FlashUserRegister0Commit=true -s FlashUserRegister1Input=87654321 -s FlashUserRegister1Commit=true -b ProgramUserRegister0 -b ProgramUserRegister1 -a ReadUserRegister0 -a ReadUserRegister1 For more details and examples, please visit processors.wiki.ti.com/.../UniFlash_v4_Quick_Guide CORTEX_M4_0: GEL Output: Memory Map Initialization Complete info: CORTEX_M4_0: User Register operation... info: CORTEX_M4_0: Writing 0x12345678 to User Register 0 info: CORTEX_M4_0: Programmed value was committed to User Register 0 info: CORTEX_M4_0: Operation completed successfully. info: CORTEX_M4_0: User Register operation... info: CORTEX_M4_0: Writing 0x87654321 to User Register 1 info: CORTEX_M4_0: Programmed value was committed to User Register 1 info: CORTEX_M4_0: Operation completed successfully. info: CORTEX_M4_0: User Register operation... info: CORTEX_M4_0: User Register 0 value: 0xffffffff info: CORTEX_M4_0: Operation completed successfully. info: CORTEX_M4_0: User Register operation... info: CORTEX_M4_0: User Register 1 value: 0x2244220 info: CORTEX_M4_0: Operation completed successfully.
This time it completes the command but the registers have not been written successfully.
If I use the LM Flash Programmer I can program and read back both registers without issues.