Analog Devices EE-132 Placing C Code Data Modules in SHARC Memory Using VisualDSP++

This EE Note presents two techniques to place C code and data modules in SHARC memory using VisualDSP++. The first technique involves editing the LDF files to explicitly locate entire object files in memory segments. The second technique shows how to use the SECTION keyword in your C source code to explicitly place individual variables and functions in specific memory segments.


Analog Devices EE-132 Placing C Code Data Modules in SHARC Memory Using VisualDSP++ - cover page
Brand
Analog Devices
Category
microcontrollers
Document type
Application Note
Language
English
Pages
4
File format
PDF
File size
179 KB
Published
03 August, 2012
Updated
30 September, 2023
MD5 checksum
D4C35C0FE5A8D63E7B71585C94247E13

About this manual

This document presents two methods to place C code and data at specific addresses in SHARC processor memory. The first technique involves editing Linker Description Files (LDF) to explicitly locate entire object files in custom memory segments. The second technique demonstrates how to use the SECTION keyword within C source code to force individual variables and functions into designated memory segments.

What's inside

  • Introduction
  • Default Memory Segments
  • Modifying LDF Files
  • Using the SECTION Keyword
  • Code Example: main.c
  • Conclusion

Frequently asked questions

What processor model is the code example based on?

The attached code example is based on the ADSP-21060 SHARC processor.

Which compiler switch was valid in pre-VisualDSP releases?

The -mpmcode compiler switch was valid in pre-VisualDSP releases of the SHARC Tools.

What is the default segment name for code storage?

The default segment name for code storage is seg_pmco.

Download PDF (179 KB)

More Analog Devices Manuals


View all Analog Devices manuals →