Skip to main content
Visitor II
June 2, 2008
Question

IAP Bootloader ST

  • June 2, 2008
  • 2 replies
  • 746 views
Posted on June 02, 2008 at 06:41

IAP Bootloader ST

    This topic has been closed for replies.

    2 replies

    truf9Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:53

    Hello,

    I found a mistake in IAP from ST in source:ymodem.c

    If the file is between 64K and 128K, the protection of sector1 is not diasbled -> you cannot write data in this sector.

    change the source in ymodem.c in Ymodem_Receive () as follws:

    else if (size <= 0x1FFFF)

    { /* Disable S0 and S1 write protection and erase them */

    FMI_WriteProtectionCmd(FMI_B0S0, DISABLE);

    FMI_WriteProtectionCmd(FMI_B0S1, DISABLE);//This missing

    FMI_EraseSector(FMI_B0S0);

    FMI_WaitForLastOperation(FMI_BANK_0);

    FMI_EraseSector(FMI_B0S1);

    }

    Best regards

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:53

    Hello TRuf,

    Yes, you are right. This is known and will be corrected in the next IAP release.

    Thank you.

    Best regards,

    Najoua.