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

ERU event

$
0
0
Hi,

ERU will detect the HighZ->1 changes when programmed to catch rising edge?
If a GPIO pin programmed for input it is in HighZ?
So when I connect 5V to an input pin (with time controlled switch) and ERU programmed to detect rising edge, ERU will catch this change?

Flash memory use?

$
0
0
Dear infineon

presently i am working with XMC4200 so in that there is a 256KB FLASH memory is there,in that flash memory i want to use some memory for stack,and 150 Bytes for NVM to store my parameters
so..
1.Is there is a chance to use the some part of the flash memory of xmc4200 as the NVM.
2.if possible then how we can configure,could you please inform me.

please say the step by step procedure if possible.

thanks&Regards
s.santhosh kumar
embedded software developer.

Regarding issue variable reinitialization after reset

$
0
0
Hi All,

Could you please tell me how is it possible to assign a value to FLASH0_PROCOND register?

The following produces trap:

FLASH0_PROCOND.U = 0x00000008UL;

Thank you in advance for the reply.
Best regards,
Balazs Brosch

Setting Channel Boundary levels

$
0
0
Solved thanks to Infineon Support. In case anyone as noob as me needed it, there is it.

Firstly, in the Boundary Setting tab of ADC_MEASUREMENT_ADV, set the desired channel and:
- Lower boundary: Group Boundary 0
- Upper boundary: Group Boundary 1
- Generate boundary flag: Non-inverted

Then, connect bound_fl_channel output to signal_b of an EVENT_DETECTOR instance and its output trigger_out to the trigger_in of an EVENT_GENERATOR instance, whose iout output should be connected to an INTERRUPT instance.

Finally, in the main.c,
Code:

#define LOWER_BOUND 0x000
#define UPPER_BOUND 0x4D8

int main(void)
{
  DAVE_STATUS_t status;

  status = DAVE_Init();          /* Initialization of DAVE APPs  */

  if(status == DAVE_STATUS_FAILURE)
  {
    /* Placeholder for error handler code. The while loop below can be replaced with an user error handler. */
    XMC_DEBUG("DAVE APPs initialization failed\n");

    while(1U)
    {

    }
  }

  /* Set boundary flags */ //(after initialization of DAVE APPs)
  XMC_VADC_GROUP_SetBoundaries(GLOBAL_ADC_0.group_ptrs_array[ADC_MEASUREMENT_ADV_0.group_index]->group_handle, LOWER_BOUND, UPPER_BOUND);

As simple as that.

how to connect USB pins when USB is unused

$
0
0
Hello to all,
anyone can suggest to me how to connect these pins: VBUS, USB_D- USB_D+, when the USB is not used? It is necessary leaving the pins open o connected to Vdd or to ground?
In addition can you confirm me that the unused I/O pins can be left open?
thanks in advance,
Emanuele

Maximum execution time for CRC App

$
0
0
I am getting CRC execution time of 5 ms using CRC001 App version 1.0.16. I need to reduce it as much as possible (less than 1 ms). My data is 16 bit and I am using the default app configurations.

UART of XMC1302 not working beyond 19200 baud

DAVE v4, need guidance

$
0
0
Hello!

Is there anyone who can introduce me to the DAVE CE a little smoother? I really would like to learn how to use DAVE Apps.

I'm struggling now with interfacing ILI9341 tft display with XMC4500.
I need to admit - I know only the basics of C programming (this software proved me this). When I have some examples which actually work by 'copy paste' I am able to reverse engineer them and understand.
If there is someone who can or simply 'don't care' to become my 'DAVE XMC programming pal' please send me a message.
Infineon is not popular in my country, tutorials are not as easy accessible as for other brands of uC so... I'm pretty stubborn because of the potential of the XMC.

Using the XMC4700 relax kit to program any XMC microcontroller

$
0
0
So I've purchased the XMC4700 relax kit, programmed it using DAVE 4 and used it in some prototype DC/DC converters.

Since the XMC family has shown itself as being surprisingly easy to program (due to DAVE 4) and very capable of complex digital control, I'm thinking about using them in a professional project.

However, searching for how to program these micros, I have found this page with some information about flashing tools:
http://www.infineon.com/cms/de/produ...309bd#ispnTab1

Now, from what I understand, none of these are as easy to program as the relax kit (i.e. pressing the debug button in DAVE 4), and Infineon's own solution, the DAP miniWiggler V3, is way too expensive.

Since the relax kit has its own debugger/flash hardware and I already have one, could I use the 10 pin Cortex connector in the XMC4700 relax kit board to program other XMC microcontrollers? If so, how? Would I need to desolder the XMC in that board or anything like that? How would I make it so that DAVE 4 doesn't program the XMC in the relax kit board, but rather the XMC connected via the 10 pin header?

Also, I noticed that the relax kit has an external 12MHz crystal, so what external hardware would I need to program and run a brand new XMC microcontroller?

Sorry if I'm asking some obvious questions but I'm new to ARMs and XMCs and I haven't been able to find any of this information.

Using a XMC1404 in Gateway mode

$
0
0
Hi.

How can i configure a xmc1400 as can gateway with DAVE4?

FIrst i try to use two CAN_NODE app's,
configure each CAN-Node Message object's as TX object and send a frame, to test the physical connection.

That works on both CAN-Nodes :-)


