Hi Sabina !
Yes I can see new DS has updated timing values for flash memory and now can I say like this:
For erase 256KB space I need to wait 2*512 = 1024 ms ( ~1s) and write data after that - 512 bytes/ 1.09ms.
So it is not possible to erase and write faster ? And similar timing we might have inside bootloader when perform ISP update ?
It is not clear if booloader is able to receive data when flashing/erasing ongoing e.g. SPI interrupts located in SRAM.
Is this so ? Or what is theoretical speed for SPI data transfer and ISP flashing ?
Could you explain tricks what need to update system clock on fly. If we see powermanager example in case of Power-Down:
DEMO_PreLowPower();
POWER_EnterPowerDown(APP_EXCLUDE_FROM_POWERDOWN, 0x7FFF, WAKEUP_GPIO_GLOBALINT0 | WAKEUP_GPIO_GLOBALINT1,1);
DEMO_PowerDownWakeup();
APP_InitWakeupPin();
Looks like after wakeup you switch to FRO12Mhz oscillator and do not return back to 150Mhz.
And it is not so clear if Power-Down mode need if you would like to switch from 150 to 100 and back.
Or it should be done via FRO12Mhz.
What kind of effect have those pre/wakeup functions for GINT0/1 pin detection ?
What should be really disabled while transistition of system clock from 100 ->150 -> 100 Mhz ?
I assume peripherals has independent clocks and only MCU need some sequences while systemclock changes.
Regards,
Eugene