DAVE™ Forum Discussions
HI,
I'm using XMC4400 F100K512 BA Board and I'm using Dave V3.1.10 software. I have debug my first code and it is showing an error message like I have attached in image.
Why this error occurs and how to resolve this issue?
Show LessHi, I have very odd problem: test code that works as "main.c" does not work as "main.cpp"
I have PCB with XMC4700 an SD card connected over SPI (pins MISO P3.14, MOSI P3.15, SCLK P0.13 and Slave select P0.12).
I made a test project, where I'm using DAVE apps "FATFS", connected to "SD_MMC_BLOCK" -> "SPI_MASTER" and "RTC" - everything except pins was configured using DAVE.
Then I have "standard" SD CARD test method from an example, which creates a file, a folder, writes into file ("Hello world") and reads it... and everything works fine from "main.c".
Then I tried to integrate everything in another project, made in C++. There were a lot of errorsand i spent a lot of time withous success, becouse of errors in DAVE generated files. Something with differences between C and C++ that I don't completley understand.
So went back my test project. I only changed name of main file from "main.c" to "main.cpp" and i got the same errors in my test app. The errors are:
/Dave/Generated/FATFS/fatfs.h:163:16: error: using typedef-name 'FATFS' after 'struct'
typedef struct FATFS
/Dave/Generated/FATFS/fatfs.h:169:10: error: invalid type in declaration before ';' token
} FATFS_t;
I also get message:
/Dave/Generated/FATFS/ff_Src/ff.h:176:3: note: 'FATFS' has a previous declaration here
} FATFS;
The issue is that in DAVE generated files "FATFS" is defined twice:
/Dave/Generated/FATFS/ff_Src/ff.h:
typedef struct {
BYTE fs_type; /* Filesystem type (0:not mounted) */
BYTE pdrv; /* Associated physical drive */
BYTE n_fats; /* Number of FATs (1 or 2) */
...code has been shortened...
} FATFS;
and in /Dave/Generated/FATFS/fatfs.h:
typedef struct FATFS
{
#if (FF_FS_NORTC == 0U)
RTC_t * rtc_handle; /** < RTC APP handle pointer */
#endif
bool initialized; /**< FATFS initialization status*/
} FATFS_t;
This obviously works well for C, but not for C++
I tried "extern C" in main.cpp where DAVE.h is included, but wih the same errors:
//code from begin of main.cpp:
extern "C"{
#include <DAVE.h> //Declarations from DAVE Code Generation (includes SFR declaration)
}
As far as I read, this shouls solve the issue, besouse all code in DAVE.h and included files should be treated as "regular C". Problem is that i MUST include this library into C++ project.
Any help will be highly appreciated 🙂
Best regards, Martin
I have searched high and low and cannot locate the .elf file for the uC/Probe Micrium GUI. The file was supposed to be inside a debug folder from the software download PMSM_FOC_SL_XMC13_PUBBLIC_V1_5_8.
I need this to run my motor demo unless there is another method?
Show LessI have a new dev kit for a motor driver. Downloaded sample code and it compiles fine. Jlink drivers are installed and working and I see it under device manager. Attempt to debug/program fails to connect. Not sure where to set serial connection properties under DAVE/debug.
Only trying to get a new dev kit up and running with sample code with XMC3000 motor driver dev kit.
Show Less
Hello,
I will need the IDE for FW development for obsolet SAK-XC167CI-32F40F BB-A target.
I know that KEIL offert profesional commercial tool.
But I see that old versions of DAVE supported the XC166 family:
https://encyclopedia.pub/entry/34607
Do you know where can I download the older releases of DAVE to support XC166 family?
Thank you in advance
Darek
Show LessInfineon\Tools\DAVE IDE\4.5.0.202105191637\D_LibraryStore_4.4\resources\XMC1.4.02.Q048.ALL\device\xmc1400\0\MANIFEST
Folder is missing ".pinmod" file and "solver_data" folder and does not allow DAVE APPS to work. Copied and renamed files from another microcontroller in the family and it seems to be working.
Show LessI am testing the XMC4700 by using Dave.
My settings are shown as below.
Reprtition is set as "cycles" and "3" times.
The "External trigger" is connect to a CCU4 slice.
But the DAC won't stop when the 3 times repetition of the LUT, and it act as endless repetition setting.
Do the settings incorrect?
Show Less
Prompt “please first connect an emulator”。
I have the jlink driver, and I can download the MCU program normally in Dave software. However, it cannot be connected in the xmcflsher software, and I have selected the chip model.
Any Infineon resources that you can recommend me to start to work with XMC4000 uC?
In the training section of this community, there is only links to the new PSoC62 family.
Thank you in advance
Show Less