EmbeddedRelated.com
Forums

Problems using flash api

Started by Dsp Archimedius June 22, 2007
Hidaho!
My program boots and runs fine on a F2812 (Rev G) in flash, but now I have to store variables in flash, which are kept despite power off. Therefore I downloaded the new flash api from TI (sprc125) and tried to make it run. I am going to store the library within the program, which means in flash, but as it must be run from SARAM rather than flash, the library file must be copied to SARAM during runtime.
There is a little non-BIOS example shipped with the API which compiles fine. But when I try to insert the cmd instructions

Flash28_API:
{
-lFlash2812_API_V210.lib(.econst)
-lFlash2812_API_V210.lib(.text)
} LOAD = FLASH_BCDEFGHIJ, PAGE = 0
RUN = H0SARAM, PAGE = 0
LOAD_START(_Flash28_API_LoadStart),
LOAD_END(_Flash28_API_LoadEnd),
RUN_START(_Flash28_API_RunStart)

in my project, which should give me the opportunity to copy it using a memcopy and the created addresses, the compiler always quits with


>> C:\Work\Projects\McLIA\3rdParty\f2812_BIOS_flash.cmd, line 34: warning:
../3rdParty/Flash2812_API_V210/lib/Flash2812_API_V210.lib(.econst) not found

>> C:\Work\Projects\McLIA\3rdParty\f2812_BIOS_flash.cmd, line 35: warning:
../3rdParty/Flash2812_API_V210/lib/Flash2812_API_V210.lib(.text)
not found
>> warning: load address of uninitialized section Flash28_API ignored

Is anybody out there who has some advice for me? That would be very great!
Thanks a lot, A
Has anyone solved this problem? I am having the same issue.
-Mark

Hidaho!
>My program boots and runs fine on a F2812 (Rev G) in flash, but now I have to store variables in flash, which are kept despite power off. Therefore I downloaded the new flash api from TI (sprc125) and tried to make it run. I am going to store the library within the program, which means in flash, but as it must be run from SARAM rather than flash, the library file must be copied to SARAM during runtime.
>There is a little non-BIOS example shipped with the API which compiles fine. But when I try to insert the cmd instructions
>
> Flash28_API:
> {
> -lFlash2812_API_V210.lib(.econst)
> -lFlash2812_API_V210.lib(.text)
> } LOAD = FLASH_BCDEFGHIJ, PAGE = 0
> RUN = H0SARAM, PAGE = 0
> LOAD_START(_Flash28_API_LoadStart),
> LOAD_END(_Flash28_API_LoadEnd),
> RUN_START(_Flash28_API_RunStart)
>
>in my project, which should give me the opportunity to copy it using a memcopy and the created addresses, the compiler always quits with
>
>
>> > C:\Work\Projects\McLIA\3rdParty\f2812_BIOS_flash.cmd, line 34: warning:
> ../3rdParty/Flash2812_API_V210/lib/Flash2812_API_V210.lib(.econst) not found
>
>> > C:\Work\Projects\McLIA\3rdParty\f2812_BIOS_flash.cmd, line 35: warning:
> ../3rdParty/Flash2812_API_V210/lib/Flash2812_API_V210.lib(.text)
> not found
>> > warning: load address of uninitialized section Flash28_API ignored
>
>Is anybody out there who has some advice for me? That would be very great!
>Thanks a lot, A
>
1/ have you add this file to your project, and not just in cmd file ?
2/ Are you sure about the file name and path.

According the error you provide, it can't find the allocated section for
this module, so I think you miss to add it to the project (Project > Add
files to project).

Veuillez rondre m...@arl.army.mil
Envoypar : c...
Pour : c...
cc :

Objet : [c28x] Re: Problems using flash api

Has anyone solved this problem? I am having the same issue.
-Mark

Hidaho!
>My program boots and runs fine on a F2812 (Rev G) in flash, but now I
have to store variables in flash, which are kept despite power off.
Therefore I downloaded the new flash api from TI (sprc125) and tried to
make it run. I am going to store the library within the program, which
means in flash, but as it must be run from SARAM rather than flash, the
library file must be copied to SARAM during runtime.
>There is a little non-BIOS example shipped with the API which compiles
fine. But when I try to insert the cmd instructions
>
> Flash28_API:
> {
> -lFlash2812_API_V210.lib(.econst)
> -lFlash2812_API_V210.lib(.text)
> } LOAD = FLASH_BCDEFGHIJ, PAGE = 0
> RUN = H0SARAM, PAGE = 0
> LOAD_START(_Flash28_API_LoadStart),
> LOAD_END(_Flash28_API_LoadEnd),
> RUN_START(_Flash28_API_RunStart)
>
>in my project, which should give me the opportunity to copy it using a
memcopy and the created addresses, the compiler always quits with
>
>
>> > C:\Work\Projects\McLIA\3rdParty\f2812_BIOS_flash.cmd, line 34:
warning:
> ../3rdParty/Flash2812_API_V210/lib/Flash2812_API_V210.lib(.econst) not
found
>
>> > C:\Work\Projects\McLIA\3rdParty\f2812_BIOS_flash.cmd, line 35:
warning:
> ../3rdParty/Flash2812_API_V210/lib/Flash2812_API_V210.lib(.text)
> not found
>> > warning: load address of uninitialized section Flash28_API ignored
>
>Is anybody out there who has some advice for me? That would be very
great!
>Thanks a lot, A
>