Hello Support,
I am attaching a ZIP file. Please unzip all files to a folder.
Once you modify the Linker_Offset_Bug.bat file to your Linker Location Path and run it, you will get Flash_Hex_Array.map file.
In the MAP file you will find following symbols and address respectively:
08000000 _Flash_Driver_Download_P
0000048f FLASH_ERASE_SECTOR_OFFSET
00000594 FLASH_SET_BANK_OFFSET
08000595 Fapi_setActiveFlashBank
0800048f Erase_Flash_Sector_From_Bank
The address value of FLASH_SET_BANK_OFFSET is wrong because in the linker_Flash_Drv_Bug.cmd file you will see the following statements:
FLASH_SET_BANK_OFFSET = (Fapi_setActiveFlashBank - _Flash_Driver_Download_P); /* ???? -- This is BUG */
FLASH_ERASE_SECTOR_OFFSET = (Erase_Flash_Sector_From_Bank - _Flash_Driver_Download_P);
Please let me know about this BUG.
Thank you.
Regards
Pashan