Questions tagged [pic32]

PIC32 is a family of 32-bit microcontrollers made by Microchip Technology. They contain a MIPS32 core, developed by MIPS Technologies.

PIC32 is a family of 32-bit microcontrollers made by Microchip Technology. They contain a MIPS32 core, developed by MIPS Technologies.

PIC32 microcontrollers have been announced in November 2007

Features include

  • Execution speed up to 80 MHz
  • Flash size up to 512 kByte
  • Programs can be executed from RAM
  • Available in different packages, including Dual in-line (DIP)

A PICkit3 is required to program these microcontrollers. Microchip offers an IDE (MPLAB X) which includes a modified GCC compiler (xc32). It is possible to compile programs for PIC32 using the free mips-elf-gcc compiler as well.

172 questions
0
votes
2 answers

Microchip RF Modulator issue

I'm using a pair of MRF24J40 radio chips to get one PIC32 microcontroller board to communicate with another via RF transmission. I've got all my code to compile fine but I keep getting an error associated with this code. typedef struct { …
Rebourne07
  • 47
  • 1
  • 5
0
votes
1 answer

Extracting nibbles from bytes in a for loop

I'm having some problems with a DMA interrupt handler I've adapted for an LCD display on a MicroChip PIC32 embedded chip. I have limited internal memory and need a frame buffer for my colour LCD. Have decided to use 16 colours and use a nibble per…
0
votes
1 answer

how do I add the license directory key to mplab xc32?

I have gone through the steps and ran all the license things on my computer, but it still says I need to register for a free c++ compiler
dansch
  • 6,059
  • 4
  • 43
  • 59
0
votes
1 answer

PIC32 intergrating with RTC

I am using PIC32MX795f512L and integrating time-based features using MCP79410 RTC. Due to some application purpose, I am using an external RTC (MCP79410). I just want to use two alarm interrupts, but I can access only one alarm interrupt. If I…
Shiva
  • 531
  • 4
  • 6
  • 14
0
votes
0 answers

Memory Segmentation Error using MPIDE and Uno32 "#pragma config"

I'm new to asking questions here so don't butcher me please! NOTE: I am using MPIDE I am trying to get my Uno32 to enter sleep mode to save power for a WSN like application. I have trawled the reference manual and found the relevant sections (i.e.…
Jay Long
  • 3
  • 2
0
votes
1 answer

How do I rewrite a PIC32 boot flash via code?

I have an application that needs to rewrite my bootloader on a PIC32 device. After I disable interrupts, I try to erase 0x1fc00000 with NVMErasePage, but it does not erase, and NVMErasePage return a good status. How can I erase the boot flash from…
Dennis Kerrisk
  • 2,715
  • 2
  • 17
  • 22
0
votes
1 answer

Progam PIC32 internal Flash via software

I am trying to program and verify a block of internal Flash on a PIC32MX360F512L. I have a function that erases,programs and verifies a 4096 byte block at a time. When I run it, the function hangs trying to verify the first byte. BOOL…
Dennis Kerrisk
  • 2,715
  • 2
  • 17
  • 22
0
votes
1 answer

pic32 write in flash c programming

I am new to C and PIC programming. I was asked to fix an existing code as it is not working efficiently. I made changes and come up with my own algorithm, however, as I only have some object oriented experience, I think I am missing something…
0
votes
1 answer

MPLAB Object File Failed

I tried to build Microchip USB Stack files for PIC32 but MPLAB X IDE gave me error that it failed to build. Following is the error while building. The system cannot find the path specified. make[2]: …
Fahad Naeem
  • 515
  • 7
  • 15
0
votes
1 answer

"initializer element is not constant" when using constant structs

I'm working with PIC32, MPLABX and XC32 and currently I have to make a lot of hardware description for each peripheral. Some of the tasks are something like: In file1.h extern const stream_t EHAL_PIN_STREAM_TEMPLATE; In file1.c const stream_t…
rnunes
  • 2,785
  • 7
  • 28
  • 56
0
votes
0 answers

Create an "array style" countdown in c

What I want to know is, if it's possible to create a countdown in c, BUT have a condition for when it hits an "unsual" piece of data in the array. I'll explain better with examples. This is also similar to: Read ahead in an array to predict later…
0
votes
1 answer

Read ahead in an array to predict later outcomes in C

Basically what I'm trying to ask is, is there anyway to read ahead in an array so that you could create a 'case' for it. For ex: you array has only integers such as: 0 0 0 0 4 0 1 0 0 0 0 0 0 0 0 0 0 0 0 3 and what you want to try to do is create a…
0
votes
1 answer

Can I use third party xml library for PIC32

I am using PIC32 to design a Bluetooth application. The PIC32 has to send and receive XML information to and from android phone through Bluetooth. However, I couldn't find any XML library provided by Microchip. I need to use a third party for…
SHuoDo
  • 87
  • 1
  • 2
  • 10
0
votes
3 answers

Runtime stack monitoring on Microchip PIC32 and dsPIC33E

I need to do a run-time stack analysis on embedded hardware to ensure I've allocated enough stack space. I understand the basic theory. On boot, you initialize the stack with a known pattern (such as all 0xFF or 0xAA), then allow your program to…
DrRobotNinja
  • 1,381
  • 12
  • 14
0
votes
2 answers

PIC32 becomes unresponsive after a few hours

I have a PIC32MX340F512 board developed by another company for us, The board has a DS1338 RTCC and 24LC32A eeprom, and display unit on an I2C bus, on this bus i included a TSL2561 I2C light sensor, i wrote code in c to poll the light sensor…
1 2 3
11
12