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

real time clock to epoch time not returning correctly (LeeZimme)

Using the PIC24FJ256GB108 setting the real time clock with build date and time for fileio.May connect to the internet, and want to update the real time clock with sntp server time.Wanted to check...

View Article


Controlling the section of constant data ... (marksullivan)

My code for a dsPIC33EP256MU806 is getting beyond 0x10000 and it stops working when this happens so I was going to move some large constant tables to their own section in flash. What's wrong with my...

View Article


Macro only one copy (Ark)

Hi,I've got a few macros written in assembler that are used a large number of times, for each time each macro is asked for XC16 inserts a copy of the macro, hence using a lot more memory. I'm using the...

View Article

calling asm routine from C (dambrose)

Hello, I have project that has both assembly language and C modules in separate files. I'm using XC16 with MPLAB-X. I can call C functions from the assembly module but not the other way. I'm trying to...

View Article

XC16 flaw in handling __PSV__ (daverj)

I found what I believe is a flaw in XC16, or more likely in the optimizer part of XC16 in handling __PSV__ tagged constants. I don't have a couple of days to spare at the moment to try building a...

View Article


Warning 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

If you use the "MPLAB X IDE" are debugging, it would forcibly stopped...

Use the "MPLAB X IDE" in you are debugging, you in trouble will be forcibly stopped unintentionally. When you kill you will see the following message in the "Debugger Console"....

View Article

Soft swap instruction "bootswp" (Sanguin)

Hello, I'm trying to use the "bootswp" instruction to soft swap from the active to the inactive partition on a dsPIC33EP64GS504 in dual partition mode. The application in my inactive partiton should be...

View Article


Trouble Getting Explorer 16 Board LEDs to Light on PORTB/LATB (openg8)

Having as little experience as I do with this, I went out and got the book "Programming 16-BIT PIC Microcontrollers in C, Learning the Fly the PIC 24" 2nd Ed.Still in Chapter 1 - frustrated... I...

View Article


ieee 754 conversions (neworld)

hi, not sure if this is the best place to post this? i am hoping someone knows how to convert ieee754 floating point format to different variations of floating point. the ieee754 floating point format...

View Article

Calling malloc() while not using legacy libc library causes a crash (Magneto)

I am using MPLABX 3.20 with XC16 1.25. My PIC is a PIC24FJ128GA010 and I am using in conjunction with an Explorer 16 dev board and the MPLAB REAL ICE emulator. If the complier is configured to not use...

View Article

Changing __attribute__ (zijo)

Hello,I have a file feprom.c included in the project.address(0x09000) defines where the data will be savedI would like possibility to be able to change it in the main function, so sometimes I can save...

View Article

accessing high RAM via the compiler (daverj)

I'm working with the PIC24EP512GP204. It has 48K of RAM. The top 16K of that RAM overlaps the PSV page. I am currently using 52% of RAM according to the build data report. That is 25560 bytes. That...

View Article


XC16 How to declare an union at specific address and fill it by text (Fano)

Hi,Can you advise me how to declare const union at specific address in flash memory. I thought it might look something like this.union __attribute__((space(psv), address(0xA000))) { const char...

View Article

C# 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 Article


Inline assembly calling defined variables and arrays (FurtiveFox)

I'm trying to understand the SMPS control library and I have a question about one of the routines that's written in assembly: mov #BUCK_COMP_2P2Z_POSTSCALER, w6 mov #BUCK_COMP_2P2Z_POSTSHIFT, w7 mov...

View Article

XC16 v1.26 and PIC24FJ256GB406 (D Pickle)

When will XC16 fully support the PIC24FJ256GB406?It's from the PIC24FJ256GA412/GB412 family.Would be nice to have green compiler lights...

View Article


Can I add __attribute__ modifiers to a custom(typedef) type? (MikeAtCalidus)

I'm developing a frequency counter driver for a dsPIC33EP512MU810 microcontroller that uses a Timer peripheral to count a reference signal, an Input Capture module to capture reference counts for each...

View Article

License has expired message, what do I do? (markq)

I have been compiling my projects using xc16 V1.1 in MPLAB-X for 2 or 3 years. I have a pro licence.I recently started working on a PIC24FJ1024GB610 processor which is only partially supported by the...

View Article

constants in flash using up RAM space (daverj)

I've added about 3k-4k of constants to flash over the past week and noticed that my total used RAM is increased by several hundred bytes. Why? My project defines constants in flash and I have not added...

View Article
Browsing all 1508 articles
Browse latest View live


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