dsPIC33EP : Copying to Array inside Interrupt Reset MCU: (TS9)
Hi, I am working on dsPIC33EP512MU810 MCU and trying to copy the different (ADC)values in to array inside the Timer interrupt.But code reset the MCU .From ADCVariable to Simple Variable (Without Array)...
View ArticleTurning off optimisation for a section of code? (arigead)
I'm trying to use 'Nop()' instructions to time very short durations where starting a HW timer isn't worth the effort, so we're down in the uS teritory. At a certain duration you'd certainly start a HW...
View ArticleWhat the __builtin_enable_interrupts/__builtin_disable_interrupts function...
Maybe my question is trivial but I can't find an trivial and exaustive response, so don't be mad at me! My reference environment is XC16 compiler and PIC24FJ256GA106. What the...
View Articlexc16 1.61 assembler cannot nest .irp inside .rept (Franck78)
Just for info .rept #10 nop .rept #10 nop .endr.endr .irp X, 1,2,3 nop .endrBUILD SUCCESSFUL (total time: 3s) Now move the irp macro inside the rept:.rept #10 nop .rept #10 nop ..
View ArticleLooking for help with assembler include change switched with xc16 version...
I have several different projects which share common code, but are built with different versions of the XC16 tools, one 1.10 the other 1.25. An assembler file has an ".include xc.inc" which works fine...
View ArticleXC16 AIVT Linker Issue for Adjacent Entries (NN199)
Dear Microchip Community, I am currently trying to build a design on a dsPIC33EV in which the main application uses the Alternate Interrupt Vector Table for its interrupts. I stumbled upon on a linker...
View ArticleBootloader + Application; Linker treating reserved data mem oddly (NN199)
Dear Microchip community, I am trying to build a firmware for a dsPIC33EV128 that is based on a bootloader project and an application project, with the bootloader project as loadable. In the bootloader...
View ArticleXC16, v1.70 Available (GlennP)
Just downloaded v1.70. Link title still says 1.61, but target is 1.70. GP Edit 1: Note for my very limited use (~500 lines of C), the code produced was identical...
View ArticleXC16, V1.60, Same program/ Different Project Name, char treated differently...
I've always defined signed variables as char, int etc. not as signed char, signed int etc. I have a program which I created 2 projects for it. One is configured manually and the other is configured...
View ArticlePort from PICFJ256GB410 to PICFJ256GU410 and Alternative IVT postioning (markQ)
Hi AllI have just completed a bootloader and main code port from the GB to GU chips in the title of this post.I struggled a little with the positioning of the aivt ( used in the main code ) but solved...
View ArticleIssue associated to eeprom read/write on a pic24f (piticbogdan)
(Beginner question/sorry) I'm trying to initialize a variable into the eeprom at the programing time. I can read it later on, but when I'm trying to write it back after a simple increment (Day=Day+10)...
View ArticlePIC24 USB HID Joystick with 10 bit Axes (BallisticTech)
I've been trying to change the MLA USB Joystick example to pass 10-bit (0-1023) ADC data up to a PC as 2-4 axes. When they are set as 8-bit (0-255) like in the example things seem to work fine. I've...
View ArticleInterrupts and assembler (Batgoy)
Hi all,I wrote on assembler a few interrupts because they need to be fast and save space. But after compiling, the flags of status register are reset with a few (4) instructions. In this case I use...
View ArticleXC16 Linker Bug with Boot Sector and AIVT, dspic33ch (olso4539)
I'm experiencing a problem with the XC16 linker which I believe is a bug. The linker refuses to allocate most of the entries for the alternate interrupt vector table, as well as other small manual...
View ArticleRETURN from CALL failing (XC16 v1.70) (Jeff Glaum)
Hello, I'm hoping that a second pair of eyes might be able to point out something I'm missing. RETURN fails to pop the PC from the stack and so execution continues without returning. This is a problem...
View ArticleA project for a dual core (dsPIC33CH512MP208) in XC16 Assembler (Mark Yampolsky)
Hi!Made a simple empty project for master and slave. Included the slave project in the master project. When compiling, an error is generated:Error: image name 'dist/default/production/RF-mono-S' must...
View ArticlePSV and const * data (Cezane)
I'm using PIC24FJ256GA705 and I'm reserving few kb of flash at the bottom of program memory. Now, I know that XC16 can work really well with strings and data structures that at stored into flash. But...
View ArticleCommon constants for C and assembler (BobT)
Apologies if I've missed something really obvious, but is there a straightforward way to include common constants (eg array sizes) for C and assembler routines using XC16 on a PIC24F target ?...
View Articlewarning: Implicit declaration of function in one function, but no such...
The essentials:MPLABX 5.35XC16 1.50Win 10 enterprise I have a file that has a function that the compiler gives me "Warning: Implicit declaration of function" in it. The .h and .c files that have that...
View Article