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