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

recommendation automotive CAN eval board

$
0
0
Hi

for a concept car I need to drive a SPI based LED strip (ws2812) . In this project RGB information to drive the LEDs will be received via can protocol.

What is the simplest/cheapest automotive IFX controller which I can use for my project?

thx

Bug in CPU_CTRL_XMC4 APP

$
0
0
Hi,

Thanks for reporting the issue.
We will fix it in the up coming release.

Regards,
Jesus

ADC1 Ch1 measurement in TLE9879

$
0
0
Dear all,
I am finding it difficult to measure the voltage in ADC1 Ch1(Opamp) in TLE9879.

I have configured the EIM mode for ADC1 Ch1 Triggered by GPT12E_T6 as shown in the figure below.
Attachment 3414

But I always see nearly a constant digital value(29,34,29,29,34............so on).



Please suggest...! Thanks.


Reg
Litun
?????

Xmc4500 spi

$
0
0
Hi
I'm using XMC4500 Relax Kit-V1. I am trying to connect through the spi with external flash memory (MICROCHIP SST26VF064B) and I have a problem. When I m trying read ID of memory I do not get what I should. Could anyone help me with this problem? In RHBUF always have 0x0000FFFF.

Code:

#include <xmc_gpio.h>
#include <xmc_spi.h>


XMC_USIC_CH_t *spi_master_ch = XMC_SPI1_CH0;


XMC_SPI_CH_CONFIG_t spi_master =
{
  .baudrate = 1000000,
  .bus_mode = XMC_SPI_CH_BUS_MODE_MASTER,
  .selo_inversion =XMC_SPI_CH_SLAVE_SEL_SAME_AS_MSLS,
  .parity_mode = XMC_USIC_CH_PARITY_MODE_NONE
} ;
 int main(void){
          XMC_GPIO_SetMode(P0_5, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT2);
          XMC_GPIO_SetMode(P0_6, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT2);
          XMC_GPIO_SetMode(P0_11, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT2);
          XMC_GPIO_SetMode(P0_4, XMC_GPIO_MODE_INPUT_TRISTATE);

        XMC_SPI_CH_EnableMasterClock(XMC_SPI1_CH0);
        XMC_SPI_CH_Init(spi_master_ch, &spi_master);
        XMC_SPI_CH_Start(spi_master_ch);
        XMC_SPI_CH_SetInputSource(spi_master_ch,XMC_SPI_CH_INPUT_DIN0,USIC1_C0_DX0_P0_4);

        XMC_SPI_CH_SetWordLength(spi_master_ch, 16);


        while(1){
                XMC_SPI_CH_EnableSlaveSelect(spi_master_ch, XMC_SPI_CH_SLAVE_SELECT_0);

                XMC_SPI_CH_Transmit(spi_master_ch, 0x9F,XMC_SPI_CH_MODE_STANDARD);
                while((XMC_SPI_CH_GetStatusFlag(spi_master_ch) &
                XMC_SPI_CH_STATUS_FLAG_TRANSMIT_SHIFT_INDICATION) ==0U)
                {
                /* wait for ACK */
                }
                XMC_SPI_CH_ClearStatusFlag(spi_master_ch,XMC_SPI_CH_STATUS_FLAG_TRANSMIT_SHIFT_INDICATION);
                XMC_SPI_CH_DisableSlaveSelect(spi_master_ch);

                uint16_t received_data = XMC_SPI_CH_GetReceivedData(spi_master_ch);

        }

 }

Best regards
Szymon

Trigger DMA on ECAT PDI event

$
0
0
Hello,

I would like to trigger a DMA on an ECAT PDI event.
SYNC_0 seems to be an available source to trigger a DMA.
but I could not find a way to do the same for a PDI event.

Did I miss something, or does the XMC4800 not support this?

TLE9879 and KEIL RTOS2

$
0
0
Ok it was my fault.
My code was on some parts longer than the WDT so the MCU will be reset.
Maybe that's the difference between GUI SW and embedded one ;-)

regards

DAVE SDK installation link

$
0
0
I have installed DAVE 4.4.2. I need the link to download DAVE SDK. I searched on the website and was not able to find it.

I cannot find any options inside DAVE to create a SDK project. Any help is appreciated.

