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

Is it possible, to debug the RAMCODE from a own asc bootstrap loader

$
0
0
Hi.

I use the build in ASC BootStrapLoader and need to write a RAM-Code to handle a own Bootloader protocol over the USIC.


Is it possible to debug the ram code on the Chip, because the build in ASC-BSL from the Chip has to receive the code over uart first,
and than the chip executes the ramcode if the lenght has reached....

If i connect a JLink to the device and try to debug, i havn't the ASC-BSL funktion and i havn't the ramcode present.. ....

What tools can i use for this? I use Dave4 and the OzoneDebugger.


Thanks for help.

XMC4300 quadrature encoders and more examples

$
0
0
really there isn't any more examples for 4300 or anybody has achieve the read of a quadrature encoder?

Stops while flashing with error "Target requset failed ... stack level 0"

$
0
0
I am using the Applicatin kit TC2x7 and trial Tasking IDE with license key (TriCore Eclipse IDE v6.2r1). My first project works with ASCLIN as UART interface.
It has been compiled with no error but while it starts flashing firstly it starts debug process and then it stops debugging with an error
"Target requset failed: Not enough debug information is available to determine which function corresponds to stack level 0 "
We use a tasking embedded debuger and DAS server.

Please help me - How to deal with it? This is my first project with Tricore Aurix.
In attachment - print screen of this situation. Thanks.
?????

Xmc-4500 can

$
0
0
I got some problem in connecting wires, then i try to use app and resolve the problem as a hardware problem, but then few bugs occur then i use relevant site for the solution and put query in the post and get comments as a solution i just need to follow the steps given by hardware expert, and finally solved it.

XMC4500 Usb Visual Studio

program problem for XMC4800

$
0
0
Try single-stepping in the debugger and seeing at what point your program crashes.

Can't add new PIN INTERRUPT APP

