README.TI-DSP 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. These are all of the changes and additions necessary to build a loopback application for the
  2. TI C6415, C5509A, or C5416 simulators using the TI Code Composer Studio (CCS) development system.
  3. A trial version of the tools can be downloaded from the TI website.
  4. This build runs 8kbps narrowband, with minimum complexity.
  5. Several changes are introduced in Speex 1.1.11 which are used in these applications:
  6. arch.h: Added switch for compilers not supporting "long long" (C55x does, C54x, CCS 2.x C64x does not)
  7. bits.c: Allow external definition for max buffer size, changed MAX_BYTES_PER_FRAME
  8. to MAX_CHARS_PER_FRAME for consistency
  9. misc.c: Added override switches to alloc routines, conditional include of user file "user_misc.h".
  10. These changes allow manual memory allocation rather than using heap
  11. The arch.h change allows operation with 2.x versions of Code Composer Studio.
  12. The bits.c change reduces the data memory usage.
  13. The misc.c change allows private memory allocation, for cases where it is not
  14. desirable to use the normal heap.
  15. Added files:
  16. testenc-TI-C5x.c (For C54x and C55x builds, derived from testenc.c,
  17. manual alloc, byte packing/unpacking added)
  18. testenc-TI-C64x.c (For C64x builds, derived from testenc.c, manual alloc, byte packing/unpacking added)
  19. config.h (not automatically generated, sets memory sizes, enables/disables manual alloc)
  20. user_misc.h (contains the manual memory alloc routines, with debug code to display mem usage)
  21. speex\speex_config_types.h (match Speex types to compiler types, not generated from types.in)
  22. speex_c54_test\speex_c54_test.cmd (C5416 linker command file)
  23. speex_c54_test\speex_c54_test.pjt (Code Composer Studio Project File )
  24. speex_c55_test\speex_c55_test.cmd (C5509A linker command file)
  25. speex_c55_test\speex_c55_test.pjt (Code Composer Studio Project File )
  26. speex_c64_test\speex_c64_test.cmd (C6415 linker command file)
  27. speex_c64_test\speex_c64_test.pjt (Code Composer Studio Project File )
  28. samples\male.snd
  29. Usage:
  30. 1. Create a Speex 1.1.11 (or later) source tree.
  31. 2. Edit the files testenc-TI-C5x.c and/or testenc-TI-C64x.c to change the hard-coded path
  32. for the test audio and data files.
  33. This build uses the file e:\speextrunktest\samples\male.snd.
  34. Note: This is a headerless 16-bit stereo audio file derived from the male.wav test file
  35. http://www.speex.org/samples/male.wav
  36. 3. Edit the .pjt file with a text editor and change projdir or projectdir to the correct path
  37. (one place near the top of the file).
  38. 4. Edit config.h if desired, to change the memory allocation method (calloc or manual),
  39. and to enable/disable debug prints for the memory allocation
  40. (this makes it easier to determine the required size).
  41. 5. Run Code Composer Studio, and open the project for the desired target (e.g. speex_c55_test).
  42. Note that the correct simulator must be selected (in CCS Setup) before starting CCS.
  43. 6. Build and run the simulation.
  44. Note that assembly optimizations will be required to run C54x in real time.
  45. There are no assembly optimizations in any of these builds.