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

XC32-gcc printf() fails on 64-bit (long long) ints (jesselackey)

Hi all, the very same code that works with XC8 fails with the XC32-gcc (V2.40). See simple example below.The document DS51685, page 45, says this works. This is the "32-Bit Language Tools Libraries"...

View Article


Compatibility XC23 / C++1 (amunsch)

Good day, I'm trying to compile an existing C++ project with xc32-g++ for a customer of mine, unknown target yet. Though the compiler is derived from gcc 4.8.3 and the project does compile well with...

View Article


why doesn't the compiler generate code? (PastrelloMarco)

Hi everybody,I have a problem with xc32 because it doesn't compile some lines of code inside a routineI'm using MPLABX 5.30 with XC32 2.40.I wrote a file with some routine inside: All other routines...

View Article

xc32 not understanding inline assembler (linton_za)

Hi all I previously compiled code on pic32-gcc compiler with no issues. We have updated hardware and am using MPLAB IDE with xc32 compiler due to there being no support for new PIC in legacy. Compiler...

View Article

printf with %lld and %f not working (dom11990)

Hi, I'm trying to print some u64 values with %lld and it creates total nonsense. Same goes for %f with a double or a float value. Im on version 2.4. Should this not be possible? Device is a...

View Article


I know this is an old issue both I can't make run-time revisions to FLASH?...

This is driving me nuts! I'm using Harmony 1.02 (old firmware, can't change it) with PIC32MX695F512H. I tried adding the Harmony NVM driver, but it generated tons of exceptions I didn't have time to...

View Article

MPLABX XC32 v2.40 Released (mpgmike)

https://www.microchip.com/mplab/compilers..

View Article

Multiple SPI channels on PIC32MX795f512 with legacy plib (spanner)

Hi there,I am a passable 'C' programmer and have been having some 'fun' with trying to getmy current project working correctly,I am using the olimex t795 prototype board have got the thing to drive one...

View Article


Multiple Definitions (jimctr7)

I am moving some code that compiles successfully with XC32 v1.44 to XC32 v2.40. To muddy the waters a bit, I also moved from Harmony 2 to Harmony 3 Configuration platform. When trying to compile the...

View Article


Looking for general help with linker scripts in regards to AN1388 (IronDruid)

Please forgive the Google Drive Link. For some reason I keep getting "Access Denied" when I try to make this post. A forum admin suggested I try to Attach/Link the post contents....

View Article

PIC32MZ USB interrupt flag registers,like USBCRCON.USBIF (vexorg)

I'm trying to find out details on the USB interrupt flags. We have a non-harmony project and want to add USB to pull data from another board. The USB board is a custom board that works with an older...

View Article

XC32 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 Article

input 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 Article


External 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 Article

MPLAB XC32 v2.41 Released (DevMod1)

MPLAB XC32 C-Compiler v2.41 is now available for download here.This release provides: New Part Support Bug Fixed Please see the release notes for full details...

View Article


LINKER: Memory-Usage Report and user defined memory region. (ThierryV)

Hello, I'm using a custom linker script to put some codes on a custom memory region.MEMORY{ ... my_mem_region (rx) : ORIGIN = 0x9D000000, LENGTH = 0x1000 ...}SECTIONS{ ... .extension : {

View Article

Forcing compiler error/warning if a function parameter is not a static (Peter...

Hi All,is it possible for the compiler to generate an error/warning if a parameter to a function is not a static (or global). I.E. if it is stored on the stack.e.g. extern void func( uint16_t *val...

View Article


PIC32MZ1024EFE064 - cannot use all RAM (boatbodger)

This device has 256k of RAM. I need to allow multiple HTTP connections and they gobble heap like its going out of fashionMy static data requirement is about 30k bytes, IDE says I have 233512 bytes...

View Article

Variable location conflict: address() attribute vs small data section (-G...

Hello, I need to locate a variable at a specific address in RAM:unsigned long __attribute__((far,address(0xA001FFFC),persistent)) MyVar; But the linker fails with this error:xc32-ld.exe: small-data...

View Article

undefined reference issue (jimctr7)

I am getting an undefined reference issue with regards to my SPI driver, even though when I search the project, the references in drv_spi.h and drv_spi.c come up, and if I check my file...

View Article
Browsing all 1537 articles
Browse latest View live


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