DAVE™ Forum Discussions
DAVE™
How do I configure a SPI port as slave using Dave App? The options are all for Master side. I have two XMC4500 CPUs - one is to be master, then other ...
Show More
How do I configure a SPI port as slave using Dave App? The options are all for Master side. I have two XMC4500 CPUs - one is to be master, then other a slave. I am using the built in clock in the slave, so a normal UART is not workable. I need a synchronous slave.
The SPI Slave App was planned. Will be announced once released.Show Less
DAVE™
Using DAVE 3.1.8, Keil MDK plugin 4.54, and uVision 4.6 there are issues compiling projects output from DAVE using the plugin.
DAVE™
Hello.Has anyone already implemented an authentication to the webserver? It shouldn't allow to open a page if password isn't correct. I found somethin...
Show More
Hello.
Has anyone already implemented an authentication to the webserver?
It shouldn't allow to open a page if password isn't correct.
I found something like that here, but I'm not sure how to implement:
http://mbed.org/users/mbed_unsupported/code/lwip/docs/5e1631496985/tag_213_2HTTPClient_2HTTPClient_8h_source.html
Would be great if someone can share his efforts with me.
Thanks in advance. Show Less
Has anyone already implemented an authentication to the webserver?
It shouldn't allow to open a page if password isn't correct.
I found something like that here, but I'm not sure how to implement:
http://mbed.org/users/mbed_unsupported/code/lwip/docs/5e1631496985/tag_213_2HTTPClient_2HTTPClient_8h_source.html
Would be great if someone can share his efforts with me.
Thanks in advance. Show Less
DAVE™
Hello, I am working with XMC4500 and on board codec from ti!. Using I2S protocol I am successful in getting the required SCLK, WCLK. But to use perip...
Show More
Hello,
I am working with XMC4500 and on board codec from ti!. Using I2S protocol I am successful in getting the required SCLK, WCLK. But to use peripheral I am coding for I2C and results are not satisfactory
here is my code for USIC 1 ch 0, is the slave address correct!!! .
I2CConfig_U1C0_B.SlaveAddr.SlaveAddr1 = 0x34;
I2CConfig_U1C0_B.Operation = I2C002_WRITE;
I2CConfig_U1C0_B.DataLen = 2;
I2CConfig_U1C0_B.MasterRead = 0;
Help is needed. Show Less
I am working with XMC4500 and on board codec from ti!. Using I2S protocol I am successful in getting the required SCLK, WCLK. But to use peripheral I am coding for I2C and results are not satisfactory
here is my code for USIC 1 ch 0, is the slave address correct!!! .
I2CConfig_U1C0_B.SlaveAddr.SlaveAddr1 = 0x34;
I2CConfig_U1C0_B.Operation = I2C002_WRITE;
I2CConfig_U1C0_B.DataLen = 2;
I2CConfig_U1C0_B.MasterRead = 0;
Help is needed. Show Less
DAVE™
Hello,how can I change the standard-hostname "lwip"?If I do it in ethernetif.c it will only keep until generating code.Thank you and best regards!
Show More
Hello,
how can I change the standard-hostname "lwip"?
If I do it in ethernetif.c it will only keep until generating code.
Thank you and best regards! Show Less
how can I change the standard-hostname "lwip"?
If I do it in ethernetif.c it will only keep until generating code.
Thank you and best regards! Show Less
DAVE™
Dear allPossibly this topic already being questioned, but I want to ask again to make it clearly. I want to trigger ADC scan each time PWM compare mat...
Show More
Dear all
Possibly this topic already being questioned, but I want to ask again to make it clearly. I want to trigger ADC scan each time PWM compare match occur.
PWMSP002 configuration on figure.
ADC003 configuration on figure.
then i read in help manual that i should connect PWMSP002 compare match interrupt signal to NVIC002 apps then connect interrupt node to ADC003 trigger select.
my question :
1. is that configuration already correct for my purpose?
2. is it OK that i not declare any interrupt handler in NVIC002 apps ?
2. Because NVIC002 apps are used to link PWMSP002 and ADC003 apps, for each ADC trigger event are it is also interrupting to CPU?
Thank you Show Less
Possibly this topic already being questioned, but I want to ask again to make it clearly. I want to trigger ADC scan each time PWM compare match occur.
PWMSP002 configuration on figure.
ADC003 configuration on figure.
then i read in help manual that i should connect PWMSP002 compare match interrupt signal to NVIC002 apps then connect interrupt node to ADC003 trigger select.
my question :
1. is that configuration already correct for my purpose?
2. is it OK that i not declare any interrupt handler in NVIC002 apps ?
2. Because NVIC002 apps are used to link PWMSP002 and ADC003 apps, for each ADC trigger event are it is also interrupting to CPU?
Thank you Show Less
DAVE™
Hi,trying to develop a simple application with Dave3 (v3.1.18) for my XMC4500 Relax Kit using the I2C001 App (v1.0.26), I noted that the documentation...
Show More
Hi,
trying to develop a simple application with Dave3 (v3.1.18) for my XMC4500 Relax Kit using the I2C001 App (v1.0.26), I noted that the documentation of I2C001_WriteData seems to be not up to date.
This is the code snippet available for I2C001_WriteData in I2C001.h and in the online help:
#include
int main(void)
{
DAVE_Init();
// Configure message data length
I2C001_Type data1,data2,data3,data4;
// Write access IO expander device PCA9502
// Transmission by the master with start condition,
// I2C write condition and slave address
data1.TDF_Type = I2C_TDF_MStart;
data1.Data = (0x98 | I2C_WRITE);
I2C001_WriteData(&I2C001_Handle0,&data1);
// Write to the direction register
data2.TDF_Type = I2C_TDF_MTxData;
data2.Data = 0x50;
I2C001_WriteData(&I2C001_Handle0,&data2);
// Write data to configure one bit as output
data3.TDF_Type = I2C_TDF_MTxData;
data3.Data = 0x01;
I2C001_WriteData(&I2C001_Handle0,&data3);
// Stop condition by the master
data4.TDF_Type = I2C_TDF_MStop;
data4.Data = ubyteFF;
I2C001_WriteData(&I2C001_Handle0,&data4);
while(1)
{}
return 0;
}
I used this code as a base to develop my application (use of an I2C 3-axis accelerometer and magnetometer connected to XMC4500); however the compiler complains that the second argument passed to I2C001_WriteData instances is of the wrong type:
[...note: expected 'const union I2C001_DataType *' but argument is of type 'struct I2C001_Type *'
I]
So I wrote my code as follows:
uint8_t accelerometerConfigurationData[7] = {0xA0, 0x3F, 0x00, 0x00, ACCELEROMETER_FSR_INDEX << 4, 0x00, 0x00};
uint8_t magnetometerConfigurationData[4] = {0x00, 0x1c, MAGNETOMETER_FSR_INDEX << 5, 0x00};
I2C001_DataType I2CXmtData;
uint8_t k;
// Configure accelerometer
// Start
I2CXmtData.Data1.TDF_Type = I2C_TDF_MStart;
I2CXmtData.Data1.Data = (ACCELEROMETER_I2C_ADDRESS | I2C_WRITE);
I2C001_WriteData(&I2C001_Handle0, &I2CXmtData);
// Write to the accelerometer configuration registers
I2CXmtData.Data1.TDF_Type = I2C_TDF_MTxData;
for (k = 0; k < 7; k++) {
I2CXmtData.Data1.Data = accelerometerConfigurationData;
I2C001_WriteData(&I2C001_Handle0, &I2CXmtData);
}
// Stop
I2CXmtData.Data1.TDF_Type = I2C_TDF_MStop;
I2CXmtData.Data1.Data = 0xff;
I2C001_WriteData(&I2C001_Handle0, &I2CXmtData);
and it compiles correctly.
I think that it is necessary to correct this problem in the future releases of I2C001, because it generates confusion in users, especially those with limited experience.
Thank you Show Less
trying to develop a simple application with Dave3 (v3.1.18) for my XMC4500 Relax Kit using the I2C001 App (v1.0.26), I noted that the documentation of I2C001_WriteData seems to be not up to date.
This is the code snippet available for I2C001_WriteData in I2C001.h and in the online help:
#include
int main(void)
{
DAVE_Init();
// Configure message data length
I2C001_Type data1,data2,data3,data4;
// Write access IO expander device PCA9502
// Transmission by the master with start condition,
// I2C write condition and slave address
data1.TDF_Type = I2C_TDF_MStart;
data1.Data = (0x98 | I2C_WRITE);
I2C001_WriteData(&I2C001_Handle0,&data1);
// Write to the direction register
data2.TDF_Type = I2C_TDF_MTxData;
data2.Data = 0x50;
I2C001_WriteData(&I2C001_Handle0,&data2);
// Write data to configure one bit as output
data3.TDF_Type = I2C_TDF_MTxData;
data3.Data = 0x01;
I2C001_WriteData(&I2C001_Handle0,&data3);
// Stop condition by the master
data4.TDF_Type = I2C_TDF_MStop;
data4.Data = ubyteFF;
I2C001_WriteData(&I2C001_Handle0,&data4);
while(1)
{}
return 0;
}
I used this code as a base to develop my application (use of an I2C 3-axis accelerometer and magnetometer connected to XMC4500); however the compiler complains that the second argument passed to I2C001_WriteData instances is of the wrong type:
[...note: expected 'const union I2C001_DataType *' but argument is of type 'struct I2C001_Type *'
I]
So I wrote my code as follows:
uint8_t accelerometerConfigurationData[7] = {0xA0, 0x3F, 0x00, 0x00, ACCELEROMETER_FSR_INDEX << 4, 0x00, 0x00};
uint8_t magnetometerConfigurationData[4] = {0x00, 0x1c, MAGNETOMETER_FSR_INDEX << 5, 0x00};
I2C001_DataType I2CXmtData;
uint8_t k;
// Configure accelerometer
// Start
I2CXmtData.Data1.TDF_Type = I2C_TDF_MStart;
I2CXmtData.Data1.Data = (ACCELEROMETER_I2C_ADDRESS | I2C_WRITE);
I2C001_WriteData(&I2C001_Handle0, &I2CXmtData);
// Write to the accelerometer configuration registers
I2CXmtData.Data1.TDF_Type = I2C_TDF_MTxData;
for (k = 0; k < 7; k++) {
I2CXmtData.Data1.Data = accelerometerConfigurationData
I2C001_WriteData(&I2C001_Handle0, &I2CXmtData);
}
// Stop
I2CXmtData.Data1.TDF_Type = I2C_TDF_MStop;
I2CXmtData.Data1.Data = 0xff;
I2C001_WriteData(&I2C001_Handle0, &I2CXmtData);
and it compiles correctly.
I think that it is necessary to correct this problem in the future releases of I2C001, because it generates confusion in users, especially those with limited experience.
Thank you Show Less
DAVE™
Any idea how to use Dave to just download an elf or hex to the target.J-Link lite is to be used.Debugging is not needed.Source of the Project may not ...
Show More
Any idea how to use Dave to just download an elf or hex to the target.
J-Link lite is to be used.
Debugging is not needed.
Source of the Project may not be available.
So, do not start maling of Project, just pick .elf and download. Show Less
J-Link lite is to be used.
Debugging is not needed.
Source of the Project may not be available.
So, do not start maling of Project, just pick .elf and download. Show Less
DAVE™
Please make the Apps in the S/W App Connectivity View sticky !This is a Long time issue. Everytime an app is added or removed the view is somehow new ...
Show More
Please make the Apps in the S/W App Connectivity View sticky !
This is a Long time issue. Everytime an app is added or removed the view is somehow new sorted.
It would also be nice to have some Tabs or pages in this view. Show Less
This is a Long time issue. Everytime an app is added or removed the view is somehow new sorted.
It would also be nice to have some Tabs or pages in this view. Show Less
DAVE™
Dear allthis is my first time to post in DAVE forums. Actually i just started to learn how to use infineon XMC4500 and DAVE apps in 2 weeks. I realize...
Show More
Dear all
this is my first time to post in DAVE forums. Actually i just started to learn how to use infineon XMC4500 and DAVE apps in 2 weeks.
I realize that not all configuration are included in DAVE apps. For example, i need to start synchronously 2 slice of CCU80 timer from SCU. PWMSP002 apps can do the job to enable the external start and edge configuration, then i realize that i cannot found where to select the event signal selection.
So i have two questions:
1. How "the best way" to add code for further configuration? if i configure the source code in PWMSP002.c this will be overwritten when regenerated code again.
2. Is there any XMC microcontroller source code that already provided for peripheral configuration without using DAVE apps?
Thank You Show Less
this is my first time to post in DAVE forums. Actually i just started to learn how to use infineon XMC4500 and DAVE apps in 2 weeks.
I realize that not all configuration are included in DAVE apps. For example, i need to start synchronously 2 slice of CCU80 timer from SCU. PWMSP002 apps can do the job to enable the external start and edge configuration, then i realize that i cannot found where to select the event signal selection.
So i have two questions:
1. How "the best way" to add code for further configuration? if i configure the source code in PWMSP002.c this will be overwritten when regenerated code again.
2. Is there any XMC microcontroller source code that already provided for peripheral configuration without using DAVE apps?
Thank You Show Less