DAVE™ Forum Discussions
DAVE™
Hello,I've just extracted the newest Version of Dave (4.4.2, 64Bit) and I was supprised, that there is no Git-Repositories View available as in the Ve...
Show More
Hello,
I've just extracted the newest Version of Dave (4.4.2, 64Bit) and I was supprised, that there is no Git-Repositories View available as in the Version I've used before.
What can I do to get the Repositories View?
Best regards,
Michael Show Less
I've just extracted the newest Version of Dave (4.4.2, 64Bit) and I was supprised, that there is no Git-Repositories View available as in the Version I've used before.
What can I do to get the Repositories View?
Best regards,
Michael Show Less
DAVE™
Hi to all!I'm using Dave 4.2.2 and I setted dark themeI have 2 project in my workspace, when I work on my "Acrive Project" I see a normale color, when...
Show More
Hi to all!
I'm using Dave 4.2.2 and I setted dark theme
I have 2 project in my workspace, when I work on my "Acrive Project" I see a normale color, when I view file of the other project (inactive) i see all code with a light gray background that it it impossible to be read with dark theme (its overwrite color rule for foreground... su I have light background with light foreground)
Can I set a normal background color for my not active project?
Or where I can modify that color for inactive project? i search evrywhere but I not find it...
thanks
Massimiliano Show Less
I'm using Dave 4.2.2 and I setted dark theme
I have 2 project in my workspace, when I work on my "Acrive Project" I see a normale color, when I view file of the other project (inactive) i see all code with a light gray background that it it impossible to be read with dark theme (its overwrite color rule for foreground... su I have light background with light foreground)
Can I set a normal background color for my not active project?
Or where I can modify that color for inactive project? i search evrywhere but I not find it...
thanks
Massimiliano Show Less
DAVE™
In case this helps someone else, I believe there is a bug / undefined behaviour in the PWM_CCU8 App....https://www.infineonforums.com/threads/4616-Problem-with-PWM_CCU8...
Show More
In case this helps someone else, I believe there is a bug / undefined behaviour in the PWM_CCU8 App....
https://www.infineonforums.com/threads/4616-Problem-with-PWM_CCU8
I am using the PWM_CCU8 App to drive two FET's connected to each end of the primary winding on a centre tapped transformer. The App is configured to generate two pulse trains 180° out of phase with each other as follows...
Channel 1 Direct Output
Channel 1 Inverted Output
The App generates the two signals correctly when the PWM_CCU8_Start() function is called, however when the PWM_CCU8_Stop() function is called the Direct Output returns to it's Passive Level setting (LOW) as expected but the Inverted Output is set to the INVERSE of it's Passive Level setting (HIGH)
In my application this leaves one half of the centre tapped transformer permanently on with the resultant current overload.
I have not been able to resolve this with any App configuration settings so I have created a workaround using my own Stop and Start functions below.
I hope this helps others.
Best regards
PHAB
//----------------------------------------------------------------------------
// Workaround for bug / undefined behaviour in DAVE PWM_CCU8 APP which leaves Inverted Output pin high when APP is stopped
//
// Stops the PWM then configures the Inverted Output pin of Channel 1 so it is NOT under PWM_CCU8 control and forces pin low
//----------------------------------------------------------------------------
//
// Originator : Aaron Walsh 17 Jan 2020
//---------------------------------------------------------------------------
void My_PWM_CCU8_Stop(PWM_CCU8_t* handle_ptr)
{
//----------------------------------------------------------------------------
// Workaround for bug / undefined behaviour in DAVE PWM_CCU8 APP which leaves Inverted Output pin high when APP is stopped
//
// Configures the Inverted Output pin of Channel 1 so it IS under PWM_CCU8 control then starts PWM APP
//----------------------------------------------------------------------------
//
// Originator : Aaron Walsh 17 Jan 2020
//---------------------------------------------------------------------------
void My_PWM_CCU8_Start(PWM_CCU8_t* handle_ptr)
{
https://www.infineonforums.com/threads/4616-Problem-with-PWM_CCU8
I am using the PWM_CCU8 App to drive two FET's connected to each end of the primary winding on a centre tapped transformer. The App is configured to generate two pulse trains 180° out of phase with each other as follows...
Channel 1 Direct Output
Output enable = TRUE
Passive State = Before Compare Match
Passive Level = Low (so the FET is OFF on powerup / reset)
Passive State = Before Compare Match
Passive Level = Low (so the FET is OFF on powerup / reset)
Channel 1 Inverted Output
Output enable = TRUE
Passive State = After Compare Match
Passive Level = Low (so the FET is OFF on powerup / reset)
Passive State = After Compare Match
Passive Level = Low (so the FET is OFF on powerup / reset)
The App generates the two signals correctly when the PWM_CCU8_Start() function is called, however when the PWM_CCU8_Stop() function is called the Direct Output returns to it's Passive Level setting (LOW) as expected but the Inverted Output is set to the INVERSE of it's Passive Level setting (HIGH)
In my application this leaves one half of the centre tapped transformer permanently on with the resultant current overload.
I have not been able to resolve this with any App configuration settings so I have created a workaround using my own Stop and Start functions below.
I hope this helps others.
Best regards
PHAB
//----------------------------------------------------------------------------
// Workaround for bug / undefined behaviour in DAVE PWM_CCU8 APP which leaves Inverted Output pin high when APP is stopped
//
// Stops the PWM then configures the Inverted Output pin of Channel 1 so it is NOT under PWM_CCU8 control and forces pin low
//----------------------------------------------------------------------------
//
// Originator : Aaron Walsh 17 Jan 2020
//---------------------------------------------------------------------------
void My_PWM_CCU8_Stop(PWM_CCU8_t* handle_ptr)
{
// Call standard function to stop the PWM
PWM_CCU8_Stop(&OP_ULTRA_A_B);
// Disconnect PWM_CCU8 APP Channel 1, Output 1 (Inverted Output) from output pin
// Set Pin mode to XMC_GPIO_MODE_OUTPUT_PUSH_PULL instead of XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT3 (Alternative mode 3 means hardware controlled by PWM_CCU8 on this pin)
handle_ptr->config_ptr->gpio_ch1_out1_ptr->IOCR[handle_ptr->config_ptr->gpio_ch1_out1_pin >> 2U] &= ~(uint32_t)XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT3 << ((uint32_t)PORT_IOCR_PC_Size * ((uint32_t)handle_ptr->config_ptr->gpio_ch1_out1_pin & 0x3U));
handle_ptr->config_ptr->gpio_ch1_out1_ptr->IOCR[handle_ptr->config_ptr->gpio_ch1_out1_pin >> 2U] |= (uint32_t)XMC_GPIO_MODE_OUTPUT_PUSH_PULL << ((uint32_t)PORT_IOCR_PC_Size * ((uint32_t)handle_ptr->config_ptr->gpio_ch1_out1_pin & 0x3U));
}PWM_CCU8_Stop(&OP_ULTRA_A_B);
// Disconnect PWM_CCU8 APP Channel 1, Output 1 (Inverted Output) from output pin
// Set Pin mode to XMC_GPIO_MODE_OUTPUT_PUSH_PULL instead of XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT3 (Alternative mode 3 means hardware controlled by PWM_CCU8 on this pin)
handle_ptr->config_ptr->gpio_ch1_out1_ptr->IOCR[handle_ptr->config_ptr->gpio_ch1_out1_pin >> 2U] &= ~(uint32_t)XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT3 << ((uint32_t)PORT_IOCR_PC_Size * ((uint32_t)handle_ptr->config_ptr->gpio_ch1_out1_pin & 0x3U));
handle_ptr->config_ptr->gpio_ch1_out1_ptr->IOCR[handle_ptr->config_ptr->gpio_ch1_out1_pin >> 2U] |= (uint32_t)XMC_GPIO_MODE_OUTPUT_PUSH_PULL << ((uint32_t)PORT_IOCR_PC_Size * ((uint32_t)handle_ptr->config_ptr->gpio_ch1_out1_pin & 0x3U));
//----------------------------------------------------------------------------
// Workaround for bug / undefined behaviour in DAVE PWM_CCU8 APP which leaves Inverted Output pin high when APP is stopped
//
// Configures the Inverted Output pin of Channel 1 so it IS under PWM_CCU8 control then starts PWM APP
//----------------------------------------------------------------------------
//
// Originator : Aaron Walsh 17 Jan 2020
//---------------------------------------------------------------------------
void My_PWM_CCU8_Start(PWM_CCU8_t* handle_ptr)
{
// Connect PWM_CCU8 APP Channel 1, Output 1 (Inverted Output) to output pin
handle_ptr->config_ptr->gpio_ch1_out1_ptr->IOCR[handle_ptr->config_ptr->gpio_ch1_out1_pin >> 2U] &= ~(uint32_t)XMC_GPIO_MODE_OUTPUT_PUSH_PULL << ((uint32_t)PORT_IOCR_PC_Size * ((uint32_t)handle_ptr->config_ptr->gpio_ch1_out1_pin & 0x3U));
handle_ptr->config_ptr->gpio_ch1_out1_ptr->IOCR[handle_ptr->config_ptr->gpio_ch1_out1_pin >> 2U] |= (uint32_t)XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT3 << ((uint32_t)PORT_IOCR_PC_Size * ((uint32_t)handle_ptr->config_ptr->gpio_ch1_out1_pin & 0x3U));
// Call standard function to start the PWM
PWM_CCU8_Start(&OP_ULTRA_A_B);
}
Show Less
handle_ptr->config_ptr->gpio_ch1_out1_ptr->IOCR[handle_ptr->config_ptr->gpio_ch1_out1_pin >> 2U] &= ~(uint32_t)XMC_GPIO_MODE_OUTPUT_PUSH_PULL << ((uint32_t)PORT_IOCR_PC_Size * ((uint32_t)handle_ptr->config_ptr->gpio_ch1_out1_pin & 0x3U));
handle_ptr->config_ptr->gpio_ch1_out1_ptr->IOCR[handle_ptr->config_ptr->gpio_ch1_out1_pin >> 2U] |= (uint32_t)XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT3 << ((uint32_t)PORT_IOCR_PC_Size * ((uint32_t)handle_ptr->config_ptr->gpio_ch1_out1_pin & 0x3U));
// Call standard function to start the PWM
PWM_CCU8_Start(&OP_ULTRA_A_B);
DAVE™
Hello,Is there a way to use Modbus TCP without RTOS? (for XMC4700)Please, all advices are welcome.I also asked here:https://www.infineonforums.com/threads/4498-Modbus-TCP...
Show More
Hello,
Is there a way to use Modbus TCP without RTOS? (for XMC4700)
Please, all advices are welcome.
I also asked here:
https://www.infineonforums.com/threads/4498-Modbus-TCP
Regards,
Koumak Show Less
Is there a way to use Modbus TCP without RTOS? (for XMC4700)
Please, all advices are welcome.
I also asked here:
https://www.infineonforums.com/threads/4498-Modbus-TCP
Regards,
Koumak Show Less
DAVE™
HiUsing the XMC Pinout tool, I can select P0.2 as on output for CCU8 slice 0: However I cannot select this pin using the PWM app in DAVE(only see P0.5...
Show More
Hi
Using the XMC Pinout tool, I can select P0.2 as on output for CCU8 slice 0:
However I cannot select this pin using the PWM app in DAVE(only see P0.5). The PWM uses the CCU8 timer.
I tried this on a new project to eliminate a pin conflict from another APP as the cause of the issue. I have change the pin allocation in the generated code to P0.2 and it does function correctly. Is there something im not understanding ? Show Less
Using the XMC Pinout tool, I can select P0.2 as on output for CCU8 slice 0:
However I cannot select this pin using the PWM app in DAVE(only see P0.5). The PWM uses the CCU8 timer.
I tried this on a new project to eliminate a pin conflict from another APP as the cause of the issue. I have change the pin allocation in the generated code to P0.2 and it does function correctly. Is there something im not understanding ? Show Less
DAVE™
Install DAVE™ IDE for XMC™ microcontrollers1. Browse to DAVE™ software download2. Register and select the DAVE™ package you would like to downlo...
Show More
Install DAVE™ IDE for XMC™ microcontrollers
1. Browse to DAVE™ software download
2. Register and select the DAVE™ package you would like to download depending on your operating system.
3. Unpack the downloaded file. The downloaded file includes various documentation files and a zip file which the DAVE4 distribution, i.e. DAVE-IDE-4.4.2-64Bit.zip. To install DAVE™, all you do is unpacking the DAVE-IDE-4.4.2-64Bit.zip file to a location of your choice (i.e. c:\DAVE4).
Note
For Windows, a number of problems have been reported when people try to use Windows Explorer to unzip the zip file. Please use a third-party unzip program, such as 7-Zip
4. To simplify starting DAVE4 in the future, create a shortcut on your desktop to the DAVE.exe file in the eclipse folder.
5. Download and install the J-Link Software and Documentation pack for Windows.
6. Start DAVE™ by double clicking the shortcut to Eclipse that you just created above.
The following splash screen will appear
and then an Eclipse Launcher pop-up window will appear.
Click OK.
More information about DAVE™ can be found in the Quick Start Guide Show Less
1. Browse to DAVE™ software download
2. Register and select the DAVE™ package you would like to download depending on your operating system.
3. Unpack the downloaded file. The downloaded file includes various documentation files and a zip file which the DAVE4 distribution, i.e. DAVE-IDE-4.4.2-64Bit.zip. To install DAVE™, all you do is unpacking the DAVE-IDE-4.4.2-64Bit.zip file to a location of your choice (i.e. c:\DAVE4).
Note
For Windows, a number of problems have been reported when people try to use Windows Explorer to unzip the zip file. Please use a third-party unzip program, such as 7-Zip
4. To simplify starting DAVE4 in the future, create a shortcut on your desktop to the DAVE.exe file in the eclipse folder.
5. Download and install the J-Link Software and Documentation pack for Windows.
6. Start DAVE™ by double clicking the shortcut to Eclipse that you just created above.
The following splash screen will appear
and then an Eclipse Launcher pop-up window will appear.
Click OK.
More information about DAVE™ can be found in the Quick Start Guide Show Less
DAVE™
I tried everything but failed so please help me in detail how to make delay in pwm with 10ms
DAVE™
Looking at the System Timer application, I do not find any App that could provide a simple Delay_usec(uint32_t uiUs) function? Is there any possibilit...
Show More
Looking at the System Timer application, I do not find any App that could provide a simple Delay_usec(uint32_t uiUs) function? Is there any possibility without using RTOS?
Show Less
DAVE™
Hi.I would like to know if there is a way to control the initialization order of DAVE APPs in *autogenerated* DAVE_Init().My concern is* in autogenera...
Show More
Hi.
I would like to know if there is a way to control the initialization order of DAVE APPs in *autogenerated* DAVE_Init().
My concern is
* in autogenerated DAVE_Init(), at first error, the init process is stopped: the following APPs are not initialized, even if they could have been,
* I need some of these APPs (IO ports) to show the error(s) on the others,
* but these APPs' initialization may have been skipped due to the initialization order of DAVE APPs in DAVE_Init(), so the ports will not work.
I know some ways to overturn this, but they all need writing my own initialization code, and loosing part of the advantage of autogenerated code of DAVE APPs.
So, is there any way to change the order in which DAVE APPs appear in *autogenerated* DAVE_Init() ?
Regards Show Less
I would like to know if there is a way to control the initialization order of DAVE APPs in *autogenerated* DAVE_Init().
My concern is
* in autogenerated DAVE_Init(), at first error, the init process is stopped: the following APPs are not initialized, even if they could have been,
* I need some of these APPs (IO ports) to show the error(s) on the others,
* but these APPs' initialization may have been skipped due to the initialization order of DAVE APPs in DAVE_Init(), so the ports will not work.
I know some ways to overturn this, but they all need writing my own initialization code, and loosing part of the advantage of autogenerated code of DAVE APPs.
So, is there any way to change the order in which DAVE APPs appear in *autogenerated* DAVE_Init() ?
Regards Show Less
DAVE™
Hello,Could I make program SPI running in background? For example 4 SPI groups (x3 channels) and these channels work in Background. (XMC4800F144K2048,...
Show More
Hello,
Could I make program SPI running in background? For example 4 SPI groups (x3 channels) and these channels work in Background. (XMC4800F144K2048, DAVE4) Show Less
Could I make program SPI running in background? For example 4 SPI groups (x3 channels) and these channels work in Background. (XMC4800F144K2048, DAVE4) Show Less