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

HOWTO start - step by step

$
0
0
Dear Community,
i0ve manage to gather all the parts to build the Larix, but still I'm having some issues switching among all the documents foud so far,
as this being my first attempt of building a drone, having programming and electronics skills, I still find difficult to mount all the things together and get the motors spin although I've flashed the board already.


from the pictures found around I'm not sure if I 've mounted them in the right way..
is it needed to flash the ESCs too?
before going deeper with custom code I'd just like to drive it a bit with the smartphone app and getting the basics done,

thank you all for the support!

Ethernet issue with TC 279x (SMI/MDIO interface)

$
0
0
Good morning, I am working on a board equipped with a
Tricore processor (Aurix TC297B version).

The board contains also a chipset that provides the
functionalities of Ethernet switch and other components.

I need that the Aurix processor communicates to the Ethernet
chipset using the SMI/MDIO interface, in order to perform
Ethernet configuration.

Unfortunately, in the last weeks I was unable to obtain a
working communication between the processor and the
Ethernet chipset.

In fact, despite I configured the Aurix registers for SMI/MDIO
access, when I try to read one of the 32 registers that are made
available by the SMI interface, the value returned by the
read_SMI() routine is ALWAYS 0xFFFF.

The result is the same trying to address the Ethernet chipset
using each of the 32 PHY slave IDs available on the SMI bus

(in my tests, I assumed that Aurix automatically configures
itself as the master device in the SMI/MDIO bus).


I performed the following steps:

- The pin P12.0 was set in order to use the ETHRXCLKC
signal. Following the Aurix TC297B manual (tc29xB_um_v1.3),
this can be obtained using the settings:

ETH_GPCTL.ALTI1 = 10b (i.e. 02h)
P12_IOCR0.PC0 = 0XXXXb (I used 0Fh
i.e. 01111b)

(page 1214/13-128 of the Aurix TC297B manual)


- The pin P12.1 was set in order to use the ETHMDIOC signal.
Following the Aurix TC297B manual, this can be obtained
using the following settings:

ETH_GPCTL.ALTI0 = 10b (i.e. 02h)
P12_IOCR0.PC1 = 0XXXb (I used 07h
i.e. 0111b)

(page 5313/34-463 of the Aurix TC297B manual)



I have not used the macros provided by Infineon for
modifying the registers.

I prefer to directly write the routines needed to change
the target bit fields.

In order to modify the P12_IOCR0 register, I proceeded
in the following way.

I read that the register address space dedicated to the
P12 port starts at the address F003B200h
(page 1094/13-8 of the manual).

I added the offset 0010h for addressing IOCR0 control
register (page 1095/13-9 of the manual), thus obtaining
the address F003B210h.

Next, I performed the changes on the bit fields dedicated
to PC0 and PC1 at the address F003B210h.


Is this procedure correct ? Perhaps some steps in Ethernet
SMI interface configuration are missing ?

Thanks in advance for your help.

XMC4400 floating point operation

$
0
0
Hi everybody, :)

I am writing this post because I am about to start a project where I will be using the XMC4400 and

I have some doubts regarding the execution of floating point mathematic operations and the enabling of the floating poit unit.

The idea is simple, perform all kinds off mathematical operations using floating point variables.

I am using DAVE 4.3.2, and I have created a project from scratch without using APPs.

so far I have been implementing just fixed point opeerations using integers as variables but now I want to use floating point variables.

I was reading a bit the user manual and I found the following :

The FPU is disabled from reset. You must enable it before you can use any floating-point
instructions. The Example shows an example code sequence for enabling the FPU in
both privileged and user modes. The processor must be in privileged mode to read from
and write to the CPACR.


Does this mean that I have to write some extra code in order to enable the FPU? If yes, where exacli? and, which code? I tried adding the code present in the manual but I get some arrors when compiling.

Is there a special library which I have to use for fast floating point operations? (as for example the xmc_math wich makes uses of the CORDIC unit in the XMC1000 series)


Thank you very much for your time! :D

Semaphore and Mutex problem

$
0
0
Hello everyone,

I'm working with DAvE 4.3 with a XMC4700 Relax kit. I'm trying to use the mutex and Semaphore of the RTOS as you can see here:

Everytime I run the code I get stuck on the osSemaphoreWait or osMutexWait function, I'm not sure if this codes work also in DAvE 4.3. Does anyone has an example to see how to work with Semaphore or Mutex in this IDE?

Thanks in advance.

Best regards

Alan

Display multiple peripheral registers in debug

$
0
0
In the "Peripherals" window I have selected two different peripherals: VADC and VADC_G0.
Only the registers of the VADC_G0 peripheral appear in the "Memory" window, why?
I can only view a peripheral at a time.
If I want to see the VADC peripheral, in the "Memory window" I have to press the "Switch Memory Monitor" button and select the VADC. However, the VADC_G0 peripheral disappears.
Is there any way to view the two peripheral registers group simultaneously in a single window?

Regards
Andrea.

Duty cycle voltage formula?

