Hi,
I am a user of TI TMS320F2812 controller.
I am booting TI TMS320F2812 from flash which is working
fine. I am able to
compile a program to run from Flash.
The problem is that based on the user inputs I need to few
user inputs
into flash that can be used on system reset also.
So I downloaded the FLASH API from the following link
http://focus.ti.com/docs/toolsw/folders/print/sprc125.html
which has the
library and other small routines for writing into flash from
my program
which boots from flash.
I have incorporated this in my software that is attached
with this mail.
Using the flash library the system is hanging when doing
erase of a particular sector
Here I am erasing the sectorJ and programming the same
thing.
Here I am following this procedure.
1. Modify Flash281x_API.config.h for your targets
operating
conditions.
2. Include Flash281x_API_Library.h in the application.
3. Add the approparite Flash API library to the
project.
The user's code is responsible for the following:
4. Initalize the PLL to the proper CPU operating
frequency.
5. If required, copy the flash API functions into
on-chip zero waitstate
RAM.
6. Initalize the Flash_CPUScaleFactor variable to
SCALE_FACTOR
7. Initalize the flash callback function pointer.
8. Unlock the CSM.
10. Call the API functions: Flash_Erase(),
Flash_Program(), Flash_Verify()
Please let me know if any initialization problem is there. I
am struck up here. Please help me.
It will be helpful if we have a small talk regarding this
problem.
Thanks and regards,
Shashi Kumar.M.S.
Aspire communications Pvt Ltd.,
SJCE-STEP Building,
www.aspirecommunication.com
Mysore-570 006
Ph :+ 91-821-4288772/3
Fax :+ 91-821-4287774
Flash API not working with F2812
Started by ●March 28, 2007
Reply by ●September 10, 20072007-09-10
Hi,
I am also facing the same problem.When I am trying to load my .out file through on chip flash programmer I am getting the following error.
Flash API Error #22:
The Erase Operation failed the erase step
First Fail Address = 0x003F6000
I am trying to erase sector J and programming the same.Currently I am using the following Flash API interface file
FlashAPIInterface2812V1_0.
My silicon version is G.So I downloaded the v2.1 FlashAPI interface file but it doesn't contain any flash interface file(.out) but some files .config ,.lib etc.
I struck here.Please can any one help me how to handle the situation.Is it enough to add new version of flash API interface file to the on chip flash programmer or we have to change our code accordingly with these new Flash API interface file.Please send me any example codes if you have.
Please let me know for any other information.
Without your help I cann't go further.Please help me freinds.......
Hi,
>
>I am a user of TI TMS320F2812 controller.
>
>I am booting TI TMS320F2812 from flash which is working
>fine. I am able to
>compile a program to run from Flash.
>
>The problem is that based on the user inputs I need to few
>user inputs
>into flash that can be used on system reset also.
>
>So I downloaded the FLASH API from the following link
>http://focus.ti.com/docs/toolsw/folders/print/sprc125.html
>which has the
>library and other small routines for writing into flash from
>my program
>which boots from flash.
>
>I have incorporated this in my software that is attached
>with this mail.
>
>Using the flash library the system is hanging when doing
>erase of a particular sector
>Here I am erasing the sectorJ and programming the same
>thing.
>
>Here I am following this procedure.
> 1. Modify Flash281x_API.config.h for your targets
>operating
> conditions.
> 2. Include Flash281x_API_Library.h in the application.
> 3. Add the approparite Flash API library to the
>project.
>
> The user's code is responsible for the following:
>
> 4. Initalize the PLL to the proper CPU operating
>frequency.
> 5. If required, copy the flash API functions into
>on-chip zero waitstate
> RAM.
> 6. Initalize the Flash_CPUScaleFactor variable to
>SCALE_FACTOR
> 7. Initalize the flash callback function pointer.
> 8. Unlock the CSM.
> 10. Call the API functions: Flash_Erase(),
>Flash_Program(), Flash_Verify()
>Please let me know if any initialization problem is there. I
>am struck up here. Please help me.
>It will be helpful if we have a small talk regarding this
>problem.
>
>Thanks and regards,
>
>Shashi Kumar.M.S.
>Aspire communications Pvt Ltd.,
>SJCE-STEP Building,
>www.aspirecommunication.com
>Mysore-570 006
>Ph :+ 91-821-4288772/3
> Fax :+ 91-821-4287774
>
I am also facing the same problem.When I am trying to load my .out file through on chip flash programmer I am getting the following error.
Flash API Error #22:
The Erase Operation failed the erase step
First Fail Address = 0x003F6000
I am trying to erase sector J and programming the same.Currently I am using the following Flash API interface file
FlashAPIInterface2812V1_0.
My silicon version is G.So I downloaded the v2.1 FlashAPI interface file but it doesn't contain any flash interface file(.out) but some files .config ,.lib etc.
I struck here.Please can any one help me how to handle the situation.Is it enough to add new version of flash API interface file to the on chip flash programmer or we have to change our code accordingly with these new Flash API interface file.Please send me any example codes if you have.
Please let me know for any other information.
Without your help I cann't go further.Please help me freinds.......
Hi,
>
>I am a user of TI TMS320F2812 controller.
>
>I am booting TI TMS320F2812 from flash which is working
>fine. I am able to
>compile a program to run from Flash.
>
>The problem is that based on the user inputs I need to few
>user inputs
>into flash that can be used on system reset also.
>
>So I downloaded the FLASH API from the following link
>http://focus.ti.com/docs/toolsw/folders/print/sprc125.html
>which has the
>library and other small routines for writing into flash from
>my program
>which boots from flash.
>
>I have incorporated this in my software that is attached
>with this mail.
>
>Using the flash library the system is hanging when doing
>erase of a particular sector
>Here I am erasing the sectorJ and programming the same
>thing.
>
>Here I am following this procedure.
> 1. Modify Flash281x_API.config.h for your targets
>operating
> conditions.
> 2. Include Flash281x_API_Library.h in the application.
> 3. Add the approparite Flash API library to the
>project.
>
> The user's code is responsible for the following:
>
> 4. Initalize the PLL to the proper CPU operating
>frequency.
> 5. If required, copy the flash API functions into
>on-chip zero waitstate
> RAM.
> 6. Initalize the Flash_CPUScaleFactor variable to
>SCALE_FACTOR
> 7. Initalize the flash callback function pointer.
> 8. Unlock the CSM.
> 10. Call the API functions: Flash_Erase(),
>Flash_Program(), Flash_Verify()
>Please let me know if any initialization problem is there. I
>am struck up here. Please help me.
>It will be helpful if we have a small talk regarding this
>problem.
>
>Thanks and regards,
>
>Shashi Kumar.M.S.
>Aspire communications Pvt Ltd.,
>SJCE-STEP Building,
>www.aspirecommunication.com
>Mysore-570 006
>Ph :+ 91-821-4288772/3
> Fax :+ 91-821-4287774
>






