Questions tagged [xc32]

8 questions
4
votes
2 answers

Force xc32-ld to place all application code in kseg0_boot_mem

I have written a PIC32MX bootloader application. I would like to tell the linker to put it completely in the boot memory, so that all program space is kept for the final application. Currently, the what I think are the relevant parts of my .ld file…
user17592
2
votes
1 answer

Low power sleep with WDT wakeup on PIC32MM

I'm trying to put a PIC32MM0256GPM028 into sleep mode and have it woken up by the Sleep Mode Watchdog Timer (say 1/4 second later- adjustable by SWDTPS anyway). Once it goes to sleep (current drops), it just stays there. This post seems the closest…
user85471
  • 251
  • 1
  • 7
2
votes
2 answers

MPLAB X XC32 - Peculiar build issue involving volatile variables

I am struggling with an issue that is already costing me 2 days of productive work. The code of main.c at the end of the question is a stripped-down version of the entire project, and contains the relevant code related to the issue discussed. A…
wave.jaco
  • 655
  • 6
  • 19
2
votes
0 answers

Can i output a certain memory area of a processor with objcopy?

For a bootloader (PIC32) i do need only a certain memory area from a binary file (application for a bootloader, config and bootloader are located elsewhere, no hex possible). If i call the xc32-objcpy on a hex or elf file it will create a 44MB…
pfried
  • 163
  • 4
2
votes
1 answer

XC32 optimizes vaiable used for register reading

I am facing a problem with XC32 compiler's optimization. Whenever I write a function to read something from register, XC32 optimizes (read: Removes) the variable which holds the return value. I have a wrapper function which reads a perticular pin of…
Swanand
  • 3,245
  • 5
  • 28
  • 45
2
votes
1 answer

Cannot debug project using "MPLAB X IDE" on "PIC32 Bluetooth Audio Development Kit" with "PICkit 3 In-Circuit Debugger"

I have "PIC32 Bluetooth Audio Development Kit" (DV320032) board (with on-board PIC32MX470F512L) connected to a PC via "PICkit 3 In-Circuit Debugger" (PG164130). After some experimentation I found out how to blink 3 out of the 5 user LEDs on the…
Petr Vepřek
  • 163
  • 1
  • 4
  • 12
1
vote
2 answers

How to distinguish between a read and a write in a Harmony USART BufferEventHandler?

I would like to use the Harmony USART driver on a PIC32MX695F512H using interrupts and with buffer support. After setting the appropriate settings in the MPLAB Harmony Configurator, the system has generated the ISR for me (system_interrupt.c): void…
user17592
0
votes
1 answer

PIC32MX270F256 Project Build Error: pic32m-gcc.exe: error: build/default/production/main.o: No such file or directory

I am trying to build a simple project for PIC32MX270F256. The code is just this: #include #include "PIC32MX270_STD.h" #include "Delay.h" #define LED…
Ahmed
  • 171
  • 1
  • 6