Questions tagged [mplabx]

MPLAB® X IDE is an IDE to develop applications for Microchip microcontrollers and digital signal controllers.

Filter by
Sorted by
Tagged with
0
votes
2answers
2k views

PIC16f877A: Working in Debug mode not working in Release mode

I am facing an Issue with my PIC16f877A controller. Its working in Debug mode with PicKit3 connected. But when I program the device for release mode, It gives no sign of working. I am using MPLAB X ...
2
votes
1answer
2k views

Cannot debug project using "MPLAB X IDE" on "PIC32 Bluetooth Audio Development Kit" with "PICkit 3 In-Circuit Debugger"

I have "PIC32 Bluetooth Audio Development Kit" (DV320032) board (with on-board PIC32MX470F512L) connected to a PC via "PICkit 3 In-Circuit Debugger" (PG164130). After some experimentation I found out ...
3
votes
3answers
7k views

Which MPLAB-X version supports Pickit 2?

I got myself a Microchip Pickit-2 Programmer from a local store. I installed MPLAB release v2.26 from Microchip's website. However, in this version of MPLAB, it is not detecting my Pickit-2. ...
3
votes
1answer
9k views

What is causing - The target device is not ready for debugging?

I am trying to debug code on PIC16F677 using MPLAB X IDE (v3.10) and Pickit 3 and result is this message - The target device is not ready for debugging. Please check your configuration bit settings ...
1
vote
1answer
4k views

PICkit 3 requires device erase in IPE before programming in MPLAB-X

I'm seeing a new behavior of my PICkit 3 that I did not have before. I hope someone can point me to a direction, it seems that I either messed with some MPLAB-X configurations, or my PICkit 3 is ...
0
votes
1answer
198 views

How to get started with Microchip's PIC12 family programming? [closed]

I would like to start programming PIC12F683 but I have no clue how to handle I/O. Where can I find specific syntax for specific controller? I have tried to register on their forum, but I have't ...
1
vote
1answer
138 views

PIC16F877A : How to keep controller awake?

I am using Pic16f877a for a Serial Communication. I have a PC-based application which sends data to Microcontroller. Microcontroller receives the data and transmit it over I2C. But, I am facing an ...
0
votes
1answer
321 views

cannot receive the right data of NONIN OEM III using PIC32

