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

Can't find VGDD error (JustRob)

I'm using the Visual Graphics Display Designer with the pic24fj256da210 development board and the 3.2" touch screen. I'm having a hard time tracking errors in the generated code. The project is simple...

View Article


Compiler throws error on dsp code part (Daimonion)

Hi I'm trying to compile a math library which was developed under c30 v3.30. One function works with some dsp function like __builtin_sac,__builtin_mac, etc. The function defines at the top a variable...

View Article


3.5" LCD design help (JustRob)

I'm using the pic24fj256da210 development kit with the 3.5" touch display module. This is my first graphics design. I downloaded and installed Harmony but that is for pic32 processors. I can't find the...

View Article

__builtin_write_NVOL() writes to wrong address (Sean831)

I am writing a custom bootloader for a dsPIC33EV128GM102 and it is mostly working fine until I get to the following lines in the hex file: :020000040002F8 :109384004F05000000000000000000000000000085...

View Article

Unable to view disassembly (JPittenger)

I am trying to debug a crash in my program. I have an exception at address 0x000036C4. Since I wrote in C code, this doesn't mean a lot to me. I would like to load the disassembly file to find out what...

View Article


PIC24H Low / High bits for SFRs? (Cimmerian)

Hi There Im trying to use the filio MLA however xc16 is complaining about some defines being undeclared eg SPI1STATL / SPI1STATHIve noticed that for the PIC24HJ128GP204 and I think other H series...

View Article

XC16 - ELF file output - Symbols have zero "st_size" (drodgers_ls)

So, I've hit a brick wall, and I'd like to know if this is in fact a bug/oversight in the XC16 compiler, or if there's a reason behind what I'm seeing. I've written an ELF file parser in C# to extract...

View Article

Will (leading underscore) _function(); cause problems? (Rowlandski)

MPLABXv3.55dsPIC33EP512MC806Win7 I've been creating functions and placing a single underscore before the name: void _somefunction (void){} Will the underscore cause me problems?The compiler hasn't...

View Article


Creating and using a ROM string (JPittenger)

I have a PIC24 program running on Windows 10, MPLAB X IDE v3.15, XC16 v1.26, PIC24EP512GU810.I have a string that I want to copy over to an output buffer.Currently, I am using strcpy, and have the...

View Article


Making sure a uint8_t[x] buffer is located on an even address (GoEk)

Hi,is there any way in XC16 1.24 to make sure/force that a uint8_t buffer is located on an even address? Why? Well, I have raw byte buffers that I access using pointers-to-structures within the buffer,...

View Article

Encrypted function, with UART control (Rowlandski)

Is it possible to have an encrypted function within your code, where a UART command can unencrypt it and then use that function?..

View Article

error: 'for' loop initial declarations are only allowed in C99 mode - Solved...

I've just pulled in sum code i wrote a while back and i'm getting the following error: error: 'for' loop initial declarations are only allowed in C99 mode How do I allow "C99 mode"? long power (long...

View Article

Using __builtin_write_NVM, etc (XC16) (rallyr)

I'm trying to erase and rewrite a part of Program flash memory in my dsPic33EP256GP504. I have no trouble with the builtin XC16 functions to read flash, and I get exactly what I expect. But the write...

View Article


Accessing Constants in Program space (Weydert)

XC16 v1.31 Device dePIC33EP512GM710 Hi,for a Flash-Programming Project I had a code like this:const unsigned int __attribute__((space(prog),address(0x15000),section("myFlashSpace")))...

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


I wish to pass a enum from one function to another... (Rowlandski)

I have the following: typedef enum {cntrl, status, fault, minPower, maxADIN, powerThreshold} td_i2cRegisters;unsigned char i2cReadRegister (td_i2cRegi..

View Article

dsp vector functions (merc1481)

Hi, I recently posted a similar question in another thread, regarding the DSP vector functions. I apologize but this issue is really starting to bother me, as I've spent hours and hours trying to get...

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

itoa with radix (tuxx)

AVR-GCC: char *itoa (int __val, char *__s, int __radix) XC16: char *itoa (auto int value, auto char *s); on XC16 i dont have a way to use this function with a radix. Is there a way to convert a byte...

View Article

Developing main application for PIC24 (W5CBF)

I just started learning Microchips . I am currently learnign how to control the peripherals (the UART, right now). I have been researching about the good practices and procedures to write a main...

View Article
Browsing all 1508 articles
Browse latest View live


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