XMC™ Forum Discussions
Sort by:
XMC™
Hello,there are many APPs and example projects shipped with Dave for XMC devices which have Ethernet Interface. I could see that over the years severa...
Show More
Hello,
there are many APPs and example projects shipped with Dave for XMC devices which have Ethernet Interface. I could see that over the years several modifications are introduced to the driver.
What is latest (and reliably working) version of this file implemented according to LWIP guideline for eternetif ? Which APP includes it? What is minimum version of xmc library that has to be used with it?
thank you
rum Show Less
there are many APPs and example projects shipped with Dave for XMC devices which have Ethernet Interface. I could see that over the years several modifications are introduced to the driver.
What is latest (and reliably working) version of this file implemented according to LWIP guideline for eternetif ? Which APP includes it? What is minimum version of xmc library that has to be used with it?
thank you
rum Show Less
XMC™
hi,I am checking Apps in Dave help and looking for PMSM_SCALAR_CTRL. this app was mention in Dave help but I am not able to find the app in Dave 4.3.2...
Show More
hi,
I am checking Apps in Dave help and looking for PMSM_SCALAR_CTRL. this app was mention in Dave help but I am not able to find the app in Dave 4.3.2.
is App still available ? Thank you.
Best Regards,
Felix Show Less
I am checking Apps in Dave help and looking for PMSM_SCALAR_CTRL. this app was mention in Dave help but I am not able to find the app in Dave 4.3.2.
is App still available ? Thank you.
Best Regards,
Felix Show Less
XMC™
the errors like these:undefined reference to 'PLL_Imag,the same error to PLL_Vref,PLL_GetPosSpd,PLL_Estimator and so on. My question is if the functio...
Show More
the errors like these:undefined reference to 'PLL_Imag,the same error to PLL_Vref,PLL_GetPosSpd,PLL_Estimator and so on. My question is if the functions' definition are secrets of Infineon and what we can do is just using the builded download file.I can't find the definition file of the functions above anywhere。
the demo comes from the link:
Show Less
the demo comes from the link:
XMC™
I have tried the example Dave4 applicaiton example for updating an XMC1000 using ASC ( https://www.infineon.com/dgdl/Infineon-AP32337-XMC1000-software-update-XMC1000-using-ASC-example-codes-AN-v01_00-EN.zip?fileId=5546d4625607bd1301564f2b5e955bcf&sd=t...
Show More
I have tried the example Dave4 applicaiton example for updating an XMC1000 using ASC ( https://www.infineon.com/dgdl/Infineon-AP32337-XMC1000-software-update-XMC1000-using-ASC-example-codes-AN-v01_00-EN.zip?fileId=5546d4625607bd1301564f2b5e955bcf&sd=t )
It works quite well, using all applications in Dave.
The Blinky2 Application from this example starts from Flash Address 0x10008000 ( Default: 0x10001000 )
I tried now to implement the Blinky2 Applicaiton in IAR Workbench. I can debug it from IAR and i also receive interrupts and so on.
But as soon i call the application via the Bootstrap application via
then the program will go into the default handler.
I am not sure, if i have to change something else in the .icf linker script file, or just have to call the application from a different start point ?
Or maybe the startup_XMC1x00.S file has to be changed from the default one?
My .icf file is the same as the standard icf file for XMC1200, just with different start and end addresses:
define symbol __ICFEDIT_intvec_start__ = 0x10008000;
define symbol __ICFEDIT_region_ROM_start__ = 0x10008000;
define symbol __ICFEDIT_region_ROM_end__ = 0x1002AFFF;
the startup_XMC1200.S file i did not modify from the standard one.
The binaries of the Blinky2 application from DAVE4 and from IAR are quite different. But i guess this is normal.
The .map file of my IAR Blinky2 application looks like this:
It works quite well, using all applications in Dave.
The Blinky2 Application from this example starts from Flash Address 0x10008000 ( Default: 0x10001000 )
I tried now to implement the Blinky2 Applicaiton in IAR Workbench. I can debug it from IAR and i also receive interrupts and so on.
But as soon i call the application via the Bootstrap application via
__asm
(
"LDR r0, =0x10008001\n"
"BLX r0"
);
then the program will go into the default handler.
I am not sure, if i have to change something else in the .icf linker script file, or just have to call the application from a different start point ?
Or maybe the startup_XMC1x00.S file has to be changed from the default one?
My .icf file is the same as the standard icf file for XMC1200, just with different start and end addresses:
define symbol __ICFEDIT_intvec_start__ = 0x10008000;
define symbol __ICFEDIT_region_ROM_start__ = 0x10008000;
define symbol __ICFEDIT_region_ROM_end__ = 0x1002AFFF;
the startup_XMC1200.S file i did not modify from the standard one.
The binaries of the Blinky2 application from DAVE4 and from IAR are quite different. But i guess this is normal.
The .map file of my IAR Blinky2 application looks like this:
Show Less
"A1": place at 0x10008000 { ro section .intvec };
"A2": place at 0x2000000c { section .vect_table };
"P1": place in [from 0x10008000 to 0x1002afff] { ro };
"P2": place in [from 0x20000000 to 0x20003fff] { rw, block HEAP };
"A3": place at end of [0x20000000-0x20003fff] { block CSTACK };
Section Kind Address Size Object
------- ---- ------- ---- ------
"A1": 0x18
.intvec ro code 0x10008000 0x18 startup_XMC1200.o [1]
- 0x10008018 0x18
"P1": 0xec3
.text ro code 0x10008018 0x2c4 Blinky.o [1]
.text ro code 0x100082dc 0x44 system_XMC1200.o [1]
.text ro code 0x10008320 0xae I32DivModFast.o [4]
..
"A2": 0x130
section .vect_table-1 0x2000000c 0x130
.vect_table inited 0x2000000c 0x130 startup_XMC1200.o [1]
- 0x2000013c 0x130
"P2", part 1 of 3: 0x19
P2-1 0x2000013c 0x19
.data inited 0x2000013c 0xc uart_conf.o [1]
.data inited 0x20000148 0xc xmc1_scu.o [1]
.data inited 0x20000154 0x1 Blinky.o [1]
- 0x20000155 0x19
"P2", part 2 of 3: 0x4
.noinit uninit 0x20000158 0x4 system_XMC1200.o [1]
- 0x2000015c 0x4
"P2", part 3 of 3: 0xa0
.bss zero 0x2000015c 0x80 xmc1_scu.o [1]
.bss zero 0x200001dc 0x1c uart_conf.o [1]
.bss zero 0x200001f8 0x4 Blinky.o [1]
- 0x200001fc 0xa0
"A3": 0x800
CSTACK 0x20003800 0x800
CSTACK uninit 0x20003800 0x800
- 0x20004000 0x800
XMC™
Hello everyone,I was recently trying to make use of CAN module on XMC4500 Relax Kit but it doesnt seem to work for me. I began with example project wh...
Show More
Hello everyone,
I was recently trying to make use of CAN module on XMC4500 Relax Kit but it doesnt seem to work for me.
I began with example project which used internal CAN bus and it worked just fine. Later i unchecked loopback mode and
assigned 1.13 and 1.12 pins as output to sn65hvd230 transciver IC. after loeading program to MCU i found no output on CAN bus nor on RelaxKit
goldpins.
Is there something more i need to do ? Show Less
I was recently trying to make use of CAN module on XMC4500 Relax Kit but it doesnt seem to work for me.
I began with example project which used internal CAN bus and it worked just fine. Later i unchecked loopback mode and
assigned 1.13 and 1.12 pins as output to sn65hvd230 transciver IC. after loeading program to MCU i found no output on CAN bus nor on RelaxKit
goldpins.
Is there something more i need to do ? Show Less
XMC™
/startup_XMC1300.s:44:27: fatal error: XMC1300_SCU.inc: no such file or directory.
so where can I find this file?
so where can I find this file?
XMC™
Hi,I had made a PMSM FOC controller PCBA successfully using DAVE4 PMSM_FOC V4.2.4. This app is using sensorless solution, the performance look good....
Show More
Hi,
I had made a PMSM FOC controller PCBA successfully using DAVE4 PMSM_FOC V4.2.4. This app is using sensorless solution, the performance look good. However, our customer want FOC-hall solution rather than sensorless.
Application requirement :
The motor must able to provide continue stall torque during the stall period, the stall period is around 3-5s before it trigger the stall protection. The stall torque must be a continue torque instead of a pulsing.
I had modified my program with reference to the Infineon's application notes AP32289 (Position interface (POSIF)),P15-P.20.
I had assigned a digital I/O name it "FG" to indicated the hall frequency of motor rotation. At the end of routine "void POSIF0_0_IRQHandler(void)" , I toggle the "FG" . When I turn the motor manually, I saw the pulse appear at "FG" indicate the "void POSIF0_0_IRQHandler(void)" are working correctly, I can obtain the Hall position and motor speed within this in this IRQ.
My question is : how and where I can replace the sensorless estimator's speed and position parameter inside the app with the above position and speed parameters ?
can anyone help ?
Regards,
rocky Show Less
I had made a PMSM FOC controller PCBA successfully using DAVE4 PMSM_FOC V4.2.4. This app is using sensorless solution, the performance look good. However, our customer want FOC-hall solution rather than sensorless.
Application requirement :
The motor must able to provide continue stall torque during the stall period, the stall period is around 3-5s before it trigger the stall protection. The stall torque must be a continue torque instead of a pulsing.
I had modified my program with reference to the Infineon's application notes AP32289 (Position interface (POSIF)),P15-P.20.
I had assigned a digital I/O name it "FG" to indicated the hall frequency of motor rotation. At the end of routine "void POSIF0_0_IRQHandler(void)" , I toggle the "FG" . When I turn the motor manually, I saw the pulse appear at "FG" indicate the "void POSIF0_0_IRQHandler(void)" are working correctly, I can obtain the Hall position and motor speed within this in this IRQ.
My question is : how and where I can replace the sensorless estimator's speed and position parameter inside the app with the above position and speed parameters ?
can anyone help ?
Regards,
rocky Show Less
XMC™
Hi all,I am using my XMC1400 board with VDD set to 3.3 V. For certain measurements I need a range from 0-5 V in a certain VADC channel. Is it possible...
Show More
Hi all,
I am using my XMC1400 board with VDD set to 3.3 V. For certain measurements I need a range from 0-5 V in a certain VADC channel. Is it possible to set the input range from 0 to 5V without changing VDD to 5V?
Thank you Show Less
I am using my XMC1400 board with VDD set to 3.3 V. For certain measurements I need a range from 0-5 V in a certain VADC channel. Is it possible to set the input range from 0 to 5V without changing VDD to 5V?
Thank you Show Less
XMC™
Hi,In looking through the reference manual, I couldn't find enough information on the Power Management system about the VDESR flag outputs.I have trie...
Show More
Hi,
In looking through the reference manual, I couldn't find enough information on the Power Management system about the VDESR flag outputs.
I have tried the following for checking the voltage level:
https://www.infineonforums.com/threads/2441-XMC1000-TIP-of-the-day-Monitor-the-supply-voltage
as well as the following code:
to try to determine whether the power supply is providing 3.3 or 5 volts. Unfortunately, I always get 0 as the voltageLevelFlag which unfortunately does not tell me if the problem is that the voltage monitoring was not set up properly or there is some other problem. Based on my readings, I would expect that operating with 3.3 volts would give an output of 2 and operating with 5 volts would give an output of 0.
Are any steps missing because the need to set the password was not in the manual? So it is not entirely clear if other steps may be required.
Thanks,
Jason Show Less
In looking through the reference manual, I couldn't find enough information on the Power Management system about the VDESR flag outputs.
I have tried the following for checking the voltage level:
https://www.infineonforums.com/threads/2441-XMC1000-TIP-of-the-day-Monitor-the-supply-voltage
as well as the following code:
SCU_GENERAL->PASSWD = 0x000000C0UL;
WR_REG( SCU_ANALOG->ANAVDEL, 0xFFFF, 0, 0x0012 ); // enable voltage detector with 4.4V threshold
SCU_GENERAL->PASSWD = 0x000000C3UL;
voltageLevelFlag = (uint8_t)RD_REG( SCU_POWER->VDESR, SCU_POWER_VDESR_VDDPPW_Msk, SCU_POWER_VDESR_VDDPPW_Pos);
to try to determine whether the power supply is providing 3.3 or 5 volts. Unfortunately, I always get 0 as the voltageLevelFlag which unfortunately does not tell me if the problem is that the voltage monitoring was not set up properly or there is some other problem. Based on my readings, I would expect that operating with 3.3 volts would give an output of 2 and operating with 5 volts would give an output of 0.
Are any steps missing because the need to set the password was not in the manual? So it is not entirely clear if other steps may be required.
Thanks,
Jason Show Less
XMC™
Double post not on purpose.
Delete this one if it's possible, please. Thank you.
Delete this one if it's possible, please. Thank you.