$
0
0
Hello Humodys, which connector and battery do you looking for? Please.

LEDTS for XMC1200

$
0
0
Hi everyone, could anyone help me with the examples of some touch keys. because I can not find a working example.


Grateful

Problem with the FIFO using USIC on XC2365A

$
0
0
Hello all,

I got a unusual error when I use the FIFO. The Configuration is done with DAVE.

Received FIFO using(U0C0_OUTRL)
Transmit FIFO using (U0C0_IN00)

Received and Transmit using different memory location.

In the case below I forced the Transmitter to send only 0x55 (U0C0_IN00=0x55; ) but the results are confusing me.
Attachment 3182

I send via a tool data's per RS232 interface. The Received data I saved into a different signal but I will do nothing more with it. The transmission as I said, is force to 0x55.

The expected Output should only be 0x55, for the "READ" in the picture. But as you can see, I also get different data's, but where are these data's coming from, when I force the output to 0x55?.

Has some one an idea why I get this

Thanks for your Help :)
?????

XC886 BSDL File

$
0
0
Hello,

Where could I download BSDL file for device XC886C ?

Thanks in advance,

TLV493D acknowledge problem

$
0
0
I have tried it but for me it didin't work

FAQ for XMC4800 EtherCAT

$
0
0
Hello What is the HW interface between main CPU and ECAT unit ? SPI ? Or something else ?

Thank you.

Arathmatic operations in XMC1400

$
0
0
Hi,

The Cortex M0 implemented in XMC1400 can perform integer multiplication and division in hardware.
The floating point operations on the CortexM0 are not available in hardware, but are implemented in software using the standard math library.
Another alternative is Qfplib, https://www.quinapalus.com/qfplib.html

Regards,
Jesus

DAVE - XMC4500 Debugging Bootloader and Application

$
0
0
Hi,

I just tried and for me works.
Please try using add-symbol-file "c://tmp//app_test.elf" 0x08080000

Regards,
Jesus

I2c only trough apps?

Is the TLE7182E gate driver compatible with the AUIRF7739L2TR DirectFET ?

$
0
0
You could use TLE7182E to drive AUIRF7739L2TR DirectFET.
The output volage of TLE7182E gate driver should be almost the same or a Little bit less than the supply voltage. (VS - I * Rdson)
As can be seen in the data sheet page8 there are 2 sources. You should use the sum of these 2 values Qgs=Qgs1+Qgs2.
The maximum ouput current is not given in the data sheet, however it should not be more than the supply current, which states in data sheet page8 45mA.

Wrap text?

$
0
0
Hi

Is there a way to wrap/implode/collapse code in main? I simply can't find it, and it really helps cleaning up :(

Cheers,Luís Pereira.

I2C with FIFO TX problem

$
0
0
Hello,

I am using my own code, no apps, no library to run I2C as master and I am encountering problem when attempting to read from slave. Both RX and TX FIFOS are configured for 16 elements. When transmitting I would expect that I can load to FIFO "without" any checks 16 elements. (Maybe 17 if first one goes directly to transmitter).
This seems to be not true. At start of each sequence FIFOs are flushed. Then I load correct sequence of bytes for read operation with correct TDF codes. When I load 8 bytes, all 8 are transmitted, I receive what I expect, no problem. When I load 9 bytes, 9 bytes are transmitted ending with stop bit, but very often immediately after stop appears one additional byte on output. Slave does not expect it and therefore I get NAK. It appears like in TX FIFO was one byte more. If I transmit 10bytes, again sometimes I get on output 11.
If before filling FIFO I insert
while((USIC1_CH0->TRBSR & USIC_CH_TRBSR_TFULL_Msk)){};
problem disappears.

Tried also to increase both FIFOs to 32 elements, behavior is same. CH1 of USIC1 is not using FIFO. Start pointers are configured correctly.

Has anyone seen the same problem?

rum

Infineon Application Manual vs. SEMIKRON application manual

Can any1 actually put i2c_MASTER app to work?

$
0
0
Hi

I am having big trouble getting my XMC4700 to do any reading from my MPU6050. And although I2C_MASTER app comes with allll these examples...i simply can't get it to work. I come from AVR microcontrollers (there its called TWI instead of I2C), and there you get a resgiter for everything and step by step i can get it to work, basically datasheet tells you what registers to use and all.
In xmc4700 i simply can't get it. I'm not even sure whee to connect the int pin from the mpu6050, since the circuit description supposevely only used SDA and SCL. And more, some use I2C_INIT...others just go for the transmit and receive..and i have tried everything -.- .
So without more wining, can anyone give me a woking example please. I now my slave adress, the wake up register address, the to-read register adress in the mpu6050, in AVR thats pretty much all i need ^^

Cheers, Luís Pereira.

XMC4500 frequency measurement problem

$
0
0
Hello all,

I want to measure frequency of square and sin wave using XMC4500, can any one help me selecting right pin configuration of XMC4500(which pin should I use).
Viewing all 9892 articles
Browse latest View live


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