XMC™ Forum Discussions
XMC™
Hallo All,someone of us has found the same problem?I have developed a control with FOC Lib (ver. 4.2.45) using the Q024 version of XMC1302 with 64kB f...
Show More
Hallo All,
someone of us has found the same problem?
I have developed a control with FOC Lib (ver. 4.2.45) using the Q024 version of XMC1302 with 64kB flash size.
Now I am trying to migrate to SAME PROCESSOR (with 64kB) but in TSSOP-28 pin-out and, surprise!!, that version of Lib is not supported. I have to work with ver 4.2.12!
This is really strange. I cannot make any Device Migration but I have to develop different solutions.
So, first I would like to know:
This is a little bit difficult to understand for me. I am a little bit worried about using an older version of FOC Lib.
Thank you very much for your support
Best Regards
Fabio Show Less
someone of us has found the same problem?
I have developed a control with FOC Lib (ver. 4.2.45) using the Q024 version of XMC1302 with 64kB flash size.
Now I am trying to migrate to SAME PROCESSOR (with 64kB) but in TSSOP-28 pin-out and, surprise!!, that version of Lib is not supported. I have to work with ver 4.2.12!
This is really strange. I cannot make any Device Migration but I have to develop different solutions.
So, first I would like to know:
- differences between 4.2.12 and 4.2.45 in FOC LIB in order to understand if I can use the older version without any problem
- why the 28-pin version is not supported? 28-pin version has same GPIO Ports (P0.x, P1,x and P2.x) and 4 more I/O's
This is a little bit difficult to understand for me. I am a little bit worried about using an older version of FOC Lib.
Thank you very much for your support
Best Regards
Fabio Show Less
XMC™
Greetings,XMC product used : XMC4700 - 2048 - 357kb ram - 144pin, XMC link - (jlink) debuggerThe application that I am developing is hitting the inter...
Show More
Greetings,
XMC product used : XMC4700 - 2048 - 357kb ram - 144pin, XMC link - (jlink) debugger
The application that I am developing is hitting the internal RAM limits. My PCB design has an external RAM that I would like to use for storing larger buffers.
My application also has an external flash that we are using with a file system also configured using the EBU.
I have configured the EBU pins so that all three areas are enabled.
EBU Region 1 : 0x6400 0000 for external RAM
EBU Region 2,3 for FLASH.
EBU Region 0 : Unused
I have configured the linker file with a section for the external SRAM
And in my application code I use
To ensure that the linker sticks this buffer into the external RAM.
When I try to debug this code with and set a break point where I access this memory the break point does not occur and the code simply goes to the wazoo.
When I probed my pins I could see that the chip select for the external ram was not activated,
I am not sure how the EBU actually toggles the pins when an access occurs so that I can probe it.
I am having a hard time finding an example code/ configuration that shows how to access external ram and interface with. Any help would be awesome!
Additional Notes :
I am using XMC-link probe to debug which is J-link with VSCODE as the IDE.
Thank you in advance. Show Less
XMC product used : XMC4700 - 2048 - 357kb ram - 144pin, XMC link - (jlink) debugger
The application that I am developing is hitting the internal RAM limits. My PCB design has an external RAM that I would like to use for storing larger buffers.
My application also has an external flash that we are using with a file system also configured using the EBU.
I have configured the EBU pins so that all three areas are enabled.
EBU Region 1 : 0x6400 0000 for external RAM
EBU Region 2,3 for FLASH.
EBU Region 0 : Unused
I have configured the linker file with a section for the external SRAM
And in my application code I use
__attribute__((aligned(4))) uint8_t test_buffer[1024] __attribute__ ((section ("EXT_RAM"))) = {0};
To ensure that the linker sticks this buffer into the external RAM.
When I try to debug this code with and set a break point where I access this memory the break point does not occur and the code simply goes to the wazoo.
When I probed my pins I could see that the chip select for the external ram was not activated,
I am not sure how the EBU actually toggles the pins when an access occurs so that I can probe it.
I am having a hard time finding an example code/ configuration that shows how to access external ram and interface with. Any help would be awesome!
Additional Notes :
I am using XMC-link probe to debug which is J-link with VSCODE as the IDE.
Thank you in advance. Show Less
XMC™
I am trying to use the USB Mass Storage Device example supplied by Keil for the XMC4500 Relax Kit. They say the examples come from Infineon, therefore...
Show More
I am trying to use the USB Mass Storage Device example supplied by Keil for the XMC4500 Relax Kit. They say the examples come from Infineon, therefore Keil cannot help me.
The problem with the example is that the processor is continuously in the USB interrupt. It is not even possible to blink a LED in the main application loop.
I have seen that the "ModeMis" interrupt is active and as this is not handled in the interrupt routine it remains active. The fact that this interrupt is active means the driver is doing something wrong.
The Infineon Support has said I should post this problem here.
I am no USB expert, but I exspect to be able to use the supplied examples. Show Less
The problem with the example is that the processor is continuously in the USB interrupt. It is not even possible to blink a LED in the main application loop.
I have seen that the "ModeMis" interrupt is active and as this is not handled in the interrupt routine it remains active. The fact that this interrupt is active means the driver is doing something wrong.
The Infineon Support has said I should post this problem here.
I am no USB expert, but I exspect to be able to use the supplied examples. Show Less
XMC™
Hello, I'm a beginner trying to follow the EtherCAT SSC example provided within the DAVE local library store (example here).I've gotten to implementin...
Show More
Hello,
I'm a beginner trying to follow the EtherCAT SSC example provided within the DAVE local library store (example here).
I've gotten to implementing the process_app code which sets the state of the LED and propagates the input data. However, upon rebuilding the project, I get the following build errors:
I've checked the manual pin allocator for the main program (ECAT_SSC_0), and Pin 85 (P4.0) and Pin 84 (P4.1) are not referenced anywhere, nor is P_LED1, P_LED2 nor P3_4. The pin mapping view also indicates that these pins are non-feasible for mapping.
I have tried changing the timer to a CCU8 timer as I've heard this is connected to those pins, but this has not done anything. I've got a feeling I've somehow generated the slave-stack code incorrectly, but not sure how.
Help would be greatly appreciated. Show Less
I'm a beginner trying to follow the EtherCAT SSC example provided within the DAVE local library store (example here).
I've gotten to implementing the process_app code which sets the state of the LED and propagates the input data. However, upon rebuilding the project, I get the following build errors:
I've checked the manual pin allocator for the main program (ECAT_SSC_0), and Pin 85 (P4.0) and Pin 84 (P4.1) are not referenced anywhere, nor is P_LED1, P_LED2 nor P3_4. The pin mapping view also indicates that these pins are non-feasible for mapping.
I have tried changing the timer to a CCU8 timer as I've heard this is connected to those pins, but this has not done anything. I've got a feeling I've somehow generated the slave-stack code incorrectly, but not sure how.
Help would be greatly appreciated. Show Less
XMC™
Hi, I'm new to XMC microcontroller.I have a project and I need to read the data from 4 ADC-channels using XMC1100.I use DAVE-app to create an ADC_MEAS...
Show More
Hi, I'm new to XMC microcontroller.
I have a project and I need to read the data from 4 ADC-channels using XMC1100.
I use DAVE-app to create an ADC_MEASUREMENT_0, however when reading the data, the values seem to be wrong.
My code is as follow:
How can I read the correct data from the 4 ADC-Channels?
Thanks
Bien Show Less
I have a project and I need to read the data from 4 ADC-channels using XMC1100.
I use DAVE-app to create an ADC_MEASUREMENT_0, however when reading the data, the values seem to be wrong.
My code is as follow:
XMC_VADC_RESULT_SIZE_t result[4];
uint8_t cnt = 0;
void Adc_Measurement_Handler()
{
result[cnt] = ADC_MEASUREMENT_GetResult(&ADC_MEASUREMENT_0);
cnt = cnt + 1;
if(cnt == 4){
cnt = 0;
}
}
int main(void)
{
DAVE_STATUS_t status;
status = DAVE_Init(); /* Initialization of DAVE Apps */
if(status == DAVE_STATUS_FAILURE)
{
XMC_DEBUG(("DAVE Apps initialization failed with status %d\n", status));
while(1U)
{
}
}
ADC_MEASUREMENT_StartConversion(&ADC_MEASUREMENT_0);
while(1U);
return 1;
}
How can I read the correct data from the 4 ADC-Channels?
Thanks
Bien Show Less
XMC™
Hello,Is it possible to flash a binary file with the XMC Flasher from the Infineon Toolbox? I need to build an binary because of EtherCat update abili...
Show More
Hello,
Is it possible to flash a binary file with the XMC Flasher from the Infineon Toolbox? I need to build an binary because of EtherCat update ability.
I only can Flash hex Files with the XMC Flasher....
Im trying to find a soltion that our production can flash the released version on our Hardware.... Have someone got a good hint for that?
Best regard
Florian Show Less
Is it possible to flash a binary file with the XMC Flasher from the Infineon Toolbox? I need to build an binary because of EtherCat update ability.
I only can Flash hex Files with the XMC Flasher....
Im trying to find a soltion that our production can flash the released version on our Hardware.... Have someone got a good hint for that?
Best regard
Florian Show Less
XMC™
Hello, i would like to use the XMC4100 for Multi-Phase PWM applications. There are lots of documentation available, stating that it would be possible ...
Show More
Hello, i would like to use the XMC4100 for Multi-Phase PWM applications. There are lots of documentation available, stating that it would be possible to use a compare channel to trigger the start of a slave CCU8 slice.
Eg like page 19: https://www.infineon.com/dgdl/Infineon-IP_CCU8_XMC-TR-v01_02-EN.pdf?fileId=5546d4624ad04ef9014b0780b3482262
But how is this done on the XMC4100? The app(s) and/or Hardware-signals dont shot such a route/connection:
- Setup of 2 clean HRPWM (Same for CCU8!)
-> Compare2 event output of HRPWM0
HRPWM1 input Event
No option for Event connection:
Whats wrong? How to fix? Is it a hardware or a DAVE APP problem? Same workflow on XMC4500 shows an event0 input at HRPWM1 in this place! Whats different on the CCU8 between XMC4100 and XMC4500 - application notes are written as like CCU8 units would be identical!? Plase note: Same problem for "pure" CCU8 as well. Thanks a lot! Show Less
Eg like page 19: https://www.infineon.com/dgdl/Infineon-IP_CCU8_XMC-TR-v01_02-EN.pdf?fileId=5546d4624ad04ef9014b0780b3482262
But how is this done on the XMC4100? The app(s) and/or Hardware-signals dont shot such a route/connection:
- Setup of 2 clean HRPWM (Same for CCU8!)
-> Compare2 event output of HRPWM0
HRPWM1 input Event
No option for Event connection:
Whats wrong? How to fix? Is it a hardware or a DAVE APP problem? Same workflow on XMC4500 shows an event0 input at HRPWM1 in this place! Whats different on the CCU8 between XMC4100 and XMC4500 - application notes are written as like CCU8 units would be identical!? Plase note: Same problem for "pure" CCU8 as well. Thanks a lot! Show Less
XMC™
Hallo All,since this chip shortage is a disaster we are in deep trouble since there is no XMC1302 in T038 packaging available.Some of the most importa...
Show More
Hallo All,
since this chip shortage is a disaster we are in deep trouble since there is no XMC1302 in T038 packaging available.
Some of the most important dealers have some part of the XMC1402. So, considering that the two versions in T038 package seems to have exactly the same PIN-OUT,
do you think it will be really painful to switch betwwen XMC1302 to XMC1402, same FLASH SIZE?
We tried to migrate in DAVE the project from one device to the other, but there is no possibility to do this.
Of course we can build a totally new project (is based on FOC library, to drive a PMSM motor), but before making tests
that are very time-consuming we prefer to ask....maybe is there something we are missing?
Thank you very much for your help!
Ciao to ALL
Fabio Show Less
since this chip shortage is a disaster we are in deep trouble since there is no XMC1302 in T038 packaging available.
Some of the most important dealers have some part of the XMC1402. So, considering that the two versions in T038 package seems to have exactly the same PIN-OUT,
do you think it will be really painful to switch betwwen XMC1302 to XMC1402, same FLASH SIZE?
We tried to migrate in DAVE the project from one device to the other, but there is no possibility to do this.
Of course we can build a totally new project (is based on FOC library, to drive a PMSM motor), but before making tests
that are very time-consuming we prefer to ask....maybe is there something we are missing?
Thank you very much for your help!
Ciao to ALL
Fabio Show Less
XMC™
Hello,I am currently using the XMC 2 GO kit and if i add the APP "ADC_MESUREMENT_0" and generate the code and build the project i always get an error ...
Show More
Hello,
I am currently using the XMC 2 GO kit and if i add the APP "ADC_MESUREMENT_0" and generate the code and build the project i always get an error ('XMC_VADC_GLOBAL_SHS_AREF_EXTERNAL_VDD_UPPER_RANGE' undeclared (first use in this function) and i can't solve it.
I am new with this microcontrollers so i have some dificulties. The error can be seen in the attached image and it is present in the library.
Can you help me please solving this error? Show Less
I am currently using the XMC 2 GO kit and if i add the APP "ADC_MESUREMENT_0" and generate the code and build the project i always get an error ('XMC_VADC_GLOBAL_SHS_AREF_EXTERNAL_VDD_UPPER_RANGE' undeclared (first use in this function) and i can't solve it.
I am new with this microcontrollers so i have some dificulties. The error can be seen in the attached image and it is present in the library.
Can you help me please solving this error? Show Less
XMC™
I seem to have encountered an bug in the libraryXMClib v2.2.0@file xmc_can.c@date 2020-03-17.function XMC_CAN_STATUS_t XMC_CAN_MO_ReceiveData (XMC_CAN...
Show More
I seem to have encountered an bug in the library
XMClib v2.2.0
@file xmc_can.c
@date 2020-03-17.
function
XMC_CAN_STATUS_t XMC_CAN_MO_ReceiveData (XMC_CAN_MO_t * can_mo)
Line 746 looks like this:
while ((rx_pnd! = 0U) || (new_data! = 0U));
this form hangs in an infinite loop, since new_data == 1.
in working library XMClib v2.1.24 xmc_can.c from 2019-06-26 this line looks different:
while ((rx_pnd! = 0U) && (new_data! = 0U));
And it works, the actual function of the new version is different only in this place. Show Less
XMClib v2.2.0
@file xmc_can.c
@date 2020-03-17.
function
XMC_CAN_STATUS_t XMC_CAN_MO_ReceiveData (XMC_CAN_MO_t * can_mo)
Line 746 looks like this:
while ((rx_pnd! = 0U) || (new_data! = 0U));
this form hangs in an infinite loop, since new_data == 1.
in working library XMClib v2.1.24 xmc_can.c from 2019-06-26 this line looks different:
while ((rx_pnd! = 0U) && (new_data! = 0U));
And it works, the actual function of the new version is different only in this place. Show Less