Questions tagged [mplab]

IDE for the Microchip PIC series of microcontrollers.

Integrated Development Environment for the Microchip PIC series of microcontrollers.

614 questions
3
votes
2 answers

Pic32 bootloader writing to memory

I am having issues getting a bootloader for the PIC32MX795F512L working. I based it off of the example code on the microchip website. Here is the section of code that I have that should write the memory, I have verified the bootloader up to this…
user2076574
  • 166
  • 3
  • 12
3
votes
0 answers

Build failed of downloaded .mcp file in MPLAB for PIC18F2550 and PIC18F4550

I have installed Mplab version 8.9, I have downloaded a firmware package from this link But, when I hit build all it shows me the following output and build fails: ---------------------------------------------------------------------- Debug build of…
jay
  • 31
  • 3
3
votes
1 answer

How can I surpress GCC warnings for no prototypes for interrupt routines when -Wmissing-prototypes is used?

I'm writing embedded code in C using MPLABX (IDE for Microchip products) and the XC16 compiler (which is based on GCC). I'm using -Wmissing-prototypes to make sure that I have prototypes for all of my functions. My problem is that I have a lot of…
user2211907
3
votes
1 answer

MRF24WB0MA WiFi with 32MX4 Beginners Tutorial

I'm a beginner at Microchip Programming and I want to design a robot that can connect to WiFi. I have the Cerebot 32MX4 Microcontroller (PIC32MX460F512L) and the PmodWiFi card (MRF24WB0MA). I have absolutely no idea where to start. I have tried…
Gavy
  • 1,939
  • 1
  • 19
  • 20
3
votes
3 answers

Delay on PIC18F

I'm using a PIC18F14K50 with HiTech ANSI C Compiler and MPLAB v8.43. My PIC code is finally up and running and working, with the exception of the delay function. This is crucial for my application - I need it to be in certain states for a given…
Ozzah
  • 10,631
  • 16
  • 77
  • 116
2
votes
1 answer

pic24 debugger mode does not work

I got a PICkit3, that I use for programming a PIC24FJ64GA004 with MPLAB IDE 8.83 and the C30 compiler. The debugger works with the following config bits: FNOSC set to primary oscillator (XT HS EC) & POSCMOD set to HS osc But I can't seem to get the…
Jon V
  • 506
  • 1
  • 3
  • 21
2
votes
3 answers

MPLAB X IDE v6.10, when i try to load my projects and open it. it gives an message "Loading" and the project doesnt open & the debugger is disabled

In MPLAB X IDE V6.10, Initally it is working fine. But after sometime when i tired to open project it is showing loading but project is not opening. And Uploading and Debugger option is disbale can't able to click and do upload the program. Even…
2
votes
4 answers

Bit-packing Problem in a Union (Register Mapping)

I am trying to get a union together to map out some bit fields in a register map. The code I have is the following: typedef union __attribute__((packed)) { struct { uint8_t MODE:3; uint8_t VSHCT:3; uint8_t VBUSCT:3; …
awb
  • 185
  • 1
  • 7
2
votes
1 answer

MPLAB gives Low power and device failed to connect error when programming pic18f25q10

I am trying to add a simple led application to a PIC18F25Q10 in another circuit using the Curiosity HPC development board. I am using the MCLR, PGD, PGC and GND pins. Although I set the LVP mode to enable in the CONFIG settings and the program speed…
fthelb
  • 23
  • 5
2
votes
4 answers

How to fix implicit signed to unsigned conversion, warning 373

I know this has been asked a couple times, but the answers were not clear to me. This warning seems to be relate to the type char being promoted by the compiler to unsigned char..... I get the warning in two places in the function below at…
2
votes
1 answer

Offset address of Binary files

I am using MPLAB to program ATSAMD20E15A. Now I have boot.bin and program.bin binray files generated. My question is: How do I find the offset address of both these binary images? Thank you and excuse me If the question is very basic since I am new…
SSR
  • 21
  • 3
2
votes
1 answer

Sending TABLAT value to a port gives me the wrong value

I'm trying to write a program on PIC18F4550 where I have data defined in my memory and want to send it to PORTC character by character. I have done so but the values showing on PORTC are not the ones shown in the TABLAT register. For example, in my…
April Crude
  • 117
  • 7
2
votes
2 answers

Is it possible to create a PIC firmware binary that supports multiple different microcontrollers?

Due to the current chip shortage, I have had to purchase PIC microcontrollers that have a different specification to what was initially designed. Initial: PIC24FJ256GA606 Revision 1: PIC24FJ512GA606 Revision 2: PIC24FJ1024GA606 In this instance,…
wntwrk
  • 317
  • 1
  • 2
  • 10
2
votes
1 answer

How can i approach this program with creating a Boolean variable instead of cycling through branches?

I am programming a PIC1847q processor on the curiosity HPC board. My task is to design a battlestar galactica cyclon visor using the LEDs on the board. My current code does infact create and replicate the Cyclon, but I do not think the logic is…
Max Sorin
  • 21
  • 2
2
votes
1 answer

From MPLAB 8.92 to MPLAB X 5.25: how do I programmatically halt the simulator now?

I wrote some test code in PIC assembly language that I have no intention to run on the actual PIC MCU, rather it is meant to generate the trace files so that they can be analyzed later with a separate tool. So, I needed a way to permanently halt the…
Regus Pregus
  • 560
  • 3
  • 12
1 2
3
40 41