Quantcast
Channel: Infineon Forums
Viewing all 9892 articles
Browse latest View live

XMC4500: Usage of the core coupled memory (CCM)

$
0
0
Hello,

to improve the performance of my application on a
XMC4500F100K1024AC, I tried to use the CCM but I
did't find any hints in the web.

In the STM32F4xx-world they use a special variable
declaration to place them into the CCM.

So I started to declare my variables step by step
in this way, e. g.:

static float xyz __attribute__((section(".ccmram")));

DAVE's compiler/linker passed without trouble
and there was an ascertainable gain of performance.

But if I exceed a certain number of variables declared
in this way, the application suddenly crashes.

Does the CCM have to be specially initialized or
are other preparations required?

Best regards

XMC4500: Usage of the core coupled memory (CCM)

$
0
0
Hello,

to improve the performance of my application on a
XMC4500F100K1024AC, I tried to use the CCM but I
did't find any hints in the web.

In the STM32F4xx-world they use a special variable
declaration to place them into the CCM.

So I started to declare my variables step by step
in this way, e. g.:

static float xyz __attribute__((section(".ccmram")));

DAVE's compiler/linker passed without trouble
and there was an ascertainable gain of performance.

But if I exceed a certain number of variables declared
in this way, the application suddenly crashes.

Does the CCM have to be specially initialized or
are other preparations required?

Best regards

Reading Data from PLC Over Ethernet MAC

$
0
0
Hi Jesus,

Thanks for the Response, I want to read the data using EtherNET MAC Address.

Is there any example code.


Regards,
Swamy.

[Aurix] TC3xx is getting into Trap section while running my application

$
0
0
Hi Infineon,

This is sanjay currently working on Tricore 3xx MCU. I had an issue with trap sections. In PFLASH even though Protection is disabled when flashing my application it is going to trap section
What I have done is
1. CPU_FLASHCON1 registers
2.MCAL_CpuEndInitProtReg register.

In traps there are 8 types, Sometimes I am getting Trap 4,Trap 2 etc etc. In D[15] shows 4. After sometimes shows 2 etc etc .

How to reslove the trap issue in Aurix 2G TC3xx.

Thanks in advance

DSADC Offset and Gain Calibration sample implementation in TTC277xDC/TC299xBC

$
0
0
Hello,

Is there any sample code for DSADC Offset and gain calibration implementation in TC277xDC/TC299xBC ?
I can't find the one in iLLD and no application note also in myICP.

Best Regards,
Naresh

Kelvin emitter

$
0
0
Hello,

The Kelvin emitter pin connection eliminates the effect of parasitic inductance shared by the gate driver circuit and the main power circuit.

The negative impact of this common-emitter inductance is significantly increased at high switching frequency operation where mainly high di/dt’s are present, increasing the switching losses and generating risky gate voltage spikes that could cause spurious turn-on, and/or destroy the IGBT.

Details of the importance of the Kelvin emitter pin are discussed at length in this application note:
https://www.infineon.com/dgdl/Infine...4974f4d97e09ea


Thank you

IGBT gate voltage and short-circuit-mode

$
0
0
Hello,

The IGBT destruction due to short circuit conditions is mainly due to high power dissipation that generates high temperatures damaging the IGBT. Hence, the IGBT performance under short circuit conditions can be improved reducing the power dissipation, e.g. reducing the IGBT current.

Also, the maximum IC collector current during short circuit conditions (i.e. IGBT saturation current) depends on the transconductance (Gfs) of the IGBT.

In the typical transfer characteristic chart, commonly shown in every IGBT datasheet where the slope of this curve is the transconductance of the IGBT, it is clear that maximum IC collector current decreases as a function of gate voltage decrease.

Therefore, reducing IGBT gate voltage improves the performance under short circuit conditions.


Thank you

Problem with PWM_CCU8

$
0
0
Hi Jesus,

The attached project should replicate the problem.

In "Main.c" I am calling "My_PWM_CCU8_Stop". If you replace this with the standard Infineon function "PWM_CCU8_Stop" you should find that one of the PWM outputs remains high.

Thank you very much

PHAB
?????

XMC4800 Firmware update

$
0
0
Hi mophong,

