public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Flash-Programming
@ 2016-01-19 13:18 Privat
  2016-01-20  9:47 ` Privat
  0 siblings, 1 reply; 3+ messages in thread
From: Privat @ 2016-01-19 13:18 UTC (permalink / raw)
  To: ecos-discuss

Hi,

we are working on a Ecos-Project using the freescale MPC5668g with CFL90.
My collague and i have created a section in the flash memory, where we
intended to persistent  store some data-

We used the Linker Script Variables to retrieve the pointers to a 
section of memory we declared.
Using these we tryied to issue a write Command to that address - and
recive an Programm Error 4.
Is there some particular assembler magic necessary to write to Flash?

According to our DataSheets, the plattform we are on, does not work with
a MPU - so this should not be the source ouf our troubles.

We tryied to write to other locations, using the block adresses recived
with the given functions- and just managed to crash our program there
(it first seemed we overshot and either got a address in RAM, but as it
also crashed after re-boot, we concluded some damage done to the image
in FLASH.

My Question:
Is there some trick regarding writting and reading from Flash? Do we
need more NOPs? Is there some software Managment Entity, preventing
unauthorized writes or reads to flash?
Any advice is welcme.

Regards Picasso





-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-20 10:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-19 13:18 [ECOS] Flash-Programming Privat
2016-01-20  9:47 ` Privat
2016-01-20 10:27   ` lesc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).