DAVE™ Forum Discussions
DAVE™
Greetings all,Does the DAVE4 'C code' compiler support the Wildcard character * for the Width and Precision fields in the "printf" & "sprint" function...
Show More
Greetings all,
Does the DAVE4 'C code' compiler support the Wildcard character * for the Width and Precision fields in the "printf" & "sprint" functions ?
For example...
int16_t Width = 5;
int16_t Precision = 3;
float Number = 1.23456;
sprintf( pBuff, "%*.*f", Width, Precision, Number );
I have tried this but the result is an empty string instead of "1.234"
Thank you very much
PHAB Show Less
Does the DAVE4 'C code' compiler support the Wildcard character * for the Width and Precision fields in the "printf" & "sprint" functions ?
For example...
int16_t Width = 5;
int16_t Precision = 3;
float Number = 1.23456;
sprintf( pBuff, "%*.*f", Width, Precision, Number );
I have tried this but the result is an empty string instead of "1.234"
Thank you very much
PHAB Show Less
DAVE™
Greetings all,How can I enable the "Add floating point support for printf" in the "Runtime Library" within an existing project ? The option is greyed...
Show More
Greetings all,
How can I enable the "Add floating point support for printf" in the "Runtime Library" within an existing project ? The option is greyed out.
Thanks very much
PHAB Show Less
How can I enable the "Add floating point support for printf" in the "Runtime Library" within an existing project ? The option is greyed out.
Thanks very much
PHAB Show Less
DAVE™
Hi there,I am trying to debug code using DAVE4 and an XMC4500 Relax Lite Kit and have the following questions...1) How do I set the XMC4500 Relax Lite...
Show More
Hi there,
I am trying to debug code using DAVE4 and an XMC4500 Relax Lite Kit and have the following questions...
1) How do I set the XMC4500 Relax Lite Kit as a debug target in DAVE4 ? It does not appear as an option under 'Debug Configuration'
2) Where can I find example DAVE4 projects for the XMC4500 Relax Lite Kit ?
3) Where can I find the default DAVE4 project already installed on the XMC4500 Relax Lite Kit ?
Thank you very much
PHAB Show Less
I am trying to debug code using DAVE4 and an XMC4500 Relax Lite Kit and have the following questions...
1) How do I set the XMC4500 Relax Lite Kit as a debug target in DAVE4 ? It does not appear as an option under 'Debug Configuration'
2) Where can I find example DAVE4 projects for the XMC4500 Relax Lite Kit ?
3) Where can I find the default DAVE4 project already installed on the XMC4500 Relax Lite Kit ?
Thank you very much
PHAB Show Less
DAVE™
Hi all! I'm new on this forum, so i beg your pardon if i'm doing something against its rules! Anyway, I have this problem: I'm using the XMC4800 relax...
Show More
Hi all! I'm new on this forum, so i beg your pardon if i'm doing something against its rules!
Anyway, I have this problem: I'm using the XMC4800 relax kit to implement an EtherCAT slave (using the code of the example i've found at this page: https://www.infineon.com/cms/en/product/promopages/aim-mc/dave_downloads.html) and I want my slave to send a master the result of the QSPI test (the one i've downloaded from the page i've previously linked).
I notice that, if i don't insert that test into an EtherCAT system it works fine, but when i try to insert it into the main of the EtherCAT code, it always fail. I've checked the Chip Select pin of the flash memory: with the EtherCAT, the memory seems to be selected for fewer time (i.e. the time during which the chip select is driven low is almost the half of the case without the EtherCAT).
Which could be the problem and how could I solve it?
Thanks in advance! Show Less
Anyway, I have this problem: I'm using the XMC4800 relax kit to implement an EtherCAT slave (using the code of the example i've found at this page: https://www.infineon.com/cms/en/product/promopages/aim-mc/dave_downloads.html) and I want my slave to send a master the result of the QSPI test (the one i've downloaded from the page i've previously linked).
I notice that, if i don't insert that test into an EtherCAT system it works fine, but when i try to insert it into the main of the EtherCAT code, it always fail. I've checked the Chip Select pin of the flash memory: with the EtherCAT, the memory seems to be selected for fewer time (i.e. the time during which the chip select is driven low is almost the half of the case without the EtherCAT).
Which could be the problem and how could I solve it?
Thanks in advance! Show Less
DAVE™
Hi, very often when i start Dave or i switch the workspace it takes a very long time (more than ten minutes).Does anyone have experience with this?Tha...
Show More
Hi,
very often when i start Dave or i switch the workspace it takes a very long time (more than ten minutes).
Does anyone have experience with this?
Thank you Show Less
very often when i start Dave or i switch the workspace it takes a very long time (more than ten minutes).
Does anyone have experience with this?
Thank you Show Less
DAVE™
Getting started demo XMC 4700 relax kitInfineon XMC4700 Relax board with CAN bus connected to CANalyserThis demo also works without a CAN bus.This hig...
Show More
Getting started demo XMC 4700 relax kit
Infineon XMC4700 Relax board with CAN bus connected to CANalyser
This demo also works without a CAN bus.
This high integrity buttons programs creates a logical latching state from momentary push button and also detects faulty failed buttons that are stuck down.
The function uses a debouncing algorithm and time windows for a reliable state change.
Typical automotive application examples:
Button 1: Hill descent control enable
A time window to change state {100ms < Press < 1000ms} stuck logic after 20 Seconds.
Default state OFF
Fail state is OFF
Button 2: Traction control enable
A time window to change state to OFF {200ms < Press < 2000ms} stuck logic after 10 Seconds.
Time to change state to ON {50mS < Press } stuck logic after 10 Seconds.
Default state is ON
Fail state is ON
Show Less
Infineon XMC4700 Relax board with CAN bus connected to CANalyser
This demo also works without a CAN bus.
This high integrity buttons programs creates a logical latching state from momentary push button and also detects faulty failed buttons that are stuck down.
The function uses a debouncing algorithm and time windows for a reliable state change.
Typical automotive application examples:
Button 1: Hill descent control enable
A time window to change state {100ms < Press < 1000ms} stuck logic after 20 Seconds.
Default state OFF
Fail state is OFF
Button 2: Traction control enable
A time window to change state to OFF {200ms < Press < 2000ms} stuck logic after 10 Seconds.
Time to change state to ON {50mS < Press } stuck logic after 10 Seconds.
Default state is ON
Fail state is ON
Show Less
DAVE™
Hi, I am very new to Dave and microcontroller programming in General. Has anyone ever combined a xmc with the 4-20mA T click Transmitter by mikroElekt...
Show More
Hi,
I am very new to Dave and microcontroller programming in General.
Has anyone ever combined a xmc with the 4-20mA T click Transmitter by mikroElektronika?
I want to use my XMC4300 microcontroller to control a 4-20mA current Loop. The 4-20mA T click communicates with the target board via three SPI lines.
In Dave, I found the SPI_MASTER app and example Code. I tried to set it up. My Goal is to, by sending different values via SPI, using the "SPI_MASTER_Transmit"-function, to change the current within the 4-20mA-loop. However, I am somehow unable to change the current.
I found Driver Code belonging to the Transmitter. Can anyone tell me if it is necassary to include this Code? Is it necassary to do slave configuration like in the SPI_MASTER app example?
I am sorry for the very stupid questions.
Regards! Show Less
I am very new to Dave and microcontroller programming in General.
Has anyone ever combined a xmc with the 4-20mA T click Transmitter by mikroElektronika?
I want to use my XMC4300 microcontroller to control a 4-20mA current Loop. The 4-20mA T click communicates with the target board via three SPI lines.
In Dave, I found the SPI_MASTER app and example Code. I tried to set it up. My Goal is to, by sending different values via SPI, using the "SPI_MASTER_Transmit"-function, to change the current within the 4-20mA-loop. However, I am somehow unable to change the current.
I found Driver Code belonging to the Transmitter. Can anyone tell me if it is necassary to include this Code? Is it necassary to do slave configuration like in the SPI_MASTER app example?
I am sorry for the very stupid questions.
Regards! Show Less
DAVE™
when using the ADC_MEASUREMENT_ADV (v4.0.14) on XMC4500, the solver allows you to select slave pins that are not on the same channel as the master. T...
Show More
when using the ADC_MEASUREMENT_ADV (v4.0.14) on XMC4500, the solver allows you to select slave pins that are not on the same channel as the master. The reference manual, it states "Synchronized conversions request the same channel number". We are using 4 sync groups, and groups B and C are not aligned with the manual, since DAVE allowed selecting other pins from channels different from the master. As luck (good or bad) has it, we are currently just using group A, which is correct, but we are starting to use the other groups. Is DAVE wrong for allowing this, or is it smarter than the Reference manual. We used DAVE to help allocate all the I/O on this board and now I'm afraid that we are going to have issues...
thanks Show Less
thanks Show Less
DAVE™
Hi,expert: I am user of the evaluation board of Infineon" KIT_XMC48_RELAX_ECAT_V1" . When try to debug the board, a messsage popped "The selected...
Show More
Hi,expert:
I am user of the evaluation board of Infineon" KIT_XMC48_RELAX_ECAT_V1" . When try to debug the board, a messsage popped "The selected device "unspecified" is unkown to this version of the J-LINK software......".
When I try to specify the MCU in segger j-link RDI,the software seem to need a license to get j-link RDI to set to the device"XMC4800".
Do I need to get a license for the J-LINK lite of the evaluation board?
Thanks ®ards. Show Less
I am user of the evaluation board of Infineon" KIT_XMC48_RELAX_ECAT_V1" . When try to debug the board, a messsage popped "The selected device "unspecified" is unkown to this version of the J-LINK software......".
When I try to specify the MCU in segger j-link RDI,the software seem to need a license to get j-link RDI to set to the device"XMC4800".
Do I need to get a license for the J-LINK lite of the evaluation board?
Thanks ®ards. Show Less
DAVE™
Hi all, since updating Dave 4.3.2 with the current Dave Apps and XMCLib (2.1.18) I've got a problem with FATFS->SDMMC_BLOCK->SPI_MASTER. When I try to...
Show More
Hi all,
since updating Dave 4.3.2 with the current Dave Apps and XMCLib (2.1.18) I've got a problem with FATFS->SDMMC_BLOCK->SPI_MASTER. When I try to compile I get the following errors:
"SDMMC_BLOCK requires XMC Peripheral Library v2.1.20 or higher" <-- and this is crazy, because it was an official update package from the infineon homepage....
and
"SDMMC_BLOCK_SDV2_CSD_t' has no member named 'dev_size_high"
After installing Dave 4.4.2 with XMCLib version 2.1.20 I still get the message "SDMMC_BLOCK_SDV2_CSD_t' has no member named 'dev_size_high"
The error occurs in function: SDMMC_BLOCK_SPI_GetSectorCount
What is wrong in these libraries?
Thanks and regards
Stefan Show Less
since updating Dave 4.3.2 with the current Dave Apps and XMCLib (2.1.18) I've got a problem with FATFS->SDMMC_BLOCK->SPI_MASTER. When I try to compile I get the following errors:
"SDMMC_BLOCK requires XMC Peripheral Library v2.1.20 or higher" <-- and this is crazy, because it was an official update package from the infineon homepage....
and
"SDMMC_BLOCK_SDV2_CSD_t' has no member named 'dev_size_high"
After installing Dave 4.4.2 with XMCLib version 2.1.20 I still get the message "SDMMC_BLOCK_SDV2_CSD_t' has no member named 'dev_size_high"
The error occurs in function: SDMMC_BLOCK_SPI_GetSectorCount
What is wrong in these libraries?
Thanks and regards
Stefan Show Less