$
0
0
I am working on fairly large project with an XMC4700. It has a lot of APPS set up for ADC, UART, USB, CAN, I2C, PWM, DIGITAL_IO, PIN_INTERRUPTS, etc.. I want to add another PIN INTERRUPT app and I get an error message that DAVE is not able to grant my last hardware resources request. I am fairly confident I have some pins capable of this feature left (or maybe there is a conflict I don't know of) so I am lost as to best figure this out.

The DAVE .log file shows:
!ENTRY APPLICATION_MODEL 1 0 2018-04-30 13:45:37.038
!MESSAGE USER_ACTION : App Getting Added: PIN_INTERRUPT [4.0.2]

!ENTRY SOLVER 1 0 2018-04-30 13:45:37.122
!MESSAGE USER_ACTION : Creating an APP: PIN_INTERRUPT [4.0.2]

!ENTRY APPLICATION_MODEL 1 0 2018-04-30 13:45:37.147
!MESSAGE USER_ACTION : CASE-1 PR->PR
CPU_CTRL_XMC4 [4.0.2] lStoreAppVersion: 4.0.14:p

!ENTRY APPLICATION_MODEL 1 0 2018-04-30 13:45:37.183
!MESSAGE USER_ACTION : Created APP: PIN_INTERRUPT [4.0.2]-->http://resources/4.0.2/app/PIN_INTERRUPT/2

!ENTRY DAVE CE 4 0 2018-04-30 13:45:37.798
!MESSAGE

***START of Exception Info***
Execution of solver query timed out
com.ifx.davex.ce.core.solver.ProxySolver.handleTim eout(ProxySolver.java:486)
com.ifx.davex.ce.core.solver.ProxySolver.processCm pdTermResult(ProxySolver.java:460)
com.ifx.davex.ce.core.solver.ProxySolver.executeQu ery(ProxySolver.java:425)
com.ifx.davex.ce.core.solver.ProxySolver.sendQuery (ProxySolver.java:260)
com.ifx.davex.ce.core.solver.SolverManager.getSolu tion(SolverManager.java:155)
com.ifx.davex.ce.core.resource.mngts.ResourceManag er.getSolution(ResourceManager.java:923)
com.ifx.davex.ce.core.resource.mngts.ResourceManag er.getSolverInfoAndProcess(ResourceManager.java:99 6)
com.ifx.davex.ce.core.resource.mngts.ResourceManag er.getSolutionFromSolver(ResourceManager.java:1175 )
com.ifx.davex.ce.core.resource.mngts.ResourceManag er.possibleCheck(ResourceManager.java:352)
com.ifx.davex.ce.core.resource.mngts.ResourceManag er.callSolver(ResourceManager.java:879)
com.ifx.davex.ce.core.resource.mngts.ResourceManag er.createApp(ResourceManager.java:720)
com.ifx.davex.ce.core.resource.mngts.ResourceManag er.access$2(ResourceManager.java:651)
com.ifx.davex.ce.core.resource.mngts.ResourceManag er$2$1.run(ResourceManager.java:612)
org.eclipse.jface.operation.ModalContext$ModalCont extThread.run(ModalContext.java:122)
***END of Exception Info***

There is a lot more after this and if it is pertinent, please let me know and I can post it.

It would be great if someone could give any pointers on how to address this.

Thanks in advance,
Paul

XM4800 Data protection in flash during EtherCAT FW Update

$
0
0
Hi all,

I am using an XMC4800 with EtherCAT. I would like to store “persistent” data in the flash which should still be stored after a firmware update. I use the same structure as in the FW Update Slave Example of Infineon:

Attachment 3451

The bootloader executable is stored in physical sector 0.
PS4 is erased after a firmware update because the emulation data might change.
I wonder if it somehow possible to store my “persistent” data on e.g. PS12? I haven’t brought it to run so far.
Or is there another possibility? I have also tried to store data on the XMC_Flash_Sector_7, but the data in this sector is always deleted after erasing XMC_Flash_Sector_4.

Thanks,
Fretar

GDB Server error

$
0
0
While trying to debug my project - simple project of toggling LEDs - i encounter problem with GDB. I can't connect to it:

Error in services launch sequence
Starting J-Link GDB Server timed out.

I have manually downloaded gnb.exe and put it into eclipse/ARM-GCC-49/arm-none-eabi/bin folder

I have been searching for hours and everything I did put an error.
Here is my filled 'Debugger' - with default settings it get other error
Attachment 3452

Error while defaults on:
Error in services launch sequence
Launching command [/JLinkGDBServerCL.exe -if swd -device XMC4500-F100x1024 -endian little -speed 1000 -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -singlerun -strict -timeout 0] failed.
Launching command [/JLinkGDBServerCL.exe -if swd -device XMC4500-F100x1024 -endian little -speed 1000 -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -singlerun -strict -timeout 0] failed.
Cannot run program "/JLinkGDBServerCL.exe": Launching failed

Thanks for answers,
Szymon K
?????

About Aurix TC275/277 Control????

$
0
0
Quote:

Originally Posted by cwunder View Post
The iLLD and MCAL are different packages. For AUTOSAR you need to have the MCAL package that you are looking and can use Tresos or DaVinci to configure these drivers. The SW Framework does not come with a GUI to configure. There is a demo package that you can download which gives you examples for typical usage. You can also build the project with the document option to get the Doxygen output.

Thanks very much

XMC4700 & Arm M7

$
0
0
I think the XMC4700 (and the XMC4800) a great product for motor control, thanks to its flexible and performing devices, but it has a big flaw: it's just a 144 MHz Arm M4!
As all of your competitors offer the new microcontrollers with the new Arm M7 (with frequencies of up to 400/500 MHz), I was wondering if Infineon also plans to upgrade the XMC using the M7?
Having to start a new project, I would need to understand which product to orientate, considering the latest news.

Regards
Andrea.

Erika Enterprise RTOS on TC297B

$
0
0
Hello, we have managed to port Erika Enterprise v2 RTOS to TC297B TFT board in multicore configuration and decided to share it as there is no Erika OS TC297 port available online.
The code is available at: http://git.edi.lv/vitalijs.fescenko/...rix_TC29x_port. Link also contains some examples - shared data, iLLD integration - and description of how Erika OS port can be developed for other TC2xx boards. We used HighTec GNU compiler available with Free Entry Toolchain, and Erika IDE because BiFACES's Erika OS example does not work in multicore configration.
We are not experts in Tricore or Erika OS, so any suggestions will be appreciated.

How to implement 32bit timer for TC26x B-Step 32bit microcontrolller

$
0
0
Quote:

For my project i need to implement 32bit timer , TC26x doesn't have timer but it has counter. How can i do that , can you please help me out.
The TC26x does contain the GPT12 where you can concatenate the 16-bit timers to get either a 32-bit or 33-bit timer. Please see the Timer Concatenation in the user's manual.

In addition the System Timer (STM) is a free running 64-bit timer for each CPU that can be used for a custom period or read as snapshot.

Ringing on reset pin and DESAT protection failure in 2ED020I12FA driver

$
0
0
Dear All,

We built a 7.5kW H-bridge converter using IAUT260N10S5N019 MOSFETs and 2ED020I12FA gate driver. H-bridge is getting powered from a 48V battery pack and is driving an RL load.

We went for this driver for miller clamp protection and short circuit protection features. We are facing two problems with this driver which are:

1. DESAT or short circuit protection is not working - RESET pin on driver is ringing during short circuit event making gate driver signals to flow again and Driver is failing during short circuit test.
2. Miller clamp circuit of the driver is failing sometimes during normal operation of the circuit.

Normal Operation:
H- bridge is currently being operated as a synchronous buck converter. Operation of H-bridge is as follows:
State 1: Left leg top mosfet and right leg bottom mosfet are turned ON to drive the current into the load.
State 2: Left leg bottom mosfet and right leg bottom mosfet are turned ON to freewheel the current in the RL load. A dead band of 1us is given to avoid shoot-through in left leg during transition between left top and left bottom mosfets.
State 3: When pulses are taken away from all the switches, left leg bottom mosfet's body diode and right leg top mosfet's body diode will conduct to give away the energy stored in inductor to the source.

The load is connected between mid points of each leg of the H-bridge. The driver is being used in boot strap circuit configuration to drive the top mosfet in left leg. Second leg top mosfet is not given gate pulse during any state of operation.


Problem 1:: Desat or short circuit protection is not working

To validate the short circuit performance of the circuit, left leg top mosfet and right leg bottom mosfet are kept continuosly ON for some duration and then a 5us ON pulse is given to the left leg bottom MOSFET to create short circuit on left leg.
DESAT protection is not activating and gate driver is failing during this event (3 times drivers failed). Diagnosis of failed drivers using impedance test shows shorted secondary supply pins. Following waveforms are taken during short circuit test.
However, no MOSFET failed during this test but during normal tests MOSFETs are failing. So, its important to have this short circuit protection working properly.

In the following figure - Blue : Bottom gate driver output pulse; Yellow: Top gate driver output pulse; Pink : Desat Pin voltage

Attachment 3453

In the below figure - Blue : Bottom gate driver output pulse; Yellow: Top gate driver output pulse; Pink : 15V supply on secondary side

Attachment 3454

Problem 2:: Miller clamp circuit of the driver is failing sometimes during normal operation of the circuit.

Normal operation of the converter is explained above. It is observed that drivers are failing sometimes during normal running condition of the converter.
Fault diagnosis of some of the failed drivers with impedance test has shown low impedance on miller clamp pin which indicates failure of miller clamp transistor.
We went for miller clamp to protect MOSFETs from unwanted triggering during switching events but instead driver itself is failing in such events.


We are struck with these problems to move ahead in releasing the prototype of our product. Any support in the above mentioned issues is greatly appreciated.

Thanks!
Kashyap Gundlapalli
?????

Best way to disable PWm output pins

$
0
0
Hello,
I'm using the PWM_SVM app and I would like to set the outputs to passive state.
The app does not seem to support this supposedly easy function.
Is it necessary to generate a TRAP signal in software? And how to do it?

Best regards

Alberto

Anyone who knows of BGS16MN14?

$
0
0
Hello, my name is Ady I am new here.

Max SPI rate on xmc1000 series?. why call it Peripheral clk when it's only the timer?

$
0
0
Max spi rates in the data sheets are cryptic.
Is there any xmc11000,1200,1300 where a 64MHz Peripheral clk can be used for something more than on a CCU4/CCU8?, if not why not just call it what it is, a CCU CLK.

A xmc1100 data sheet mention that shortest spi clk period is 62.5ns so that is equal 16MHz, so is that is the max rate for all xmc1100-1300 (xmc1400 24MHz)?

Xmc4300 ethercat ksz8081mlx

$
0
0
Hello everyone

I have been working on a pcb trying to implement EtherCAT with KSZ8081 PHY and it is working with a small but annoying fault:
On a cold start of the PCB and with TwinCAT in free run mode the activity led is blinking as if it is talking to the PC (the activity led is controlled by the XMC) but twincat never sees it as connected (NO COMM it says) and i get no AlControl events or anything. With wireshark i can see how the master is sending commands to the slave repeatedly but no response by the slave.

but if i disconnect the ethernet cable and then reconnect it it just starts working normally!! and it will work forever until i do a cold start, so it seems the ECAT module gets stuck until a link up-> link down -> link up happens

First i thought maybe i would first start the PHY and then the ECAT periphery, didn't work neither vice versa.. i just don't know what to do now to solver this problem

The KSZ8081MLX strapping options are : broadcast disabled, full duplex, addres 0 and address 1 for phy0 and phy1...

Thanks and any help would be greatly appreciated

Regards

Problem when debuggin in GDB segger Jlink debugging using XMC4800

$
0
0
Hello.. I'm using XMC4800 EtherCAT relax kit. I tried to debug in GDB Segger Jlink debugging but I got following errors.
<terminated ,exit value : -1>JLinkGDBServerCL.exe
<terminated, exit value: 0>arm-none-eabi-gdb
<terminated, exit value: 0>semihosting and SWU
In console I got "Segger J-link GDB server v6.00d terminal output channel closed by the GDb server". So I couldn't debug in that mode.
But when I debugged in GDB microE debugging it worked fine. But I want to use GDB Segger J link debugging because in every documents related to XMC they have used the same. Please help
me to solve this issue.

XMC4300 Ethercat Connection Problems

$
0
0
-> I have found the solution after much much headache.... My XMC4300 "Relax" Board Hardware was defective due to a wrong Board assembly :( I ordered a revisioned Board and now it works like a charm
Viewing all 9892 articles
Browse latest View live


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