Hello,This is my first post, so at the beginning I apologize for any errors and I am asking you for patience :)I am trying to divide my code from main.c into files in the logical directory respectively myFun.c and myFun.h
Activities I've done:1. Creating..
↧
XC16 the problem of multiple definition file.h and .c (PicLikeds)
↧
Reference to the variable in h-file problem (amctech)
Hello,I am trying to run "ECAN_Crosswire" app on DSPIC33FJ256MC710. The app is a ready to use example of ECAN Bus programming exactly for that chip. I believe the app itself was written not for xc16 and ICD4 that I am using now, so most likely that this i..
↧
↧
Compile error 'unrecognizable insn' (johndsd)
I am getting a compile error 'unrecognizable insn' for a function called 'intrp3d_u8u8s16n10l_ne' which is auto generated by Simulink embedded coder. The strange thing is that it compiles fine for a different Simulink model which uses the exact same funct..
↧
Lab-04 exercise bug? (danielsoy)
I have got a problem with LAB-04 exercises. Where can i post ?..
↧
It was working, but now it's not! (RogerAF)
I have a dsPIC30F4011 on a solderless breadboard, a PICKit3, and MPLABX version 5.10. I wrote a little program to blink an LED and was successful in building it and programming the chip. I'm using __delay_ms in libpic30.h. I initially set the delay time t..
↧
↧
Do XC16 1.36 executables have a virus/trojan? (RDS Cliff)
Just tried installing XC16 on a new computer and my antivirus (Bitdefender) says there is a trojan in the .exe files. Went to the XC compiler download page to re-download the installation program in case I had a bad copy and it looks like the XC16 install..
↧
inline assembly (scrungy)
I am attempting to create a simple inline assembly function, and really don't understand the advanced parameter stuff Because a while (!SPI1STATLbits.SPIRBF); generates a lot of overhead, I would like to be able to replace it withthe equivalent of the fol..
↧
Manual EDS management in assembly function (opieters)
Hi I want to read from a buffer allocated in EDS (efficiently) inside an assembly routine. I am using XC16 version 1.36 and the microcontroller is the dsPIC33EP512MC806. However, either the compiler compiles everything, but it does not work on the board (..
↧
FatFs and long file names (K3PTO)
Can anyone give me some clues on how to get Long File Names working? I
modified ffconf.h as follows:
#define _USE_LFN 1
#define _LFN_UNICODE 0 // I have no need for unicode.
and I added ffunicode.c to my source files.
I found that ff_wtoupper is decl..
↧
↧
dspic33ep64mc504 32bit timer timer2:timer3 (seyyah)
I think there is a problem with this timer. I'm using timer2/3 in 32 bit mode @70MHz. When I read it I use this code: countValLower = TMR2; // read lsw first
countValUpper = TMR3HLD; // then read msw
countVal = (((uint32_t)countValUpper << 16) |..
countValUpper = TMR3HLD; // then read msw
countVal = (((uint32_t)countValUpper << 16) |..
↧
macro errors and optimizer (scrungy)
IDE 5.15 XC16 1.36For some reason I cannot get -O1 to produce decent code for the following so I decided to try to optimize it with macros\ I have attached the pin_manager.h, the TFT_ST7735.h and .c files and my main file, which is attempting to get a sim..
↧
SPI flags (scrungy)
I have questions about the SPI flags. The MCC generated cod for an 8 bit exchange somehow seems wrong.in pseuo-codespi_exchange(...){ while (SPISTATLbits.SPITBF==true) {} SPIBUFL=data; while (SPISTATLbits.SPIRBE == true{} data=SPIBUFL;}NOW SPIRBE is set w..
↧
finding declarion from libraray (mean_machine)
hello all I have old code that i need to migrate to another chip the code built using XC16 and using Dspic33F, i need to find the declaration of some function that been used like spi functions like (CloseSPI1(), DataRdySPI1, ....)when i use navigate to de..
↧
↧
adc taking time to read analog value (yo123)
hii , i am reading adc value using PIC16lf15344 and display it on seven segment display using multiplexing.it work properly but thing is that at the time of adc reading it take some time and eventually this effect on display.it blinks when reading. clock ..
↧
All code moved to boot segment (Sean831)
I am trying to move all of my code to the boot segment before the aivt. I was able to move most of my code but the irq routines and the compiler generated functions (.text and .dinit sections) are still in the application area, after the aivt. Does anyone..
↧
PIC24HJ64GP504 IVT relocation (Picchettino)
Hi all, I'm using a PIC24HJ64GP504 with MPLAB IDE v5.15 and XC16 v1.36 C compiler.I have used the --no-ivt linker option to not generate the default IVT/AIVT tables and I have relocated (modifiing the linker file) the IVT/AIVT tables let me say at 0xA400 ..
↧
Disabling warnings on section of code or single file in project (JimWoodworker)
I put the Microchip code from an appnote to capture a math error trap and modified it for my application to write the captured data off to non-volatile memory in my system and reset the processor. However the compile throws a bunch of warnings because the..
↧
↧
Add one special Hexline to Hexfile after Building (Volker)
Hi, can i automatically add a special Hexline with e.g. a Board Id to the Hexfile after building? Thanks!Volker..
↧
is this a compiler bug? (scrungy)
XC16 1.36
! {
This is problematic. Why would the compiler multiply by 4 on a sizeof(void *) .
Needless to say, this is causing crazy program results.
IF you multiply by 2 instead it yields the correct result as shown below...
↧
what is void *payload? (kamyip)
Hi guys,I have problem understanding "void *payload" in the code below:typedef uint32_t (*timercallback_ptr_t)(void *payload);typedef struct tmrStruct {
timercallback_ptr_t callbackPtr;
void* payload;
struct tmrStruct* next;
uint32_t absoluteTime;
} ..
↧