cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F401RE IAP

tm3341
Associate II
Posted on October 18, 2014 at 00:32

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 #stm32f4
6 REPLIES 6
Posted on October 18, 2014 at 00:48

What are main differences between this two chips?

Slower internal clocking, and PLL settings.

Smaller FLASH, Smaller RAM, No CCMRAM, No Ethernet, One ADC
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
tm3341
Associate II
Posted on October 18, 2014 at 20:30

I know about this difference.

I'm asking about difference to setup IAP example for F401 device.

stm32forum
Associate II
Posted on October 18, 2014 at 22:33

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.

Posted on October 18, 2014 at 23:20

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?
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
tm3341
Associate II
Posted on October 19, 2014 at 00:12

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.

Posted on October 19, 2014 at 00:36

What board is this on? The Nucleo? It's not 100% pin compatible with the 405/407

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..