(AN3748) JM128 bootloader problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

(AN3748) JM128 bootloader problem

Jump to solution
1,090 Views
Ahmedahmed
Contributor II

I am using the bootloader GUI provided with AN3748 application note for MCF

This bootloader only program up to 32 Kbyte and  my application is greater than 32k.

the bootloader says done while there is more records in the S19 file.

any suggestions!

6066_6066.jpgJM128_BL.JPG.jpg

Labels (1)
1 Solution
738 Views
Ahmedahmed
Contributor II

We managed to solve it the bootloader GUI 1.1 that works with 64 bit computers has an overflow issue. the original reviosn that works GUI 1.0 that works with XP does not have this issue and it works fine.

View solution in original post

5 Replies
738 Views
TomE
Specialist II

If you type "AN3748" into the Search Field at upper right you'll get 17 matches.


This one, dated complains that the bootloader only sends 32k:

Re: USB Bootloader on MCF51JM128 Upgrade Problem

There was no response to that post.

You might like to check this one to see if it is of any use - it is a new version of a bootloader, based on that App Note from 2012:

BootLoaderUSB

But read through the App Note. There's a lot of information on customising it for different CPUs, and you may have it set to the wrong one.

Do you know if the 32k restriction in in the PC end or the enbedded end?

Tom

0 Kudos
738 Views
Ahmedahmed
Contributor II

I know there is several matches however except the one you mentioned which is not answered none is related to the problem I am facing.

Since this issue is related to the GUI not the embedded code so changing to PEupd will not help.

Thanks for your reply.

0 Kudos
738 Views
TomE
Specialist II

That screenshot you posted says:

- Erasing 1fc00 to 1FFFF

- Programming 7FEC

That has erased from 127k to 128k. So it is smart enough to have erased the entire FLASH, assuming it started from zero (or above any internal loader). It knows how big it is.

From the Reference Manual, the MCF51JM128 FLASH address range is from 0x00000000 to 0x0001FFFF, which matches that.

I'd suggest reading the S7 file. It is ASCII with addresses in the first column. Make sure it is compiled with the right address range to fit in the FLASH. Make sure you don't have a restricted compiler that will only generate 32k.

The other option is to make your code more efficient and smaller. I always find I have to do that eventually!

Tom

0 Kudos
738 Views
Ahmedahmed
Contributor II

Hello,

Yes, i have checked the file it has the right addresses beyond 7FEC. Also erasing goes to the end of the Microcontroller, it does not read the file as you can Erase the microcontroller without a file been selected.

0 Kudos
739 Views
Ahmedahmed
Contributor II

We managed to solve it the bootloader GUI 1.1 that works with 64 bit computers has an overflow issue. the original reviosn that works GUI 1.0 that works with XP does not have this issue and it works fine.