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

XMC Crashes when setting GPIO MODE


XMC1302 ADC Example Problem

$
0
0
Hello,
I want to use the ADC for pin P2.9 on the XMC1302. It's attached to VADC0.G1CH4.
I followed this thread https://www.infineonforums.com/threa...on-not-working and used the attached project from the Infineon employee.
Only change made from the project zip is in VADC.c where I uncommented lines that had VADC_G1,4 in them. Now the breakpoint I set in VADC_G1_Result_ISR() is never called. Why does this make the program stop working?

Attachment 4070


Cheers

tlv493d reading problem

$
0
0
I read data from tlv493 via i2c bus with xilinx fpga spartan6.
the setting procedure is:
for low power mode:
1. write data (0x00 0x80 0x00 0x60) to address 0xBC;
2. write data (0x00 0x85 0x00 0x60) to address 0xBC;

for fast mode:
1. write data (0x00 0x80 0x00 0x60) to address 0xBC;
2. write data (0x00 0x86 0x00 0x60) to address 0xBC;

After mode set, int is produced according power mode, it works well, then I read data follow INT signal after 12us.

For the data read from sensor, Bx is right all the time,but By and Bz and Temp is wrong sometimes,when it is wrong, the register 2 to 6 are 0xff.

The other question is that in low power mode FRAM COUNTER is not increment all the time, It even depends on magnetic field intensity, sometimes normal, sometimes abnormal.

I am totally confused!
test picture
Attachment 4071
Write to sensor with 4 bytes
Attachment 4072
Read from sensor with 7 bytes
Attachment 4073
Read detals
Attachment 4074
?????

Matlab function - Distance2Go

$
0
0
Hi Meni,

You can Trigger radar chirp, get the raw data using the following Matlab command:
[mxRawData, sInfo] = oRS.oEPRadarBase.get_frame_data; % get raw data
Otherwise, please refer to the D2G_Matlab_Radar_System_API.pdf document for Matlab APIs.

Best Regards,
Montassar.

XMC1300 - Sense2GoL Continuous Measurment

$
0
0
Hey,

some time ago I bought a Sense2GoL development kit and tried to programm the provided Software (see the attachment) with DAVE.
My goal was to get the Sense2GoL to continuously measure data, send them via UART to my computer and log the data with the recommended “putty“ software.
To get continuous data, I took out the FFT calculation in the main.c and changed the cycle time for the Sense2GoL to 19.5ms (16 Samples with 820Hz = 16 * 1/820).
My expectations were that the Sense2GoL would measure 16 samples and send them without any calculation to my computer. But that did not happen.
Measuring data at 820Hz for 1 minute would not give me 49200 data points (820Hz times 60 seconds) but only 30000 data points.

The data in my log file is readable, so I dont think the transmission itself is the problem.
Other parts that were changed from the original software are the format of sending the data in HostCommUART.c and disabling the DeepSleepMode in main.c .

Does anyone have more insight in how the Sense2GoL can be configured to send data continuously without calculation and via the UART?

Many thanks!
?????

firmware update FoE XMC4800

$
0
0
Hi again!
I really need to know how to write the firmware in the flash app partition once i've downloaded it by FoE.

File Transfer on EtherCAT - FoE, firmware update using XMC4800

$
0
0
Hello Developers,
I have a working firmware update code that is based on the ETHCAT_FWUPDATE_SSC_APPLICATION_XMC48 example downloaded from https://www.infineon.com/cms/en/prod...downloads.html.
The firmware initially worked fine and I was able to perform FW update, as I was adding and changing stuff, the fw was becoming unstable and had weird behavior. This behavior was loss of static const data, that we all know is not possible, causing lockup.
So for this reason, I start to suspect that there is some kind of memory overlap. After doing the math again, I realized that in the linker_script.ld file that is shipped with the ETHCAT_FWUPDATE_SSC_APPLICATION_XMC48 example the length of the FLASH_1 that is the area of firmware the length is set to
0x001E0000
but according to the documentation of the example the application should take XMC_FLASH_SECTOR_8 till XMC_FLASH_SECTOR_11 that give a length of
0x000E0000: 896 KB that matches the one referred in the documentation see picture attachedAttachment 4076

Changing this fixed my weird issues but would be nice if infineon can check if my point is valid.

The problem from my side is, that if this fixes the problem I dont understand why was even happening. I was using only 2% of the memory so definitely I was not even close to the real length.
Is it possible that the linker is not actually placing the data in the beginning of the FLASH_1 sector but scattered around?
?????

TC2x5 TriBoard User Manual


Generating different 8 signal using GTM which are synchronous with each other

$
0
0
Quote:

Originally Posted by KDN View Post
synchronous with each other
different frequency and duty cycle which must have space between them in time domain from each other with minimum 20 msec

Sorry, I'm not following you here - how can you have outputs be both synchronous and have a different duty cycle and frequency with 20 ms spacing? A picture might help.

TC38x: How can I place a structure into memory that is accessable by core0 and core1?

$
0
0
Hi,

I'm new to the TX38x. I have TASKING 6.3 and the iLLD demos.

I would like to place a structure in 'global' memory that is accessible by both core 0 and core1 so that the values can be shared between both cores.

Might anyone have a simple example of doing such thing? Also, what primitives exist to add place a 'critical section' (mutex?) on such a structure so that both cores can access the values, but such accesses are atomic?

Thanks in advance,

Regards,

Malcolm

DEMO Position2GO - Serial Output

$
0
0
Attachment 4077
sample UI

