This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Redboot_ROM config_data corrupted by flash_erase
- From: "Tales Toledo" <toledo dot tales at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Mon, 16 Jul 2007 12:50:52 -0300
- Subject: [ECOS] Redboot_ROM config_data corrupted by flash_erase
Hi,
can flash_erase corrupt my config_data (I'm running Redboot from ROM)?
I'm asking this because just before
if ((stat = flash_erase(cfg_base, cfg_size, (void **)&err_addr)) != 0) {
diag_printf(" initialization failed at %p: %s\n",
err_addr, flash_errmsg(stat));
at fconfig.c I can get all config-key1, config->key2, config->cksum
with the right values.
After run flash_erase and before run conf_endian_fixup + flash_program
the config_data is corruted and lost config->key2 and config->cksum.
Atte,
TT
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss