This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM48L952: When using Fapi_issueAsyncCommandWithAddress to erase sector 8 in BANK0, a prefetch abort occur.

Part Number: RM48L952

1、Our application code is in BANK0;

2、In IAR ICF file, we define the FAPI lib in SRAM;

3、the code to erase the setor8 in Bank0  ;

4、prefecth abort

why? I need help please, Thanks a lot.

  • Hi,

    The Flash APIs and the function that calls Flash API directly should be copied to SRAM and executed from SRAM. 

  • Hi, Mr Wang, Thanks great for your reply.

    I've  just confirmed my source code that the Flash APIs and the functions that calls Flash API directly has been copied to SRAM and executed from SRAM.

    I've found another question in this link:

    https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/408870/prefetch-entry-when-using-flash-api?tisearch=e2e-sitesearch&keymatch=TMS570LS1224

    in this question, you said as follows:

    Can you help me to get Flash API 2.1.0? or tell me where to download the Flash API 2.1.0. 

    I want to have  a try to use the Flash API 2.1.0.

    Thanks a lot aggain!

  • Can you help me to get Flash API 2.1.0? or tell me where to download the Flash API 2.1.0. 

    Please reference the release note of V2.01.01:

    3051.Release_Notes.pdf

  • This is my example to program data to sector 1 of Bank 0

    8171.sys_link.cmd

    5710.sys_main.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /** @file sys_main.c
    * @brief Application main file
    * @date 11-Dec-2018
    * @version 04.07.01
    *
    * This file contains an empty main function,
    * which can be used for the application.
    */
    /*
    * Copyright (C) 2009-2018 Texas Instruments Incorporated - www.ti.com
    *
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    *
    * Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX