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

Dual partition pragma not working (Lazzarini)

Hi, I'm doing a bootloader for a PIC24FJ256GB410 and it is working for a single partition.But when I try to change configuration of BTMODE to DUAL the code can compile and load, but it has an error:...

View Article


space(dma) not supported for dsPIC33EP512GP502 (jyaron)

The following line compiles under XC16 and actually works on a dsPIC33EP512MU810: __eds__ ECAN1MSGBUF ecan1msgBuf __attribute__((__eds__,space(dma),aligned(ECAN1_MSG_BUF_LENGTH*16))); But, I get the...

View Article


Compiler bug. if() statement - missing code (pcmgold)

Compiler produces no code with if() statement when comparing char variable against a constant. XC16I would class this as a serious compiler bug!There is no warning and the resultant code is missing in...

View Article

XMODEM Bootloader for 24FJ64GA004 (binaryman)

Greetings, Is there a C language x-modem boot loader already developed for microchip UCs ? I am aware of the Microchip AN1157 app note and boot loader. I have spent two weeks playing around with it. I...

View Article

how best congregate multiple LABxbits? (neworld)

i would like to use a structure to access different chip-selects that are on different ports. anyone have a neat trick of doing this?..

View Article


Some experience how to handle fixed point (Nikolay_Po)

Hello peoples!I'm a beginner in PIC24 and C both. Have spent some time figuring out how handle the trigonometry functions and how fast they are on non-ds PIC.Here is some code and test results of...

View Article

Serial port – data on 16bit (viki2000)

I want to repeat and follow next example:http://www.microchip.com/.rums/m790718.aspx#989435I struggle to get the data on proper format and worse only with 8bit resolution.I used MPLABX provided project...

View Article

Change XC16 version in toolchain (clarossi)

HiI'm using MPLAB X IDE 3.65 and XC16 1.25 for a project based on PIC24HJ64GP206A device.I have installed (manually) XC16 1.31 to use it on my project but when i try to change the versionin project...

View Article


I found a bug in XC16 ? (JanJansen)

Hi, last week i was programming a DSPIC33FJ128GP802 in XC16 and found something weird.I installed the latest version today, the bug is still there. I try make bandlimited waveforms copying sinus data...

View Article


How to read UDID PIC24FJ1024GB606 (michael.dale)

I am wondering what the correct way to read the UDID on this part is as all I can get is 0's, none of the following seem to work unsigned int UDID;unsigned int *DIDIPTR = (0x801600); UDID = *DIDIPTR;//...

View Article

Timing is inconsistent for One Wire Protocol implementation? (arigead)

Hello XC16, (XC v1.26 just noticed the update) I'm writing a quick and dirty implementation of the One Wire Protocol on a dsPIC33EP256MU806 running at 60MHz. In the Read time slot, of the protocol, I...

View Article

How to read program counter in XC16 at dsPIC (Neiwiertz)

Hello Is it allowed/ possible to read both the PCL and PCH sfr register(s) in XC16 at dsPIC(and combine them for example into a unsigned long) i found this simular post is the PCH direct readable at...

View Article

Struct members getting clobbered when Optimization Level is set to 1 (KTrenholm)

Hi all, First things first, I'm using a PIC24FV32KA302 with XC16 v1.31 and MPLAB X v3.65. I'm having a weird optimization behavior where a structure with 15 members is getting the first 5 members wiped...

View Article


Not so large array (const unsigned char Pic1[2048]) problem? (RodoPIC)

Hi all, This is for PIC24F32KA304, MPLAB X 4 and XC16 1.31 on a Windows 64bit laptop. I'm trying to display a 32x32 pixel icon on a tft and I could not get it to work. I tried a smaller icon (24x24,...

View Article

Could not allocate program memory with const 300k byte character array (olochua)

Hello, I have never manipulated compiler options on the IDE before, so I am pretty sure I messed up somewhere. The upload feature is not working for some reason. Please click on the Google drive...

View Article


XC16 : Convert Float To String (karan123)

Hello, I have strange issue with XC16 with below code.float Test = 12345.6unsigned char LCDBuffer;sprintf(LCDBuffer,"%.2g ",Test) ;LCDString((unsigned char * ) LCDBuffer);I have got below Errors and...

View Article

BootLoader on dspic33EP256MC204 (_Korbes)

Hello everyone... After reading lots of articles here, I still have doubts about writing a bootloader and combine it with an application, specially for this MCU (dspic33EP256MC204).The main doubt is...

View Article


Reading variables or structures from EDS area (SMALLSMT)

Why is it possible to write variables or structures in EDS area without caring EDS page bits.But If you try to read you need to set the EDS page bits.If not you receive the corresponding flash content...

View Article

What means "Warning: Invalid FBSLIM setting" (viktor_shemyakin)

I try to compile simple project for PIC24FJ128GA702,using MPLAB-X 3.60 , xc-16It compiles OK, but shows warningc:\program files\microchip\xc16\v1.31\bin\bin/elf-ld.exe: Warning: Invalid FBSLIM setting....

View Article

FFT not working on DSPIC33EP512MU810 (SMALLSMT)

I tried to use the FFT from XC16 library at 256 points.Everything is exactly like FFT example but finally the code delivers random results.The EDS problem solved data can be written to this area but if...

View Article
Browsing all 1508 articles
Browse latest View live


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