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

Cannot read status register, SPI EEPROM and PIC32MX795 (ericscott15)

Hello All,I am currently working with a PIC32MX795 and a serial EEPROM (25LC1024). As I have been getting up and going with SPI communication I decided a good first test would be to try and set write...

View Article


How to create array of in/outputs (luker)

Hi forum, my Pic32 has several pins set to digital outputs. Even though they are arbitrarily distributed, I'd like to access using an index, thus imposing a sequence of my choice.unsigned outputs[] = {...

View Article


Bootloader and Application program - How to configure to not overwrite...

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...

View Article

XC32 1.40 new ipl syntax - have a few questions (Aiden.Morrison)

Hi there, I'm updating a project from XC32 1.32 to 1.40 and it's now throwing quite a few warnings related to the declaration of ISRs, and how I am specifying priority levels. For example declaring a...

View Article

Behavior of shadow register sets wrt FreeRTOS on PIC32 (Aiden.Morrison)

Hi,I'm working on a project where I am considering using the shadow register sets - ideally I would just assign a set to every priority level and enjoy the reduced latency/overhead, but I am using...

View Article


[Resolved] Tons of overhead in a simple ISR - go assembly? (rickford66)

Hello,I'm writing code for a pic32 and have found that the overhead in even a simple ISR is ridiculous. Here is my ISR...void __ISR(_EXTERNAL_1_VECTOR, ipl5SOFT) INT1InterruptHandler(void){ TMR2 = 0;...

View Article

PIC32 AT commands response (apoorva)

Hello, I am new to PIC32 ,and want to know how AT commands response in PIC32 .I am sending AT commands through uart and i need to see the response of AT command to do further proceedings .Please check...

View Article

Issue with 1.40 and call stack (jautry)

I ran into a strange problem when changing from 1.34 to 1.40 that is kind of hard to explain. When I made a call to a routine in another file, that routine would in turn call another routine within...

View Article


Getting examples in V1.40 to link (drmike)

I've been using MPLAB for a really long time. I just down loaded the latest version to Ubuntu 14.04 and the include file plib.h is not found which makes none of the examples able to compile. I'd like...

View Article


xc32 warning: Detected corrupt executable file [enabled by default] help...

CLEAN SUCCESSFUL (total time: 187ms)make -f nbproject/Makefile-XC32_PIC32MX795F512L.mk SUBPROJECTS= .build-confmake: Entering directory 'G:/PIC/KESIIY/pic32mx_c_template_1.X'make -f...

View Article

Surprised by union's size (luker)

Hi forum, prior to sending some data over I²C, it is stored in the following union:typedef union{ struct { unsigned char address; uint16_t value; }; struct { unsigned char unused; unsigned char m..

View Article

PIC32 memory & the linker file (hcaw)

Hi all, I'm having some difficulty understanding how the PIC32 boots and some of the linker file. For instance see below (taken from Microchip application code for AN1388 bootloader). I understand the...

View Article

Importing binary data into a custom section (Lee22)

Hi All, I am trying to import binary data, from an external file, into my firmware image at a known location in a custom section/region.I can import the data from my external file no problems. I do...

View Article


Compiler can not find ADC registers PIC32MZ1024EFH144... (Alfred73)

I'm trying the ADC example from the the datasheet for 12-bits for a PIC32MZ1024EFH144 but the compiler seems simply not to be able to find the right registers, for example this line: AD1CAL1 = DEVADC1;...

View Article

Memory allocation footprints: malloc/free vs. new/delete (realexander)

I did a quick test of memory allocation: I created an empty Harmony project and compiled it. Then I added calls to malloc() and free(). The executable's size increased by about 1,700 bytes. Next, I...

View Article


interrupt sub priority problem in pic32mz (afdm_2020)

hi everyone, in pic32mz2048ech144(EC Board) ,i use 2 timer interrupt with same priority and different sub priority,both t1 and t2 priority is 2 and sub priority for timer1 is 0 and sub priority for...

View Article

strange code execution in port change notification ISR on PIC32MZ (tankutacar)

Hi,below is a PORTG change notification interrupt service routine :void __ISR_AT_VECTOR(_CHANGE_NOTICE_G_VECTOR, IPL4SRS) interrupt_event_handler(void){ IFS3bits.CNGIF = 0; // interrupt flag clearance...

View Article


XC32 1.40 Harmony external c++ library (Nejc.okorn)

I am using PIC32MXF270B and I would like to solve eigenvalues for 6x6 matrix and 3x3 matrix. While searching all over the internet all I got was this eigeng.c and in the end i found out even this one...

View Article

printf show "inf" for little number with XC32 g++ compiler 1.40 (deulis)

The printf function show "inf" for little number with XC32 g++ compiler version 1.40 Example: float lat = 21.12345;printf("Lat=%f \r\n", lat); The result is:Lat=inf Anyone have any idea how to fix it?..

View Article

xc32-ld warning: FPU hard float vs. soft float (MrMZ)

Hi, I am using Harmony components in a non-Harmony project within MPLAB X IDE. The linker throws me the following warning: c:\microchip\xc32\v1.40\bin\bin/xc32-ld.exe: Warning:...

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>