BSC030P03NS3 G Availability

$
0
0
What's the meaning of " manufacturing issues "? Do you mean no stock for it?

XMC4300 quadrature encoders and more examples

$
0
0
Hi everybody,

I've just achieved to get my xmc4300 relax kit connected via EtherCAT. I'm able to read the button pushes and to write the led status from a ethercat master.

My next steps are write an analog signal and read a quadrature encoder. Could you guide me to achieve this? Is there any example besides the initial one?

BR

Ethernet Demo on TC3xx starter kit

$
0
0
Hello,
I’m using a 2nd generation AURIX TC3xx starter kit (TriBoard) and tried to run the Ethernet Demo supplied with the iLLD 1.0.1.3.0 TC39A without success.
The Demo can be compiled and programmed, but the communication with the PHY PEF7071 mounted on the board seems to be unsuccessful as they program will wait for the Transmission-Complete-Interrupt to be set which never happens.
The functions provided by the IfxEth library seem to have no effect, reading out the registers of the PHY using the IfxEth_Phy_Pef7071 library shows that there are no changes done.
The mdio read and write functions provided by IfxEth_Phy_Pef7071 work as they should.

XMC1404 - oscillater startup time

$
0
0
I'm using XMC1404-Q048F0200 for a small series application.

When testing first 10 prototypes I recognized that exececution time of DAVE_Init() is different:
- 6 devices had a constant 14ms from powering the unit until the end of DAVE_Init()
- 4 devices had higher startup times (up to 80ms).

I did some investigation and found out that difference is caused by this routine in xmc1_scu.c:

/* API which initializes the clock tree ofthe device */
void XMC_SCU_CLOCK_Init(const XMC_SCU_CLOCK_CONFIG_t *const config)

especially this part

do
{
/* Restart OSC_HP oscillator watchdog */
SCU_INTERRUPT->SRCLR1 = SCU_INTERRUPT_SRCLR1_LOECI_Msk;

/* Enable OSC_HP oscillator watchdog*/
SCU_CLK->OSCCSR &= ~SCU_CLK_OSCCSR_XOWDEN_Msk;
SCU_CLK->OSCCSR |= SCU_CLK_OSCCSR_XOWDEN_Msk;

/* Wait a few DCO2 cycles for the update of the clock detection result */
delay(2500);

/* check clock is ok */
}
while(SCU_INTERRUPT->SRRAW1 & SCU_INTERRUPT_SRRAW1_LOECI_Msk);[/B]


So i spent some time to crystal and capacitor sizing. But without effecet. Then I desoldered a µC from a board with 14ms boot time and solderd it on a board which had a boot time of about 50ms before.
Boot time was then exactly 14ms.

In my application startup time is not critical. But i think that i'm somewhere out of spec and it may happen that µC won't start anymore (never happend up to now).
At the moment i'm testing the 20 first series PCB's. Same problem. About the half have a higher startup time.

Does anybody know what can cause this phenomena?

My setup:
Attachment 3415
Attachment 3416
Attachment 3417
Attachment 3418
Attachment 3419
?????

XMC 1100 CC4yINS Setup

$
0
0
Hi,

I am using a XMC1100 where I am trying to run VADC with CCU40_41 (slice 1) , but I am having problems setting up CCU40_CC41->INS= ( 8 << CCU4_CC4_INS_EV0IS_Pos) for pin 2.8 (Analog input is at this pin).
I have checked the datasheet in which out of 0-15 inputs , I have to choose one .
I am not able to decide what should the one .
Any help is appreciated .

CCU40_CC41->INS = ( 8 << CCU4_CC4_INS_EV0IS_Pos ) | // Select Event Type 'InyI' for Input Multiplexer associated with event 0
( 2 << CCU4_CC4_INS_EV0EM_Pos ); // Falling Edge Select -> Restart timer if CC41 period match
//
CCU40_CC41->CMC = ( 1 << CCU4_CC4_CMC_STRTS_Pos ); // Ext.Start Selector -> Start triggered by Event 0

Thanks in advance.

XMC1100-configure analog-digital converter

$
0
0
Can u tell me how this value is calculated ?
*((int*)0x480340E0) = 0x80008000;

Tricore 275C Memory allocation&Read question

