Reset //Reset to 0x0000: SoftReset(); Did Watchdog reset occur if (ReadEventWDT()) //WDT reset has occurred Generating Reset in Code If you want to use your own code as an alternative to the C32 SoftReset function the following can be used instead: void software_reset(void) { int t; //Unlock system SYSKEY=0; SYSKEY=0xaa996655; SYSKEY=0x556699aa; //Do the reset RSWRSTSET=1; //enable […]

PIC32 stores 32bit words with address incrementing by 4 for each instruction PIC32's implement two address schemes: virtual and physical. All hardware resources (program memory, data memory and peripherals) are located at their respective physical addresses. Virtual addresses are exclusively used by the CPU to fetch and execute instructions as well as access peripherals. […]

procdefs.ld is the file you typically modify. Method 1 – Copy In Both Linker Scripts & Modify Copy the file “elf32pic32mx.x” from to your project directory from “C:\Program Files\Microchip\MPLAB C32\pic32mx\lib\ldscripts\” Rename it “elf32pic32mx.ld” Add it to your project (must be added prior to the next linker script so it is treated as the main script) […]

Bootloader “Bootstrap” Mode IRQ’s are disabled 0xbfc00380 is automatically set as the exception irq vector address. Single Vector IRQ Mode IRQ vector address is set by the EBase register Single Vector IRQ Mode Each IRQ vector address is set by the EBase register and the VS bits in the IntCtl register.

Documentation MPLAB help menu has old pdf's in the C32 compiler section – don't use! In the general section there is the proper help file links which is the current documentation File locations You may have two MPLAB C32 directories: C:\Program Files (x86)\Microchip\MPLAB C32 Suite\ The compiler that is installed from MPLAB IDE's installer. C:\Program Files […]