Than i configure:
CAN-Node1 Message-Object LMO_01 as RX object (Ext_29bit, Accept Std_Ext, Mask:0 to receive all frames)
CAN-Node0 Message-Object LMO_01 as TX object ( (Ext_29bit, Accept Std_Ext)

To activate the gateway function, i place in main.c after DAVE_Init() two API calls:

XMC_CAN_GATEWAY_InitSourceObject( CAN_NODE_1.lmobj_ptr[0] , can_gatewaySource);
XMC_CAN_GATEWAY_InitDesObject( CAN_NODE_0.lmobj_ptr[0] );

But the Gateway doesn't work.....

I try the gateway config with:

XMC_CAN_GATEWAY_CONFIG_t can_gatewaySource =
{
0, //bot
0, //top
0, //base
true,
true,
true,
true
} ;

Also i try as bot,top,base: 1,1,1 / 19,19,19 / 17,17,17 without a working gateway.
What is missed?



The second try is to use the multican_config app.

In this
i configure LMO_0 to List2 (Node1) as RX and Gateway source object; Copy all to destination; Mask 0.....
i configure LMO_1 to List1 (Node0) as TX and Gateway destination object (MMC: Standard message object)

Because NO MANUAL PIN Allocator is available for the CAN-RX/TX-Pin's (is this a bug or feature?)
i change the PIN config in multican_config_conf.c to XMC_CAN_NODE_RECEIVE_INPUT_RXDCG for NODE0 and XMC_CAN_NODE_RECEIVE_INPUT_RXDCC for NODE1

and the gateway isn't working!
In this config, no acknowledge is possible on the RX-Node1.

So i try to configure the Port Pins manualy to Output after Dave_Init() :
XMC_GPIO_Init(XMC_GPIO_PORT1, 1,&config_out); // G
XMC_GPIO_Init(XMC_GPIO_PORT4, 9,&config_out); // C

but the Gateway isn't working....

What is wrong?

types of Radar

$
0
0
how many types of radar are there in use??

XMClib POSIF as Quadrature encoder example.

$
0
0
OK, I got it. It is the Timer module that actually does the counting so: XMC_CCU4_SLICE_GetTimerValue(SLICE0_PTR) gives me the position.

Best regards
Loic

XMC4500 + Multiple Slave's, chip selects are working only on one.

$
0
0
Hello Forum,

I am new to Infineon, so please excuse me if I'm totally lame on terminology and understanding.

I have a XMC 4500 (LQFP144 package) v2.1.4.

Here are the pins I have configured for my SPI_1 bus.


P0.4 MISO
P0.5 MOSI
P5.8 SCK
P0.6 CS0
P5.9 CS1
P0.14 CS2
P5.11 CS3

here is how I set them up.. (In Keil)

XMC_SPI_CH_CONFIG_t spi_config =
{
.baudrate = 1000000,
.bus_mode = XMC_SPI_CH_BUS_MODE_MASTER,
.selo_inversion = XMC_SPI_CH_SLAVE_SEL_INV_TO_MSLS,
.parity_mode = XMC_USIC_CH_PARITY_MODE_NONE
};



XMC_SPI_CH_Init(XMC_SPI1_CH0, &spi_config);



XMC_SPI_CH_SetInputSource(XMC_SPI1_CH0,XMC_SPI_CH_ INPUT_DIN0,USIC1_C0_DX0_P0_4);
XMC_SPI_CH_ConfigureShiftClockOutput(XMC_SPI1_CH0, XMC_SPI_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_1_DELAY_D ISABLED,XMC_SPI_CH_BRG_SHIFT_CLOCK_OUTPUT_SCLK);


XMC_SPI_CH_Start(XMC_SPI1_CH0);

/*GPIO configuration*/
XMC_GPIO_SetMode(SPI_MOSI, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT2);
XMC_GPIO_SetMode(SPI_SCLK, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT2);
XMC_GPIO_SetMode(SPI_MISO, XMC_GPIO_MODE_INPUT_TRISTATE);

/*
* Configure all the chip selects
*/
XMC_GPIO_SetMode(MYCS0, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT2);
XMC_GPIO_SetMode(MYCS1, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT2);
XMC_GPIO_SetMode(MYCS2, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT2);
XMC_GPIO_SetMode(MYCS3, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT2);


And then when I go to send data....


/*Enable Slave Select line 1*/
XMC_SPI_CH_EnableSlaveSelect(XMC_SPI1_CH0, XMC_SPI_CH_SLAVE_SELECT_1);

This all works fine and dandy for XMC_SPI_CH_SLAVE_SELECT_1, but if I try any other CS, it doesn't seem to pull that CS Low.

Any ideas on what I'm setting up wrong? Or do I not understand how this USIC work?

Thanks in advance.
-stv

import of xmc4500_relaxkit_project

$
0
0
Did you find a way to load the firmware into the Mcu you are using? I am using a XMC4200 and I think I need the kit_XMC_link_segger_v1 . But now I am not sure how to interface the Kit_XMC and the xmc4200.

Can't add CAN apps


Assigning port pin

$
0
0
I want to create my own wave forms like sine, triangular, ramp by writing program and then assigning output to general GPIO pin and then want to check output in oscilloscope on that particular pin instead of DAC,ADC APP instances. So please tell me what is the format for initializing pin directly in code. I am using XMC4400 and DAVE 4.3.2 software. So please tell me how to initialize pin

Get started tricore TC277 spec CA

$
0
0
Hello to everyone,
I'm just startied with this device. I've already installed Eclipse for Tricore IDE.
Can someone link me about examples pripheral code for TC277 device, please?

Thanks a lot.

Loading the XMC4200

$
0
0
I am using a XMC4200 as the mcu for three other chips. My question is how can I program the mcu? Is there a loading tool? I am currently reading the datasheet for the kit_xmc_link_segger_v1 but I am a little bit confused as to weather this is even the correct option.

If anyone is familiar with this and could point me out in the right direction I would be very thankful.

XMC1100 boot kit and uart

$
0
0
With the first code that send string continuously, led P1.2 (RX) lights up...

Delay

$
0
0
Command for applying delay in XMC4400 . I need to put delay . So how I should do
Viewing all 9892 articles
Browse latest View live


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