Questions tagged [mplab]

IDE for the Microchip PIC series of microcontrollers.

Integrated Development Environment for the Microchip PIC series of microcontrollers.

614 questions
15
votes
5 answers

Free alternative to MPLAB (PIC development)

I started using MPLAB recently, but for someone that works with Eclipse and VS the IDE it's very limited. Do you know any free IDE or how to configure Ecplise or Netbeans to PIC development? Thanks all
rnunes
  • 2,785
  • 7
  • 28
  • 56
10
votes
5 answers

Any reason for if(function() == TRUE) in C

The Question: Does doing if(SomeFunction() == TRUE) instead of doing if(SomeFunction()) protect against some type of coding error? I'm trying to understand if this is protecting from some hidden land-mine, or if it's the result of someone writing…
Pete Baughman
  • 2,996
  • 2
  • 19
  • 33
10
votes
2 answers

Use external header files in MPLAB X IDE

I have a folder with some .h and .c files and I want to use header files in my projects. I have included them in "Header Files" folder of my project using "Add Existing Item" but when i try to "#include" them compiler(mplabc18\v3.41) say "unable to…
blow
  • 12,811
  • 24
  • 75
  • 112
7
votes
1 answer

shared_ptr without RTTI?

Im trying to use shared_ptr in an embedded project which is build with xc32 1.34 (a derivative of gcc 4.5.2). The project has RTTI disabled with -fno-rtti. #include Just including the header gives me the following…
Philipp
  • 73
  • 6
7
votes
1 answer

What causes a Java library to behave differently when called by JRuby?

I am new to the Java world, but am familiar with Ruby. I am trying to write a program that interacts with some third-party jar files. While the libraries seem to behave fine if called from Java, they behave incorrectly when I call them in JRuby. …
David Grayson
  • 84,103
  • 24
  • 152
  • 189
7
votes
5 answers

Cannot modify char array

Consider the following code. char message[]="foo"; void main(void){ message[] = "bar"; } Why is there a syntax error in MPLAB IDE v8.63? I am just trying to change the value of character array.
newbie
  • 93
  • 1
  • 1
  • 7
6
votes
1 answer

Anyone have experience with PC-Lint used with Netbeans or MPLAB X IDE?

I've been using PC-Lint with MPLAB for a couple of years now and it has been really useful. MPLAB is about to change to be a netbeans based IDE and I've not found any netbeans plugins for PC-Lint. Does anyone have experience in PC-Lint integration…
fluffyben
  • 487
  • 3
  • 12
6
votes
5 answers

How do I view Assembly my C code in MPLAB x

I have code written in C but I need to see the Assembly file so I can optimize the code and figure out how long certain functions will take. Does anyone know of a quick way to pull up the Assembly code?
Sid Muthal
  • 63
  • 1
  • 1
  • 3
5
votes
2 answers

Program exits endless loop (PIC microcontroller)?

I wrote a program for the PIC 16f690 microcontroller after noticing my programs seemed to be exiting an endless loop. There are LEDs on pins 3,4,5 of PORTC. #include #define _XTAL_FREQ 4000000 void main(void) { TRISC = 0x00; PORTC =…
5
votes
2 answers

How to set up a git repository for an IDE-based project?

I work mostly with embedded applications (FPGAs and microcontrollers) and I'm fairly new to git and version control in general. I've come to learn the power of it and want to set up some of my projects for co-workers and friends to collaborate with…
kjgregory
  • 656
  • 2
  • 12
  • 23
5
votes
1 answer

UART DMA for varying sized arrays

Using MPLAB X 1.70 with a dsPIC33FJ128GP802 microcontroller. I've got an application which is collecting data from two sensors at different sampling rates (one at 50Hz, the other at 1000Hz), both sensor packets are also different sizes (one is 5…
ritchie888
  • 583
  • 3
  • 12
  • 27
5
votes
3 answers

FreeRTOS Error with High Speed UART Interrupt in PIC24H

I already used FreeRTOS for some embedded projects for some year time and It worked really perfectly until now. Currently i'm facing a difficult problem related to using High Speed Interrupt in FreeRTOS porting to PIC24H, hope you all can help me to…
5
votes
1 answer

How to view PIC32 UART1 output in MPLABX simulator?

I am using MPLABX v1.80 , xc32 V1.21 and Microchip's sample uart code (the basic sample). I have selected the simulator in project properties. I have enabled UART1 for window output in project properties. I have tried compiling using both UART1 and…
monzie
  • 565
  • 5
  • 15
4
votes
2 answers

MPLABX 5.40 MPASM Assembly PIC

I would like to ask about your experience with MPLABX 5.40 supporting MPASM on a 64bit windows machine? I can't see it in the listed compilers when creating a new project (I see only XC8 compiler). I've been crawling through forums for a dood…
Tomáš Buchta
  • 366
  • 3
  • 8
4
votes
3 answers

xc8 random number before programming

im producing 100 remote controls using pic16f1823 and i need unique id for each remote but it should be constant over time so i think its better to generate a random before programming in mplab compiler and then compile these 100 remotes i want not…
1
2 3
40 41