637 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
70
views
PIC-AS locations and debugging for 10F202 with OSCCAL at reset vector?
I am quite new to the PICs and especially with XC8 pic-as and MPLAB-X
I have a ultra minimal project i am working on, and i have some questions regarding the OSCCAL values located at the reset vector, ...
0
votes
0
answers
84
views
issues with "atof" function in MPLAB X IDE v6.25 with XC8 v03.00
I'm working on some code for a PIC microcontroller PIC18F47J53. I'm using MPLAB X IDE v6.25 and the package PIC18F-J_DFP 1.9.170. Both are latest versions.
A year ago, I used exactly the same code, ...
1
vote
1
answer
96
views
Why does my code give multiple definitions error?
I am trying to build the following code on my computer but I run into a lot of errors. The error says that g_tagParams and g_loggerparams are multiply defined in many of the functions. But these two ...
1
vote
0
answers
106
views
UART Proteus Simulation PIC24FJ128GA010
I want to make a simple UART transmission / reception from the PIC to hyperterminal in proteus. I will start by showing my code, then state the problem:
#include <stdbool.h>
#include <...
0
votes
0
answers
98
views
PIC Assembler, rlf behaving weird
I have a question, when I use this code in MPLAB IDE v8.92, Windows 11, when it arrives to the rlf line it behaves weird either if I use 0 or 1 for "d" in rlf. Values for j and k are 0xFF.
...
2
votes
1
answer
262
views
No language server found at path "". Language support for MPLAB projects will be unavailable
I am using the MPlab extension for VScode it has been working for very basic lines, but it always gives me this warning during startup. How do I fix this?
I have tried building more advanced projects ...
1
vote
1
answer
95
views
Why is the stopwatch for PIC32MZ2048EFM144 microcontroller always disabled?
I am using a PIC32MZ2048EFM144 uC. I wanted to know time taken for a routine called adc7768(). When I go to
window->debugging->stopwatch
and try to debug it gets hung. Debug will not happen. ...
2
votes
1
answer
499
views
Adapting Compilation Chain from MPLAB X IDE to VS Code with MPLAB Plugins
My code builds fine in the MPLAB X IDE (v5.454), but for usability I want to use VS Code with the MPLAB extensions.
My requirements include the use of the xc32 compiler v2.40. The example video does ...
0
votes
0
answers
46
views
MPLabX MCC - Text glitchy and unreadable
I've recently installed MPLabX IDE and I'm trying to use it. I'm quite familiar with both the IDE and the MCC, as I've been using them for over a year now (on my company's PCs though).
But at home, ...
2
votes
2
answers
106
views
Union of struct with one element vs union of element mplab pic32
I was looking at a pic 10 include file (p32mk1024gpk064.h) and was wondering why they added a struct with a single element instead of an union between a struct and an uint_32.
typedef union {
struct ...
0
votes
1
answer
92
views
PIC18F const variable at odd flash address
Is there any way to place a const variable to an odd address of the flash, so that the value is in the HEX file?
It needs to be at a specific flash address, i can not use the SAF Block because its to ...
1
vote
1
answer
763
views
How do I fix this module error when attempting to launch MPLAB-X IPE 6.20 version?
enter image description here
I am receiving this error when trying to launch MPLAB IPE 6.20 after downloading MPLAB IDE 6.20. Does anyone know how I can fix this?
I have uninstalled it and reinstalled ...
0
votes
1
answer
120
views
Upgrading from MPLAB ICD-2 to ICD-3 to move from PIC 18F87J10 to PIC 18F87K22
For my hobby I used to get boards for a particular device, and used to reprogram the microchip PIC 18F87J10 using MPLAB ICD-2 (I run it from my VM VirtualBox running Windows XP). Now the company from ...
2
votes
1
answer
117
views
Pic18f47k40 EUSART setup
I am trying to implement Modbus RTU in a device that has a PIC18f47k40 MCU with baudrate of 19200.
I started by setting up eusart1 for sending and receiving.
This is the code in main.c that is ...
1
vote
0
answers
367
views
How to read Flash ID (RDID) through SPI?
I try to read Flash ID (MX25L51245G) through SPI and my MCU is PIC32MX360F512L. According to the datasheet, the command should be 9F and receive C2 20 1A. But I always receive wrong ID data.
I tried ...