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.

Are source code files available for Application Report spra420a?

Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE

Hi,


Is the source code listed in the appendix of Application Report spra420a.pdf available as individual files? If so, please provide a URL. I could not find these after several searches and am hoping that I had missed them somehow. Thanks for any assistance.


Jim

  • Hi Jim,

    The above app note is for an obsolete product TMS320F240. Can you let us know the functionality and the device you're looking for? We can suggest you accordingly.

    Regards,
    Gautam
  • Hi,


    I would like to try the SRM sample code that was given using a TMS320F28335.


    Jim

  • For F28335 you can use an example project from controlSuite as base project and then add the above code from spra420a. As for the project files pertaining to the pdf doesn't seem to be available, you'll have to copy and paste.


    *Note: You'll have to do the peripheral configuration according to the device (you can find peripheral codes in controlSuite itself). As for the algorithms you can directly copy-paste.


    Regards,
    Gautam

  • Thanks for the reply. Fixing the PDF text seems to have worked, but it was a lot more work than it may appear to be. The header and footer between each page was a minor issue. There also were invalid characters in the source code: 52 94h characters that needed to be converted to double quotes (") and 10358 96h characters that were supposed to be dashes, minus signs, and parts of the -> operators (-). In one text viewer, these appear to look correct, while another displays them as black blocks. The code contains numerous embedded comments (/* /* */) that produce screens of warnings, although those may have been in the original source code. Aside from the warnings, there is also an invalid comment near the definition of function dsp_setup(). The final file is truncated, although it is a linker command file and probably will need to be changed anyhow. The code also contains duplicate definitions for some macros, although again these may have been in the original also. Finally, selecting the entire PDF file and pasting it into a text file removes all of the indentation at the beginning of the lines as well as some inside of comments, particularly where the bits are identified in various variables.

    Is there any migration guide from a 240 to a 28335?

    Jim

  • Jim,

    There isn't a full migration guide between these devices so it's going to take some work. The closest is Appendix C of the C28x CPU User's Guide: http://www.ti.com/lit/ug/spru430f/spru430f.pdf 

    You will also find some useful information in the migration guide from F281x to F2833x:  http://www.ti.com/lit/an/spraaq7b/spraaq7b.pdf 

    Regards,

    Richard

  • Thanks for the information.


    Jim

  • Hi, Jim.

    Thanks for sharing your problem. But I wonder did you have any exprience about extracting text from pdf files? I wonder whether there are any differences between pdf extraction and pdf to text conversion process? Whose way of processing is much simpler and faster? Any suggestion will be appreciated. Thanks in advance.   

    Best regards,

    Pan

  • Hi Pan,

    I would recommend creating a new thread as it will give your question a better chance of being answered versus posting on an older thread.

    -Ozino
  • I looked at the product in the links. I did not fully read the API, so I do not know if it has the ability to filter out headers and footers or to do character translation while converting. But there are also errors in the PDF text (in the sense that the code would not compile even with an ideal extraction of the text content), so the extracted text still would require changes. Also, the output from the extraction software still would need to be restored to their individual files. At $1k, it would be a very expensive solution, even if it did work.