3

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'
Mike
  • 4,041
  • 6
  • 20
  • 37
Lugerp
  • 31
  • 2

1 Answers1

2

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.

Mike
  • 4,041
  • 6
  • 20
  • 37
  • Thank you for your answer Mike, i create the .s file inside the project form MPLABX so it should already be included in it, i tried to include the file in the main script such a library, and it says that there is a problem in the assembly code – Lugerp Aug 20 '19 at 12:48
  • 1
    Your are welcome. If you need any further help let me know. – Mike Aug 20 '19 at 12:51
  • The idea of this repo is to provide a quickstart for programming a pic32mx Microcontroller without using MPLABX or the XC32 compiler. https://github.com/cpresser/opensource-pic32 I've not tried it yet but it certainly looks interesting. – Andy Preston Apr 27 '23 at 22:18