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.

TMS570LS1114: Some questions about Bootloader Code communicate with the PC Side Code?

Part Number: TMS570LS1114

Dear Experts:

       Q1:  The underlying source code of Bootloader PacketWrite function is always waiting to accept the state, in my host computer can not always receive data sent from the bottom program, what is the reason?

              Step1: Test PacketWrite function.



The code always stays in the for loop and observes the value of the variable ulIdx as follows:


Q2: Bootloader underlying source code PacketRead function is always waiting to accept the state, in my next crew always can not receive command data sent from the host computer, what is the reason?


Download from the Ti official website routines, my main changes are as follows:

#1  bl_config.h

#define  CAN_BIT  500000   /*can be 125K, 250K, 500K, 750K, 1000K. The default is 125K*/

#define  SYS_CLK_FREQ           160            //MHz

#2  flash_defines.h

#define TMS570LS11

#3  bl_dcan.c

g_ulForced =1 ;


My underlying code is not modified elsewhere, my CAN card is GCGD technology, the official website to the code is Ni CAN,

My host code to accept the thread and send the function are verified through the VS2010 observed variables are normal, using another set of CAN to accept the sending program. Do I still need to make some other changes to the underlying code? For example, PacketWrite and PacketRead because of the different CAN devices also need to re-write?

Q3: When the host computer to complete the required bootloader operation instructions, how to verify that the Bootloader function has been achieved, when the bootloader code downloaded to the microcontroller, the host computer to start sending commands, then can not go through the CCS to observe the situation of data write ?

Attached: E2E issued on the development of Bootloader I mentioned in the post.

1 https://e2e.ti.com/support/microcontrollers/hercules/f/312/t/662333?tisearch=e2e-sitesearch&keymatch=%20user%3A323655

2https://e2e.ti.com/support/microcontrollers/hercules/f/312/t/660218?tisearch=e2e-sitesearch&keymatch=%20user%3A323655

 

Best and Regard

Qiuchi