I want to built a custom UI for the demo board POSITION2GO. The interface will be like a military radar. I want to fetch the demo board output from serial port and plot those in my custom Radar user interface.
Can anybody please help me how to decode the serial output of the position2go board to get the angle and distance of the object.
Thank you.
Regards
?????

Position2GO - Serial Output

$
0
0
Attachment 4078
Sample UI

I want to built a custom UI for the demo board POSITION2GO. The interface will be like a military radar. I want to fetch the demo board output from serial port and plot those in my custom Radar user interface.
Can anybody please help me how to decode the serial output of the position2go board to get the angle and distance of the object.
Thank you.
Regards
?????

TC38A; TASKING: is it possible to debug core1/core2 as well as core0 with ...

$
0
0
Hello,

I'm new to the TC38A and TASKING tools. I have a iLLD demo program building and loaded onto my Triboard TC3x7 board, and I'm able to debug code on core0.
However, I'm not able to debug (breakpoints, view variable values, etc) on core1 and core2 (albeit those cores don't really do anything in the demo except execute a while(1) loop).

Is debugging on core1 or core2 available using the TASKING debug?

Thanks in advance for any help,

Regards,

Malcolm

BGT24LTR11 tangential signal sensitivity (TSS) calculation

$
0
0
How can I evaluate this device as a detector? The most useful parameter is TSS, but it's calculation involves parameters such RF bandwidth, video resistance, noise figure, etc. We are given only two relevant parameters in datasheet, namely SSNF and gain but they are not enough to calculate TSS of this device in 1 MHz bandwidth. I can find noise bandwidth from noise figure but that's about it. Can someone recommend app notes or lecture notes that will help me determine device's TSS or similar parameter to be able to do path loss calculation.

TLV493D-a1b6 magnetic sensor i2c read problem

$
0
0
I am trying to get values out of my tlv magnetic sensor

All the read registers(00 to 09) gives 0!!

I know that sensor enters powr down mode at first so there is no value for first few bytes but it should have some values for 07 to 09

XMC Crashes when setting GPIO MODE

$
0
0
Ran your code, and now things are functioning, which puts me at a loss for whats wrong. Ill continue to investigate. Thanks for your help.

DAP CRC-6 algorithm is not correct on data sheet

$
0
0
Hi Support team,
On DAP module TSv2.3, CRC-6 algorithm is not correct on section 1.8.3. We cannot get correct CRC value for transmitting packets. The result of function GetCrc cannot pass CRC Check at all.

Does anyone report similar issue?
Thanks!

TLE9879QXW40 , bridge driver high side gh1 , gh2 ,by default high using in PWM mode .

$
0
0
I am using TLE9879QXA40 for development .

I configured ccu6 for three phase pwm generation and bridge driver in pwm mode .

I am able to see PWM signals in GH1 , GH2 , GH3 and compliment part respectively in GL1, GL2 , GL3 .
Just for testing i am giving 50 % duty cycle to each with dead band of 50 .

When i cutoff GH1 ,GL1 by disabling CC60 and COUT60 in MODCTR and MCMOUTS resgister
The pwm signals are not delivered in GH1 and GL1 , but GH1 get high by default , turning on
high side driver 1 .

I want to run bldc motor , for that at a time one pair GHx,GLx should be off that is 0 , but when i am disabling pwm
using MODCTR and MCMOUTS resgister pwm signals get cut off but high side becomes high by default .

Below is the code (All enabled GHx/GLx)

CCU6->TCTR0.reg = 0x80U;
CCU6->T12PR.reg = 1000U;
CCU6->T12DTC.bit.DTE0 = 1U;
CCU6->T12DTC.bit.DTE1 = 1U;
CCU6->T12DTC.bit.DTE2 = 1U;
CCU6->T12DTC.bit.DTM = 50;
CCU6->TCTR4.bit.T12STR = 1U;
CCU6->CC60SR.reg = 500U;
CCU6->CC61SR.reg = 500U;
CCU6->CC62SR.reg = 500U;
CCU6->TCTR4.bit.T12STR = 1U;
CCU6->CC63SR.reg = 0x0U;
CCU6->TCTR2.reg = 0x0U;
CCU6->TRPCTR.reg = 0x0U;
CCU6->MODCTR.reg = 0xFFU;
CCU6->MCMOUTS.reg = 0xFFU;
CCU6->MCMCTR.reg = 0x0U;
CCU6->T12MSEL.reg = 0x333U;
CCU6->INP.reg = 0x0U;
CCU6->IEN.reg = 0x0U;
CCU6->PSLR.bit.PSL = 0U;
CCU6->CMPSTAT.reg = 0x1500U;
CCU6->TCTR4.bit.T12STR = 1U;
CCU6->TCTR4.bit.T12RS = 1U;

In above code when i change MODCTR and MCMOUTS to disable CC60 and COUT60

CCU6->MODCTR.reg = (uint16_t) 0xFCU;
CCU6->MCMOUTS.reg = (uint16_t) 0xFCU;

PWM get cuttoff in GH1 and GL1 but GH1 becomes high by default .

Is there any way to cuttoff completely i.e when pwm not provided both GH1,GL1 get off .

Why use CoolSiC MOSFETdevices?

$
0
0
Why should I use CoolSiC MOSFET devices?

Can we set Core isolation (hardware virtualization) ?

$
0
0
Hi,

Does each core have a separate RAM/Flash. Is there a hardware mechanism to prohibit other cores access this core RAM/Flash?
Make a list of which peripherals on hardware are public, which can be isolated by hardware mechanism and which can be isolated by software.

#8042000 12463
Viewing all 9892 articles
Browse latest View live


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