Reputation: 53
I have to find some solution to flash my Program Memory into my PIC32 without MPLab.
I think the first step is to generate the .hex file from the source code. And the second one, flashing the memory into the PIC.
How can I do it using a standard IDE or command line please ? (Currently using MPLab, I use the MPLab Snap to flash the program memory)
Upvotes: 0
Views: 693
Reputation: 55
Was able to do command line compilation in a docker image this for a PIC24 micro. My guess is it may be similar on a PIC-32, but I have not tested it.
My docker image contains an ubuntu image the xc16 compiler, and mplabx install. The binary folders of mplabx and xc16 are added to PATH. Then I can compile with this inside the project folder:
prjMakefilesGenerator.sh . &&
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
prjMakefilesGenerator.sh has a Windows counterpart so it should be possible to do something like this in Powershell or cmd, I guess. I think prjMakefilesGenerator is what mplabx runs to generate the make files it uses when running make. In This case, make is the binary that comes bundled with Mplabx but my guess is regular Linux make would also do the job. During build more binaries from mplabx install are called and I have not taken the time to separate out what is strictly needed and what is not.
Upvotes: 0