Questions tagged [xc32]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
501 views

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), ...
2
votes
2answers
147 views

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 ...
1
vote
0answers
224 views

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 ...
2
votes
1answer
253 views

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 ...
2
votes
1answer
1k views

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 ...
1
vote
2answers
2k views

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 ...
4
votes
2answers
1k views

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 ...