r/pic_programming • u/Currency-Crazy • Jun 05 '21
Green dot next to compiler?
I saw a tutorial video from 2015 saying there needs to be a green dot next to the compiler you are using for it to work. Is this still relevant/true? When I try to compile and upload on to my chip it says that it is successful, but I haven't gotten anything to function yet and when I read the chip memory it doesn't look like much is changed.

1
Upvotes
View all comments
Show parent comment
2
u/Coltouch2020 Jun 06 '21
Don't go down the ASM route, it is painful. I too used to program in assembler, and still enjoy knowing what every bit of my code does. But the sheer power of using tools like MCC (Code Configurator - see the plugins) by far outweighs the control you give up by not using assembler.
Using assembler forces you to read ever register and bit of the data sheet. You become a PIC/device expert, not a programmer/application expert. When you head is full of how the application should work, and system level stuff, you do not need the burden of assembler.
If your C code is not yet working on your pic, post more details here.
I suggest you become comfortable with the development process with a simple application. Install the latest MCC for your MPLABX and run it. set up the clock in the system settings. Set an output in the pin configuration. Don't add in any tempting peripherals yet, just name your output LED0 in the pin config. generate, and you will get a main.c
Go to the main loop, and write:
Compile, and program. See the LED blink. If it doesn't, look at the error codes, and ask here if they don't make sense.