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

TLE35584QVSS1-C14++ have a issue in LDO regulators.

$
0
0
V6 or Buck regulator output is generating 4.5 V , But LDO regulators are not working - i,e 5V is not generating from QUC,QCO,QVR regulators. Unfortunately 5V generated by them is supplying MICRO and I couldn't analyse DTC's too
Since CAN communication breaks down with a error "VERR_QUEUE_IS_FULL". My reason for that CAN communication breakdown is No supply to Micro and TX, RX to CAN IC.
I tried removing LOAD present on QUC,QCO,QVR But it is not working still. Someone please help if there is a solution.

TC1782 12 bit SPI

$
0
0
Hi

I am trying to use a 16bit dac with 24bit SPI interface AD5689R_5687R
I am using the 1782 SSC1 interface selecting 12bit MSB mode.
I am not using the SLSO pins just an independent chip select

I tried in the end random numbers and get an output but can not the relationship with the register
This might be a general SPI question as I normally use a 8bit or a 16bit register to write to SPI what happens when I use a 24bit do I do 3x 8bit or 2x 12bit

I do need to switch back to a 16bit device afterwards
SSC1_SSOC.reg = 0x00000000; disable 16bit spi device
SSC1_CON.bits.BM = 0xB; // transfer data width is 12 bit
ChipSelect(12); //select device
IO_vResetPin( IO_P0_15 ); // P_CSEL_OE
SSC1_vSendData(first 12bit value);
while(SSC1_STAT.bits.BSY); // BSY is set while a transfer is in progress
SSC1_vSendData(2nd 12bit value);
while(SSC1_STAT.bits.BSY); // BSY is set while a transfer is in progress
IO_vSetPin( IO_P0_15 ); // P_CSEL_OE SYNC line high
SSC1_CON.bits.BM = 0xF; // transfer data width is 16 bit for maindac
SSC1_SSOC.reg = 0x00002000; // load SSC1 slave select output control reenable SLS0O5


Carl

https://www.analog.com/en/products/a...689R_5687R.pdf

[XMC4700] Cannot SPI(Fullbuplex) Master Received Correctly Data

$
0
0
Hi,

Find attached the fixed project:
1. Upgraded to latest XMCLib and DAVE APPs version
2. DMA interrupt of SLAVE is set to highest
3. Disable Enable Inverted clock input and Enable immediate transmission of first bit in SLAVE configuration
4. Enabled delay compensation for master.

Regards,
Jesus

Achieving a 1MHz data acquisition rate

$
0
0
Hi,

If not done already please increase the compiler optimization to at least -O1. When you create a project in DAVE the default compiler optimization is set to -O0 (no optimizations) for a better debug ability.
I would recommend to trigger the ADC conversion using a timer instead and in the end of measurement interrupt you read the results.
See attachment.

Regards,
Jesus

Use DAVE on Linux (ubuntu) platform

$
0
0
Following this tutorial and installation on Ubuntu, is the resultant functionality equal to DAvE on Windows?

XMC4800 Relax Kit USB debug

$
0
0
Here I am...
I found a way to download and run in debug the Blinky file.... cool.
All I like to do now, is to download and run the Ethercat program. The download is always interrupted.
Does anybody has the sample file ready to download? I can not find the file, mentioned in the Dave first step manual.
- Just few Input/Output signals that I can start with.
I requested the membership in the EtherCat group - no repose yet.

Thanks

TLE9877 VDDP/VDDC error

$
0
0
ok, understood.
The POR should clear all flags. In case of VS = 12V everything works as expected?
Without scope plots debugging is tricky ;-)

Getting started with TC38XX

$
0
0
Download the free trial of the Hightec or Tasking tool chains.
Then sign up for an myICP account and then you can download the software frameworks and demos.

Application Kit TC297_TFT Help for a beginner

$
0
0
It is hard to judge the difficulty you are experiencing as everyone has a different background without knowing your issues? With TC297 this is the highest end device for the family however most people don't use most of the features but it can be overwhelming to someone not familiar with AURIX.

