DAVE™ Forum Discussions
Sort by:
DAVE™
Hello,I am using Dave 4, J-Link v610i to program the XMC4500 - relax lite kit. I tried to run the demo easystart program but the debugger does not wor...
Show More
Hello,
I am using Dave 4, J-Link v610i to program the XMC4500 - relax lite kit. I tried to run the demo easystart program but the debugger does not work properly.
Even if I set breakpoint in the main.c the debugger does not stop at the breakpoint and it gets terminated. Please help me to solve the issue.
Regrads
Suraj Show Less
I am using Dave 4, J-Link v610i to program the XMC4500 - relax lite kit. I tried to run the demo easystart program but the debugger does not work properly.
Even if I set breakpoint in the main.c the debugger does not stop at the breakpoint and it gets terminated. Please help me to solve the issue.
Regrads
Suraj Show Less
DAVE™
Hi there, I want to stop and eventually restart my PWM channels. To do so, I thought the implemented PWM_CCU8_start(&PWM_CCU8_0) / PWM_CCU8_stop(&PWM_...
Show More
Hi there,
I want to stop and eventually restart my PWM channels. To do so, I thought the implemented PWM_CCU8_start(&PWM_CCU8_0) / PWM_CCU8_stop(&PWM_CCU8_0) routines could be used.
The first starting and the following stopping works well but when I want to restart the PWM using PWM_CCU8_start(&PWM_CCU8_0) again, it does not start.
Any ideas about it?
Or is there a better way to do it?
cheers Show Less
I want to stop and eventually restart my PWM channels. To do so, I thought the implemented PWM_CCU8_start(&PWM_CCU8_0) / PWM_CCU8_stop(&PWM_CCU8_0) routines could be used.
The first starting and the following stopping works well but when I want to restart the PWM using PWM_CCU8_start(&PWM_CCU8_0) again, it does not start.
Any ideas about it?
Or is there a better way to do it?
cheers Show Less
DAVE™
As I am unable to submit tickets, I will post it here:When using the CAN_NODE APP (4.1.10) on XMC4300, the pin P2.0 can not be selected as TX pin on C...
Show More
As I am unable to submit tickets, I will post it here:
When using the CAN_NODE APP (4.1.10) on XMC4300, the pin P2.0 can not be selected as TX pin on CAN Node 0.
Pin P2.0 is a valid CAN TX pin on XMC4300, and is used on the XMC4300 relax kit.
Workaround is to edit the can_node_conf.c every time after code generation.
Steps to reproduce:
1. Create a new DAVE project for XMC4300
2. Add CAN_NODE
3. Try to assign CAN TX pin to P2.0 Show Less
When using the CAN_NODE APP (4.1.10) on XMC4300, the pin P2.0 can not be selected as TX pin on CAN Node 0.
Pin P2.0 is a valid CAN TX pin on XMC4300, and is used on the XMC4300 relax kit.
Workaround is to edit the can_node_conf.c every time after code generation.
Steps to reproduce:
1. Create a new DAVE project for XMC4300
2. Add CAN_NODE
3. Try to assign CAN TX pin to P2.0 Show Less
DAVE™
I am trying to help you improve your products, but you are not making it easy!I get a message "It wasn't possible to submit the form." when trying to ...
Show More
I am trying to help you improve your products, but you are not making it easy!
I get a message "It wasn't possible to submit the form." when trying to save a new ticket. This is seriously annoying.
There is no contact detail, "report error" button, or indication what to do next. Very poor.
Please can someone :
1) fix problem submitting tickets
2) create a more helpful error page when things go wrong
Using Firefox 49.0.2 Show Less
I get a message "It wasn't possible to submit the form." when trying to save a new ticket. This is seriously annoying.
There is no contact detail, "report error" button, or indication what to do next. Very poor.
Please can someone :
1) fix problem submitting tickets
2) create a more helpful error page when things go wrong
Using Firefox 49.0.2 Show Less
DAVE™
Hi,i get the result of Channel_A, my problem is that i don't know how to add a second Channel to my Code.I use DAVE 4 and a XMC 1100 Bootkit./* * main...
Show More
Hi,
i get the result of Channel_A, my problem is that i don't know how to add a second Channel to my Code.
I use DAVE 4 and a XMC 1100 Bootkit.
/*
* main.c
*
* Created on: 2016 May 25 11:10:44
* Author: Dominik
*/
#include //Declarations from DAVE Code Generation (includes SFR declaration)
XMC_VADC_RESULT_SIZE_t result_a;
void Adc_Measurement_Handler()
{
result_a = ADC_MEASUREMENT_GetResult(&ADC_MEASUREMENT_0);
}
int main(void)
{
DAVE_STATUS_t status;
status = DAVE_Init(); /* Initialization of DAVE APPs */
if(status == DAVE_STATUS_FAILURE)
{
/* Placeholder for error handler code. The while loop below can be replaced with an user error handler. */
XMC_DEBUG("DAVE APPs initialization failed\n");
while(1U)
{
}
}
ADC_MEASUREMENT_StartConversion(&ADC_MEASUREMENT_0);
/* Placeholder for user application code. The while loop below can be replaced with user application code. */
while(1U)
{
}
}
I hope you can help me.
Big Thank, Dominik!
Show Less
i get the result of Channel_A, my problem is that i don't know how to add a second Channel to my Code.
I use DAVE 4 and a XMC 1100 Bootkit.
/*
* main.c
*
* Created on: 2016 May 25 11:10:44
* Author: Dominik
*/
#include
XMC_VADC_RESULT_SIZE_t result_a;
void Adc_Measurement_Handler()
{
result_a = ADC_MEASUREMENT_GetResult(&ADC_MEASUREMENT_0);
}
int main(void)
{
DAVE_STATUS_t status;
status = DAVE_Init(); /* Initialization of DAVE APPs */
if(status == DAVE_STATUS_FAILURE)
{
/* Placeholder for error handler code. The while loop below can be replaced with an user error handler. */
XMC_DEBUG("DAVE APPs initialization failed\n");
while(1U)
{
}
}
ADC_MEASUREMENT_StartConversion(&ADC_MEASUREMENT_0);
/* Placeholder for user application code. The while loop below can be replaced with user application code. */
while(1U)
{
}
}
I hope you can help me.
Big Thank, Dominik!
DAVE™
Same XC1100 boot kit board, same project, same DAVE version (but one is 64 bit and another is 32), different computers. On one pc, all is ok (windows ...
Show More
Same XC1100 boot kit board, same project, same DAVE version (but one is 64 bit and another is 32), different computers.
On one pc, all is ok (windows 8.1), on another pc (Windows 7 32bit) I got this error:
Show Less
On one pc, all is ok (windows 8.1), on another pc (Windows 7 32bit) I got this error:
DAVE™
Hi there,In the last few weeks i`ve tried to understand the procedure of the ETH04 App and to communicate via UDP. I`m still having problems to unders...
Show More
Hi there,
In the last few weeks i`ve tried to understand the procedure of the ETH04 App and to communicate via UDP. I`m still having problems to understand the difference between UDP und TCP. It would be useful to have the same APP realized in TCP.
Perhaps someone can show me how this realisation looks like?
Best regards
J_o_e
Here`s the code from the ETH04 APP:
#include //Declarations from DAVE3 Code Generation (includes SFR declaration)
/*Local port waiting for packets*/
#define LOCAL_PORT_RECEIVE (45555)
/*Local port used to echo back the packet*/
#define LOCAL_PORT_TRANSMIT (45174)
/*Destination port of echoed packet*/
#define TRANSMIT_PORT_DESTINATION (45175)
struct udp_pcb * udp_init_comm(unsigned int port) {
/* start the UDP server */
struct udp_pcb *pcb;
/* create new UDP PCB structure */
pcb = udp_new();
udp_bind(pcb, IP_ADDR_ANY, port);
return pcb;
}
void udp_receive_handler (void * arg, struct udp_pcb * upcb, struct pbuf * p, struct ip_addr * addr, u16_t port)
{
struct pbuf * p_out;
//As handler argument is expected the pcb that shall be used for send back the data
// Allocate a buffer to store data to be transmitted
p_out = pbuf_alloc(PBUF_TRANSPORT,p->tot_len,PBUF_RAM);
//Copy received data to transmit buffer
pbuf_copy(p_out,p);
//Send back data to same ip that sent the data but on different port
udp_sendto((struct udp_pcb *)arg,p_out,addr,TRANSMIT_PORT_DESTINATION);
//Free allocated buffer including the buffer of received data
pbuf_free(p_out);
pbuf_free(p);
}
int main(void)
{
struct udp_pcb *pcb_tr; //lwip pcb struct binded to transmit port
struct udp_pcb *pcb_rec; //lwip pcb struct binded to receive port
DAVE_Init(); // Initialization of DAVE Apps
lwIPStack_init(); //Start Lwip stack
//Create
pcb_tr=udp_init_comm(LOCAL_PORT_TRANSMIT);
pcb_rec=udp_init_comm(LOCAL_PORT_RECEIVE);
//Register an handler on receive packet event
udp_recv(pcb_rec,udp_receive_handler,pcb_tr);
while(1)
{
}
return 0;
}
Show Less
In the last few weeks i`ve tried to understand the procedure of the ETH04 App and to communicate via UDP. I`m still having problems to understand the difference between UDP und TCP. It would be useful to have the same APP realized in TCP.
Perhaps someone can show me how this realisation looks like?
Best regards
J_o_e
Here`s the code from the ETH04 APP:
#include
/*Local port waiting for packets*/
#define LOCAL_PORT_RECEIVE (45555)
/*Local port used to echo back the packet*/
#define LOCAL_PORT_TRANSMIT (45174)
/*Destination port of echoed packet*/
#define TRANSMIT_PORT_DESTINATION (45175)
struct udp_pcb * udp_init_comm(unsigned int port) {
/* start the UDP server */
struct udp_pcb *pcb;
/* create new UDP PCB structure */
pcb = udp_new();
udp_bind(pcb, IP_ADDR_ANY, port);
return pcb;
}
void udp_receive_handler (void * arg, struct udp_pcb * upcb, struct pbuf * p, struct ip_addr * addr, u16_t port)
{
struct pbuf * p_out;
//As handler argument is expected the pcb that shall be used for send back the data
// Allocate a buffer to store data to be transmitted
p_out = pbuf_alloc(PBUF_TRANSPORT,p->tot_len,PBUF_RAM);
//Copy received data to transmit buffer
pbuf_copy(p_out,p);
//Send back data to same ip that sent the data but on different port
udp_sendto((struct udp_pcb *)arg,p_out,addr,TRANSMIT_PORT_DESTINATION);
//Free allocated buffer including the buffer of received data
pbuf_free(p_out);
pbuf_free(p);
}
int main(void)
{
struct udp_pcb *pcb_tr; //lwip pcb struct binded to transmit port
struct udp_pcb *pcb_rec; //lwip pcb struct binded to receive port
DAVE_Init(); // Initialization of DAVE Apps
lwIPStack_init(); //Start Lwip stack
//Create
pcb_tr=udp_init_comm(LOCAL_PORT_TRANSMIT);
pcb_rec=udp_init_comm(LOCAL_PORT_RECEIVE);
//Register an handler on receive packet event
udp_recv(pcb_rec,udp_receive_handler,pcb_tr);
while(1)
{
}
return 0;
}
DAVE™
Hi,1. I didnt find new App like : ETHCAT_FWUPDATE_SSC_APPLICATION_XMC48 I want to Update FW via FoE / Is this App functionally for ...
Show More
Hi,
1. I didnt find new App like : ETHCAT_FWUPDATE_SSC_APPLICATION_XMC48 I want to Update FW via FoE / Is this App functionally for XMC4300 too?
2. Spi-Slave ... QSpi to read Data from A/D convertor : AD7768-4 Spi_ Slave (folder Communication) has not in list of supported devices XMC4300, Dave (ver 4.3.2) has reported an error
(Dave is not able to grant your last.....)
3. Spi_Master to control A/D convertor : AD7768-4 Spi_ Master (folder Communication) has not in list of supported devices XMC4300, ....
best regards
zbyno Show Less
1. I didnt find new App like : ETHCAT_FWUPDATE_SSC_APPLICATION_XMC48 I want to Update FW via FoE / Is this App functionally for XMC4300 too?
2. Spi-Slave ... QSpi to read Data from A/D convertor : AD7768-4 Spi_ Slave (folder Communication) has not in list of supported devices XMC4300, Dave (ver 4.3.2) has reported an error
(Dave is not able to grant your last.....)
3. Spi_Master to control A/D convertor : AD7768-4 Spi_ Master (folder Communication) has not in list of supported devices XMC4300, ....
best regards
zbyno Show Less
DAVE™
I want to create my own wave forms like sine, triangular, ramp by writing program and then assigning output to general GPIO pin and then want to check...
Show More
I want to create my own wave forms like sine, triangular, ramp by writing program and then assigning output to general GPIO pin and then want to check output in oscilloscope on that particular pin instead of DAC,ADC APP instances. So please tell me what is the format for initializing pin directly in code. I am using XMC4400 and DAVE 4.3.2 software. So please tell me how to initialize pin
Show Less