USB communication not working in v1.26 (bareil76)
Hi, I just upgraded to v1.26 of the xC16 compiler, I had 1.24 before. Now my usb communication is not working. What happened?..
View ArticleHow to create a variable in the progam memory (EH)
Hi Community, I want to save a value which is valid after a new power on. Therefor I want to use the program space of the PIC. Unfortunately there is no EEPROM. When I read the compiler manual, I use...
View ArticleMicro SD Card Disk Struture: Read via SPI mode (PIC/SPI) vs read via PC/card...
I created a simple file called "generic.txt" contiaining "88888888882222222223333333333" and stored it to a Panasonic, SDHC, 4 GB micro SD card formatted for FAT 16. I am using Microchip AN1045 as a...
View ArticleDelay function in XC16 (jalpa)
Hi, how to use delay function in XC16 for pic24f series?..
View Article[SOLVED]: Do not understand: assignment from incompatible pointer type (CJP)
Hi, Despite reading several internet and forum questions/answers I do not yet understand why the following code generates an "assignment from incompatible pointer type". And why does the code work ok...
View ArticleMicro SD Card: How to calcute location of data portion (dekk______0)
The attached file contains the first 1000 non-zero sectors read from a Panasonic, SDHC, 4GB micor SD card formatted for FAT16. I figured out how to calculate the location of the root directory from the...
View ArticleUnable to specify the absolute address of a function assigned to a section....
I am unable to specify the absolute address of a function assigned to a program memory section defined with a custom linker script.Currently I havebootloader 0x9000 : { *(bootloader); } >program and...
View ArticleXC16 not treating 'inline' functions correctly (Dhersneg)
Following the direction in section 13.6 of the MPLAB® XC16 C Compiler User’s Guide I've declared some simple methods inline. I've added the '-finline' (as well as '-Winline') compiler options. However...
View ArticleXC16 assembly (MicroStef)
Hi XC16: 1.26CPU: dsPIC30F5015 1)I can not find a document describing the assembler for this CPU, that is, what does "ZE" do and mean etc.I only get "hits" for the MPLAB® XC16 ASSEMBLER, LINKER AND...
View ArticleC# PC Bootloader available (John Dekker)
I have been playing around with XC16 for the first time after using PIC18F devices for the long time for which I have written many support tools for my own use. I choose the dsPIC33FJ128MC802 for...
View ArticleHalts when UART is enabled (dekk______0)
Forum, PIC24FJ128GA202XC16Debugging Made mother board and daughter board pair a while back. The daughter board contained the pic and the mother board contained a header for the daughter along with SD...
View ArticleUsing "pragma config" for configuration bits? (arigead)
cleaning up lose ends and still trying to find documentation on using "pragma config" currently I'm using things like: _FOSCSEL( FNOSC_FRC & IESO_OFF ) for which I get a deprecated warning. That's...
View ArticleInstruction mov.b [w1+w0], w1 on PIC24F (radikn)
Hi all, I watched as xc16 compile C source code into assembler. I teach according to him. And I found instruction mov.b , w1. I was looking for in the manual, 16-bit MCU and DSC Programmer’s Reference...
View ArticleCan XC compiler produce PIC24 assembler source code? (gardener)
And if so, is there anything special one has to do in MPLAB X to produce them? I see .hex files and .o files, but not .s, or .asm...
View Articlelibpic30 not found by linker (daans)
Hi, i'm currently working on a makefile project for a pic24 device. i can compile using xc16-gcc, no problem, all my object files are created by the compiler. The next thing i want to do is link the...
View Articleelf-ld.exe has stopped working (JPittenger)
I am working with MPLAB X IDE v3.15, compiler XC16 v1.26.Everything has been working fine. I've been making changes to my project daily for about a week. Then yesterday, near the end of the day,...
View ArticleUndesired Reset dsPIC33EP (dellectronics)
Hello!I'm using a dsPIC33EP512MC806 and XC16 vers. 1.26 Reading 2 different bits on port B, well TRIS and ANSEL registers setted, I get an undesired reset when I put a 1 on one of the pins (RB2), I...
View Articleentry point xc16 (daans)
Hi,Does anyone know if I can change the entry point of the pic?I would like to jump to a function 'resetprogram()' after the pic starts running instead of directly jumping to the 'main()' function.We...
View ArticleLicense expiration nagging (nwetter)
We have a monthly lease for XC16, which automatically renews. For the second half of the month or so, I get all these warnings in red text that my license is due to expire in x days. It really is...
View ArticledsPIC33EP512GP flash memory write (COSMO LITTLE)
I am using this processor with EDS memory to access all the RAM. As far as I understand, this means that I cannot use PSV as well. Is this correct? I want to store a small amount of data in flash...
View Article