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.
Best and Regard
Qiuchi