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

Is the PIC24 / dsPIC33 family being phased out? (Tony_a)

$
0
0
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, XC16 hardly ever gets updates, at least compared to XC8 ..

Redirect PrintF to serial port with XC16 compiler (grahamst)

$
0
0
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 create a _mon_putc(char) function but this doesn't want t..

Large RAM Arrays (mschmelz)

$
0
0
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 set all possibel compiler and linker options, ..

PIC24FV32KA304, can HLVDIN be used in parallel to ADC12 (AN12) on pin 10 (riscy00)

$
0
0
PIC24FV32KA304, can HLVDIN feature be used in parallel to ADC12 (AN12) on pin 10Data sheet not clear to confirm if this is possible...

Simple way to pack a string? (Pete Ruddock)

$
0
0
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 stored @ 28800 as 004F42 00544F 003130. Is there any simple..

_EEDATA (ad5oj)

$
0
0
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 with the 24F family. int _EEDATA(2) user_data[] = { 0..

Calculation that appears to crash XC16 (sjb741)

$
0
0
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 triggered. /*
Seems to crash XC16 1.21
*/
void..

compute atan2 with LUT (Dukenukem)

$
0
0
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 " float LUT_arctan2; " and i wrote a function to fill ..

Query about compiler for dsPIC (amtech)

$
0
0
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...

Warning about Invalid Interrupt Vector names for device (jmag99)

$
0
0
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 properly and does enter the ISR's. Any idea why this is ..

--report-mem does not show auxiliary Flash usage (SwissCheese)

$
0
0
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 --report-mem linker option, the memory usage summary shows..

Is there a proper name for the auxillary flash interrupt routine? (dcpic33EP512MU810) (icefield)

$
0
0
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 (p33EP512MU810.gld). If you are executing code in auxiliary flash,..

Definition of a "hard register" as it related to clobbering and inline assembly (icefield)

$
0
0
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 the larger web without success. Are hard registers ju..

How to generate long calls without changing memory model (dsPIC33E) (icefield)

$
0
0
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 (starting at address 0x7FC000). This requires a long ca..

NHD-3.5-320240MF (iman.y)

$
0
0
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 errors: build/PIC24_DA210_DEV_16PMP_QVGAv1_USBMSD_NHD/..

PIC24 asm cannot be built - "no rule to make target" (Bal)

$
0
0
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 the error:*** No rule to make target `build/default/pr..

length of names of struct member (Wieschebrock)

$
0
0
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
}LOGDATEN; this ..

Problem writing to flash (RTSP) on dsPIC33EP (pandalet)

$
0
0
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 using MPLAB X v1.85 with XC16 v1.11. I wish to store 4..

PIC24F16KA101 unable to read registers of ADNS9800 (B.Walker)

$
0
0
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 a failure of the Power On sequence, the Flash Load se..

Help for my XC16 compiler. Licence error prevent installation (w8442636)

$
0
0
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 and the installation stop...
Viewing all 1508 articles
Browse latest View live


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