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

TC275 stacksize

$
0
0
I need to increase the size of the stack on my TC275 by some kB.

How can I do that? I tried to modify the iRAM.ld files as well as the memoryIntCode.x files in my workspace (HighTec Plattform) as well as in the path of the tricore-gcc compiler, i changed the USTACK_SIZE whereever i found it from 4k to 12k for example.
Nethertheless, my iRAM.ld file always got overwritten during compiling/linking, and the standard 4k had been used.

Thank you for helping me out.

How to create stack overflow/underflow exception ?

$
0
0
Just allocate uint32_t array[size>maximally available size on stack] = {0};
this will cause a stack overflow -> just look at the assembly instructions during debugging and you will see the assembly commands causing this.

DAVE SDK installation link

$
0
0
A late answer: when you download DAVE 4.4.2, you download always DAVE IDE and DAVE SDK in 1 big zip.

Latest Versions of DAVE Apps as SDK Projects available?

$
0
0
Hi Infineon,

are the latest versions of the DAVE apps as SDK projects available? As far as I see, to modify an app, it's not possible to only copy an app from DAVE CE library store to DAVE SDK workspace and then start to modify.

Best Regards,
Wolfgang

RTC Problem:

$
0
0
Hello at all,

I use the RTC App. To have an exactly RTC it is normal to select in the Standby Clock Generation Settings " External Crystal Low Power Oscillator" as RTC Clock Source.
If I set this, the controller will not start and will always hang on one point (see picture).
If I leave the other setting in the app everything works, but you have a big difference in the time, which you do not want.

Anyone has the same problem and can help me?

Regards
Patrick

Attachment 3547
?????

UART on pins P0.6/P0.7 using XMC1100

$
0
0
Hello

I tried to get the UART working on Pins P0.6 / P0.7 but with no success. Same code is working for USIC0.C0 on Pins P2.0 /P2.6.
I think, the hardware of the board but nothing happens on output pin P0.6.

According to the datasheet, the initialization steps should be ok, but it seems there is something missing...

Best regards and thank you for your hints

Geri


Code:

void InitUartC0C1(void)
{
  #define UART_RX P0_7
  #define UART_TX P0_6

  /* UART configuration */
  const XMC_UART_CH_CONFIG_t uart_config = {
    .baudrate  = 115200,
    .data_bits = 8U,
    .parity_mode = XMC_USIC_CH_PARITY_MODE_NONE,
    .stop_bits = 1U
  };

  XMC_UART_CH_Init(XMC_UART0_CH1, &uart_config);
  XMC_UART_CH_SetInputSource(XMC_UART0_CH1,
  XMC_UART_CH_INPUT_RXD,USIC0_C1_DX1_P0_7);

  /* Start UART channel */
  XMC_UART_CH_Start(XMC_UART0_CH1);

  /* GPIO configuration */
  const XMC_GPIO_CONFIG_t rx_conf = {
    .mode = XMC_GPIO_MODE_INPUT_TRISTATE,
    .input_hysteresis = XMC_GPIO_INPUT_HYSTERESIS_STANDARD
  };
  const XMC_GPIO_CONFIG_t tx_conf = {
    .mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT7,
    .output_level = XMC_GPIO_OUTPUT_LEVEL_HIGH
  };

  /* Configure GPIO,  */
  XMC_GPIO_Init(UART_TX,&tx_conf);          /* UART TX */
  XMC_GPIO_Init(UART_RX,&rx_conf);          /* UART RX */
}

void main(void)
{
  InitUartC0C1();
  while(1)
  {
    XMC_UART_CH_Transmit(XMC_UART0_CH1, 0x12);
  }
}

IPB80N04S404ATMA1 - Reverse diode IRM (Ir, Irr)

$
0
0
Hello Mcupwr,

Since it is the Mosfet datasheet, the Ir, Irr is not standard parameters for it.

Regards,
Daisy

BLDC Motor control with XMC4700

$
0
0
Hello together,

I want to control a BLDC motor with a XMC4700 Relax Kit and Eval-M1-05F804 Board.
The motor shuld only be controled in the open loop with the PWM_BC APP but something is wrong. I can't get any signal out of the µC and don't know the reason for this.
Generally I tried to follow the example in the "APP-Help" as far as possible.

