Questions tagged [xc32]
10 questions
1
vote
0 answers
Undefined reference to standard library functions in plib
xc32 v2.41 or older working ok with plibs but the latest version of xc32
#include
int main() {
}
generating this error :
"C:\Program Files\Microchip\xc32\v4.00\bin\xc32-gcc.exe"
-mprocessor=32MX664F128L -o…

voidpointer
- 301
- 1
- 8
1
vote
1 answer
MIPS bne assembly instruction not executing correctly under Microchip XC32
So I have the following code compiled in an MPLABX project using XC32, the goal is to check if I need to change the context for an RTOS implementation:
.extern OS_TaskRUNNING, 0x04 # Both of these are pointers in a C file
.extern OS_TaskNEW,…

Christopher Theriault
- 113
- 2
- 9
1
vote
2 answers
C string standard library, memset and discarded volatile keyword
I'm getting warning like this on xc32 compiler (gcc based microcontroller compiler, not open-source).
modem_uart.c:66:5: warning: passing argument 1 of 'memset' discards
'volatile' qualifier from pointer target type [enabled by default]
Here is…

Kamil
- 13,363
- 24
- 88
- 183
1
vote
1 answer
How to fill unused memory with software reset instruction on SAMC21 controller in XC32 compiler?
I am using SAMC21 controller and xc32 compiler. I want to fill my all unused ROM memory with the software reset instruction. Does anyone know, what is the command line option for performing software reset from XC32 compiler.
IDE - MPLABX
Compiler -…

Hitesh Kumar Tiwari
- 69
- 7
0
votes
1 answer
MPLAB X32 compiler and moving function to RAM causes linker error
I'm using Microchips XC32 C compiler and tools to build an executable for a SAM E70 processor.
I have to create a function that is executed from RAM and not ROM/Flash because this function uses special instructions to read a unique 128 bits at the…

Chimera
- 5,884
- 7
- 49
- 81
0
votes
1 answer
How to develop for PIC32MM without either MPLABX or XC32
While working for just one month with the MPLABX5.5 + XC32 3.01 I've already had 3 separate instances where code compiled incorrectly, causing my program to fail after either the stack or frame pointer began using an incorrect address. I would like…

Christopher Theriault
- 113
- 2
- 9
0
votes
1 answer
In function `_main_entry' undefined reference to `main'
Here is my problem, I build an archive with "xc32-ar.exe" with this command line.
"C:\Program Files (x86)\Microchip\xc32\v2.30\bin\xc32-ar.exe" r dist/default/production/MyApp.X.a build/default/production/source/Main.o
With this lib and an other…

Mick
- 53
- 1
- 1
- 8
0
votes
0 answers
Jump on specific lash memory location (example 0x2000) in SAMD21G17D controller after triggering software reset
I am writing one boot loader code and application code for SAMD21G17D controller. I want to run my application code separately for debugging (not dependent on boot loader). I have only changed starting location of application code in linker…

Hitesh Kumar Tiwari
- 69
- 7
0
votes
1 answer
Coverity Static Analysis considers char or numbers as int in C
Both the LHS and RHS variables are uint8_t variable, but the issue is reported as " casting from int to unsigned char". I am not understanding how this can be an issue?
The same is applicable for an 8-bit numbers
All the variables listed in both…

Kanni1303
- 73
- 11
0
votes
0 answers
Reserve Flash memory space with XC32
I'm writing code for an ATSAM device using MPLAB X and XC32 compiler. This device has 1Mbytes of flash memory and I need to put 200kBytes apart to be a placeholder for a configuration script (the main code will execute this script).
I'm trying to do…

Gustavo Vargas
- 2,497
- 2
- 24
- 32