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

PIC32MZ hardware floating point library bug (swissembedded)

$
0
0
in xc32 lib mz_math.S is a bug in strtodit is declared as double strtod( bla bla bla), but implemented as long double strtod( bla bla bla)In the header _dstrtod is declared, but not implemented..

SPIxCONbits.DISSDI missing in processor header file for PIC32MX (Artabanos)

$
0
0
Maybe I did overlook something, but while trying to compile my program, I get this error: "SPI3CONbits_t' has no member named 'DISSDI'". And really, the processor header contains the very similar DISSDO entry, but the DISSDI entry is missing. I'm using X..

Suspect Bug in XC32 v1.42 with PIC32MZ..EFH Floting-Point and Interrupt-Service (Kopka)

$
0
0
I suspect a bug in the XC32 compiler. This concerns the version v1.42 and I use a PIC32MZ2048EFH100. The effect is as follows: With an interrupt I get sporadically an exception error. "Code 5 Store address error" The analysis shows that the stack po..

Trouble building XC32 v1.42 compiler tool chain from source, missing file: resource_info.h (SylviaElse)

$
0
0
I copied the subject line from mjarabek's posting about v1.40, from November 2015. The same file is missing from v1.42, which raises questions about Microchip's commitment to honouring their GPL obligations. Apart from anything else, if this really is the..

XC32 v1.40 compiler doesn't work when built from source. (SylviaElse)

$
0
0
I managed to get the v1.40 compiler to build, but when it runs it fails with an assertion failure: internal compiler error: in mips_expand_epilogue, at config/mips/mips.c:12137. This appears to relate to restoring registers at the end of a function, with ..

detected USB connected in bootloader at startup (sebastien.decorme)

$
0
0
Hi,I use the USB bootloader only to program my card with a switch and it works perfectly (AN851).Now I would like to detect if the USB connected at startup to jump to main code if not connected.I can't use VUSB or VBUS so I'm looking for a soft idea.I try..

XC32 v1.42 Possible Bug - Static variables within functions not initialized (javitooo)

$
0
0
I am using the XC32 v1.42, the MPLAB X IDE v3.45, a PIC32MX460F512L and running the MLA GFX code (old version) to draw a button on a TFT display.When I use buttons, they are not drawn in the screen. I have track the problem to a static state variable used..

FILE * and memset compiled ok with only stdlib.h in v1.40 - Why? (aschen0866)

$
0
0
I am trying to understand why this compiles in v1.40:

#include
#include
//#include
//#include

typedef struct
{
FILE *stream;
} TEST_TYPE;

<..


sscanf doesn't support %[character list]? (cifax)

$
0
0
I'm new to the forum, somewhat new to PICs, and I rarely manipulate strings much so I don't have much experience with the stdio string functions. I'm porting some old code from an H8 to a PIC32 and ran across the following that worked on the H8 but does n..

Running code from SRAM to get low power consumption (akael)

$
0
0
Hi everyone I am working on pic32mx795 and i am trying to get the minimum power consumption, I made lower the frequency operation to 2MHz and I found some information in the datasheet (page 185 in datasheet attached ) that i can get lower power consumptio..

Possible XC32 issue, program doesn't work (ogremage)

$
0
0
Hi all! Don't know exactly which of the forum categories is more suitable for my problem, but I think it's somehow related with XC32 tools.I've bought a demo board with PIC32MX534F064H in it. Then I wrote a simple led blinking program to test a board. I'm..

PIC32MX170 using __longramfunc__; enabling interrupt causes exception; how to avoid it? (Irix)

$
0
0
I am using a PIC32MX170 with MPLabX and XC32 v1.42. Because of performance reasons I want to put main() and the interrupt service routine for SPI2 in RAM.I have modified procdefs.ld to remap the interrupt vector table as follows:/*************************..

get physical address of SPI1BUF (HerBY)

$
0
0
Hi, i need the physical address of SPI1BUF, without using harmony or the plib.What i want to do is set up a DMA-Transfer from a buffer to SPI1. I want to use this for Audio playback (I2S). The help claims, there should be a macro avaliable (KVA_TO_PA). DC..

Slower PIC wakeup with Large Array declaration (AHassanin)

$
0
0
I am using a PIC32MZ (2048EFG) for one of my projects. The project requires the microcontroller to switch on as fast as possible (few milliseconds). This works well until i declare a variable with a large data size.So declaring:static unsigned short DataB..

problem with __attribute__((address ...) (matherp)

$
0
0
In XC32-V1.33 MX470 I use the following: __attribute__((address(0x9D0FF000))) const void * const CallTable[] = {...}to place a jump table of function addresses in a known position in memory. This works perfectly. In XC32-V1.42, MZ2048 if I use this syntax..

Bootloader and Application program - How to configure to not overwrite bootloader (Wrandy)

$
0
0
Hi, first: Happy new year. Now my problem:I have written a bootloader and application program. It is working when I do the following:1. Flash bootloader hex file to PIC2. Compile application program with MPLAB.3. Put the new firmware file to the sd card (..

XC32 *_BASE_ADDRESS definitions changed from v1.22 to v1.42 (RufusVS)

$
0
0
When I look at the header file for XC32, p32mx795f512l.h, I see that many of the baseaddress definitions are different. e.g. the port addresses in v1.22 are:

#define _PORTA_BASE_ADDRESS 0xBF886000
#define _PORTB_BASE_ADDRESS 0xBF886040
#..

[Solved] Unexpected return value evaluation (luker)

$
0
0
Hi forum, Consider the following code to execute CallingCode(), which calls DoSomething() and evaluates its return value.Stepping through this, DoSomething() reaches its return-zero-ending. But the calling code branches into the Something-went-wrong-block..

Pic32mx SPI1 interrupt configuration (swatvv)

$
0
0
Hi all,I using XC32 v1.40 compiler for pic32mxspi slave mode with enhanced buffer mode.could you suggest how to configure spi interrupt?..

MpLab X 3.5 Memory Usage Math is wrong (Jim Nickerson)

$
0
0
In older versions of X (3.26) the Program Used Graphic Bar used to match the "Total Program Memory used" line displayed when I ticked the x32-ld, Diagnostics, Display Memory usage box.In X 3.50 it does not.Any thoughts ? Edit: see posts below, this seems ..
Viewing all 1537 articles
Browse latest View live


Latest Images