DAVE™ Forum Discussions
Good morning,
I'm trying to configure the POSIF peripheral to read the position from an encoder. I'm facing a problem setting the RUN bit. After I've done all the configuration of POSIF and CCU4 registers I try to set the run bit of POSIF writing:
POSIF0->PRUNS = 1;
However, with step-by-step debug I can see that the bit is never set (the bit RB of register POSIF0->PRUN is always 0). The same happens even if I move this code at the very beginning of the main.
Is the writing to the PRUN register protected? Do you have any suggestions?
Thank you very much
Best regards
Francesco
Show LessThe Problem is that I can insert like in the screenshot.
the button "next" is schwitching from gray to a black text (the button is enabled)
I can press the button and nothing is Happening.
I don't get the next page "Microcontroller Selection Page"
I get this page only on my pc ouside of the virtual machine. I installed the same Dave Version on my normal pc.
I'm using all the time my virtual machine to develop my stuff
hopefully somebody can give me an Fastback.
Only in my virtual machine I'm using my svn system
thanks a lot Show Less
I cannot find any options inside DAVE to create a SDK project. Any help is appreciated. Show Less
Hi
DAVE App "EVENT_GENERATOR" for ERU has only single "pattern" and no "tout" output.
According to the reference manual, OGU in ERU has 4 signals to detect pattern, and "ERU_TOUT" without gating.
Would you tell me the description of RM is correct and the DAVE App is not corret ? Dave App
Reference Manual
Best Regards,
Hayashi.K
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 LessNeeded sample code for DAVE™ IDE to drive L9825 Driver IC with daisy chain connectivity, Outputs are not coming, unable to set register's bits of driver IC module. Anyone can help with sample code for DAVE IDE & XMC-4100 series MCU with L9825 Driver IC module.
Thanks in advance
Thanks in advance. Show Less
Hi, 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