XMC™ Forum Discussions
Dears.
There are four slave devices in SPI MASTER. Why can only set the number of slave to 3 in APP, while the maximum display can be set to 8?Thanks.
Show Less
Dear Infineon Team
We are very new to XMC based MCUs and are really confused in following things
We have selected the part XMC1403Q040X0200AAXUMA1 (VQFN-40) for one of our legacy products
1. Reset pin: No reset pins are provided in the Pin description section. Currently we chose P0.3 as reset pin, Please let us know the choice is appropriate.
2. External Oscillator(48MHz) is used and connected to P0.10 pin, is it the right pin?
3. Which pins could be used to program/debug the IC?
4. Which are the PWM output pins that we can use independently?
Please help me to sort these things as I am not getting any articles related to the same.
Show LessGreetings of the day,
Currently am working on 'Over Current Protection' in BLDC Hall sensor Controlling using XMC1300 MCU with custom motor designed for max current = 150A and trying to set over current limit, but here am bit confused with below 2 parameters MOTOR0_BLDC_SCALAR_OVER_CURRENT and MOTOR0_BLDC_SCALAR_SHORTCIRCUIT_CURRENT ? can you explain me in detail how to configure above 2 parameters and how it works ?
1) Am configuring MOTOR0_BLDC_SCALAR_OVER_CURRENT to 5A and motor stops initially in Power ON, It is detecting fault and entering into Protection ISR ? Is it considering the difference between bound0 and bound1 ?
2) In UM of XMC1300 It is mentioned that Event is trigger when it is in boundary limits, but in SW it is mentioned that after exceeding boundary limits only over current is detected. which is to be considered ?
Note: Please check the below 2 Images Highlighted.
3) I have go through the BLDC_SCALAR_HALL_XMC1300 user guide, but am unable to detect fault,
below is the DC bus voltage (Blue)and DC bus current (Yellow) captured at 1000 RPM and getting noise at DC input (DC current). Any issue with noise I have tried using averaging method also but it is not detecting fault when set to 5A.
Can you please help me to come out of these issue
Thanking you
Suraj, N
Show LessHi all,
On a XMC1402 I toggle in software one GPIO (P2.10) but I need to be sure the pin state is low if I halt the CPU or in case of a breakpoint event.
I can't link the pin to a peripheral because CCU8 is already fully used.
Is there a way to set the passive level state for a GPIO?
Can a function be called just after every breakpoint to set the system to a known and safe condition?
Thanks and best regard.
Show LessHello,
I need to know if XMC7000 supports the SENT protocol communication?
Thank you in advance.
Hello,
There is a problem in the XMC_ERU_ETL_Init() function that can cause issues.
The function call uses the union XMC_ERU_ETL_CONFIG_t
union
{
uint32_t input;
struct
{
uint32_t input_a: 2;
uint32_t input_b: 2;
uint32_t : 28;
};
....
}
The function call XMC_ERU_ETL_Init() assumes that the user has zeroed out 28 most significant bits in the input field. This may not be the case if the config is on the stack, i.e.
XMC_ERU_ETL_CONFIG_t etl_config;
etl_config.input_a = 1;
etl_config.input_b = 1;
XMC_ERU_ETL_Init(.., .., &etl_config);
The above call will randomly overwrite the configuration in the EXISEL register... causing issues in previously set-up ERUs.
To fix this the user must explicitly zero initialize the config. So the following code will work fine:
XMC_ERU_ETL_CONFIG_t etl_config = { 0 };
etl_config.input_a = 1;
etl_config.input_b = 1;
XMC_ERU_ETL_Init(.., .., &etl_config);
This is easy to miss and can cause hard to troubleshoot problems.
I suggest that the XMC_ERU_ETL_Init() call is modified to explicitly zero out the 28 most significant bits before assignment to the EXISEL register.
Andriy
Show Less
Dears.
When I click the debug button, the error dialog box will be displayed. I changed the jlink version, but there will still be errors. May I ask why this is, thank you.
Show Less
Dears.
Could you share about the XMC4300 SPI master & slave APP software example?thanks.
I have an XMC-1404 running the I2C_MASTER app connected to a LCD screen with an I2C expander.
If the LCD is not connected or there is an error in the transmission the APP gets stuck at line 1519 in i2c_master.c:
while (I2C_MASTER_GetFlagStatus(handle, (uint32_t)XMC_I2C_CH_STATUS_FLAG_ACK_RECEIVED) == 0U)
{
/* wait for ACK */
}
I am using this command to send data to the LCD:
I2C_MASTER_Transmit(&I2C_MASTER_0,true,I2C_SLAVE_ADDR,lcd_data,6,true);
Is there any way to prevent this?
Thanks,
Nico Show Less