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.
Hello all,
I recently started using GUI composer (on my custom circuit board with F28035) and it works great with USB JTAG connection. Now I am trying to make it work with UART connection.
Found this pdf and followed the instructions but still couldn't make it running
http://processors.wiki.ti.com/index.php/ProgramModelUart_GuiComposer
This is the error:
ComPort: Trouble Reading Memory Block at 0x9900 on Page 1 of Length 0x1: **Error**: Serial Communication failed at port: COM5, baud rate:57600!
I would expect the UART connection to suspend at main but it keeps running and i cannot suspend it.
Also looks like it requires Uart monitor running on the target but how do i do that?
Any help is appreciated!
Sandhya
In the error message "...Communication failed at port: COM5, baud rate:57600!" I see the baud rate is set to 57600.
Would you be able to try 9600?
Changed to 9600 in .ccxml and device manager/COM5/properties, still same error
Does it have to do with boot mode?
I think that TRST is 1 and
by default, TD0(GPIO37) =1 and GPIO34 = 1
These are my settings
SciaRegs.SCIHBAUD =0x0000; // 9600 baud @LSPCLK = 15MHz (60 MHz SYSCLK).
SciaRegs.SCILBAUD =0x00C2;
#define DSP28_DIVSEL 2 // Enable /2 for SYSCLKOUT
#define DSP28_PLLCR 12 // Uncomment for 60 MHz devices [60 MHz = (10MHz * 12)/2]
#define CPU_RATE 16.667L // for a 60MHz CPU clock speed (SYSCLKOUT)
Sandhay,
I see in your first post that you are expecting to see the target in a halted state when you start the UART connection.
“I would expect the UART connection to suspend at main…”
That cannot be the case since the UART monitor on the target needs to run, in order to transfer data between target and PC.
The UART connection allows reads and writes of target memory while the target is running. The UART connection requires your target program to be running the UART monitor so it can receive commands for memory reads and writes and send the data back to the PC.
In order to use the UART connection, your program has to include the UART target monitor. The document http://processors.wiki.ti.com/index.php/ProgramModelUart_GuiComposer describes in details how you can do that. Once you load and run the program with the target monitor, then you can start the UART connection and be able to see or change target memory while the target is running.
Regards
Dobrin
Hello Dobrin,
Now I understand why it doesn't halt at main, thanks a lot for explaining.
I am following the instructions in that document and I still get the com error as mentioned in my first post. Any ideas on that?
-Sandhya