I regards to getting started, the software framework will bring you to the main function for each of the three cores. You can can just use Core 0 to get familiar with the device.

There is another post that explains the STM. It simply does a bit mask and comparison for an event. If you have looked at this and still have a problem post back and perhaps someone could provide more guidance.

BASICS: XMC13xx COMES FROM FACTORY WITH P0.14 & P0.15 ENABLED FOR PROGRAMMING

$
0
0
Hallo All,
sorry to underline this, but I have found not so easy to find/understand that the MICROCONTROLLERS of the XMC13xx family come from factory with the programmin port enabled as following:
  • P0.14: this is the SWIO Pin. To be connected to the PIN 2 of the DEBUGGER called SD (Serial Data)
  • P0.15: this is the SWCLK Pin. To be connected to the PIN 1 of the DEBUGGER called SC (Serial Clock)
  • GND: Ground pin. To be connected to PIN 4 or PIN 5 of the DEBUGGER
  • VCC: this is the Supply Voltage PIN. To be connected to the PIN 3 or PIN 6 of the DEBUGGER.

The DEBUGGER suggested is the XMC Link. It is very easy to connect and the most important feature is the INSULATION between your PC (your body!) and the board with the Microcontroller and the rest of your circuit.

Many of you suggest to connect at least SC,SD and Ground. I raccomend to connect also VCC (just one wire more) in order to be sure that the HIGH LEVEL of the signal is correctly recognised for both sides: Micro and J-Link.

Hope this can be helpful for someone...

BR

Fabio

SPI with user header xmc4800 automation board

$
0
0
Hi!
I've solved the problem, there was a wrong hardware connection. But now i have another problem, i can't read the data from the spi loop back. I've connected several modules in daisy chain and transmission is ok, but when i try to read from the spi i always get 0xFFFF. The RBUF is always 0xFFFF.
I'm in half duplex mode, because i'm using only the XMC_SPI2_CH1 channel.
My configuration is:

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

and:
XMC_GPIO_SetMode(DO_SPI_MOSI, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1);
XMC_GPIO_SetMode(DO_SPI_SS, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1);
XMC_GPIO_SetMode(DO_SPI_SCLK, XMC_GPIO_MODE_OUTPUT_PUSH_PULL_ALT1);
XMC_GPIO_SetMode(DO_SPI_MISO, XMC_GPIO_MODE_INPUT_PULL_UP);

with the spi pin from the user header of the xmc4800 automation board:
MISO P3_12
MOSI P3_11
SCLK P3_13
SS P4_3

Observing the MISO at the oscilloscope i see the data that i want to read from the spi, so why is the RBUF always 0xFFFF?

Data acquisition and storage over Analog Digital Converter and XMC4500 Relax kit

$
0
0
Dear Infineon community,

I just started working with an Infineon controller and, since I am just a beginner, it is taking me very long time to achieve my task. Therefore, I kindly ask you for a little help.
I want my XMC4500 Relax Kit to read out data from an external Analog Digital Converter (ADC) with a defined sample rate and save it to an Micro SD. I am trying to use the SPI interface to communicate with the ADC. In the following you can find the code I wrote and some details about the hardware and the task.

Details Analog Digital converter:
Model: ADS8684
Channels: 4
Datasheet: http://www.ti.com/lit/ds/symlink/ads8684.pdf

DetailsTask:
Sample rate: 10 kHz
Signals to be measured: 3
ADC Device operation mode: MAN_Ch_n (maybe not the appropriate one, see page 47 Datasheet)

Please help me, i am on the verge of a crisis. Hoping hearing from you soon,

As


Code:
Code:

#include <DAVE.h>                //Declarations from DAVE Code Generation (includes SFR declaration)



