DAVE™ Forum Discussions
text.format{('custom.tabs.no.results')}
Sort by:
DAVE™
Hello,I'm using the XMC4500-F144K1024 AB with DAVE4.I have only the IIC-Master App and its dependancies in the project, and want to use the USIC2-Modu...
Show More
Hello,
I'm using the XMC4500-F144K1024 AB with DAVE4.
I have only the IIC-Master App and its dependancies in the project, and want to use the USIC2-Module, CH1.
According the xmc4500_reference_manual_v1.5_2014_07 on page 1815 you'll find USIC2_CH1.SCLKOUT is assignable to the Pins 3.6; 3.13 and 4.2. However when I select the Manual Pin Allocator in Dave I only get the option to select 3.6 or 4.2.
The same goes for the SDA-options: I only get P3.5 but should also be able to use 3.4; 4.0 and 3.12 if I check in the reference manual on page 1811.
Due to constraints in my design I need to use the Pins 3.12 and 3.13.
Is this possible?
Is there an error in the reference manuals or the dave app pin selector or do I just understand the reference manual wrong? please explain.
Similar Problem with CAN:
Can't assign P1.5 N1_TXD, it's also missing from the selection list.
Regards,
Andy Show Less
I'm using the XMC4500-F144K1024 AB with DAVE4.
I have only the IIC-Master App and its dependancies in the project, and want to use the USIC2-Module, CH1.
According the xmc4500_reference_manual_v1.5_2014_07 on page 1815 you'll find USIC2_CH1.SCLKOUT is assignable to the Pins 3.6; 3.13 and 4.2. However when I select the Manual Pin Allocator in Dave I only get the option to select 3.6 or 4.2.
The same goes for the SDA-options: I only get P3.5 but should also be able to use 3.4; 4.0 and 3.12 if I check in the reference manual on page 1811.
Due to constraints in my design I need to use the Pins 3.12 and 3.13.
Is this possible?
Is there an error in the reference manuals or the dave app pin selector or do I just understand the reference manual wrong? please explain.
Similar Problem with CAN:
Can't assign P1.5 N1_TXD, it's also missing from the selection list.
Regards,
Andy Show Less
DAVE™
I am wondering if anyone else is facing this problem after upgrading to the latest version of DAVE4. New projects created under Dave 4.1.2 do not sho...
Show More
I am wondering if anyone else is facing this problem after upgrading to the latest version of DAVE4. New projects created under Dave 4.1.2 do not show any App related files under Dave->Generated. These files are not shown in the IDE and they are not in corresponding location on physical drive. I have attached two screen shots for CAN app to illustrate the point. I have tried on two different computers with the same result.
Please help.
Sam Show Less
Please help.
Sam Show Less
DAVE™
Hallo.I'm a beginner who is still struggling with DAVE.I have a question about UART reference.In the basic example, when you receive a data in the UAR...
Show More
Hallo.
I'm a beginner who is still struggling with DAVE.
I have a question about UART reference.
In the basic example, when you receive a data in the UART communication, there's some function to wait till standard receive buffer event is occurred.
UART001_GetFlagStatus() function.
And normally you may code like this :
//wait till standard receive buffer event is occurred
while(UART001_GetFlagStatus(&UART001_Handle1,UART001_FIFO_STD_RECV_BUF_FLAG)!=UART001_SET);
//Read Receive FIFO buffer till the buffer is empty
UART001_ReadDataBytes(&UART001_Handle1,data,1);
I understand what it means, and it's very useful to me.
but, when it comes to transmitting not recieving, is there something that I need to make waiting code,
till standard transmit buffer event is occurred or FIFO transmit buffer is empty?
I've already made a code and programmed it like this :
UART001_WriteDataBytes(&UART001_Handle0, data, (uint32_t)strlen((char*)data));
while(UART001_GetFlagStatus(&UART001_Handle0,UART001_TRANSMIT_FRAME_FIN_FLAG)!=UART001_SET);
UART001_ClearFlag(&UART001_Handle0,UART001_TRANSMIT_FRAME_FIN_FLAG);
, but I'm not sure it's doing effect.
Plus, when I look into the function of UART001_WriteDataBytes() function, I think it doesn't need to make the wait code like as receive buffer event.
Cause inside of the function UART001_WriteDataBytes(), there are "Count" and "while loop" making the buffer to wait till the FIFO buffer is empty. Am I right?
I'm not sure about the code of the function UART001_WriteDataBytes(), cause i didn't make it and it seems like a bit more part of assembly codes.
Please answer me about the two questions, and please tell me if it's right or wrong.
And if it's wrong, please tell me the reasons and it would be really helpful to me if you show me some simple example code together.
Best Regards Show Less
I'm a beginner who is still struggling with DAVE.
I have a question about UART reference.
In the basic example, when you receive a data in the UART communication, there's some function to wait till standard receive buffer event is occurred.
UART001_GetFlagStatus() function.
And normally you may code like this :
//wait till standard receive buffer event is occurred
while(UART001_GetFlagStatus(&UART001_Handle1,UART001_FIFO_STD_RECV_BUF_FLAG)!=UART001_SET);
//Read Receive FIFO buffer till the buffer is empty
UART001_ReadDataBytes(&UART001_Handle1,data,1);
I understand what it means, and it's very useful to me.
but, when it comes to transmitting not recieving, is there something that I need to make waiting code,
till standard transmit buffer event is occurred or FIFO transmit buffer is empty?
I've already made a code and programmed it like this :
UART001_WriteDataBytes(&UART001_Handle0, data, (uint32_t)strlen((char*)data));
while(UART001_GetFlagStatus(&UART001_Handle0,UART001_TRANSMIT_FRAME_FIN_FLAG)!=UART001_SET);
UART001_ClearFlag(&UART001_Handle0,UART001_TRANSMIT_FRAME_FIN_FLAG);
, but I'm not sure it's doing effect.
Plus, when I look into the function of UART001_WriteDataBytes() function, I think it doesn't need to make the wait code like as receive buffer event.
Cause inside of the function UART001_WriteDataBytes(), there are "Count" and "while loop" making the buffer to wait till the FIFO buffer is empty. Am I right?
I'm not sure about the code of the function UART001_WriteDataBytes(), cause i didn't make it and it seems like a bit more part of assembly codes.
Please answer me about the two questions, and please tell me if it's right or wrong.
And if it's wrong, please tell me the reasons and it would be really helpful to me if you show me some simple example code together.
Best Regards Show Less
DAVE™
Hi,I have downloaded Dave 4 and thinking to port my code from Dave 3 to Dave 4. I have almost all the apps i need for my project, except for dave 4 ve...
Show More
Hi,
I have downloaded Dave 4 and thinking to port my code from Dave 3 to Dave 4. I have almost all the apps i need for my project, except for dave 4 version of POSQE app. which i think has not been released, nor i am able to find a beta version of it. Could you please tell me when Dave 4 version of POSQE app will be released, because otherwise the only way to do it is to manually program the POSQE myself.
The major problem that i have with Dave 3 is the use of communication peripherals. I have XMC4500 relaxkit. In this, i should be able to have many communication peripherals at a time. i need 2xSPI Masters, 1xI2C, and 1xUSART. this should be easily possible without channel and Pin overlap, i have already theoretically checked and tried in Dave 4 too.
But in dave 3 if you try to do manual pin assignment in the last communication interface that i try to do assignment, it gives you PINs that are connected to ethernet or MMC although i still have some pins left which i could use, but manual pin assignment does not show it. I also noticed if you see manual resource assignment not all the channels are available only 4 are available not 6. you can try this problem by making a new project then adding the peripherals apps 2xSPI Masters, 1xI2C, and 1xUSART this should be possible then try to allocate pins in the last peripheral pin assignment you would get the pins in manual pin assignment that are not available in XMC 4500 relaxkit and connected to MMC or ethernet. although you still have some pins that could be used but its not shown.
I have tried in DAVE 4 and this problem is not there in DAVE 4 it working like a charm. please help and suggest a workaround for this.
Regards, Show Less
I have downloaded Dave 4 and thinking to port my code from Dave 3 to Dave 4. I have almost all the apps i need for my project, except for dave 4 version of POSQE app. which i think has not been released, nor i am able to find a beta version of it. Could you please tell me when Dave 4 version of POSQE app will be released, because otherwise the only way to do it is to manually program the POSQE myself.
The major problem that i have with Dave 3 is the use of communication peripherals. I have XMC4500 relaxkit. In this, i should be able to have many communication peripherals at a time. i need 2xSPI Masters, 1xI2C, and 1xUSART. this should be easily possible without channel and Pin overlap, i have already theoretically checked and tried in Dave 4 too.
But in dave 3 if you try to do manual pin assignment in the last communication interface that i try to do assignment, it gives you PINs that are connected to ethernet or MMC although i still have some pins left which i could use, but manual pin assignment does not show it. I also noticed if you see manual resource assignment not all the channels are available only 4 are available not 6. you can try this problem by making a new project then adding the peripherals apps 2xSPI Masters, 1xI2C, and 1xUSART this should be possible then try to allocate pins in the last peripheral pin assignment you would get the pins in manual pin assignment that are not available in XMC 4500 relaxkit and connected to MMC or ethernet. although you still have some pins that could be used but its not shown.
I have tried in DAVE 4 and this problem is not there in DAVE 4 it working like a charm. please help and suggest a workaround for this.
Regards, Show Less
DAVE™
Hello,I want to modify DAVE ID perspective by adding search tool. From Customize perspective I add search and than save perspective under same name. A...
Show More
Hello,
I want to modify DAVE ID perspective by adding search tool. From Customize perspective I add search and than save perspective under same name. After I change project or reopen DAVE search tool is not visible again.
This feature has been working in DAVE3. What to do to keep search tool always visible?
rum Show Less
I want to modify DAVE ID perspective by adding search tool. From Customize perspective I add search and than save perspective under same name. After I change project or reopen DAVE search tool is not visible again.
This feature has been working in DAVE3. What to do to keep search tool always visible?
rum Show Less
DAVE™
Hello,User dictionary in DAVE4 does not work. I copied my dictionary from DAVE3 under DAVE4 eclipse folder. Then in preferences, spelling, I browse fo...
Show More
Hello,
User dictionary in DAVE4 does not work. I copied my dictionary from DAVE3 under DAVE4 eclipse folder. Then in preferences, spelling, I browse for my dictionary. When I want to add word to dictionary it says that "it is not configured" and it does not recognize words present in dictionary.
rum Show Less
User dictionary in DAVE4 does not work. I copied my dictionary from DAVE3 under DAVE4 eclipse folder. Then in preferences, spelling, I browse for my dictionary. When I want to add word to dictionary it says that "it is not configured" and it does not recognize words present in dictionary.
rum Show Less
DAVE™
I installed the DAVE tool, put together some Apps in a DAVE CE project, and configured it before generating the code. All this is simple, but I have n...
Show More
I installed the DAVE tool, put together some Apps in a DAVE CE project, and configured it before generating the code. All this is simple, but I have no idea what has been created and can find no documentation about what DAVE CE is actually doing. Nor do I know what to do next. From what I can see, some initialization including pin assignment was done. The videos do not really help at all because they don't answer the basic premise of what DAVE CE is doing for you.
Is there some documentation outlining where I am to insert my code? I have a main method but do not know what else might be wired aside from the initialization code.
Is there some code documentation outlining what each of the the Apps actually does and when the different methods/functions in each App can be called? The comments in the Apps I looked at are almost useless as they mostly restate the name of the method without stating intent.
Thanks,
Jason Show Less
Is there some documentation outlining where I am to insert my code? I have a main method but do not know what else might be wired aside from the initialization code.
Is there some code documentation outlining what each of the the Apps actually does and when the different methods/functions in each App can be called? The comments in the Apps I looked at are almost useless as they mostly restate the name of the method without stating intent.
Thanks,
Jason Show Less
DAVE™
Hello, i use the XMC4500 Relaxkit and i managed perfect in within some minutes to send my can messages as i wanted, but i getting out of GPIO. I need ...
Show More
Hello, i use the XMC4500 Relaxkit and i managed perfect in within some minutes to send my can messages as i wanted, but i getting out of GPIO.
I need 8 more inputs and checked the datasheet but i'm not sure if i understood correct. Is it possible to use analog inputs (P14.0-P14.15) as digital input?
If yes which APP i have to use, because IO004APP is only for GPIO?
I use Dave3 Show Less
I need 8 more inputs and checked the datasheet but i'm not sure if i understood correct. Is it possible to use analog inputs (P14.0-P14.15) as digital input?
If yes which APP i have to use, because IO004APP is only for GPIO?
I use Dave3 Show Less
DAVE™
Hi.So I recently started programming using DAVE 3.1.10 and using an XMC4500 Relax Kit Lite and I'm having difficulty establishing a communication usin...
Show More
Hi.
So I recently started programming using DAVE 3.1.10 and using an XMC4500 Relax Kit Lite and I'm having difficulty establishing a communication using CAN. I already tried the CAN examples but those didn't help me much.
I'm using the CAN001 app and I can successfully transmit a message, but I'm not able to receive it on the other end. I already tried several different methods (one CANApp, two CANApps (one for transmitting and another for receiving), same LMO, two LMOs, acceptance mask at 0, just to name a few) and none of them are working. So obviously I'm doing something wrong.
Here's my main:
This sends the message using the LMO1 of the CAN001 app, right? So now I need help in order to receive this message. Please tell me what I have to do, like do I have to create another CAN001 app, or do I just use one app but have to use different LMOs, what kind of interrupts do I need, everything. I've been stuck on this problem for hours and can't figure it out on my own.
I'm also not using Loop Back mode. I'm physically connecting the ports on my Relax Kit using a wire in order to test if the messages are being received.
Thank you so much in advance, every bit of help is appreciated.
Telmo Show Less
So I recently started programming using DAVE 3.1.10 and using an XMC4500 Relax Kit Lite and I'm having difficulty establishing a communication using CAN. I already tried the CAN examples but those didn't help me much.
I'm using the CAN001 app and I can successfully transmit a message, but I'm not able to receive it on the other end. I already tried several different methods (one CANApp, two CANApps (one for transmitting and another for receiving), same LMO, two LMOs, acceptance mask at 0, just to name a few) and none of them are working. So obviously I'm doing something wrong.
Here's my main:
int main(void)
{
}
{
uint8_t Data[8] = {0xAA,0xAA,0xAA,0xAA,0x55,0x55,0x55,0x55}; /* This was just to test the signal on my oscilloscope */
DAVE_Init();
// Update data value to be transmitted in LMO1
CAN001_UpdateMODataRegisters(&CAN001_Handle0,1,8,Data);
// Send data frame
CAN001_SendDataFrame(&CAN001_Handle0,1);
while(1)
{
}
return 0;
DAVE_Init();
// Update data value to be transmitted in LMO1
CAN001_UpdateMODataRegisters(&CAN001_Handle0,1,8,Data);
// Send data frame
CAN001_SendDataFrame(&CAN001_Handle0,1);
while(1)
{
}
return 0;
}
This sends the message using the LMO1 of the CAN001 app, right? So now I need help in order to receive this message. Please tell me what I have to do, like do I have to create another CAN001 app, or do I just use one app but have to use different LMOs, what kind of interrupts do I need, everything. I've been stuck on this problem for hours and can't figure it out on my own.
I'm also not using Loop Back mode. I'm physically connecting the ports on my Relax Kit using a wire in order to test if the messages are being received.
Thank you so much in advance, every bit of help is appreciated.
Telmo Show Less
DAVE™
Hi,I am working with xmc4500 relax kit and having a problems with POSIF interrupts. I want to track the positions so i am using POSQE001 App. I want t...
Show More
Hi,
I am working with xmc4500 relax kit and having a problems with POSIF interrupts. I want to track the positions so i am using POSQE001 App. I want to have two interrupts at position counter compare match and position counter period match. These two interrupts are mapped to my own functions with two NVIC002 apps. I am only able to get period match interrupt only in one direction. Compare match interrupt does not occur no matter what i do. Also in order to get period match interrupt, i have to check the option in POSQE001 App GUI setting panel (Enable Position counter overflow event) in addition to manually enabling the event in main function with the following code. if i do not check it this, then period match interrupt also does not occur.
I dont know why i need to enable the GUI option, when i am enabling the events manually. but the problem does not end here this period match interrupt only occurs in one direction of movement but not in the other direction e.g it occurs only in Clockwise direction, but not in anti- clockwise direction. it should occur in both directions.
could anyone please explain what the option in POSQE001 App GUI setting panel (enable Position counter overflow event) means, what does it do, why is it necessary. and is it necessary to check if i am enabling the events manually. because if i do not check it and enable the events manually then both interrupts does not work.
secondly and most Importantly, please someone help me how to get compare match interrupt and period match interrupt working in both directions. I am also enabling the events manually and setting CompareMatch and PeriodMatch values with the following code in main function, but nothing is helping.
and also one more question when does Position counter Event 0,1 and 2 interrupts occur? what are Position counter Event 0,1 and 2? Show Less
I am working with xmc4500 relax kit and having a problems with POSIF interrupts. I want to track the positions so i am using POSQE001 App. I want to have two interrupts at position counter compare match and position counter period match. These two interrupts are mapped to my own functions with two NVIC002 apps. I am only able to get period match interrupt only in one direction. Compare match interrupt does not occur no matter what i do. Also in order to get period match interrupt, i have to check the option in POSQE001 App GUI setting panel (Enable Position counter overflow event) in addition to manually enabling the event in main function with the following code. if i do not check it this, then period match interrupt also does not occur.
Status = POSQE001_EnableEvent((POSQE001_HandleType*)&POSQE001_Handle0,POSQE001_POSITION_COUNTER,POSQE001_CCU_PERIOD_MATCH);
I dont know why i need to enable the GUI option, when i am enabling the events manually. but the problem does not end here this period match interrupt only occurs in one direction of movement but not in the other direction e.g it occurs only in Clockwise direction, but not in anti- clockwise direction. it should occur in both directions.
could anyone please explain what the option in POSQE001 App GUI setting panel (enable Position counter overflow event) means, what does it do, why is it necessary. and is it necessary to check if i am enabling the events manually. because if i do not check it and enable the events manually then both interrupts does not work.
secondly and most Importantly, please someone help me how to get compare match interrupt and period match interrupt working in both directions. I am also enabling the events manually and setting CompareMatch and PeriodMatch values with the following code in main function, but nothing is helping.
int main(void)
{
status_t Status;
Status = POSQE001_EnableEvent((POSQE001_HandleType*)&POSQE001_Handle0,
POSQE001_POSITION_COUNTER,
POSQE001_CCU_PERIOD_MATCH);
Status = POSQE001_EnableEvent((POSQE001_HandleType*)&POSQE001_Handle0,
POSQE001_POSITION_COUNTER,
POSQE001_CCU_UP_COMPARE_MATCH);
Status = POSQE001_EnableEvent((POSQE001_HandleType*)&POSQE001_Handle0,
POSQE001_POSITION_COUNTER,
POSQE001_CCU_DOWN_COMPARE_MATCH);
Status = POSQE001_Start(&POSQE001_Handle0);
Status = POSQE001_SetPeriodCounterPM(&POSQE001_Handle0, 80);
Status = POSQE001_SetPeriodCounterCM(&POSQE001_Handle0, 40);
}
and also one more question when does Position counter Event 0,1 and 2 interrupts occur? what are Position counter Event 0,1 and 2? Show Less