- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have run into a weird situation. I am downloading Firmware for another PSoC via USB and storing it in FLASH - later I will bootload the other PSoC with this saved firmware. To be more efficient, I am buffering the download from the USB and writing using Em_EEPROM in 256 byte chunks. At then end, I have 10 bytes left to write and when I call Em_EEPROM with that last 10 bytes, it never returns from the call and reboots! If I change the last write to 256 bytes, it writes to Flash and doesn't reboot!
Mike.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, so I found the problem. I forgot I had the Watchdog timer running - so yeah - shot myself in the foot.
Mike.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A little more info I forgot... I am writing 45578 bytes in total - the last 10 being the problem. So that is 178 writes using Em_EEPROM that work, the last one fails if I don't write 256 bytes...
Mike.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, so I found the problem. I forgot I had the Watchdog timer running - so yeah - shot myself in the foot.
Mike.