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

XMC1400 boot kit bricked

$
0
0
Hi,

I have already bricked 3 XMC1400 evaluation boards by loading invalid software, after which each start of a debugger induces the following error message:
"DAP error while reading DP-Ctrl-Stat register".
I cannot communicate with the target - I tried with Memtool & debugger(s).
Is there any way _at all_ to delete internal flash? According to the user manual boot mode is only configured by writing to the BMI register, but if there is no SWD communication anymore - I cannot do that!
I guess an alternative is to remove the chip from our design altogether - as Infineon fails to respond to my requests for help!

Thanks in advance

How to find the application manual page

$
0
0
I saw the following application manual when I was browsing other issues in the forum.
Infineon-HV_Floating_MOS_Gate_Drivers_AN978-AN-v01_00-EN
I think this application manual is very good.
I would like to read more about the manuals for MOS tubes and drivers used in switching power supplies.
But I don't know where to find these manuals on the website?
If you know, please tell me the website, thank you.

Use of CMSIS_DSP App

$
0
0
hi Dave team,

i am trying CMSIS_DSP App and so copying sample code available from this App ( .. cos(x)*cos(x) + sin(x)*sin(x) = 1)

when i compile code, got an error as shown below. anyone could advise ?

../main.c:13:22: fatal error: arm_math.h: No such file or directory

Best Regards,
Felix

VADC EMUX Configuration

$
0
0
Hi All,

Im looking to make use of the external multiplexer control built into the VADC. Im trying to get it running on one of the XMC4500 relax kits but having some difficulties getting the EMUX pins to do anything. I have configured it to use
EMUX interface 1 as the pins for interface 0 are already used on the relax kit.

So far i have one instance of the VADC app setup in Scan Request Source mode with all 8 channels selected. I have configured the EMUX control to be in sequence mode on channel 0 of the group. Start selection is 0 and coding scheme is binary.

Having read the VADC documentation (AP32305) my understanding is that all 8 channels of the external multiplexer should be converted first on channel 0 and then the remaining 7 channels on group 0 should be converted.

If someone that has been successful using the EMUX functionality in DAVE4 could point me in the right direction that would be great. Or if anyone has an example in DAVE4 they could send me.

Kind Regards,

Ryan

Retrieving processed data from multiple Position2Go boards

$
0
0
Hi meera,

Yes it is possible, but there are some pitfalls.

In general the ComLib is capable to handle multiple connections at the same time. That’s why the connection handle must always be specified in each function call.
You can easily start two Position2Godevices, and then call get_next_frame alternatively for both devices. OK, here the COM lib usage is not really simultaneously, but the devices are working simultaneously.

The callback functions will be a little more complicated, because for both devices always the same callback with the same context pointer is called.
The callback function must check the connection handle to find out what device sent the callback and route the data accordingly.

To be really simultaneous, both devices must be handles in different threads. That will become somewhat complicated, because CommLib is not thread safe.
It’s not possible to open different connections and register callbacks from different threads. If that setup part is kept in a common main thread, then fetching data from different threads should work.

If you further want to do the setup in different threads, than there is a need for some wrapper code around ComLib that handles locking.

Cheers,
Montassar.

test

DAVE IDE SPI generated source code

$
0
0
Hello!

I have a question about DAVE4 IDE generated source code spi_slave.c and spi_master.c.
In the spi_slave.c, SPI_SLAVE_StartReceiveDMA() function is using the XMC_SPI_CH_GetReceivedData() API for clears RBUF0 and RBFU1.
As with spi_master.c, also clears RBUF0 and RBFU1.

Could you tell me why need to flash RBUF0 and RFUF1 in the spi_slave.c and spi_master.c?

In my project, I using the SPI_MASTER APPs, SPI_SLAVE APPs and GLOBAL_DMA APPs.

About spi_slave.c, I will using the SPI_SLAVE_StartReceiveDMA() function receive the 136 bytes data from GLOBAL_DMA APPs.
In this function performs flash RBUF0 and RFUF1 on lines 1059 and 1060, before enabling SPI events and DMA channel.
If not use line 1059 and 1060(comment out these lines), in the received 136 bytes data, the first 2 bytes data is "0x0000" or "0xFFFF".

About spi_master.c, I will using the SPI_MASTER_StartReceiveDMA() function receive the 136 bytes data from GLOBAL_DMA APPs.
As with spi_master.c, also clears RBUF0 and RBFU1 at lines 1481 and 1483.
If not use line 1481 and 1483(comment out these lines), in the received 136 bytes data, the first 2 bytes data is "0x0000" or "0xFFFF".

