DAVE™ Forum Discussions
DAVE™
Hi,I configured the I2C Master app (4.1.8) to use DMA transfer for sending and receiving.But the generated code just returns an error status:I2C_MASTE...
Show More
Hi,
I configured the I2C Master app (4.1.8) to use DMA transfer for sending and receiving.
But the generated code just returns an error status:
The function for DMA transfer is also generated:
I guess it should be called in the main receive function.
The same issue is in the transmit function.
Of course I can just call the DMA function directly, but it is confusing.
Michael Show Less
I configured the I2C Master app (4.1.8) to use DMA transfer for sending and receiving.
But the generated code just returns an error status:
I2C_MASTER_STATUS_t I2C_MASTER_Receive(I2C_MASTER_t *handle, bool send_start, const uint32_t address, uint8_t * data, const uint32_t count, bool send_stop, bool send_nack)
{
I2C_MASTER_STATUS_t status;
status = I2C_MASTER_STATUS_BUSY;
if (handle->config->receive_mode == I2C_MASTER_TRANSFER_MODE_INTERRUPT)
{
#if (I2C_MASTER_INTERRUPT_RX_ENABLED == 1)
status = I2C_MASTER_StartReceiveIRQ(handle, send_start, address, data, count, send_stop, send_nack);
#endif
}
else if (handle->config->receive_mode == I2C_MASTER_TRANSFER_MODE_DMA)
{
#if (I2C_MASTER_DMA_RX_ENABLED == 1)
status = I2C_MASTER_STATUS_UNSUPPORTED_MODE;
#endif
}
else
{
#if (I2C_MASTER_DIRECT_RX_ENABLED == 1)
status = I2C_MASTER_lStartReceivePolling(handle, send_start, address, data, count, send_stop, send_nack);
#endif
}
return (status);
}
The function for DMA transfer is also generated:
I2C_MASTER_STATUS_t I2C_MASTER_StartReceiveDMA(const I2C_MASTER_t *const handle, uint32_t data_count, uint8_t *addr)
I guess it should be called in the main receive function.
The same issue is in the transmit function.
Of course I can just call the DMA function directly, but it is confusing.
Michael Show Less
DAVE™
Hello,it seems that "pretty printer" is not enabled in the build of gdb. "info" command does not show it.This makes debugging C++ STL stuff a pain. Or...
Show More
Hello,
it seems that "pretty printer" is not enabled in the build of gdb. "info" command does not show it.
This makes debugging C++ STL stuff a pain. Or did I anything wrong?
Could you please be sure enable it for the next build of gcc/gdb. And a bump to a newer version of gcc/gdb would be nice to see.
Thanks. Show Less
it seems that "pretty printer" is not enabled in the build of gdb. "info" command does not show it.
This makes debugging C++ STL stuff a pain. Or did I anything wrong?
Could you please be sure enable it for the next build of gcc/gdb. And a bump to a newer version of gcc/gdb would be nice to see.
Thanks. Show Less
DAVE™
Hello, I have the IRMCS2033, but i do not have the CD-ROM for it to use the ServoDesigner. I was wondering if there is anyways that I could use any ot...
Show More
Hello,
I have the IRMCS2033, but i do not have the CD-ROM for it to use the ServoDesigner.
I was wondering if there is anyways that I could use any other software from the following site to configure the IRMCS2033.
http://www.irf.com/product/Motor-Con...nje1r#tab-tab4
Can you please clarify if this is possible or if I could get the software from somewhere.
Thank you,
Rajan Joshi Show Less
I have the IRMCS2033, but i do not have the CD-ROM for it to use the ServoDesigner.
I was wondering if there is anyways that I could use any other software from the following site to configure the IRMCS2033.
http://www.irf.com/product/Motor-Con...nje1r#tab-tab4
Can you please clarify if this is possible or if I could get the software from somewhere.
Thank you,
Rajan Joshi Show Less
DAVE™
Hello,even though the gnu toolchain provides a c++ compiler and it is bundled with DAVE I can not use it.But I am unabled to integrate C++ into the to...
Show More
Hello,
even though the gnu toolchain provides a c++ compiler and it is bundled with DAVE I can not use it.
But I am unabled to integrate C++ into the toolchain. Why?
Using C++ at some places would help development a lot.
Thanks in advance. Show Less
even though the gnu toolchain provides a c++ compiler and it is bundled with DAVE I can not use it.
But I am unabled to integrate C++ into the toolchain. Why?
Using C++ at some places would help development a lot.
Thanks in advance. Show Less
DAVE™
µC/Probe from Micrium is a power full monitoring tool to read and write to the memory of microcontrollers during run-time in a non-intrusive way.The f...
Show More
µC/Probe from Micrium is a power full monitoring tool to read and write to the memory of microcontrollers during run-time in a non-intrusive way.
The free-of-charge µC/Probe XMC is has the same functionality µC Probe working with XMC microcontrollers exclusively. It allows easily designing a graphical dashboard with a wide range of widgets to control or fine-tune your XMC application and it includes an 8 channel digital oscilloscope to visualize real-time date, controlled by a dedicated target code that runs on the XMC target.
µC/Probe XMC is simple to install on Windows PC and can be easily connected via the J-Link on board debugger integrated on most of the XMC kits.
Interested? Then register and download to get your µC/Probe XMC instantly.
A quick start tutorial helps to get started in a short time. Show Less
The free-of-charge µC/Probe XMC is has the same functionality µC Probe working with XMC microcontrollers exclusively. It allows easily designing a graphical dashboard with a wide range of widgets to control or fine-tune your XMC application and it includes an 8 channel digital oscilloscope to visualize real-time date, controlled by a dedicated target code that runs on the XMC target.
µC/Probe XMC is simple to install on Windows PC and can be easily connected via the J-Link on board debugger integrated on most of the XMC kits.
Interested? Then register and download to get your µC/Probe XMC instantly.
A quick start tutorial helps to get started in a short time. Show Less
DAVE™
µC/Probe from Micrium is a power full monitoring tool to read and write to the memory of microcontrollers during run-time in a non-intrusive way.The f...
Show More
µC/Probe from Micrium is a power full monitoring tool to read and write to the memory of microcontrollers during run-time in a non-intrusive way.
The free-of-charge µC/Probe XMC is has the same functionality µC Probe working with XMC microcontrollers exclusively. It allows easily designing a graphical dashboard with a wide range of widgets to control or fine-tune your XMC application and it includes an 8 channel digital oscilloscope to visualize real-time date, controlled by a dedicated target code that runs on the XMC target.
µC/Probe XMC is simple to install on Windows PC and can be easily connected via the J-Link on board debugger integrated on most of the XMC kits.
Interested? Then register and download to get your µC/Probe XMC instantly.
A quick start tutorial helps to get started in a short time. Show Less
The free-of-charge µC/Probe XMC is has the same functionality µC Probe working with XMC microcontrollers exclusively. It allows easily designing a graphical dashboard with a wide range of widgets to control or fine-tune your XMC application and it includes an 8 channel digital oscilloscope to visualize real-time date, controlled by a dedicated target code that runs on the XMC target.
µC/Probe XMC is simple to install on Windows PC and can be easily connected via the J-Link on board debugger integrated on most of the XMC kits.
Interested? Then register and download to get your µC/Probe XMC instantly.
A quick start tutorial helps to get started in a short time. Show Less
DAVE™
I´m pretty sure this is much of interest for youHi all, Could you please help me to correlate my motor measurements with right FOC library arguments? ...
Show More
I´m pretty sure this is much of interest for you
Hi all,
Could you please help me to correlate my motor measurements with right FOC library arguments?
My motor measurements made with the RLC bridge:
1. Inductane. I made 3 measurements between U-V-W contatcs:
- 100 Hz -> 180 mH
- 1 kHz -> 172 mH
All three results are similar.
2. Resistance. I made 3 measurements between U-V-W contatcs:
- 100Hz -> 68 Ohm
- 1 kHz -> 102 Ohm
All three results are similar.
Other parameters provided by customer and measured:
- DC voltage: 320V
- Pole Pairs: 4
- Max speed: 4000
- Nominal current: 0.4 A
- Demagnetizing current: 0.4A
- B-EmfCoefficent: 35.8 Vrms/Kpm
I’m using Dave 4 with FOC library which is in beta stage. Do you recommend it ?
Should I switch back do Dave 3 ?
I can do experiments but would like to consult someone more experienced J
Thank you!
====
Dear Karman Ghia,
Please use DAVE4 for your evaluation. Use an LCR meter at 1kHz to measure the phase-to-phase inductance of your PMSM motor and a multi-meter to measure phase-to-phase resistance. For other parameters, please use what have been provided to you.
====
Dear Team,
Thanks for support !
My motor start tugging after switch to FOC control mode.
Could you please suggest what parameters should I adjust first ?
====
Dear Karman Ghia,
I would recommend that you refer to the APP Help in PMSM_FOC APP. In the help section, please refer to the usage section. It give hints home to get started with the tuning of the motor.
As a start, we should always try to spin the motor with open loop V/F tuning. This give us an understanding of the motor performance in an open loop condition. After the motor is successfully turning. We can proceed to close loop tuning where you can select the control scheme, torque control or speed control. Please follow the instructions within the help document to get started.
====
Hi,
I am performing my test using the XMC 750 Watt motor control kit.
I use the analog input (potentiometer) on the XMC1300 board to regulate the rotation speed.
The kit is configured in open loop control mode.
After a day of work, I’m able to run the motor controlled by FOC algorithm.
====
Hi again,
I can hear a quiet knock at the moment the algorithm switch fron V/f to FOC mode. I use “V/f startup to FOC” mode with speed controll.
Is this “knock” expected or there should be something adjusted in the algorithm ?
====
Hi Karman Ghia,
Good to know that you managed to spin the motor using FOC after a short time!
In the PMSM_FOC APP, you can select the startup control technique:
- Always in V/F open loop : Motor does not switch to closed loop and continues to run in open loop with the speed set value. FOC algorithm parameters have no effect in this mode.
- V/F startup with FOC : Control switches to closed loop at threshold speed value.
- V/F startup with MET to FOC : Control switches to closed loop with smooth transitioning MET algorithm.
- Direct FOC startup : Motor starts running in closed loop FOC without any open loop startup.
Did you select V/F startup with FOC in the APP? If so, the quiet knock observed could be the PI controller trying to compensate any difference in the system during the transition from V/F to FOC. You could try to tune the control parameters in the PI control loops to improve the performance. Also, can you try V/F startup with MET to FOC? This should yield a better performance too. Show Less
Hi all,
Could you please help me to correlate my motor measurements with right FOC library arguments?
My motor measurements made with the RLC bridge:
1. Inductane. I made 3 measurements between U-V-W contatcs:
- 100 Hz -> 180 mH
- 1 kHz -> 172 mH
All three results are similar.
2. Resistance. I made 3 measurements between U-V-W contatcs:
- 100Hz -> 68 Ohm
- 1 kHz -> 102 Ohm
All three results are similar.
Other parameters provided by customer and measured:
- DC voltage: 320V
- Pole Pairs: 4
- Max speed: 4000
- Nominal current: 0.4 A
- Demagnetizing current: 0.4A
- B-EmfCoefficent: 35.8 Vrms/Kpm
I’m using Dave 4 with FOC library which is in beta stage. Do you recommend it ?
Should I switch back do Dave 3 ?
I can do experiments but would like to consult someone more experienced J
Thank you!
====
Dear Karman Ghia,
Please use DAVE4 for your evaluation. Use an LCR meter at 1kHz to measure the phase-to-phase inductance of your PMSM motor and a multi-meter to measure phase-to-phase resistance. For other parameters, please use what have been provided to you.
====
Dear Team,
Thanks for support !
My motor start tugging after switch to FOC control mode.
Could you please suggest what parameters should I adjust first ?
====
Dear Karman Ghia,
I would recommend that you refer to the APP Help in PMSM_FOC APP. In the help section, please refer to the usage section. It give hints home to get started with the tuning of the motor.
As a start, we should always try to spin the motor with open loop V/F tuning. This give us an understanding of the motor performance in an open loop condition. After the motor is successfully turning. We can proceed to close loop tuning where you can select the control scheme, torque control or speed control. Please follow the instructions within the help document to get started.
====
Hi,
I am performing my test using the XMC 750 Watt motor control kit.
I use the analog input (potentiometer) on the XMC1300 board to regulate the rotation speed.
The kit is configured in open loop control mode.
After a day of work, I’m able to run the motor controlled by FOC algorithm.
====
Hi again,
I can hear a quiet knock at the moment the algorithm switch fron V/f to FOC mode. I use “V/f startup to FOC” mode with speed controll.
Is this “knock” expected or there should be something adjusted in the algorithm ?
====
Hi Karman Ghia,
Good to know that you managed to spin the motor using FOC after a short time!
In the PMSM_FOC APP, you can select the startup control technique:
- Always in V/F open loop : Motor does not switch to closed loop and continues to run in open loop with the speed set value. FOC algorithm parameters have no effect in this mode.
- V/F startup with FOC : Control switches to closed loop at threshold speed value.
- V/F startup with MET to FOC : Control switches to closed loop with smooth transitioning MET algorithm.
- Direct FOC startup : Motor starts running in closed loop FOC without any open loop startup.
Did you select V/F startup with FOC in the APP? If so, the quiet knock observed could be the PI controller trying to compensate any difference in the system during the transition from V/F to FOC. You could try to tune the control parameters in the PI control loops to improve the performance. Also, can you try V/F startup with MET to FOC? This should yield a better performance too. Show Less
DAVE™
I am new to DAVE. I have just installed DAVE version 4.2.4. I have installed all the APPs and Library Manager from Help/Library Manager Wizard.I have ...
Show More
I am new to DAVE. I have just installed DAVE version 4.2.4. I have installed all the APPs and Library Manager from Help/Library Manager Wizard.
I have created a new Dave CE project and selected my microcontroller (XMC4500-E144x1024). When I try to add an APP I get the following message:
What am I doing wrong?
I have also tried to import an example project, but I cannot see any APPs. I have no idea how to use the examples.
The first steps with DAVE seem to be VERY difficult and not for beginners. Show Less
I have created a new Dave CE project and selected my microcontroller (XMC4500-E144x1024). When I try to add an APP I get the following message:
What am I doing wrong?
I have also tried to import an example project, but I cannot see any APPs. I have no idea how to use the examples.
The first steps with DAVE seem to be VERY difficult and not for beginners. Show Less
DAVE™
Hello,how can I configure two HRPWM APPs the way that they trigger each other as described in Reference Manual page 22-19?Dave4 sais I have no resourc...
Show More
Hello,
how can I configure two HRPWM APPs the way that they trigger each other as described in Reference Manual page 22-19?
Dave4 sais I have no resources left to use a second CCU8 for the second HRPWM.
Thanks
KM Show Less
how can I configure two HRPWM APPs the way that they trigger each other as described in Reference Manual page 22-19?
Dave4 sais I have no resources left to use a second CCU8 for the second HRPWM.
Thanks
KM Show Less
DAVE™
Is there a way to change Derivate/Package in an existing DAVE4 Project?(I can only find a selection, if I create a new project with Project Wizzard.)C...
Show More
Is there a way to change Derivate/Package in an existing DAVE4 Project?
(I can only find a selection, if I create a new project with Project Wizzard.)
Can I do same in existing project?
Thanks for help. Show Less
(I can only find a selection, if I create a new project with Project Wizzard.)
Can I do same in existing project?
Thanks for help. Show Less