747 questions
1
vote
0
answers
125
views
How to make The text is not visible on the HD and program work?
Program does not work. Text is not visible on the HD, the speed should be visible on hd. Buttons should change the speed and direction. Maybe there are incorrect connections or mistakes in code or LCD ...
1
vote
2
answers
96
views
UART with PIC32MX150 bare metal
I'm newish to PIC32 chips. I would like to connect my PIC32 to a RS485 MAX3485. That bit is fine, but what I can't manage to do is receive anything through the UART2 interface. Tx is fine it's just Rx....
2
votes
1
answer
101
views
ADC_READ for PIC
I made a code using ADC_Read function in MikroC PRO IDE, but the code doesn't build, and the following error message appears:
the variable ADC_Read isn't declared
I'm using a PIC12F675 with an ...
3
votes
2
answers
171
views
Wrong LED turning on using microcontroller PIC16F1829
For this assignment I'm using the PicKit3 microchip PIC16F1829, lesson 8 from the PicKit starter guide.
I wrote the following code for my assignment that turns DS3 on (but for some reason it turns on ...
1
vote
0
answers
53
views
On dsPIC33 processor, what would cause auxilary PLL to lose lock?
I have a power supply board using a dsPIC33EP processor. The firmware runs fine for hours on end, but occasionally hangs, which appears to be caused by a soft trap caused by the Auxiliary PLL going ...
0
votes
0
answers
68
views
Compiling PIC32 vendor code with XC32: Error when compiling assembler-file
I am currently working on getting rid of MPLAB-Harmony-dependencies. Microchip makes the crt-source-code available as assembly-files with each compiler version. I am using xc32 version 4.2.0. I am ...
1
vote
1
answer
88
views
How do I get ADC to work on an ATtiny212 using Microchip Studio C code?
I am new to the tinyavr 1 series microcontrollers. I've tried copying the basic example out of the Microchip TB3209 guide, but it doesn't seem to do anything.
I use the below code, where PA3 is an LED ...
1
vote
0
answers
55
views
GPSIM external stimulus issue
I have a simple circuit (with PIC16F628) which repeatedly measures the frequency of a signal connected to Timer1. I use Timer2 as a timing gate. To simulate the 'system', I used GPSIM, but I'm having ...
0
votes
1
answer
65
views
Microchip WLR089 ASF LoRaWAN library initialization
I'm trying to implement a minimal LoRaWAN setup for my WLR089 Xplained PRO. I've set up a simple project using the ASF wizard in Microchip studio 7. I have all the necessary libraries included for my ...
1
vote
0
answers
414
views
How to resolve the dependency issue in VectorCAST for Microchip source code
I need to do software testing and validation for the PIC16f15214 source code using VectorCAST.
But when I build the environment it shows the "compiler error" / "can't open the 'XYZ.h' ...
2
votes
1
answer
435
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
Microchip dsPIC33CK256MP506 SPI Custom word size only transmits first 6 bit values
I'm setting up an SPI (on a dsPIC33CK256MP506) to behave as an synchronous UART (only transmitting as a slave).
Since SPI starts to transmit MSB I start with adding a start bit in front, then 8data ...
1
vote
0
answers
41
views
Pic16F15313 and ESP8266 only getting an error response
I'm just trying to send a simple AT command but only getting back error responses indicated by my LED flashing twice. ESP8266 document tells me I should be using 115200 for the baud rate. My power ...
1
vote
2
answers
79
views
I get the error [PIC18] PC=0x0000. $MCLR$ is low. The processor is in reset. [U1] in my simulation
I am making a code in PIC C compiler to turn on and off a LED. However it is not working on my physical board or in the simulation.
Error message is:
[PIC18] PC=0x0000. $MCLR$ is low. The processor ...
0
votes
1
answer
46
views
Simulating T0 external clock for Timer0 on Microchip Studio with ATmega328p
I've setup Timer0 to work with an external clock on pin T0:
TCCR0A=0x02 // CTC Mode
TCCR0B=0x07 // Start timer on external T0 clock (rising edge)
OCR0A=90 // Compare after 90 clock ticks
TIMSK0=0x03 //...
0
votes
0
answers
172
views
cfg80211 driver problem on 6.1.22-linux4microchip-2023.04
I'm working on embedded Microchip device with "6.1.22-linux4microchip-2023.04"
I want to connect to it Wlan SDIO device .
when I run the driver I get this error:
"moal: Unknown symbol ...
1
vote
0
answers
98
views
Mqtt connection provider for pkcs11 is unavailable during Greengrass setup with ATECC608B-TNGTLS HSM
I am trying to setup Greengrass Core on my Yocto based device with an ATECC608B-TNGTLS HSM. I have it setup as follows:
root@blox-rema:\~# p11tool --provider=/usr/lib/libcryptoauth.so --list-tokens
...
1
vote
0
answers
62
views
Bootloader Questions for Microchip SAMD51 processors
I am trying to implement a bootloader for SAMD51 processors.
At this stage, it looks like I will have to write my own bootloader, and I am new to this, so I have a few questions. However, considering ...
2
votes
0
answers
118
views
Using the enhanced ccp1 in pic18f does not output PWM
I was implementing a driver for ccp1 peripheral and after implementing it and using proteus for simulation, the enhanced PWM doesn't work while I made sure that the CCP1CON is loaded correctly and ...
0
votes
0
answers
71
views
AVR ASM, EEPROM being written to before being specified
enter image description hereIm trying to build a digital safe using the ATMEGA32A micrcontroller. Ive read through the date sheet for read/ writes to EEPROM which is fine but my program seems to ...
1
vote
0
answers
87
views
Why isn't the 0 on my keypad being recognised?
I was trying to finish my project using an physical OUSB-IO board on a ATmega32A board using Microchip Studio's C to create a stopwatch and timer on the same LED board to indicate that it's working. ...
0
votes
1
answer
89
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
727
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
117
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 ...
1
vote
0
answers
69
views
Microchip XC8 - Unexpected data memory increase after deletion of variable
I am currently optimising and streamlining development code in preparation for release.
Hardware and compiler specifics as follows:
PIC18F46J11, MPLABX, XC8 - V2.45, C99, Optimization level 1
See ...
3
votes
0
answers
94
views
Reserving a block in Flash memory on PIC24FJ128GA306
I am using the PIC24FJ128GA306 microcontroller and trying to reserve a block in flash memory to store persistent data. Here is the code snippet I am using to define and allocate the persistent data:
...
1
vote
1
answer
98
views
CALL command creates call to 0x0 rather than to 800h
This is a large program now so just a bit of the source code below.
**DISASSEMBLED CODE:**
0164 0739 ADDWF 0x39, W 531: addwf Trigger777,0 ;to get proper patch table
0165 0733 ...
0
votes
0
answers
234
views
The VMA and LMA in the section of the GCC link file are different, resulting in function exceptions
I used a Cortex-M4 chip similar to STM32, and now I want to place some frequently used functions in the fast Flash area, so I wrote the following code:
.flash_zw0 : ALIGN(4)
{
*(.flash_ex)
} ...
0
votes
0
answers
213
views
How to access an embedded controller registers from a kernel module
I have a platform based on an Intel CPU with a Microchip EC (Embedded Controller) (MEC152x). I'm trying to write a kernel module that access the watchdog timer registers through the EMI (embedded ...
1
vote
2
answers
123
views
Analog data operations do not work in PIC12F675, there is not even a reaction on GPIO pins
This Analog data is read and the number 1-5 is shown on the 7 segment common anode display with 7447, but I can't set this number for analog value because I can't show analog values or output I wrote ...
0
votes
1
answer
157
views
Requesting a simple code for PIC10F200 using MPLAB XC8 Compiler [closed]
I can't program this microchip (using a PicKit5, should be no issues), either because its too old or I'm lacking a lot of knowledge.
So the program gets written correctly with no errors, but when I'm ...
2
votes
0
answers
101
views
Union 32-bit (u)integer synthesis
In XC16 (for the 16-bit dspic33E***MU8xx and MC family) I use union QEICounter and similar unions to convert two 16-bit words (e.g. read from UDP/serial) to 32-bit int32_t or ulong, which is defined ...
1
vote
0
answers
159
views
Microchip Studio: Could not read memory content for stack variable
I have a problem when debugging a firmware.
I work with Microchip Studio Version 7.0.2594 and a microcontroller called "ATSAME54P19A".
I can build the software without any warnings and ...
2
votes
2
answers
185
views
How to accurately predict loop execution duration?
I am writing a program that requires me to know the execution time of a function, given any number of loops. Upon fine tuning I discovered that the execution time is non-linear, and I would like to ...
0
votes
1
answer
855
views
Microchip MPLAB X IDE: configure and run a shared pre-build-step Bash script that runs in both Windows and Linux as part of the build process
Our team has a mix of developers on both Windows and Linux, and a shared code base that has to be able to compile on both, in the Microchip MPLAB X IDE v6.20, for PIC32 microcontrollers in our case.
I ...
2
votes
2
answers
112
views
Verifying checksum for MCP3561/2/4R
I have an SPI communication with the chip in question.
https://ww1.microchip.com/downloads/en/DeviceDoc/MCP3561.2.4R-Data-Sheet-DS200006391A.pdf
According to the datasheet, section 6.5, after reading ...
0
votes
1
answer
59
views
dspic33ch512mp508 Modulo Addressing
Modulo Adressing on a dsPIC33CH512MP508
I am trying my best to get Modulo Adressing to work on a dsPIC33CH512MP508.
How ever i only get it to work on X-data-memory not Y-data-memory to work, I cant ...
0
votes
0
answers
58
views
Microchip c18 placing rom data in idata
I have a project that was released as a product, last code update about 4 years ago. Compiled with MicroChip C18 (I also have XC18 available but that's another story). I am attempting to get it to ...
0
votes
0
answers
53
views
Is it possible to obtain a trace output from the Microchip Debugger?
Testing an assembly program in Microchip Studio (V. 7.0.2594) shows a strange behaviour which probably is caused by a bug in the EEPROM simulation. Running through my program with the debugger without ...
1
vote
1
answer
157
views
CANbus formula for BRP, Stage1, and stage1
I was in the process of trying to set the frequency of CAN to 250khz on a SAMe70 microchip board and all the Atmel documentation was flat out wrong. I found a few others post about how their ...
-1
votes
1
answer
503
views
How to re-write an nfc tag (rfid/microchip) which is READ-only
how to rewrite an nfc tag (microchip). when is scanned whith the NFC Tools app their characteristcs are:
Tag type: ISO 14443-4
Technologies available: TypeA, IsoDep
Serial number: XXXXXXXXXX
Size: 15 ...
0
votes
0
answers
94
views
Assigning RCREG value to a variable clears it
Sorry to bother you, but I've been encountering an issue while trying to assign data from RCREG to a variable. In all the other PICs I've used (currently using 18F4550), it was quite straightforward. ...
0
votes
1
answer
714
views
How to modify default empty string on U-Boot to stop Autoboot in Yocto
I am using the SAMA5D27-SOM1-EK-SD evaluation kit and I would like to make some changes to U-Boot, in particular the Autoboot settings. I am able to load a kernel image using Yocto, and by default ...
0
votes
1
answer
289
views
Is there any other way to write to Flash memory other than PROGMEM?
I am using Attiny1616 with Microchip Studio.
I want to store many results obtained from the code calculations in FLASH memory.
I found that the PROGMEM, which preserves constants, does not enable me ...
-1
votes
1
answer
140
views
Self-written micros() for ATtiny13A works 10x slower
I am trying to make an analog of the Arduino function micros(). To do this, I have programmed a timer as indicated in the code.
#include <avr/io.h>
#include <avr/interrupt.h>
volatile ...
0
votes
1
answer
229
views
Unable to make Bootloader PC jump to application address 0x4000 in Program flash memory
Can someone please help me.
I am using PIC18F26Q10 mcu
bootloader code starts from 0xF00 and application code starts from 0x4000
The below code is what I tried out but the switch doesn't seem to ...
1
vote
1
answer
474
views
Problem in receiving data from BNO085 over I2C interfaced with SAMD21
I have interfaced BNO085 with SAMD21G18A controller via I2C synchronous communication running at 100KHz on SERCOM1 of controller and processor is running at 8MHz.
I am trying to read Gyroscope and ...
0
votes
1
answer
179
views
Issue related to delay in ATmega4809 Curiosity Nano Board
I'm new to "ATmega4809 Curiosity Nano Board", I was trying the simple Blinking of LED with a delay of 1second. But the delay which i achieved is 1.24seconds.
How do I regulate this ? Please ...
0
votes
1
answer
141
views
PIC18F2550 assembly code for turning led on with a switch isn't working
This is the code made in MPLAB X with compiler XC8 :
PROCESSOR 18F2550
#include <xc.h>
; CONFIG1L
CONFIG PLLDIV = 1 ; PLL Prescaler Selection bits (No prescale (4 MHz ...
1
vote
1
answer
118
views
dsPIC33 SPI AUDIO interrupt not firing
I have setup SPI2 on a dsPIC33CK64MP505 to receive Left adjusted audio as a slave. If I run the code by polling the SPI buffer, I get data in and all is dandy. However I need the synchronization of ...