DSP Lib : Small Code Model Problem (jyaron)
The XC16 linker is too dumb to position the 32-bit FFT functions and generates the below error: C:\Program Files\Microchip\xc16\v1.21\lib\libdsp-coff.a(ep_fft32.o)(.libdsp+0x14): In function...
View ArticledsPIC30F6014 Wrong Clockspeed (Christian1313)
I have a simple Project with the dsPIC30F6014 with an external oszilator with 10Mhz.My configuration should multiply the freuqency x8. With this I should get FOSC/4 => 20 Mhz for the Timer1. With a...
View ArticleLinking error with dsPIC33EP512MC506, but not with dsPIC33EP128MC506 or...
I have a project that should run on a dsPIC33EP128MC506 when arriving production state. The project compiles fine without error. For testing purpose the prototype boards have a dsPIC33EP512MC506 with...
View ArticleDoes XC16 support variable-length arguments functions? (grchy)
Hello, everyone. I am using XC16 compiler to program PIC24F16K101. Now I need to implement a variable-length arguments function which max length of args is less than 10, but can't specify exact count....
View ArticleWarning: large integer implicitly truncated to unsigned type (Wieschebrock)
Can someone give me a hint why I got this warning (only) the marked lines? _LATA1 = (0x88 & 0x01); _LATA1 = (0x88 & 0x02); _LATA1 = (0x88 & 0x04); _LATA1 = (0x88 & 0x08); // large...
View ArticlePIC24FJ128Ga106 MLA file I/O (yo123)
hi, i want interface sd card with PIC24FJ128Ga106 , but as i have search i found that MLA fileio library is used for interfacing sd card . can anybody tell me the flow of MLA library for sd card...
View ArticleEasy Bootloader example failure (squin)
I would like to implement a boot loader on a PIC24FJ64GA002. So I have made sure everything is right up to date MPLAB, Java etc. I downloaded the boot loader code (ezbl-v2.04) and worked through the...
View ArticleCan't compile with v1.32 or v1.35 on Linux (jnnewton)
I'm having issues with newer compilers on a project configuration. If I build with v1.31, here's the output:xc16-ld 1.31 (A) Program Memory section address length (PC units) length (bytes) (dec)...
View ArticleProgram memory used greater than available program memory ? (perencia)
I have modified the default linker script to reduce the size of the program (I've just changed the program (xr) LENGTH) and I don't understand the mem repo. How can it be that 1) total program memory...
View ArticleUART - uart2_rxByteQ[] does not receive data (juris)
Hello. These are my first steps at electronics and Microchip. So a little bit of help would be appreciated. I am using XC16, PIC24FJ1024GB610, Explorer 16/32 board, and RS485 click on it. Program is...
View ArticleECAN in Dspic33ep256mc502 Reception problem (Ouseppachan)
#define NUM_OF_ECAN_BUFFERS 32unsigned int ecan1MsgBuf __attribute__((aligned(NUM_OF_ECAN_BUFFERS * 16))); void EcanRxInit() { C1CTRL1bits.REQOP = 4; //set in configuration mode...
View ArticleFlasher help for GM series PICs? - SOLVED! (JimDrew)
I am trying to write a bootloader for a dsPIC33EP128GM310 part. I have already discovered that the simulator does not show the proper page erase results, so I have abandoned debugging with it. With...
View ArticleDongle License Installation issue (playfulwind)
I got a XC16 USB dongle (for XC16 PRO compiler) and tried to install the PRO compiler on two laptops - one is HP laptop with Win10; the other laptop is Lenovo with Win10. Both laptops had MPLAB X IDE...
View Articledata conflict at address XX with XC16 1.35 (SMark)
I´m trying to complie a proyect with XC16 1.35 wich works properly with 1.24.This proyect has an included loadable used for bootlader (compiled with XC16 1.35)I get the following using XC16 1.35:...
View ArticlePIC24 INTR1 interrupt service routine problem (yo123)
hi,i am trying to generate external interrupt on RP0, for that i have write a code. but it is not showing output. as i tried on INT0 , it is working fine but the same thing on INT1, not showing output....
View ArticleLocalization for stack error (Maple)
Hello, everyone! I tried code example "ce407_stack_error_trap" in MPLAB Simulator(MPLAB v3.61 & XC16 v1.32). It is great that the simulator told me where the error come from. but I set an...
View ArticlePreserve ROM range (leosw)
Hello, I was using a bootloader in PIC18F chips with success confiruging ROM range in the compiler settings. I'm now working on a dsPIC33E variant, and the compiler is now XC16. How can I set a custom...
View ArticleCannot explain Link Error: Could not allocate section (vibemac.1)
Goodmorning, I've merged a working code into the ezbl bootloader and when i Build the project, this kind of error appears for three variables: Link Error: Could not allocate section .nbss.''variable...
View ArticleGenerate multiple binaries with different define value (leosw)
Hello,I need to build 16 different hex files on my Windows host with same source code, by only changing the value of a define (from 0 to 15).Is there a way to automate this process?Regards,Léo..
View ArticleADC7175-8 driver (juris)
Hello , I am using Explorer 16/32 with MIKROE-2979 click board, ADC 4 click, and a PIC24FJ1024GB610. Also I have SPI driver for Analog's ADC7175-8( https://wiki.analog.com/r...ware/uc-drivers/ad717x...
View Article