Please insert delay between WriteData call in the function call CyBtldr_TransferData and share your observations. Flash write can take as much as 20mS. If the flash write is in progress the slave will stretch the clock.
I performed similiar steps as above. This time I decided to investigate what happens inside the "WriteData" function (shown in line 23 above).
From the speed timeOut counts, it'll take about 2 weeks to overflow and equal 0. Is this the way the application note example is supposed to behave?
I imagine this is an operation that should succeed in seconds. How can I narrow down the source of the problem? (I'm not certain the bootloader host is wrong. For all I know the bootloader is where the problem lies.)
1 of 1 people found this helpful
I figured this out. It turns out that the bootloader-host I2C device was configured to use the wrong pins.
It would be nice if the Bootloader AN was updated to give better progress/diagnostic information while the attempted boot-load is in progress.