Quantcast
Channel: MPLAB XC32
Browsing all 1537 articles
Browse latest View live
↧

Input capture (horkesley)

Hi, I am having problems getting input capture to work. The interrupt flag is set when an input is applied to RD8, but the interrupt routine is not entered.Here is the interrupt routine, the code never...

View Article


Target board to supply its own power but no voltage has been detected VDD...

"The configuration is set for the target board to supply its own power but no voltage has been detected on VDD. Please ensure you have your target powered up and try again." Suddenly came up after I...

View Article


How to disable the unused variable warnings coming out of xc32-gcc in 3rd...

Hi, How to disable the unused variable warnings coming out of xc32-gcc in 3rd party code i do not wish to edit ? Only in the specific 3rd party code, not all project....

View Article

XC32 v3.01 not unwinding the stack correctly... or placing func. parameters...

EDIT : Changed the original post because I thought I solved the problem, but I was wrong. When XC32 is compiling my code it's placing function parameters in R2 instead of R4. This means that when foo()...

View Article

XC32 3.01 ISRs not working correctly under optimization -O1 (EqqmanMChip)

Hello all- I have ISR code that works correctly under optimization level -O0. If I change the setting to -O1, suddenly it stops working. Program execution never vectors to the ISR even though all the...

View Article


Unable to view kseg1 data-memory usage (karanbanthia)

I am unable to view kseg1 data-memory usage in output after project build in mplabx IDE with XC32 compiler. I am using PIC32MZ2048EFM100. I am using variables assigned in kseg1 region (when using...

View Article

Strange xc32-g++ v3.01 compiler warnings (pic32cpp)

Just upgraded from xc32-g++ v2.50 to v3.01. Anyone know what these warnings mean? main.X.production.elf uses -mgp32 -mfp64 ... uses -mips32r2 -mfp64 (12 callee-saved) Thanks..

View Article

How to put a constant defined in an * h file at a specific address in program...

Hi. I have a header file that contains several constants as follows: #define keyCLIENT_CERTIFICATE_PEM \"-----BEGIN...

View Article


MPLAB Complier XC32(v2.15) : Additional Options ? (karan123)

Hi, I have opened below Project.C:\H3\core_apps_pic32mz_ef\apps\fs\sdspi_fatI have opened Project Properties - > xc32-gcc -> Additional Options . I have seen below Additional Options.1) Wformat=2...

View Article


How to prevent other constants from being placed in a reserved region of...

Hi. I have a project with the PIC32MZ1024EFM100 and XC32 v3.00. I'm preserving a region of program memory to store constants. This is created both in a bootloader and in the user application code....

View Article

How to correctly include or call snprintf / printf ? (user1397215)

I have an embedded system which uses the SAM L10 microcontroller and a project set up in MPLAB (IDE version 5.50). My project builds and runs correctly on my system using XC32 compiler v3.01 until I...

View Article

PIC32 Bootloader linker fails in debug (only with PKOB?) (ChrisMcK)

I have a PIC32MZ-DA Starter Kit (DM320010, PIC32MZ2064DAR169) that I'm trying to customise a bootloader for. When building in Debug (to step the code), the build sometimes fails with the linker...

View Article

union definitions with bit fields for samd21 peripheral registers (electropapa)

I am using mplabx with samd21g17 and xc32. I have seen in examples etc the use of union and bit fields to define register fields but can't find any in the device pack header files supplied. Are these...

View Article


Error 255 with ld XC32 (electronickid123)

Hi everyone, I am new to mplab. I wanted to change my complier to XC32 and now I have several problems that make the building failed. Here is what I have, multiples lines like : "Warning: automatic...

View Article

How should I correct this warning when compiling? warning: array subscript...

Hi. I have a project with the PIC32MZ1024EFM100 and XC32 v2.50. I have multiple terminals configured as output on different ports. I made a function to collect the logical state of said outputs and put...

View Article


Trouble with interrupts at_vector XC32 PIC32MZ (moeller)

Hi I am fighting since two days with this problem:A simple interrupt functions is not invoked by the peripheral:void __ISR_AT_VECTOR (_TIMER_2_VECTOR, IPL4SRS) T2Interrupt(void). I find the code at...

View Article

How do I use the 'inline' directive in XC32 code (compiler v3.01)? (Reini)

Hello all, I upgraded my compiler from v1.42 to v3.01 and have some difficulties getting the inline code compiled. I'm used to access variables with less rights as possible. For example, I have a file...

View Article


optimization level attribute mismatch (rdpoor)

I am building a C-based project in MPLAB v5.50 using XC32 v3.01. I've upped the optimization from -O1 to -O2, and am now getting these errors during compilation:nbproject/Makefile-sam_e70_xult.mk:457:...

View Article

MPLAB XC32 v4.00 Released (DevMod1)

MPLAB XC32 v4.00 is now available for download here. This release includes:C99 Standard -- MPLABĀ® XC32 is now C99 compliant.Microchip Unified Standard C LibraryImproved software floating-point library..

View Article

Warning regarding "legacy libc" with XC32 v4.00 (JasonK)

Hi all - XC32 v4.00 is about to be released. This release introduces a new Microchip Unified Standard C Library. As such, the options related to the PIC32M (MIPS) Legacy LibC no longer apply. We...

View Article
Browsing all 1537 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>