I have a PIC32 Visual C++ project that when compiled and the hex is loaded onto my PIC32mz (on a custom PCB). I can use another Windows shell application to send single characters to the PIC, via USB, to execute some functions. The code is in the DevABK C [login to view URL] file. This code basically uses the PIC to reconfigure another chip via SPI.
The main.c program calls various methods including an ApiCode.h and a CAMCode.h. These (not exclusively) execute actions that affect another chip called Anadigm. Our goal is to modify the main.c so that it reflect new versions of the ApiCode.h, CAMCode.h and what ever else is needed to compile a new .hex file that can be loaded onto the PIC and run similar to what it does now. The source code for the new Anadigm functions are created by a separate program (Anadigm Designer 2), which creates all of the C code necessary. That new Anadigm C code is in the file New Anadigm code.zip.
(I think additional key files might include abk.h and anadigm_functions.h but not sure).
1) Evaluate how the original code works; read and understand the main.c
2) Modify the main.c and all other files necessary to execute the new Anadigm code, C code sourced from the New Anadigm [login to view URL] files; (I know that new ApiCode.h and CAMCode.h are key, not sure what else is needed, therefore the evaluation stage.
3) Document clearly the steps necessary to repeat this process with yet another new set of Anadigm generated C code. Must identify key steps and order by which they are taken, with comments related to various cautions/checks as appropriate.
I have included an additional .pdf documents related to the Anadigm that might help.
All code is standard ANSI C
New Visual C++ project with source files representing new firmware version, a “How to” document to explain how to repeat the process; ideally a basic explanation as to how the basic architecture works and how to incorporate new changes.
Note: If this project is successful, we hope to continue with several new projects similar to the above.