[SOLVED] Runtime exception before main() (sitongia)
This issue happened after I made a small code change. After trying to fix the problem for awhile I cannot recall exactly what it was and I cannot "undo" because I restarted MPLABX. This happens the...
View ArticlePIC32 eval board (Geomeo)
I have a PIC32 evaluation board and I’m wondering what I would need to do to make the following program work with it. https://www.john.geek.nz/2011/01/avr-pulse-per-second-nmea-simulator/ Do I need the...
View ArticlePassing Macro Definitions to Makefile in command line (apackmen)
Hello,I am attempting to automate the build process for a project with several build variations, my current procedure is to manually add the Definitions into the Preprocessor Macros menu in Project...
View ArticleMPLAB XC32 v2.40 Released (DevMod1)
MPLAB XC32 C-Compiler v2.40 is now available for download here. This release includes:64-bit Host Operating Systems Only Procedural Abstraction code-size optimization for Cortex-M target devices The...
View ArticlePIC32 Legacy Peripheral Libraries - macOS CATALINA (diegoufg)
I need to install the PIC32 peripheral libraries for the new xc32 2.40 compiler on mac os Catalina,I downloaded PIC32 Legacy Peripheral Libraries - macOS but it doesn't installhow can I do ?..
View ArticleEnabling the Procedural Abstraction code-size optimization for SAM/PIC32C...
MPLAB XC32 v2.40 (PRO) introduces a new aggressive code-size optimization called Procedural Abstraction. See the release notes for some information about this new optimization. This new optimization is...
View Articleproblems with xc32 compiler (v1.43 and v2.20) --> sin and sinf (RalfR)
Hi there, i do not know if it is an bug from the Compiler toolchain. But i recognized that when i use sin() and sinf() nearly at the beginning in my source they return the correct value. but if the...
View Articleproblems with xc32 compiler (v1.43 and v2.20) --> optimization (RalfR)
Hi there, i use the xc32 compiler in free mode. So i only have the two possibilities for optimization Level 0 and 1.During debugging while using level 0 (no optimization) i can see that the debugger...
View ArticleMultiple definitions in .o files after moving project to a new PC [SOLVED]...
Hi, I'm having trouble compiling a project on a new PC. Works fine on another machine but produces errors like multiple definitions found in .o files and build fails. Both machine using same IDE 5.25...
View ArticleCompiler Part Support (bm28)
Hi,I'm working with the PIC32MZ2064DAR169 and I'm having some difficulties trying to apply the compiler part support for this device.If I run MPLAB® XC32 Part Support Update v2.40 which provides...
View Articlexc32 static stack analyzer (FlorianKaup)
Hello together!I developed a static stack analyzer for Microchip's XC32 compiler, which can be found here:https://github.com/SentinelSw/MipsStaticStackAnalyzer Some background:For an automotive project...
View Articleinput capture (horkesley)
HiI am trying to use inout capture to measure pulse width. Eventually 5 input for a quadcoptor application.My code does not produce an interrupt.Any idea where i am going wrong. This is the...
View ArticleXC32 Optimization of inline functions problem (TechnoGilles)
Hi,First, here is the context: my project has been under development for a while and is working flawlessly. It uses a PIC32MX695F512L, and developed under MPLABX v5.20.Project was working fine with...
View ArticleXC32 Bug: Pointer accessing shifted member of packed struct (Paul PortSol)
Target crashes (exception) when use a pointer to access member of a packed struct, when that member has been shifted off alignment.Direct access to shifted members of packed struct is OK, issue is only...
View Article"const" initialization in program memory at absolute address doesn't work as...
Good afternoon, im working with a PIC32MZ and i am trying to place a checksum word at a specific location in program memory. As far as i can tell from the XC32 documentation, and the past threads i've...
View ArticleExternal Interrupt not working on PIC32MX device (Dennis Bignaman)
I have a PIC32MX250F128B device. I have followed the instructions from sample programs on how to setup the ISR and turn on interrupts for an external interrupt on A1 input pin. I have the pin with weak...
View ArticleRAM execution questions (Thorben.Z)
I am currently playing around with ram execution on a PIC32MZ, and have run into a problem: I can't call any functions residing in normal program memory from a function in RAM; i am getting this error...
View Articlexc32 export executable code (Thorben.Z)
I am (still) playing around with ram functions on a pic32mz and got to the point where i can dump code from ram to sd card, and then load and execute it. But that worked only because i knew where xc32...
View ArticleCompiler skipping "if" statements (lachlanp)
I have the following code:XbeeSendCommand(XBEE_CMD_ID_QUERY, (uint8_t *)0, 0); // send command delay_ms(200); // Wait 0.2 secondsif (XbeeReceiveCommand(XBEE_CMD_ID_QUERY) == SYS_OK){ // Retrieve...
View Article