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

Place Code At Particular Location in Program Flash (zrfenske)

Hello! I am looking to write some code that follows my bootloader which will initialize SPI and then read some data from SPI Flash. If it finds the data it is looking for, it should jump to a specific...

View Article


Section attributes conflict (dsherman26)

I'm a little confused by the linker warning I'm getting. I've located things into an external EEPROM, so I have attributes defined this way: __attribute__((space(data), section(.nvstrings))) const char...

View Article


RAM functions invalid attributes? (dsherman26)

Trying to locate functions in RAM, and running into a problem. When it gets to the link, it reports invalid attributes for certain functions, but not all of them. The attributes for them are all the...

View Article

H file errors (sitongia)

I upgraded from XC32 V2.30 to V4.00, and have this problem. I tried V3.00 and still the problem. When I compile a project that compiled fine in V2.30, a long list of multiple "first defined here" for...

View Article

Multiple definition (ffb.boy.30)

Hi,I've a problem I can't resolve it is the first time I've this type of problem.I've made a 32-bit MPLAB Harmony ProjectI add a file utils.c with a unique function (delay_ms)I add 2 more files oled.c...

View Article


import adafruit GFX lib for PIC (ffb.boy.30)

Hi,I've made my SSD1306 piece of code to make the display working.Now I would like to add some font.I've found the adafruit GFX library for arduino.There is lot of font inside , Is someone have use...

View Article

Microchip University: Taming Embedded C—Everything You Were Afraid to Ask...

Title: Taming Embedded C—Everything You Were Afraid to AskDate: Thursday, March 24, 2022Time: 08:00 AM Pacific Daylight TimeDuration: 1 hour Join us for this engaging session with members of our...

View Article

Changing clock sources at run time - SAMD21 (down_under)

Hi,I have a MPLAB Harmony project using the SAMD21 processor. My project needs to run low power mode and wake up on EIC pin going high. I also need to be able to switch the IEC clock when the device...

View Article


XC32 v4.00 issues errors where v2.41 did not (BillP)

I was verifying my code from v2.41 still works on v4.00 and I found that it did not. (see attached).The first error was because v4.00 thinks I may overrun an array during the call to sprintf. I assure...

View Article


I can't send a JSON from a TCP client hosted on the PIC32 (DominusT)

Hi. For some strange reason I can't post what I want to ask, (I get an error related to a permission). So I made an image of that. Regards:..

View Article

Analog Pin Problem in 100 pines devices PIC32MX5XX (pirupic)

I have an analog Temperature sensor connected on Pin 93 of the PIC32MX550F256L Microcontroller.I am using XC32 Compiler version v2.30 . and the AN46 pin is not included in the compiler although...

View Article

simple way to use ADC with a PIC32MZ (ffb.boy.30)

Hi,I'm trying to read 3 potentiometer with a 32MZ every 10ms or 100ms.unfortunatly it is not as simple as a 32MZ.Is there a tutorial that explain the way to configure easily the ADC functions .Actually...

View Article

Error: Not enough memory for stack (272 bytes needed, 240 bytes available)...

I recently uninstalled and re-installed MPLAB X IDE v6.00. A project that I was working on and which was compiling is no longer compiling. I have not changed the code, however, I did update XC32 Pro...

View Article


Declaring array of strings in flash (Bromson)

Hello, I am working on a project that has the following global variable declaration:const uint8_t* optionsText[] = {"Option 1", "Option 2", "Option 3"}; Our understanding (as explained by the original...

View Article

where is VirtToPhys() function? (shalongbasi)

I am reading the datasheet of PIC32MM's DMA, I copied the sample codes there, and compiler complains it cannot find VirtToPhys(), so I searched all the files under folder XC32(v4.0), but also did not...

View Article


xc32 4.0 #pragma region (kloll)

Compiler: XC32 4.0IDE: MPLAB X 6.0MC: ATSAME70Q21B I am using the MHC to configure. I have the SMC in the project graph, not connected to anything.All pins needed by the EBI have been set in the pin...

View Article

MM hangs on clock swithing (PICing)

Hi.I recently upgraded to MPLABX v6.0, and XC32 v4.0. I am using the PIC32MM0256GPM028, for wich I have written many programs. To start new project I use the MCC v 5.1.4. Now am stock on what seems a...

View Article


XC32 v4.00 issues errors where v3.01 did not (arun.mp)

Hi I modified the application such that it saves a variable inside a user defined memory section. For that I modified the linker script to create a new section in memory and is providing below, MEMORY...

View Article

Section variable not linked after building the application using XC32 v4.00...

Hi I modified the application such that it saves a variable inside a user defined memory section. For that I modified the linker script to create a new section in memory and is providing below, MEMORY...

View Article

Warning regarding "legacy libc" with XC32 v4.00 (JasonK)

Hi all - XC32 v4.00 is about to be released. This release introduces a new Microchip Unified Standard C Library. As such, the options related to the PIC32M (MIPS) Legacy LibC no longer apply. We...

View Article
Browsing all 1537 articles
Browse latest View live


Latest Images

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