DAVE™ Forum Discussions
DAVE™
Hi!I would like to be able to display XMC_DEBUG and/or printf messages to debug my code more efficiently on my laptop display. I am using Dave 4.4.2. ...
Show More
Hi!
I would like to be able to display XMC_DEBUG and/or printf messages to debug my code more efficiently on my laptop display. I am using Dave 4.4.2. I have followed some guides on here (specifically this one: https://www.infineonforums.com/threads/6007-printf-in-DAVE4.4.2) on how to enable semihosting. Currently I am stuck when I run the debugger,
J-Link asks me to either use a USB debug device or enter some IP message for some emulator?
What is this and how do I configure it? I understand that I can flash my code on some test kit and use that debugger, but I am still unsure on how to display the messages afterwards on my laptop.
Thanks in advance for any help! Show Less
I would like to be able to display XMC_DEBUG and/or printf messages to debug my code more efficiently on my laptop display. I am using Dave 4.4.2. I have followed some guides on here (specifically this one: https://www.infineonforums.com/threads/6007-printf-in-DAVE4.4.2) on how to enable semihosting. Currently I am stuck when I run the debugger,
J-Link asks me to either use a USB debug device or enter some IP message for some emulator?
What is this and how do I configure it? I understand that I can flash my code on some test kit and use that debugger, but I am still unsure on how to display the messages afterwards on my laptop.
Thanks in advance for any help! Show Less
DAVE™
I think I have a misunderstanding here, what Is the difference between cached program flash address space and noncached program flash address space, i...
Show More
I think I have a misunderstanding here, what Is the difference between cached program flash address space and noncached program flash address space, it seems in the datasheet both got same size so I am missing the cache term here if the cache memory space is already equal to the original flash, why 2 exist? and I can notice the code got same values on both memory addresses, so what exactly am I missing here?
Show Less
DAVE™
my code is here---------------------------------------------------------------------------------------------------------------------------------------...
Show More
my code is here
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I checked ping test successful the inip address 192.168.0.10, gate 192.168.0.10, subnet 255.255.255.0
But I want to know how to receive data and send data,
where is payload?? and what is transmit buffer in my code?? I cant find it.. Show Less
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#include
int main(void)
{
DAVE_STATUS_t status;
status = DAVE_Init();
if(status != DAVE_STATUS_SUCCESS)
{
XMC_DEBUG("DAVE APPs initialization failed\n");
while(1U)
{
}
}
osKernelStart();
while(1U)
{
}
}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I checked ping test successful the inip address 192.168.0.10, gate 192.168.0.10, subnet 255.255.255.0
But I want to know how to receive data and send data,
where is payload?? and what is transmit buffer in my code?? I cant find it.. Show Less
DAVE™
Dear All,I'm working with XRPWM, using API from XMCLib to configure the unit, in particular the reset from a CCU80 slice compare, but I noticed that H...
Show More
Dear All,
I'm working with XRPWM, using API from XMCLib to configure the unit, in particular the reset from a CCU80 slice compare, but I noticed that HRPWM is always reset by Slice 0, even if the setting points to a different slice.
After some investigation I found what I guess is an error in the XMCLib routine to configure HRPWM,
It is in routines XMC_HRPWM_HRC_ConfigSourceSelect0 and XMC_HRPWM_HRC_ConfigSourceSelect1 in file xmc_hrpwm.c.
The original routine:
/*****************************************************************************
* HRCy timer selection (HRCyTSEL)
****************************************************************************/
reg = (uint32_t)config->timer_sel;
reg |= ((uint32_t)config->src_trap_enable) << HRPWM0_HRC_TSEL_TS0E_Pos;
hrc->TSEL &= (uint32_t)0xFFFEFFF8;
hrc->TSEL |= reg;
I modified to:
/*****************************************************************************
* HRCy timer selection (HRCyTSEL)
****************************************************************************/
reg = (uint32_t)config->timer_sel << HRPWM0_HRC_TSEL_TSEL0_Pos;
reg |= ((uint32_t)config->src_trap_enable) << HRPWM0_HRC_TSEL_TS0E_Pos;
hrc->TSEL &= (uint32_t)0xFFFEFFF8;
hrc->TSEL |= reg;
(And the same for Config1.)
With this modification it is working correctly.
Please, can you confirm that my workaround is correct, and I'm not missing or overlooking something else in the code?
If this is correct, how can I fix it in the global library for any future project? At the moment I made the modification in \Libraries\XMCLib local to the project.
Thank you very much for your help!
Best regards
Simone GIli Show Less
I'm working with XRPWM, using API from XMCLib to configure the unit, in particular the reset from a CCU80 slice compare, but I noticed that HRPWM is always reset by Slice 0, even if the setting points to a different slice.
After some investigation I found what I guess is an error in the XMCLib routine to configure HRPWM,
It is in routines XMC_HRPWM_HRC_ConfigSourceSelect0 and XMC_HRPWM_HRC_ConfigSourceSelect1 in file xmc_hrpwm.c.
The original routine:
/*****************************************************************************
* HRCy timer selection (HRCyTSEL)
****************************************************************************/
reg = (uint32_t)config->timer_sel;
reg |= ((uint32_t)config->src_trap_enable) << HRPWM0_HRC_TSEL_TS0E_Pos;
hrc->TSEL &= (uint32_t)0xFFFEFFF8;
hrc->TSEL |= reg;
I modified to:
/*****************************************************************************
* HRCy timer selection (HRCyTSEL)
****************************************************************************/
reg = (uint32_t)config->timer_sel << HRPWM0_HRC_TSEL_TSEL0_Pos;
reg |= ((uint32_t)config->src_trap_enable) << HRPWM0_HRC_TSEL_TS0E_Pos;
hrc->TSEL &= (uint32_t)0xFFFEFFF8;
hrc->TSEL |= reg;
(And the same for Config1.)
With this modification it is working correctly.
Please, can you confirm that my workaround is correct, and I'm not missing or overlooking something else in the code?
If this is correct, how can I fix it in the global library for any future project? At the moment I made the modification in \Libraries\XMCLib local to the project.
Thank you very much for your help!
Best regards
Simone GIli Show Less
DAVE™
i cant believe no echo server/client example source
DAVE™
Thats all Thanks~
DAVE™
Dear All,I'm trying to use BUCK_PCC_FIX_FQ App to develop a 3~ buck regulator, but I get the following problem: the App sets the "Period match event" ...
Show More
Dear All,
I'm trying to use BUCK_PCC_FIX_FQ App to develop a 3~ buck regulator, but I get the following problem: the App sets the "Period match event" to ON for all the HRPWM instances, and therefore it also wants a connection between this signal and a destination unit.
In HRPWM App configuration tab the "Period match event" is ON and greyed, therefore it is not possible to disable it, but I do not need this signal.
I guess this signal can be used to trigger the VADC for the output voltage, but I have chose "Manual connection" for "Vout measurement trigger" in the main tab of the App. Moreover, I can not figure out why this event is enabled in all the HRPWM, since, in the same App conf. tab "Vout measurement trigger" can be connected to istance 0 only.
Any help/hint highly appreciated.
Thank you very much in advance.
Best regards
Simone Gili Show Less
I'm trying to use BUCK_PCC_FIX_FQ App to develop a 3~ buck regulator, but I get the following problem: the App sets the "Period match event" to ON for all the HRPWM instances, and therefore it also wants a connection between this signal and a destination unit.
In HRPWM App configuration tab the "Period match event" is ON and greyed, therefore it is not possible to disable it, but I do not need this signal.
I guess this signal can be used to trigger the VADC for the output voltage, but I have chose "Manual connection" for "Vout measurement trigger" in the main tab of the App. Moreover, I can not figure out why this event is enabled in all the HRPWM, since, in the same App conf. tab "Vout measurement trigger" can be connected to istance 0 only.
Any help/hint highly appreciated.
Thank you very much in advance.
Best regards
Simone Gili Show Less
DAVE™
Hi, I have a XMC4700 relax kit for 5V shields. I know that DAVE and Arduino use diffent linguages. Is there a way to import Arduino's codes and librer...
Show More
Hi, I have a XMC4700 relax kit for 5V shields. I know that DAVE and Arduino use diffent linguages.
Is there a way to import Arduino's codes and libreries to my XMC?
Thank you! Show Less
Is there a way to import Arduino's codes and libreries to my XMC?
Thank you! Show Less
DAVE™
Dear Forum When I created a new project with Dave, I joined the example and added user code to the main function, but it kept reporting errors when ...
Show More
Dear Forum
When I created a new project with Dave, I joined the example and added user code to the main function, but it kept reporting errors when compiling. How to solve this problem?
Thanks in advance
Taiqi Li Show Less
When I created a new project with Dave, I joined the example and added user code to the main function, but it kept reporting errors when compiling. How to solve this problem?
Thanks in advance
Taiqi Li Show Less
DAVE™
Hi Infineon support,I hope you can help. I am raising this bug again as the original trail has gone cold.If the Length passed to the USBD_VCOM_SendDa...
Show More
Hi Infineon support,
I hope you can help. I am raising this bug again as the original trail has gone cold.
If the Length passed to the USBD_VCOM_SendData function is a multiple of 64, the data is not sent. Calling the function again with new data and a non 64 multiple length will cause the original data and the new data to be sent.
Would you be able to resolve this or suggest a work around please as I have a critical project to deliver.
Thank you very much
PHAB
PS. Here is the original report of the bug in March 2017...
https://www.infineonforums.com/threads/4889-USBD_VCOM_SendData-Problem?p=17644#post17644 Show Less
I hope you can help. I am raising this bug again as the original trail has gone cold.
If the Length passed to the USBD_VCOM_SendData function is a multiple of 64, the data is not sent. Calling the function again with new data and a non 64 multiple length will cause the original data and the new data to be sent.
Would you be able to resolve this or suggest a work around please as I have a critical project to deliver.
Thank you very much
PHAB
PS. Here is the original report of the bug in March 2017...
https://www.infineonforums.com/threads/4889-USBD_VCOM_SendData-Problem?p=17644#post17644 Show Less