MC9S08JM32 UART Bootloader problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MC9S08JM32 UART Bootloader problem

2,802件の閲覧回数
S_B_D
Contributor I
Hi,
 
I've ported Freescale's UART bootloader PC application (AN2295) to run on windows CE.
After burning the MCU with the bootloader firmware I am able to load the user application with the ported PC utility and everything works fine. When trying to load the application for the second time I get errors from the calibration function (the baud rate calibration function).
I am puzzled why this works during the first upload but fails to load the application a second time.
 
Any ideas on what can cause this?
 
SBD
 
 
ラベル(1)
0 件の賞賛
返信
4 返答(返信)

1,161件の閲覧回数
S_B_D
Contributor I
When I tested the bootloader on P&E evaluation board and ran the application on XP all was OK except for a warning regarding some registers that the user application was trying to write to but where in the protected region of the bootloader above 0xFE00 (The user application code had 0xFFBD NVPROT in the S19 file).
 
When using the bootloader utility I ported under Win CE the first attempt to bootload the user application code works properly. The problem is when I attempt to bootload the user code for the second time the application stalls in the "Calibration function".
 
On our target board we do not use any USB-UART converters. The JM32 is connected to a Marvel PXA320 Processor that runs Win CE and bootloads the user application.
 
Do you think this has something to do with the fact that both the bootloader code and the user application code move info from the NVMCGTRM register to MCGTRIM register to calibrate the MCG module?
 
Thanks for your help!
 
SBD
 
 
 
 
0 件の賞賛
返信

1,161件の閲覧回数
JaimeR
Contributor III
Have you tried to remove the parts of code (in the S19 file) that you won't be programing because of protected flash sector?
We could use this test to narrow the problem.
Deep debugg, we need to know if you are not erasing an important part of the bootloader code (in the MCU). Sometimes if you define sections with pragma instruction there are calls to ansii libraries that are stored outside the section we want.
How did you exactly ported the application to Win CE?
Are you trying to load the same application that used to work in Win XP? If this is the case maybe the problem is in the changes when porting to a different Win version.
Try to share a little more information so we can figure out the problem.
0 件の賞賛
返信

1,161件の閲覧回数
TurboBob
Contributor IV
are you using real serial ports or USB converter style ports?
 
Does it fail all the time,  some of the time, when re-programming?
 
Bob
0 件の賞賛
返信

1,161件の閲覧回数
JaimeR
Contributor III
Did your application work with another Windows version?
0 件の賞賛
返信