Flash Magic Forum

In-System Programming Support => General => Topic started by: Nicola Fontana on March 26, 2012, 05:12:51 AM

Title: Reading the first 64 bytes
Post by: Nicola Fontana on March 26, 2012, 05:12:51 AM
Hi all,

I'm developing an application that needs to read the flash. Actually I can read everything but the first 64 bytes (starting from address 0). After reading docs and googling around I discovered those bytes are remapped when in ISP mode.

Anyway it seems flash magic is perfectly able to read the correct bytes, so I'm wondering if there is an undocumented feature (or a documented one I've still not found ;) that allows to achieve what needed.

Thank you in advance.
--
Nicola
Title: Re: Reading the first 64 bytes
Post by: Andy Ayre on March 30, 2012, 01:54:47 AM
No, not really. Flash Magic downloads a small IAP-based program into RAM and executes it to map and unmap those locations.

Andy
Title: Re: Reading the first 64 bytes
Post by: Nicola Fontana on April 02, 2012, 01:07:30 AM
Any chance to get that binary code and how to use it? Although changing the MEMMAP register is trivial by itself, I guess there are lot of ways to shoot yourself in the foot.
Otherwise my idea would be to implement something that:
All but the last step seems quite straightforward.
--
Nicola
Title: Re: Reading the first 64 bytes
Post by: nick53493 on July 10, 2012, 12:51:54 PM
I have exactly the same problem. Has the topic starter come up with any solution?
Title: Re: Reading the first 64 bytes
Post by: Nicola Fontana on September 15, 2012, 01:10:41 AM
Quote from: nick53493 on July 10, 2012, 12:51:54 PM
I have exactly the same problem. Has the topic starter come up with any solution?

Hi Nick,

yes, I exactly developed what described here. Implementation and details can be found in my library repository (http://ntd.git.sourceforge.net/git/gitweb.cgi?p=ntd/ntd;a=summary) (the relevant commits are dated between 2012-06-18 and 2012-06-25).
Title: Re: Reading the first 64 bytes
Post by: nick94593 on October 10, 2012, 05:56:53 AM
Thank you,  Nicola.