Code:

/*
 * main.c
 *
 *  Created on: 2018 Jul 24 11:01:09
 *  Author: Simon
 */
#include <DAVE.h>                //Declarations from DAVE Code Generation (includes SFR declaration)

/**

 * @brief main() - Application entry point
 *
 * <b>Details of function</b><br>
 * This routine is the application entry point. It is invoked by the device startup code. It is responsible for
 * invoking the APP initialization dispatcher routine - DAVE_Init() and hosting the place-holder for user application
 * code.
 */

 uint8_t pat_index = 1;
 uint16_t duty_cycle = 300;
 uint16_t ten_milli_count = 200;
 uint32_t count = 0;

int main(void)
{
  DAVE_STATUS_t status;

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

  if(status != DAVE_STATUS_SUCCESS)
  {
    /* 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)
    {

    }
  }

  PWM_BC_Start(&PWM_BC_0); // synchronous start for the CC8 slices.

  /* Placeholder for user application code. The while loop below can be replaced with user application code. */
  while(1U)
  {


  }
}

void PWM_PeriodMatchISR(void)
{
        if(count > ten_milli_count) /*Check if it is time to apply next pattern?*/
        {

                if(pat_index > (uint8_t)6) /*Check if pattern index is greater than 6*/
                {
                        pat_index = (uint8_t)1;
                }

                PWM_BC_SetNextMCPatt(&PWM_BC_0,pat_index); /*Sets the MCM pattern to shadow register*/
                PWM_BC_ModulationForSyncTransfer(&PWM_BC_0); /*Compare value update*/
                XMC_POSIF_MCM_UpdateMultiChannelPattern(POSIF0);/*Immediate Shadow transfer*/

                /*Apply dutycyle*/

                PWM_BC_DutyCycleUpdate(&PWM_BC_0,duty_cycle);
                pat_index++;
                count = 0;
        }

        else
        {
                count++;
        }
}

What could be the reason for this issue?

Some additional settings:


PS: Sorry for my bad english!

Kind regards

KUZ Battery Voltage parameter

$
0
0
Hi Sir,

Would you please help to explain the means about 1612


KUZ = 32768.0 * 12.0 / 1612.0; /* 12V = 1612Ink ADW */

Error in XMC4400 CAN Auto Baud Rate Detection

$
0
0
Hello,

I am using CAN auto baud rate detection example provided by Infineon. Below are the modification details which are done in example to port in our code.

Software changes:
1. CAN frequency configured to 60MHz instead of 12MHz
2. Polling based mechanism is implemented instead of interrupt based mechanism to read the CFC in Bit timing analysis mode.

We are not getting correct Baud rate prescaler (BRP) value by using the example, but we are getting proper Tseq1 and Tseq2 value from table which are given in example code.

Is there any way to get correct BRP value?

Regards
Khageshc

QSPI - TC275 - Read data from register

$
0
0
Hello,

In current project I need to interface the uC SPI with CAN transceiver.

The QSPI channel is working properly with all configurations, but for example when I try to use "IfxQspi_SpiMaster_exchange", where is the function going to store the data collected from the device? For example I'm trying to read register 0xFD and the data should be 0x70 or 0x74, but I don't know where the data is stored.


Does someone have any example with QSPI reading data?


Thanks for your support.

Pictures and Graphics of Help Files disappeared

$
0
0
Hi,

if you miss pictures and graphics of the help files at DAVE IDE and DAVE SDK, go to MS Internet Explorer, open
Tools > Internet-Options > Advanced > Multimedia
and activate "Show pictures".

It seems, that the help viewer uses parts of the Internet Explorer.

How to use EtherNet PTP Time stamp in TC275

$
0
0
Hello,

How to use EtherNet PTP Time Stamp? anyone have example code?

i enabled the PIN
ETH_TIMESTAMP_CONTROL.B.TSENA = 1;
ETH_SYSTEM_TIME_SECONDS_UPDATE.B.TSS = 0;
ETH_SYSTEM_TIME_NANOSECONDS_UPDATE.B.TSSS = 0;
ETH_TIMESTAMP_CONTROL.B.TSINIT = 1;
ETH_TIMESTAMP_CONTROL.B.TSCFUPDT = 0;
ETH_TIMESTAMP_CONTROL.B.TSCTRLSSR = 1;
ETH_TIMESTAMP_CONTROL.B.TSENALL = 1;
ETH_TIMESTAMP_CONTROL.B.TSVER2ENA = 0;

Is there anything else I need to do besides this?

TC275 can use the Descriptor? how to use it?

Thanks for your support.

I2C with FIFO TX problem

$
0
0
Did you solve the problem?
I think I have the same problem

DAVE SDK app rename function needed

$
0
0
Hi Infineon,

I modified the app UART and now it's mandatory to change the name to UART_A1 or so to avoid any collision with the original Infineon apps, for example when upgrading apps.
Unfortunately, DAVE SDK doesn't offer an app rename function like project rename of DAVE CE, which renames the whole project file system. I think, there is more to do than renaming of a few files, so that the app appears under the new name in the DAVE CE library store.
Please what are your suggestions to solve this problem?

Best Regards,
Wolfgang

XMC ECAT0 Alias

$
0
0
Hi MichaelIFX,

How do I know the current Station Alias?
Is it impossible to read and verify the ECAT0_BASE area?

Do I have to write to the EEPROM to replace the Station Alias?
Is it not possible to write in the ECAT0_BASE area?

Best Regards,
Motionics

Can the CAPTURE app measure below 1 Hz ? (DAVE 4)

$
0
0
Hi all,

I would like to measure the frequency of an input on P4.4 using CCU43 in DAVE 4. The CAPTURE app limits the Minimum Frequency to 1 Hz but I would like to measure 0.4 Hz to 30 Hz.

Is there a way to do this please ?

Thank you very much

Aaron

Optiga Endorsement Credential Certificate (tpm2_getmanufec URL)

$
0
0
Seems I resolved it;
tpm2_nvread --index 0x1c00002 -a 0x40000001 -o 0 --tcti $(TPM_TCTI) > nvread.1c0002.cert
tpm2_nvread --index 0x1c0000a -a 0x40000001 -o 0 --tcti $(TPM_TCTI) > nvread.1c000a.cert
emits Infineon certificates with various TCG key extensions.

Using SMU as Watchdog Triggering machine during Bootloading

$
0
0
Let's say TC275C Tricore Microcontroller triggering external watchdog periodically in normal mode.(External watchdog would reset uC if not getting any signal from uC for specific period)

It is normal for External or Internal Watchdog to be shutdown during bootload downloading(So, uC would not be reset because of watchdog signal).

but is it possible to use SMU(nothing to do with BootMode) for triggering watchdog periodically not to reset uC during bootloader downloading ?

Main Question is that : I am wondering that it is possible to trigger on/off signal from SMU during CAN bootloader downloading (Normally, uC stop all Func, for bootloader downloading)

XMC1302 Low Power Modes

$
0
0
Hi,

The following code places the device in the lowest power mode (~250uA according to data sheet)
Code:

  // The clock of the peripherals that are not needed during sleep state can be gated before entering sleep state
  XMC_SCU_CLOCK_GatePeripheralClock(XMC_SCU_PERIPHERAL_CLOCK_MATH);

  // Enable FLASH power down during SLEEP and DEEPSLEEP mode
  XMC_SCU_CLOCK_EnableFlashPowerDown();

  // Make sure that SLEEPDEEP bit is set
  SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;

  // Return to SLEEP mode after handling the wakeup event
  SCB->SCR |= SCB_SCR_SLEEPONEXIT_Msk;

  // in deep-sleep state, the PCLK and MCLK will
  // be switched to a slow standby clock and DCO1 will be put into power-down mode
  // It is recommended to slow down the PCLK and MCLK before entering deep sleep
  // mode to prevent a sudden load change that could cause a brownout reset.
  XMC_SCU_CLOCK_SetFastPeripheralClockSource(XMC_SCU_CLOCK_PCLKSRC_MCLK);
  XMC_SCU_CLOCK_SetMCLKFrequency(125);

  /* Placeholder for user application code. The while loop below can be replaced with user application code. */
  while(1U)
  {
        // Put system in DEEPSLEEP state
        __WFI();
  }

Viewing all 9892 articles
Browse latest View live


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