Regarding the source code, please refer attached files(spi_slave.txt and spi_master.txt).

Regards,
Xingwei
?????

XMC4700 Internal loop-back

$
0
0
Hello!

I'm trying a internal loop-back project of SPI on DAVE4 IDE (I used XMC4700 relax kit).
However, I don't konw how to setup the internal loop-back mode of SPI_MASTER and SPI_SLAVE APPs.
Could you please modify my project?

Regarding the my project, please refer attached files.

Regards,
Xingwei

Regarding setup digital pin

$
0
0
I am using tricore tc233 microcontroller for project purpose . I try to configure P40 pin as digital pin but by default it use as analog pin

The configuration I made is below, (p40.0 to p40.3)
portswitch->IOCR0.U = 0x08080808; // pull up input
portswitch->PDISC.U = 0X00000FF0;


when I try to flash this code , debugger moving to trap further not proceeding. Also Cannot able to write into this PDISC register,

Help us to guide how to over come this issue, and how to make analog to digital input of port 40.

Please share if any pseudocode or sample code to make analog input to digital input.

TLE4922 Power > Step-Up Suggestion?

$
0
0
Please use any step up converter of your choice.
The typical current consumption is 5mA (Maximum see specification)

TLV493D 3D mag sensor not robustly reliable

$
0
0
If only smacking it on the side worked. Unfortunately, it's more intricate than that. You're 100% right, Renate.

Need J-link license to debug demo board in DAVE?

$
0
0
Thank you ,sir.
The problem solved when I set the j-link gdbservercl rightly.

FOC wind mill start

$
0
0
Hi

How we can starting motor at wind mill status.

Now I was try to it, but it is not easy.

Even if found sector and current rpm at this status, it can not be

operating smoothly.

Is there any doc or example code??

Would you check this one??

XMC4700 Relax Kit CANbus Transmissions

$
0
0
Hello,

i tested the can_xmc47 example and the Transmitter works fine.

But when I sent a CAN massege to ID 255 nothing happen. What I have to do to test the receiver?

FAQ for XMC4800 EtherCAT

$
0
0
Is EtherCAT relaxKIT supports SWV output from the onboard debugger cause I am not able to get it working. I have custom a pcb with the same microcontroller and there is running perfectly with a J-link from segger. So Its suppose to be Identical setup but I cannot get it running in the Relax kit.

XMC Flasher App. Command Line Arguments / Batch files or multilingual user interface

$
0
0
More of a reply for future personal looking for the answer I was asking about using multiple FLASH programmers to program multiple devices. This is what I found.

XMCFlasher - 1 programming device.
Memtool - 1 programming device.
J-Link - Up to 4 devices numerated by computer 0 to 3. If wanting a consistent numeration for something like production this wouldn't be a good solution.
J-Flasher - x number of devices over USB or IP. Uses device serial number on USB or IP address. https://www.segger.com/downloads/jlink/UM08003 (Wished I found this app note before buying a Segger Flasher ATE. Could have saved some money)
Even an nice section on how to program in parallel.

Attachment 3927


Regards,
Mark
?????

SPI communication 4-20mA T click Transmitter

$
0
0
What mode are you running the SPI channel - Direct, Interrupt or DMA? Do you see any of the 3 signals toggling on the board?
The example in the spi_master.h file shows a basic transfer using Direct mode with FIFO.
If you copy that and use the right values to talk to the transmitter it should work, but you have to make sure your baud rate (Bus Speed), word and frame length are correct for the part you are communicating to.

once you get the pins toggling, you can verify with a scope to make sure your timing is correct and adjust them with DAVE as necessary. With the receive FIFO enabled, you can also read back the response (if the part sends one), which might include some status info.

DAVE Synchronized Conversions using ADC_MEASUREMENT_ADV allows wrong pins?!

$
0
0
thanks - that is what I must of been seeing - it had me confused! Now I have all the sync groups working correctly.

Gate driver IC FAQ

$
0
0
Hello, I use IRS2186.
Can someone tell me where can get the design guide or the demo schematic for IRS2186?
PWM = 15KHz @ Three Phase Inverter 311VDC 50A
I found that the high low sdie IGBT module(FP75R06KE3) would be short sometime.

IR2110 drive delay is up to 200ns, why?

$
0
0
Attachment 3928
I made a half-bridge driver with IR2110 and
I found that the delay between the input 2110 PWM wave and the output 2110 PWM is as high as 200ns.
The manual says the maximum delay is 150ns.
Why is that?
?????
Viewing all 9892 articles
Browse latest View live


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