Is the PIC24 / dsPIC33 family being phased out? (Tony_a)
I'm just wondering about Microchip's commitment to their 16bit MCUs, because it seems that issues which have been reported and acknowledged with XC16 never get fixed. Apart from new product support,...
View ArticleRedirect PrintF to serial port with XC16 compiler (grahamst)
Hi, I want to redirect printf() to use one of my serial ports. It seems to default to use UART1, but there is no documentation on how to redirect to another port ???. For XC32 I found an article to...
View ArticleLarge RAM Arrays (mschmelz)
Hi, I am using PIC24FJ256GB206, it has 98304 bytes of RAM. Using MLABX V1.51, XC16 V1.10. Is it possible to define a really large consistent array of chars, eg. char BigArray ; //?? Although I tried to...
View ArticlePIC24FV32KA304, can HLVDIN be used in parallel to ADC12 (AN12) on pin 10...
PIC24FV32KA304, can HLVDIN feature be used in parallel to ADC12 (AN12) on pin 10Data sheet not clear to confirm if this is possible...
View ArticleSimple way to pack a string? (Pete Ruddock)
Hi,I have a string in ROM memory declared asconst unsigned char __attribute__((keep)) __attribute__((space(prog), address(0x28800))) bootver[] = {'B','O','O','T','0','1'}; In memory the string is...
View Article_EEDATA (ad5oj)
Does anyone have an idea why this example line from the XC16 compiler, gives "unable to resolve the identifier"? I am trying to initialize some data in the EEPROM space and can't seem to figure out how...
View ArticleCalculation that appears to crash XC16 (sjb741)
Please can someone try this - see if you too see the problem?I can see it may overflow, but nothing seen in traps.c (_trapISR _MathError() doe not get hit).In fact none of the traps seem to be...
View Articlecompute atan2 with LUT (Dukenukem)
Hello everyone, I want to calculate atan2 function with my dsPIC and i thought that it could be done with a Look Up Table since it doesn't have much spare time in the loop. So i declared a matrix like...
View ArticleQuery about compiler for dsPIC (amtech)
Dear sir,Thanks for reply.I do not require any code optimization. Is there any limitation during compilation in memory size in KB or not ? Thanks & Regards,Vijay Prajapati...
View ArticleWarning about Invalid Interrupt Vector names for device (jmag99)
I upgraded from C30 V3.30 to XC16 V1.21 and am getting a slew of these errors: ../ir.c:204:1: warning: Invalid interrupt vector names for device '24FJ256GA106' are:_T2Interrupt The code does operate...
View Article--report-mem does not show auxiliary Flash usage (SwissCheese)
Hello everyone, There is a small issue with the XC16 linker which bugs me. I'm using code in both the general and the auxiliary Flash segment (I'm using the dsPIC33EP512MU814). Now, when I use the...
View ArticleIs there a proper name for the auxillary flash interrupt routine?...
In the main flash memory, all the interrupt service routines have pre-defined names (e.g. __NVMInterrupt, _CNInterrupt, _INT4Interrupt). These are defined in the linker file for the device...
View ArticleDefinition of a "hard register" as it related to clobbering and inline...
Example 13-4 in the XC16 Compiler User's Guide talks about clobbering of "hard registers", but does not define this term. I've tried searching the forums, the XC16 docs, microcontroller datasheets, and...
View ArticleHow to generate long calls without changing memory model (dsPIC33E) (icefield)
My apologies for the cross-posting, I originally mis-posted this question in the C18 Forum: I have call (pardon the pun) for a few branches and/or calls between normal code memory and auxiliary flash...
View ArticleNHD-3.5-320240MF (iman.y)
HiI'm working in a project which is have NHD-3.5-320240MF and PIC24fj256da210. I used this link for writing the program I followed the instruction in this link but when I build the project I have this...
View ArticlePIC24 asm cannot be built - "no rule to make target" (Bal)
Hi All, The specs:PIC24FJ128GA010 in an Explorer16 dev boardMPLAB X 2.05XC16 toolchainMac OS X 10.9.4 The issue:When I try to build my very simple asm project (1 asm file with 10 lines of code), I got...
View Articlelength of names of struct member (Wieschebrock)
this compiles well: typedef struct { unsigned int Ui_Status_save; // Status unsigned int Ui_error_save ; // ERROR unsigned int Ui_IPA_ON; // IPA-Ansteuerung unsigned char Ui_FM_Status; // FM Statusbits...
View ArticleProblem writing to flash (RTSP) on dsPIC33EP (pandalet)
Hi All I've run into some issues with writing to flash, and although I've followed the various threads and docs, I can't see what I'm doing wrong. The system is running on a dsPIC33EP128MC502, and I'm...
View ArticlePIC24F16KA101 unable to read registers of ADNS9800 (B.Walker)
Greetings, I have a PIC24F16KA101 that uses its SPI module to talk to a pair of ADNS-9800 sensors. When the PIC sends a read request to the ADNS, all that is received is zeros. I cannot tell if this is...
View ArticleHelp for my XC16 compiler. Licence error prevent installation (w8442636)
I used the XC16 complier without licience for around 3 month and suddenly the complier is not working and I can not install again, even with the latest 1.20 version. It is always shows licence error...
View Article