2014-10-17 03:32 PM
Hi.
I'm developing an application where I have to use IAP.I downloaded IAP example from this site and for F407VG it worked just great.But then problems occured.I need this on STM32F401RE. IAP file is uploaded to stm, everything configured.But when I try to download file from computer (.bin) to STM via USART it says that ''Verification failed''. I'm trying this in hyperterminal v7 and Ymodem protocol.USART is working on IAP, because I got answer from chip and I can successfully press ''1'', which mean ''Download .bin to STM''.What are main differences between this two cips? What I need to modify in program?Thanks for answers #iap #usart #stm32f42014-10-17 03:48 PM
What are main differences between this two chips?
Slower internal clocking, and PLL settings. Smaller FLASH, Smaller RAM, No CCMRAM, No Ethernet, One ADC2014-10-18 11:30 AM
2014-10-18 01:33 PM
Did you disabled the write protection?
A Verification failed (-2) will be thrown when ''An error occurred while writing to Flash memory'' So get your jtag out of the drawer and see whats going wrong when writing to flash.2014-10-18 02:20 PM
Then you'll need to look more closely at implementation details, and the some what sub-optimal Y-Modem example, as the F401 has functional USARTs and FLASH.
Does FLASH_If_Erase() try to erase sectors that don't exist?2014-10-18 03:12 PM
clive1, flash is not trying to delete sectors that don't exists. I have already changed that, set to max sector number 7 (F401RE with 512kB memory).
I have no idea what's going on.I have changed USART pins, speed, everything. But no, does not work.Any help will be appreciated.2014-10-18 03:36 PM
What board is this on? The Nucleo? It's not 100% pin compatible with the 405/407