
\main.cĬopyright (C) 2021 Microchip Technology Inc.Ĭ:\Users\raymu_000\Documents\Programming\VisualStudioCode\PIC_C++_on_VSCode\Led-Pot_Circuit_Test>C:\Progra~1\Microchip\xc8\v2.32\bin\xc8.exe -chip=16f887 -outdir=".\output-files" ".\Project\InitApp.c"Ĭ:\Progra~1\Microchip\xc8\v2.32\pic\bin\picc -chip=16f887 -outdir=.\output-files. \Build.cmd 16f887 mkdir output-filesĪ subdirectory or file output-files already exists.Ĭ:\Users\raymu_000\Documents\Programming\VisualStudioCode\PIC_C++_on_VSCode\Led-Pot_Circuit_Test>C:\Progra~1\Microchip\xc8\v2.32\bin\xc8.exe -chip=16f887 -outdir=".\output-files" ".\main.c"Ĭ:\Progra~1\Microchip\xc8\v2.32\pic\bin\picc -chip=16f887 -outdir=.\output-files. This is what is shown in the terminal: > Executing task in folder Led-Pot_Circuit_Test. Instead, I would like to keep them separate and make it easy to transfer the code into any future project.įrom looking up similar issues I am assuming this is somewhat simple and that I am probably struggling so much with it because I'm missing the basics of coding in C. I'm working on a project which will likely become a very long program so I am trying to avoid cluttering my main class with a bunch of functions. Thank you for your reply, it is very helpfull to even have ANY ideas on how to solve it.I am new to coding in C and I cannot figure out the proper way to link my files together so that I can use code from one class in another.

No matter what i do, the program always halts at the same PC for this case, seen in the picture above. I would like to add that I tried various combinations of breakpoints for the NOPs. I put 3 "NOPs" in one function, but it didn't work as you suggested. Sadly, the solution suggested by K_Trenholm did not work for me. If I change the breakpoint location, the position where the program actually breaks is different, but stays the same again when i restart the program.