I know a long time has passed since your last post but is it possible to try your USB VCOM + Windows host application (written in C#) ?

Thanks very much
PHAB

Missing functions

$
0
0
In the code (in isr_defines.h) I see
Code:

#ifndef ADC2_VCP_LO_CALLBACK
#define ADC2_VCP_LO_CALLBACK BDRV_Diag_Supply 
#endif

#ifndef BDRV_HS1_OC_CALLBACK
#define BDRV_HS1_OC_CALLBACK BDRV_Diag
#endif

But there is no BDRV_Diag_Supply or BDRV_Diag in the code. Do the functions exist at all?

i2c on relex kit

$
0
0
Hi all, I am new and use the XMC for two weeks and have an issue with the i2c master app/code.

I use an MPU 6050 (Gyro-Sensor) and the i2c doesn't work. I checked with the oscilloscope and anytime the XMC send the address and the register bits.
I use DAVE4 and the original i2c code (i2c_master) and also the Infineon i2c example.

Code:

#include <DAVE.h>

void delay_count(uint32_t);

uint32_t delay_cycles = 0;
#define ONESEC 1000000U

#define SLAVE_ADDRESS 0x68
#define BYTES_TO_READ 16
#define BYTES_TO_TRANSMIT 16

typedef enum PCA9502_REGADDR {
    IO_DIR    = 0xA << 3,
    IO_STATE  = 0xB << 3,
    IO_INTE  = 0xC << 3,
    IO_CTRL  = 0xE << 3
} PCA9502_REGADDR_t;

uint8_t mem_address[2];
uint8_t data = 0x3B;
uint8_t data2 = 0x3D;
uint8_t tx_buffer[64] = {0x3B,0x3D,0x3F,0x41,0x43,0x45,0x47};
uint8_t rx_data;

int main(void)
{
        DAVE_Init();

        mem_address[0] = IO_STATE;
        I2C_MASTER_Init(&I2C_MASTER_0);

        I2C_MASTER_Transmit(&I2C_MASTER_0,true,SLAVE_ADDRESS,mem_address,1,false);
        while(!I2C_MASTER_IsTxBusy(&I2C_MASTER_0));

        I2C_MASTER_Transmit(&I2C_MASTER_0,false,SLAVE_ADDRESS,tx_buffer,5,true);
        while(!I2C_MASTER_IsTxBusy(&I2C_MASTER_0));

        I2C_MASTER_Transmit(&I2C_MASTER_0,true,SLAVE_ADDRESS,mem_address,1,false);
        while(I2C_MASTER_IsTxBusy(&I2C_MASTER_0));

        I2C_MASTER_Receive(&I2C_MASTER_0,true,SLAVE_ADDRESS,&rx_data,1,true,true);
        while(I2C_MASTER_IsRxBusy(&I2C_MASTER_0));

        while(1U)
        {
                delay_count(0xfffff);
                DIGITAL_IO_ToggleOutput(&LED_2);
        }

  return 1U;
}

what is wrong? I hope somebody can help me.

BLDC_SHIELD_TLE9879 driving DC motor.

MOSFET SPICE Model and Datasheet Parameter Mismatch

$
0
0
Hai,
I have tried to obtain the characteristics curves of IPW65 series MOSFETs with Infineon Level 3 PSpice Libraries (with SIMetrix Tool). But, the the characteristics curves are mismatching. (Simulation done based on the references of
https://www.infineon.com/dgdl/Infine...51588db5ef1b18
AN_201412_PL52_008)

Can a built-in NTC be used for Tj read out during operation?

$
0
0
Hi Gyro Gearloose,

The data obtained from an NTC is suitable only for steady state operation control.
Transient phenomena, like heat generated in short circuit conditions, can not be monitored or detected as the correlating time constants are far too small.
For more details please read this AN.

BR

Dave 4.4.2 Memory Settings Page missing


Motor Coasting motor start-up

$
0
0
Hi wskeller, that's a cool project. May I ask you which product are you using?

opc ua open62541 xmc4800

$
0
0
Hi,
I'm implement an opc ua server on the xmc4800 automation board. I've tried to use the Matrikon SDK, but now i'm trying with the open62541 https://github.com/open62541/open62541.
I've followed the instructions for the LWIP implementation, that include adding the following defines to the lwipopts.h file

Code:

#define LWIP_COMPAT_SOCKETS 0
#define LWIP_SOCKET 1
#define LWIP_DNS 0
#define SO_REUSE 1
#define LWIP_TIMEVAL_PRIVATE 1

the NO_SYS define is set to 1.

When I compile I get this error from the lwip library init.c file
Code:

#if ((LWIP_SOCKET || LWIP_NETCONN) && (NO_SYS==1))
  #error "If you want to use Sequential API, you have to define NO_SYS=0 in your lwipopts.h"
#endif

I need to use socket and I have to set NO_SYS = 1, so i don't know what to do.
Do anyone has suggestions?

Thank you

BLDC Arduino shield TLE9879

$
0
0
Hi there! Could you please be more specific?

TLE987x family FLASH read-out protection

Problem running TLE9879 EvalKit sample program (BLDC_BEMF)

$
0
0
Hi rortiz. Did you try to push the MON button on the EvalKit board?
Viewing all 9892 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>