I am looking for a solution for my project. I am using PIC32MX270F256B from Microchip,nonin oem III module and UART. I have connected the serial out pin from nonin (pin number 12), to U2RX pin of PIC (...
0
votes
2answers
138 views

I2C: BitBanging Read/Write Issue with Pic16f877A ( OSC = 11.0592MHz )

Referring [This Link] (I2C: Unable to Read Multiple Byte using Bit-Banging method). I created an I2C BitBanging library for Pic16f877A. But I am unable to Read/Write the EEPROM. My Pin ...
1
vote
1answer
993 views

MPLABX syntax cheker errors in ASM mixed with C

I'm using XC8 for a project in MPALBX using a PIC18F26K80 and I'm getting lots of Unable to resolve Identifier errors in the editor: The code works compiles an ...
3
votes
3answers
4k views

MPLABX : How to Read/Write 4 bytes unsigned integer to EEPROM?

My question looks simple but still I lost my way to get the issue resolved. Discussion might show me the way. I am using Pic16f877A microcontroller to write EEPROM using I2C ( 1 Byte at a time ). I ...
0
votes
1answer
3k views

PIC16f877: MPLAB X error 1250 (Could not find space for variable)

I am using Pic16f877 microcontroller for my project. I am trying to declare a char Array as char dataPkt[256] = {0}; While compiling, i received an error ...
0
votes
1answer
121 views

Efficient, Concise PIC C Code Help

I'm fairly new to programming PIC Microcontrollers, but am getting real stuck into it and loving it. Today my little project was to make a 7 segment display count from 0 to 9, multiplexing each ...
1
vote
1answer
725 views

PIC16 only runs on debugger

I'm running a Hello World that toggles RB7: ...
1
vote
2answers
403 views

NEED HELP: Oscillator Error and PIC24F stopped working

I have a 30MHz Crystal Oscillator to clock a PIC24FJ128GC010 Controller. I am programming in MPLAB X. My idea is to generate a pulse on one of the I/O pin toggling. But unfortunately, I cannot do so. ...
0
votes
1answer
3k views

MPLAB X IDE : Can we get "console like" output using dsPic?

I was wondering, can we get console like output using command like "printf" on MPLAB X IDE ??? Console Output just like standard C ?? example : if i want to get the value/data of the variable on ...
0
votes
1answer
3k views

PICkit3 MCLR to Vdd Pull-Up Resistor

I'll preempt this by saying that I'm a software person whose education (unfortunately) didn't even touch on the most basics of hardware or circuits. I'm attempting to program a PIC16f1709 microchip ...
3
votes
1answer
4k views

PIC18 High Priority Interrupt doesn't Interrupt the Low one (xc8)

I was trying to learn and implement the priority property of interrupts on PIC18F46K22 uC. I use MPLABX and XC8 compiler. In my code (transformed from a sample code), I have one external interrupt (...
1
vote
1answer
5k views

mplab error: Executable code and data must be defined in an appropriate section

I'm beginner to Mplab and microController programing.i'm following a pic book .basically my program is a led turn on and off program .I'm using mplabx-v2.10 .this ...
1
vote
1answer
3k views

Does any MPLAB compiler e.g XC8 have built in functions to control PIC peripherals like in CCS PIC C

The CCS compiler provides a lot of built-in functions to access and use the PIC microcontroller's peripherals. This makes it very easy for the users to configure and use the peripherals without going ...
2
votes
3answers
2k views

Very bad performance with PIC32

I am encountering a problem with very bad performance in my PIC32 code. For example, I have this ISR which is servicing a few different interrupt sources: ...
3
votes
2answers
6k views

How to include math.h on a PIC?

I know <math.h> can be a large amount of code to include, but want to test out something using sinf() on a low-cost PIC. ...
2
votes
2answers
2k views

Is there stack available in PIC ISRs?

I'm trying to better understand the interaction between the foreground (interrupt) and background (while (1)) loops in a PIC microcontroller. Specifically, a ...
0
votes
1answer
768 views

MPLABX macro expansion

I am using MPLABX v2.25 and XC32 compiler v1.33 on a Mac. Maybe I am not fluent with the use of the preprocessor, but the macro expansion window in MPLABX seems to produce rather unexpected results. ...
4
votes
1answer
8k views

First PIC Program using PIC16F877A and its configuration bits for Internal clock?

I have a PIC16F877A and I wrote a program in MPLAB X IDE to blink a LED. This is my program : ...
2
votes
2answers
5k views

MPLAB X IDE problem with PIC Programmer

I have a programmer and it works fine with PICKit2v2. As you see in the below images, I read my PIC16F877A memory and write to it successfully : But the problem appears when I want to use my ...
2
votes
2answers
1k views

How to prevent MPLABX and XC16 from polluting my assembly program on 16-bit PIC24?

I recently started programming PIC microcontrollers after AVR and I wrote a small, do-nothing program just to see what the ...
2
votes
2answers
608 views

Mplab X Programmer selection

I am using Mplab X IDE. My question is what does the colours Red, yellow and green dots during selection of programmer indicate ?
4
votes
1answer
2k views

Documentation generator for embedded C projects

I'm looking for the equivalent of what Javadoc is to Java and from that, a way to standardize code documentation. Is doxygen more common in this context. Are there built-in, IDE-dependent options? I'...
3
votes
1answer
3k views

XC8 Compiler array of struct initialization problem

I'm using MPLAB X IDE with XC8 compiler and I would like to create a menu system to a GLCD module, but I'm having trouble initializing my MainMenuItemsList[] array. ...
2
votes
4answers
2k views

extern and the XC8 C compiler

Perhaps I don't fully understand extern. With the XC8 C compiler, it seems like I can get away without using it. In the file ...
1
vote
2answers
524 views

Set function to specific address in PIC18F with the HI-TECH C compiler

I want to put a function in an specific address of memory like PIC C Compiler (#org). I'm using MPLAB X, HI-TECH compiler and PIC18F4550. In PIC C compiler: ...
2
votes
2answers
5k views

What is __bit in the XC8 C compiler?

Let's take an example: extern volatile __bit TRISB0 @ (((unsigned) &TRISB)*8) + 0; I believe this is pointing TRISB0 to ...
7
votes
2answers
3k views

Which files to version control in mplabx nbproject directory?

I just discovered the files in the directory nbproject are required for MPLABX to realize a .X directory is a project. I don't want my teammates to continually ...
1
vote
0answers
194 views

Weird bug in MPLAB X IDE

When using the RTCC module in the PIC24F, we need to use the secondary oscillator (by setting bit #2 of OSCCONL register) and disable the write lock on the RTCC registers. Now the write lock can be ...
2
votes
2answers
889 views

Problem with the explorer 16 dev board

I have the explorer 16 dev board equipped with the PIC24FJ128GA010. I wrote a C code to write something on the LCD and a LED blinking after that. I wrote the same code in assembly and both codes work. ...
0
votes
2answers
133 views

Which is better after rewriting the ROM on a PIC16F? A software reset instruction or a watchdog reset

I am working on a project where the uP can be calibrate at any time. The new calibrated values are stored in the uPs ROM. After the calibration is complete, I have to reset the uP such that the ...
0
votes
1answer
5k views

Can I download MPLAB IPE as a standalone app? [closed]

I want to point someone to download MPLAB IPE without exposing them to the IDE. Simple question, but I'm not finding a link on microchip's site.
1
vote
1answer
704 views

How to find MCU-specific macros?

I'm trying to set the weak internal pull-up resistor for a GPIO, but can't seem to guess the right macro name that maps to whatever memory address in the PIC. None of these seem to be recognized by ...
4
votes
1answer
1k views

Does MPLAB X have a call-graph analysis tool?

I'd like to start understanding how deep my microcontroller's stack goes (even if it's only an estimation). How can I do this using MPLAB X?
4
votes
3answers
5k views

Maximum length of variable and function names?

I'm not sure whether this is a property of the compiler or something standard to C. I've heard of limits on the number of characters long a variable or function can be (e.g. 25characters). I'm not ...
1
vote
2answers
68 views

Does 'make and program device' first perform a clean?

In MPLABX v2.00, I'm always scared of introducing some bug by not remembering to first delete all old object files. I'm inspecting the output of the build process but do not know for sure whether ...
1
vote
1answer
2k views

How to read configuration bit register from PIC?

I'm debugging and want to inspect CONFIG1H (CONFIGURATION REGISTER 1 HIGH) of a PIC18F. CONFIG1H does seem to be recongized as an SFR when I enter it into the Watch window. After stopping at a ...
0
votes
1answer
385 views

A better programmer for PIC microcontroller?

I work with a project which uses PIC32 and PIC24 controllers.My setup has a Console board(PIC32) which communicates with 3 slave boards(PIC24) over RS485. I have two projects -One for Console and ...
1
vote
2answers
7k views

How to define an interrupt in PIC18F?

The PIC18F family I guess has high and low priority interrupt-service-routines, not just one ISR. My first time dealing with this and I can't seem to get the compiler (XC8) to recognize the two ...
0
votes
1answer
690 views

PIC16F628A 16x4 LCD problem while using MPLABX

I'm trying to connect a 16x4 LCD with a PIC16F628A, but I cannot get any response on the display, the display is blank. I put on a LED for indicating whether the time was right, and apparently ...
2
votes
2answers
878 views

PIC12F629 Doesn't react on input

I've build this circuit : The diode is actually a LED. With this code on MPLAB x,XC8 : ...
1
vote
1answer
627 views

Can't get output from GP5 and GP3 in PIC12F629

I can't get output from GP5 and GP3 from a PIC12F629 I have. My code is the following: ...
2
votes
2answers
5k views

Simple blink LED with PIC12F629

I am new to microchip but I build an circuit with PIC12F629 and wrote this program: ...
0
votes
2answers
6k views

PIC XC8 compiler array of structs?

I'm having trouble assigning variables to structs, particularly making an array of structs, with the XC8 compiler. Example code below: ...