Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to program the PIC32 in Assembly?

I'm trying to program a PIC32 MM0064GPL028 in Assembly, to do MIPS32 exercises on a real CPU, instead of the simulator that we use in my course (QtSpim), without any success.

The only guide I found on the internet is this, but I get an error when I try to build the file. If somebody could help me or link some useful stuff, that would be amazing

I have also tried to search some Microchip documentation but I can't find a guide for beginners or a book, many of the material is also old

I can't find the "cfg.hpp" library and I don't know why.

This code is from the guide that I have found

build/default/production/main.o: In function `main':
main.cpp:35: undefined reference to `asm_delay_1_sec'
like image 361
Lugerp Avatar asked Jan 21 '26 02:01

Lugerp


1 Answers

some things when you work with MPLABx and MIPS assembler:
- you had to install XC32
- your assembler file should end with .s
- you had to add your assembler file to the project

I thing this document will help.

like image 155
Mike Avatar answered Jan 22 '26 16:01

Mike



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!