public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Privat <PicassoCT@gmx.de>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Flash-Programming
Date: Tue, 19 Jan 2016 13:18:00 -0000	[thread overview]
Message-ID: <569E37A0.6030505@gmx.de> (raw)

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

             reply	other threads:[~2016-01-19 13:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-19 13:18 Privat [this message]
2016-01-20  9:47 ` Privat
2016-01-20 10:27   ` lesc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=569E37A0.6030505@gmx.de \
    --to=picassoct@gmx.de \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).