$
0
0
Hi. I am having troble with memory control with my microcontroller.
I am using
- Microcontroller : Infineon AurixTC275C, Tricore
- Compiler : Tasking
Trying to figure out how to implement multi-core programming on vehicle power-train project
So we tried to use both local memory and shared memory space for each CPU on this microcontroller
(it has total 3cpu, each cpus stand for cpu0, cpu1, cpu2)

In terms of memory handling, the problem is that memory is not controlled as i expect.
for example,
whenever I allocate space for global variable in the specific core element,
, let me say i use below code in the cpu 1,
the result showing that some of memory spaces are also mirror-copied other than the specific memory i initially targeted. this is extremly weird.

#pragma data_core_association private1 // this pragma option is for coping, and accessing data from the local scratchpad memory of one particular core.

INT8U g_u1_Cpu1_Variable;
void core1_main(void)
{
g_u1_Cpu1_Variable = 0x15;
...
..
}

and i see these result through Trace32 debugger.
Attachment 3421

we are seeing the allocated variable and it seems ok

Attachment 3423



it's memory address is showing that it is allocated at 0xC000 0000.
which is fine and it is how it's supposed to be allocated since i request private allocation through TASKING Compiler pragma option.
(request allocation on private local memory space - 0xC000 0000)

Attachment 3429
but other memory address (0x6010 0000 / 0xC010 0000 / 0xD010 0000) is also allocated for exactly same value.
they are also showing the same result which i guess some what weird (or is there something i am missing?)


※additional reference.
=====
Each CPU has access to its own
1) Code Scratch memory at local address 0xC000 0000
2) Data Scratch memory at local address 0xD000 0000
and

Each CPU has access to its own memory via its global segment (0x0000 0000 - 0x7000 0000),
Data Scratch at offset 0 and Code Scratch Pad Memory at offset 0x0010 0000 (1MB).
So if i take that global segment to each CPU, it would look like,
0x7 CPU0 Code+Data Scratch
0x6 CPU1 Code+Data Scratch
0x5 CPU2 Code+Data Scratch
...
0x0 CPU7 Code+Data Scratch
(global segment is designed to use up-to 8 CPU)



=====
Attachment 3428
Attachment 3430
and this is some of information on linker script file & map file


Anyone have idea about what's behind my thinking?
Sorry my enlish is not good but i tried to make it as simple and understandable as possible.

Thanks.
?????

VADC Sample and Conversion time longer than defined?

$
0
0
No ideas at all?

We planned to replace some old analog parts with the XMC4800, but therefore I need to get a solution for this problem to understand the behaviour completeley.

Hopefully anyone can help me, thanks!

XMC4800 Relax Kit SPI SCLK configuration

$
0
0
Hi,

I don´t know which XMC device are you using, but this works in general:
Right click on the SPI_SLAVE APP and select "Manual Pin Allocator". Now you will get the list of all available pins for each SPI function for your device.

Best regards,
Deni

Aurix Asynchronous SPI with Infineon MCAL APIs

$
0
0
I have the same problem, have you solved this problem yet?

How to use 3 SPI bus interface same time with GPDMA

$
0
0
I have to communicate with 3 SPI devices in XMC4500 - LQFP144 device using the GPDMA. The problem is the GPDMA0 has 8 channels and I can use 2 channels for one SPI interface and next 2 channels for next SPI interface. But the problem I encounter in the ISR how to clear the EventStatus register. Since there is only one ISR and how to find out which channel to clear. Any one has an example how to use in this kind of scenarios please.

Thanks
Mark

I can not find Iom document in iLLD_1_0_1_3_0 document

$
0
0
Hi sir,

I already downloaded this document.
My meaning is Tricore files of iom, not demo code.

Local access of the DSPR, does it go through SRI?

$
0
0
Hello,

I have few questions regarding to the accesses of the DSPR:

(1) if the data acess is from local pipeline/CPU, does it go through the SRI?

(2) if it doesn't go through SRI, is there a hardware locking mechanism, such that the SRI will not grant any other SRI-Master access to the local DSPR, when there is an on-going local access?

(3) when the store-buffer is enabled, the local write to the DSPR, does it go through the store-buffer, or not?

Cheers
Viewing all 9892 articles
Browse latest View live


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