Other Parts Discussed in Thread: HALCOGEN
https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/3225.HyperTerminal.7z
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.
https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/3225.HyperTerminal.7z
Dear QJ Wang:
So, what should I do next. I still think may be the problem appearing in the bootloader code that I transplant. I have posted my bootloader project in this theme.Do it can connect with my PC Code or other PC. Please give me some advice.May be I need rewrite
The Packetwrite() and Packetread()?In fact, I have some confused to figure out the code .
Yesterday, I have load the APP by JTAG(start address is 10100).My bootloader can jump to the APP.
Thanks and Regards
Qiuchi
Hi Chi,
I wrote a CAN test case for you to check if your PC side transmits any data.
The test case use DCAN1 module, message box 1 for receive, RX interrupt is used to receive CAN data, the ID mask is not used so it can receive the data for any ID.
Please add a break point in canMessageNotification() function in sys_main.c.
Run MCU code first, then your PC size CAN project. If the MCU code doesn't stop at the break point, there is no data on the CAN bus.
https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/3022.TMS570LS1114PGE_5F00_CAN_5F00_Test.7z
Dear QJ Wang:
Thanks for your enthusiastic answer.
Now, I have downloaded the code from e2e.By test, I found the CAN bus with data.
Step 1:I add the HW loak by HalCoGen generating code.
Step 2:Run the MCU code and add the breakpoint at the sys_main.c.
Step 3:Run the PC Side code and the program stopping at the breakpoint.
Thanks and Regars
Qiuchi
Dear QJ Wang:
Now,I test my PC code and post my data.
I send a PING and a COMMAND Download order.
The Image_size is 74a0. canID changes from 0 to another value.
So,I do not sure what sector causes the problem.That is to say,canID=0x5A0 or 0x5A4 ?
In the bootloader, ID is used to filter the coming message?Sorry for it,according to my understand,ID=0x5Ax is right?
If I make a mistake to understand it?
In fact,My bootloader code is still your code. I am familiar with use HalCoGen so that I am too depending on it,even modify the
bl_can.c.This is why I bothered by this problem so long time.Forgive my poor knowledge,Now I positively try to solve it.
Thanks and Regards
Qiuchi
Dear QJ Wang:
I asked for leave a few days ago and I didn't reply to your post in time. I'm sorry.
In fact .I didn't change the BT example some time ago, and I posted a post detailing the changes.
But the program stays in the while statement.
Thanks and Regards
Qiuchi