cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

MiSt_296941
New Contributor II

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.

0 Likes
Reply
1 Solution
MiSt_296941
New Contributor II

OK, so I found the problem.  I forgot I had the Watchdog timer running - so yeah - shot myself in the foot.

Mike.

View solution in original post

0 Likes
Reply
2 Replies
MiSt_296941
New Contributor II

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.

0 Likes
Reply
MiSt_296941
New Contributor II

OK, so I found the problem.  I forgot I had the Watchdog timer running - so yeah - shot myself in the foot.

Mike.

View solution in original post

0 Likes
Reply