6.3.5.7 Generated Secondary Files

When the Primary and Secondary projects are built for debug, two additional files are generated by the MPLAB XC32 bin2hex utility: a header file (discussed in 6.3.5.5.2 Select Secondary Project Header) and a C file (in this example Secondary.c).

This secondary image is converted to a set of arrays that can be coped to shared SRAM.

Additionally, the file provides structs and functions to copy the image to shared SRAM. For example, call __xc32_LoadAllSecondarySections() from your primary application to copy the image.

By default, the generated code uses memcpy to copy the image. You can override this preprocessor macro to use a different copying function. However your function must use the memcpy function signature:

#define __XC32_SECTION_MEM_CPY memcpy