Quantcast
Channel: MPLAB XC16
Browsing all 1508 articles
Browse latest View live
↧

Read to bytes from UART and convert to int variable (luis_e7)

Hi All, I have an extrange behavior when try to convert two bytes in a int16 variable in xc16 compiller. I tried in different ways, reading some posts about it into the forum, but i can't figured out...

View Article


Generic processor include xc16 dspicc (marcov)

I'm doing some dspic CH/CK migrationary work, and encountered an issue; I'm used to doing something like #if defined(__dsPIC33E__) #include "p33Exxxx.h" #else #include "p33Fxxxx.h" #endif to include...

View Article


"Unified Bootloader Host Application" protocol (denos)

Hi. I need an exchange protocol between MCU and host application, which uses a program from Microchip, "Unified Bootloader Host Application". Since I need to write my own software for uploading the...

View Article

XC16 Optimization Bug (geezerGuy)

PIC24FJ256GA7 Curiosity Dev boardMPLAB X IDE v6.05XC16 (v2.00) compiler This one wasted a couple of hours and caused considerable head-scratching. I enabled Level 3 optimisation in my project and got a...

View Article

16-Bit Flash Programmer exe (PicTaylor)

Downloaded and followed AN1094 for PIC24HJ64 series, works great, however, the supplied command-line 'programmer' 16-Bit Flash Programmer.exe fails with a Visual C++ error "R6010 Abort() has been...

View Article


"_Noreturn" in stdlib.h yields error after updating to XC16 v2.0 (juju01)

I just downloaded XC16 v2.0 and tried to compile my project. As expected there are quite a few warnings in my own code, but what baffels me is an error in "\Program...

View Article

Generate PWM signal using MCC (Digital101)

So I'm brand new to PIC microcontrollers but have used AVR/ARM boards in the past. I have the dsPIC33CH CURIOSITY BOARD and I'm trying to generate a PWM signal using the code generated by MCC. The only...

View Article

Bootloader Application Post-Build Script Puts CRC in Wrong Location...

I am trying to use the 16-bit Bootloader library to create a bootloader and an application. I've managed to build both, load the bootloader onto the PIC24 using a PICKit3, and then load the application...

View Article


How can I generate a disassembly listing with source code? objdump (user2x)

Hi, XC16 1.45 MplabX 5.50 I need a disassembly listing file that also has source code in it. so I used:xc16-objdump.exe -dS myfile.X.production.elf > a.out This produces the disassembly ok but no...

View Article


Bit corruption, XC16 uses read modify write instead of bclr f,#bit4 ? (user2x)

XC16 1.45 PIC24FJ64GA702This is related bit corruption caused by interaction of interrupt code and normal code The compiler uses read modify write instead of direct bit operation BCLR f,#bit4 I have a...

View Article

PIC16F18326 DFP pack 1.15.191 is broken (cbeif)

I am getting these messages, when I compile using XC8 V2.31, does anyone know how to fix this? Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "C:/Program...

View Article

Controlling how the compiler compiles the project (Timo)

Hi, a newbii MPLAB X 6.0 question. Is there any way of controling the compile in MPLAB X? The project works when i have it in main.c but when i move parts of it to separate *.c files it's goes totally...

View Article

nbproject/Makefile-default.mk:118: recipe for target .... failed (Bit79)

Hello,I have a strange problem (for me) with a dsPIC30F6010A project in MPLAB X (V5.10).Often (non ever) during building project i have this error: make -f nbproject/Makefile-default.mk SUBPROJECTS=...

View Article


DC/DC Boost Converter (naeem1234)

Hello everyone I am looking for some help about how to implement a DC/DC boost converter with a dsPIC33? Your help is highly appreciated...

View Article

Point to GPIO register (smhn24)

Hi everyone, I have a new project and in my code, I want to read the live status of GPIOs inside an array of my custom struct.My opinion is to define a pointer property inside of struct that points to...

View Article


Undefined Reference error (sbukhzam)

Hi folks, i am testing the board IOT Sensor for Google cloud (AC164164) and when following the steps in the User's guide i got errors as below...any comments are appreciated.i tried on both versions of...

View Article

Compiler Optimizing Out Particular SPI Command (bassbreaker)

I am using a dsPIC33 and the system is working as expected, but when I turn on some optimizations, one particular SPI command does not seem to be sending and I don't have any intuition about what is...

View Article


BOOTSWP on PIC24FJ1024 is accepted, but code run after is from same partition...

Hi folks, I'm stuck on this one. I'm using a PIC24FJ1024 in dual partition mode (with MPLAB3.61 and XC16 v1.31), and programming the inactive partition with new code from within the running code. I...

View Article

Are the xc16 v2.0 libraries reliable? (bigkaba56@yahoo.it)

I tried to compile a DSPIC33EP512GM710 project (with version 1.60 it works perfectly) with the new version 2.00 First issue: using the vfprintf, i need to know the format of the FILE structure but it...

View Article

Optimizing DDS math for dsPIC33 (AndreaS73)

I'm using a dsPIC33CK256MP508 running at 100 MHz (FCY) to generate 3 waveforms with a DDS algorithm.Cutting down the whole problem, please look at this code: volatile DDS_t DDS;volatile uint16_t...

View Article
Browsing all 1508 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>