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.
Part Number: TMS320F2808
I am working with f2808 processor in Simulink. As far as I know, it is not possible to program the flash dynamically (storing data) for any purpose via Simulink. Is there any workaround for this issue by using Simulink?
PS: I know about the flash API functions and their related examples, so please do not mention them. Also, it is not possible for me to use an external EEPROM at this case.
We've notified the MathWorks about this post; I'll keep tabs on it from the TI side. Their response time is usually within a day typically.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to MatthewPate:
This feature is currently not supported. Usually it is some calibration data that is stored in the flash that needs to be updated. To update one location in the flash we need to erase the entire flash page and re-program the content. But currently this feature is not available. I am not sure if this helps, but we have introduced SD card logging feature from R2019b. Here is the link to the same.
Venkatesh Chilapur | MathWorks
In reply to venkatesh chilapur:
Thanks for the reply. Unfortunately I am working with R2017b version, so I won't be able to use the example. I have one question though:
-Can there be any way to implement the flash API functions in Simulink, somehow using them to manipulate the flash according to our needs?
In reply to Çevikalp Sütunç:
You can create a driver block which would do this update on the inputs passed to it.
Here is an example on how to create driver block in MATLAB.
I am trying to build a driver block, however I encounter the problem where the Flash_Program and Flash_Erase functions (functions of flash_API) are not recognized by the generated code, it is throwing an error such as Flash_Program and Flash_Erase functions are undefined and they were first referenced in a different obj file. Can you help me about it?
You need to add the dependent files to the build.
Here is a post which talks about it.
Please get in touch with our support channel for further help!
I tried to do some manipulations but I ended up damaging the processor( I can neither erase nor program the flash) so I had to replace it with a new value. As far as I understood, flash programming and erasing from Simulink requires more knowledge than which I already have(requires handling .cmd file accordingly). I do not want to spend more time for it because it is meaningless. If you can send me an example of building a device driver block for this purpose, I would be greatful. Otherwise, I will have to wait for you to add this functionality to Simulink in upcoming versions.
Unfortunately, we cannot comment on when a given feature will be supported.So right now if you need this feature, as noted earlier, you need to proceed on your own.Please contact us for any specific issue at:
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.