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.
I’m developing in Texas Instruments C2000 LaunchPadXL TMS320F28379D in version 2.0.
For a project, I need a bootloader without JTAG interface in a certified software.
I would like to download an applicative program in a flash sector.
Flash API (F021_API_F2837xD_C28x_FPU32.lib ) is a library to erase, program and verify flash.
Are code source of this library available and where can I find them ?
A second option is to use Flash Kernel B with serial_flash-programmer.exe and F021_api_F2837xD_C28x.lib.
Where I can find the code source of F2837xD_sci_flash_kernels_cpu01.out ?
I only found F2837xD_sci_flash_kernels_cpu01.txt
The last option I see is that writes a custom bootloader.
PWRITE function seems to be a good way to do this.
Where can I find an example with PWRITE, that writes a program in a flash sector, without Flash API ?
Thanks for your help.
Reference documents:
TMS320F2837xD Flash API, version 1.54 Reference Guide, spnu629a.pdf
TMS320C28x CPU and Instruction Set, spru43f.pdf (for PWRITE function)
Flash Programming Solution for the TMS320F28xxx DSCs, application report, SPRAAL3, August 2008
Serial Flash Programming of C2000 Microcontrollers, application Report, SPRABV4C, March 2014, Revised March 2019
Forum of Texas Instruments, TMS320F28335: Custom bootloader
F2837xD_fw_upgrade_example.txt in C2000Ware_2_01_00_00/utilities/flash_programmers/serial_flash_programmer
EEPROM Emulation With the TMS320F28xxx DSCs, Application Report, SPRAB69, September 2009
Phil,
A) TI does not normally distribute the source code for Flash API library (F021_API_F2837xD_C28x_FPU32.lib). The reason for this is modifying the code can potentially impact the flash in the devices. A modified API must not be used in an application. For creating a flash programming solution, the flash API library must be used as provided by TI. As per the requirement that you mentioned, you don't not need Flash API source code. You can embed F021_API_F2837xD_C28x_FPU32.lib (available in C2000Ware at C2000Ware_x_xx_xx_xx\libraries\flash_api\f2837xd\lib) in your application.
Flash API usage example is available at \C2000Ware_x_xx_xx_xx\device_support\f2837xd\examples\dual\flash_programming.
Flash API wiki is available at https://processors.wiki.ti.com/index.php/C2000_Flash_FAQ.
B) Source code for code source of F2837xD_sci_flash_kernels_cpu01 is available at C2000Ware_x_xx_xx_xx\device_support\f2837xd\examples\dual\F2837xD_sci_flash_kernels\cpu01
C) PWRITE instruction is not meant for Flash memory program operation. You need to use Flash API (F021_API_F2837xD_C28x_FPU32.lib) for programming Flash on F2837xD devices. Serial Flash programming kernels also use Flash API.
Thanks and regards,
Vamsi
Hello Vamsi,
Can you tell us more about PWRITE ?
Indeed, this instruction seems to be magic as it is able to access full program space range from 0x000000 to 0x3FFFFF.
When can we use this instruction ?
If we absolutly want to build our boot without Flash API library for aeronautic certification concerns, would it be possible to use this instruction ?
Is it totally forbidden or just risky ?
Is there a specific procedure or some checks to do before using this instruction ?
Thank you.
Patrice.
Patrice,
PWRITE instruction is explained in http://www.ti.com/lit/ug/spru430f/spru430f.pdf. It is not meant for Flash memory program operations.
If you need Flash API source code for certification reasons and if you have a justifiable and legitimate need for the source code for certification purposes, it can be provided under a signed license agreement with TI.
I will ask our team to reach out to you offline and send further details on this process. Please give couple of days for them to reach out to you (they will send you a friend request on E2E and guide you further on this. Please accept the friend request).
Please note: I am closing this thread. I will not be available for next 3 weeks. You can open a new thread if you have further questions and our team will help you.
Thanks and regards,
Vamsi
Hello Vamsi,
Ok for your answer, when exactly i will be contact by Texas in order to proceed with licence and obtain API source code ?
Best regards.
Patrice.
Hello Patrice,
I sent you a friend request on E2E to discuss the request last week. Please click on your user avatar and check friends under your profile.
Regards
Lori