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

Link Error: Could not allocate section .text (Builds when using -nostdlib)...

Hello, I am using XC32, the free version, with -O1 and cannot build my hex file without excluding the stdlibs. I wish to have a stack size of 1000, and setting this to 0 does not affect things at all....

View Article


XC32 - assignment to members of struct inside an array - (Brane2)

Suppose I do : typedef struct{int a;int b;} something;something my_arr;my_arr.a = 3; XC32 fails here with :error: expected '=', ',', ';', 'asm' or '__attribute__' before '->' token How do you do...

View Article


Compiling code made under older version of XC32. (AMansGotToHaveACode)

I am fairly new to PIC32 development. I have taken over code for a PIC32MX795 developed by another developer. The code came with an MPLAB X project and the inline documentation says that the compiler...

View Article

Missing standard C library when mingrating app from linux to PIC32 (christou)

Hi all, I'm new to PIC32 and now I'm migrating a program written under x86 Linux/C to PIC32/XC32/Harmony/FreeRTOS.Most of the algorithm code are portable, free from hardware related libraries and hence...

View Article

Persistent absolute address variable (bblessing)

Background: MPLAB X IDE 4.15, XC32 v2.05, Harmony v2.05, custom board using PIC32MZ2064DAH176, Newhaven NHD-4.3-480272EF-ASXN#-T display (4.3", 480x272 pixel, 4 wire resitive touchscreen) I'm having a...

View Article


help on this error (luisgomezp)

i try to debug after this but not found this files, What could be the problem? make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf make: Entering directory...

View Article

Issue with incrementing and setting a global variable in XC32 (nschaeferle)

I believe there is an issue with XC32 2.10 in incrementing and declaring global variables. I am running MPLAB 4.20 with a PICkit 3 and the target device is a PIC32MK0512MCF064. I can provide more...

View Article

Is it possible to obtain an unsigned result of the difference of two unsigned...

Hi. A possibly silly question. I have two unsigned variables like this (XC32): unsigned int a;unsigned int b; When making the difference between the two variables I get a signed result (that is, there...

View Article


Use of __attribute__ in declaration and in definition of the function...

Hello,When I use __attribute__ for a function, I need to use it in both declaration of the function and in the definition of the function?In other words:In file .h the function declaration isvoid...

View Article


Why doesn't work (unsigned int) for the difference of two integer numbers?...

Hi. Several days ago I asked a silly question from which I received all types of qualifiers, adjectives and also comments and suggestions http://www.microchip.com/forums/m1055239.aspx I had this...

View Article

Use of "Const" and "__attribute__((space(prog))" (Cosme_Fulanito)

Hi everyone, I'm a bit confused with the behavior of XC32 when trying to save a constant in flash memory. My first impulse was to define my constant like this:const uint32_t MyConstant...

View Article

PIC32 ETHERNET STARTER KIT RTCC uses the internal 32 kHz oscillator NOT...

Hi i try run the RTCC API Example but my compiller stack herethe code attached.thanks for help.https://image.ibb.co/b24PaT/RTC_Stack_point.jpg..

View Article

What does it mean 「Add XC32 to the PATH environment variable」when installing...

Hello everyone: When I install XC32, one of the following check boxes appears: Add XC32 to the PATH environment variable I found an XC32 manual that read: Install XC32 When this check box appears, if...

View Article


Peculiar build issue involving volatile variables (wave.jaco)

I am struggling with an issue that is already costing me 2 days of productive work. For those interested in attempting to reproduce this issue, I have attached the complete project in a .zip folder....

View Article

get binary / machine code of single file or function (Benny32)

I'm wondering if it's possible with the XC32 compiler to get the binary / machine code of a single C source file or function. Let's suppose I have three source files: main.c helper.c test.cThe file...

View Article


What head file is declared in the XC32, such as the uint32_t data type? (PSIR)

The data type of uint32_t is often seen in Harmony's program. This is just a name, and it is unknown which head file the original data type corresponds to. How to find? Thanks...

View Article

What SFR content has this DMA function changed? (PSIR)

Hello everyone: Which DMA SFRs will be set by the following function? How to change to SFRs writing? Thank you.DmaChnSetTxfer(); ---------------------------------------------------------- #define DMA0...

View Article


XC32 v2.xx - changes list vs v1.44 (SERGOSV)

Hi!!! Do I need to make changes to the code when I switch from XC32 v1.44 to v2.xx? Where can I read the full list of changes of v.2.xx vs v.1.xx (Not in Realease Note). I somewhere saw such...

View Article

Can't generate assembly list file (WalterH)

For my Harmony PIC 32 project I want to see the assembly code made from C code. XC32 2.10, MPLAB-X 4.20, Harmony 2.0.6. XC 32 documentation DS50001686J page 69, 3.6.10 states "For MPLAB X IDE, right...

View Article

Math.h -- Conversion from floating point to integer ? (moeller)

HelloI am searching for a fast type conversion from long double to long long. The implicit conversion is not suitable because at zero an interval of 2 (-0.9999.. to +0.9999..) is converted to zero...

View Article
Browsing all 1537 articles
Browse latest View live


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