Add a TODO to check for Supply Voltage before setting F4 paralleisme to 32 bits
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Sun, 18 Dec 2011 18:24:32 +0000 (19:24 +0100)
committerUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Sun, 18 Dec 2011 18:24:32 +0000 (19:24 +0100)
src/stlink-common.c

index 77ab98d0275e0584c3bb1f9c499ef6cde0d2649d..5a51314240eceab6d68bf2d4144f4fd1c6b7aecf 100644 (file)
@@ -1245,6 +1245,7 @@ int stlink_write_flash(stlink_t *sl, stm32_addr_t addr, uint8_t* base, unsigned
        /* First unlock the cr */
        unlock_flash_if(sl);
 
+       /* TODO: Check that Voltage range is 2.7 - 3.6 V */
        /* set parallelisim to 32 bit*/
        write_flash_cr_psiz(sl, 2);