Keil Logo Arm Logo

Discussion Forum

in-system flash programming

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Robert Heinzlreiter
Posted
9-Sep-2003 14:05 GMT
Toolset
C166
New! in-system flash programming
Hi!

I'm using a C167CS-LM with external Flash und RAM!

Has anyone of you implemented a function to store some data to the Flash?

Thanks for your postings!

Robert Heinzlreiter
Read-Only
Author
Brad Holeman
Posted
9-Sep-2003 20:46 GMT
Toolset
C166
New! RE: in-system flash programming
I have and it works quite well. The way to do it is setup up your system to run out of ram while programming the flash.
Read-Only
Author
Robert Heinzlreiter
Posted
10-Sep-2003 07:15 GMT
Toolset
C166
New! RE: in-system flash programming
how do you write to the flash?
Read-Only
Author
Andy Neil
Posted
10-Sep-2003 08:20 GMT
Toolset
C166
New! RE: in-system flash programming
You would need to read the Data Sheet(s) for your flash device(s) to find their programming (and erasing) details.
Read-Only
Author
Robert Heinzlreiter
Posted
10-Sep-2003 10:15 GMT
Toolset
C166
New! RE: in-system flash programming
which command do you use to send this commands to the flash?
Read-Only
Author
Brad Holeman
Posted
10-Sep-2003 13:43 GMT
Toolset
C166
New! RE: in-system flash programming
Robert,

LISTEN!!!!!!!!

You totally ignored Andy's correct advice. You have to get the data sheet for the flash device to know how to program it. It generally is as easy writing data to an address.

What flash device are you are trying to program?
Read-Only
Author
Robert Heinzlreiter
Posted
10-Sep-2003 15:17 GMT
Toolset
C166
New! RE: in-system flash programming
i looked at the datasheet and have implemented the routines now.

But I have a problem with pointers.
With WORD pointers my routines works, but I need long pointers cause of the address space and then e.g. the erase command has no effect!

I think the pointer is shortened to 2 Bytes.

Do anyone of you know such a problem?

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.