int main(void)
{
  DAVE_STATUS_t status;

 // bool Test = 0;
  uint16_t MAN_Ch_0 = 1100000000000000;
  uint16_t MAN_Ch_1 = 1100010000000000;
  uint16_t MAN_Ch_2 = 1100100000000000;
  uint8_t ReadData[512];

 
  FATFS fs;
  FIL fil;
  FRESULT res;
  UINT bw;






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

  if(status != DAVE_STATUS_SUCCESS)
  {


   
    XMC_DEBUG("DAVE APPs initialization failed\n");

    while(1U)
    {

    }
  }

 
  SPI_MASTER_Transmit(&SPI_MASTER_0, &MAN_Ch_0, sizeof(MAN_Ch_0));
  SPI_MASTER_Transmit(&SPI_MASTER_0, &MAN_Ch_1, sizeof(MAN_Ch_1));
  SPI_MASTER_Transmit(&SPI_MASTER_0, &MAN_Ch_2, sizeof(MAN_Ch_2));

 
  SPI_MASTER_EnableSlaveSelectSignal(&SPI_MASTER_0, SPI_MASTER_SS_SIGNAL_1);
  SPI_MASTER_ClearFlag(&SPI_MASTER_0, (uint32_t)XMC_SPI_CH_STATUS_FLAG_TRANSMIT_SHIFT_INDICATION);
  SPI_MASTER_Receive(&SPI_MASTER_0, ReadData, 512U);  //Receives 10 bytes of data from slave

  res = f_write(&fil, &ReadData, 512, &bw);
  while(1U)
  {

  }
}

Apps:
Attachment 3877
?????

EtherCAT with XMC4800 - (Segmented) SDO read via CoE

$
0
0
Dear Knuti,
our examples for the Relax-Kits demonstrate the integration and development flow on using SSC-Tool on the XMC.
All further questions in regard to project specific implementations on the ETG stack and use in combination with BECKHOFF master functionalities we like to advise you to clarify them with ETG (see forum inside member-area) directly.

Kind Regards

Michael

makefile problem

$
0
0
I sent many email but no one is answering... is there any way you can help me?

I found the attached library but it is related to the hightech toolchain, instead I am using the baseframeworks provided by the myicp webpage.
I tried to port that library to my current environment but ,even if it compiles correctly, nothing works at execution time .

Thanks in advance
?????

Default programm

$
0
0
Dear Forum-User,

does anyone know where to find the Programm, which is on the XMC-4700-Relax-Lite-Kit at the beginning?

You can controll LED1 and LED2 with BUTTON1 and BUTTON2.

Many Thanks.

Matix

DAVE 4.4.2 and Micrium ucProbe

$
0
0
Hi Jesus,

thank you for your respond, that did help.

Best regards,
Steven

CAN and Ramping D to A

$
0
0
Hello,

I am completely new to DAVE 4.2, I have an XMC 4700 Relax kit with CAN.

I am working on an automotive voltage hold-up during cranking & backup power project.

What I want to do to get me started is.

Receive a 29bit CAN message at 500 Kbaud.

CAN message has 3 signals: D to A start value, D to A end value, Ramping rate from start to end 0 = Fastest rate, 0xFFFF = Slowest rate

I will feed the D to A to my 100 Amp DC response amplifier.

Is there a demo program that already does this?

Debug Port Secured Error in Trace32 window for TC38x controller

$
0
0
Hello All,

I am getting Debug Port Secured Error while i was trying to flash TC38x Controller.

I tried to rewrite BMHD with valid data but still didn't worked.

If any knows how to unlock the 38x controller please support me.

Thanks in advance

Regards,
Sunil

Password Protected JTAG Flashing Query

$
0
0
Hello Anchan,

I don't have any feasibility of connecting my aurix controller to the PC for unlocking debug interface from you explanation.

Is there any other process of unlocking i.e by modifying register values?

If there please explain me.

Thanks in advance.

Regards,
Sunil

XMC4300 Ethercat cant Reassign Pin

$
0
0
I ve added an ADC App instance to the Ethcat Slave Sample.
Now i want to reassign Pin #24 P14_7 (which is now seemingly "reserved" for p1_rxd0) to the pin of DAC. But in Pin allocator it is not shown as assignable for DAC though it is set it in pinallocator of ECAT_SSC_0 to "not selected"

How can I "free" the pin 14_7 from p1_rxd0??
Viewing all 9892 articles
Browse latest View live


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