> As I read the code, the "check" you are talking about is only to make > sure that the address [range] which gets printed makes sense. There is > similar code within the loop to handle the edge case where the FLASH > region being erased buts up against the top of possible address space.
Gotit. I don't see the corresponding code in flash_program_buf(). The explanation above would be helpful in the code I think. -- Øyvind Harboe http://www.zylin.com - eCos ARM & FPGA developer kit -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
