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

XMC1100 reset state of flash controller and question about bootloading configuration

$
0
0
hello
can you please let me know the state of the flash controller, after reset? asleep or awake?

if asleep, would the following seem feasible
/* read 2 blocks from nvm to sram */
XMC_FLASH_ExitSleepMode();
while(XMC_FLASH_IsBusy());
XMC_FLASH_ClearStatus();
XMC_FLASH_ReadBlocks(XMC1100_SECTOR15_PAGE01_ADDR, (uint32_t *) &buffer, 2);
while(XMC_FLASH_IsBusy());
XMC_FLASH_EnterSleepMode();

also
just a general question about design of a pcb with the XMC1100
after reviewing the XMC1100 layout (tssop16), there is no boot pin like other comparable cortex m0 chips
i am slowly reading the Reference Manual V1.2 2014-11, have not carefully read Bootstrap Loaders (BSL) and User Routines yet
is RxD at P0.14 and TxD at P0.15, all the pins that are required to program the XMC1100?

regards
enzo

SPI DMA XMC4400 automatic slave select update

Xmc4800 - ieee1588

$
0
0
Hi,

We are implementing IEEE1588 in our distributed system. I have read through the Reference Manual in order to grasp the hardware support of time stamping Ethernet packages. On TX operation, I have managed to get the device to write the time stamp to the DMA descriptor. The problem I'm having is that I do not understand how to enable the PTP clock. I expect the registers SYSTEM_TIME_SECONDS and SYSTEM_TIME_NANOSECONDS to continuously be updated with the internal timer (called PTP clock in the reference manual) but they stay permanently the same value all the time.

I'm using the XMC_ETH_MAC_InitPTP() function to initialize the PTP registers.

Do you have any pointers for me to get forward?

Thanks
Rickard

Ethercat firmware update on XMC4800

$
0
0
Hello C64,

We have been working on option 1 and are close to using it in the "real world" as well. So hopefully we have chosen the correct method.
Option 2 has the shortcoming, as you state, that if the application fails to initialize Ethercat, the you're stuck.

The bootloader jumps to the application when a INIT->PREOP is commanded when being in the bootloader.
Once in the application, a reset is required to reach the bootloader again.

How have you tackled the task?

Regards Mathias

How to accomplish pin sharing to make SWDCLK pin as UART TX pin

$
0
0
Sorry. Wrong place. I reposted my question in the appropriate section. Please delete this thread.

Conditional compile over Build-Configurations

$
0
0
Hi.

Is there a way to compile a project conditional?

I set up a new Build Configuration : TEST.
Only in this configuration, i want to compile the Uart modules to serve the XMC_ASSERT() to a uart output.

To implement this solution, i add a new Build Variables "TEST_ACTIVE" Type:String Val:"0" to the TEST configuration.
( -> Properties for My Project, -> C/C++ Build -> Build Variables; Configuration: TEST )

Attachment 2767
In the source code i place a : #ifdef TEST_ACTIVE (Code between) #endif

I set Configuration TEST active, but the compiler doesn't know the Variable "TEST_ACTIVE".

How can i solve this, or isn't it possible to set up a Configuration for this?

And how to implement and activate the XMC_AssertHandler?

If i define a XMC_AssertHandler() over Uart, the problem will be: during init from the Uart, XMC_AssertHandler is called, but uart is not working at this time.
Then the cat bites into the tail.
What is there before: the egg or the chicken?

And how can i enable XMC_AssertHandler() for my user-output?
I define XMC_ASSERT_ENABLE in xmc_common.h, but this doesn't work.....

My Handler looks like this:

Code:

void XMC_AssertHandler(const char *const msg, const char *const file, uint32_t line)
{
        uint8_t cBuffer[256];
        uint16_t iLen=0;

        iLen = sprintf( cBuffer, "%s %s %d",msg, file, line );
        UART_Transmit(&UART_1 , cBuffer,  iLen );
}

?????

DAP miniwiggler on Aurix Kit TC297

$
0
0
Hi,

I am using Aurix Kit TC 297. I want to program it using 10-pin DAP miniwiggler. I have latest version 6.0.0 DAS server installed on my windows machine.
Now when I connect the board with miniwiggler and try to connect it on the HighTech Development Platform (TriCore Eclipse) it gives me the following error messages:


Message from component 'Tc2CoreTargIntf' :
Can't connect target !

Message from component 'Tc2CoreTargIntf' :
Can't connect JTAG target

Message from component 'UDEDebugServer' :
Unable to establish connection . To correct the situation, check configuration file entries and try again.


I am tried to setup the Target Interface by using various given options. But still I am not able to connect the target with my Eclipse.

I want to dump my code on the Aurix Kit.

Can anyone please help me to solve this issue.

Thanks in advance.

Regards,
Divya

Pin sharing in XMC1100 (SWDCLK and UART)

$
0
0
Hi,

You can change the BMI to User productive Mode.
For that you can use the BMI Tool in DAVE4 or XMC Flasher.

But, be aware, once you enable this mode you will not be able to debug again if you did not prepare for changing back.
I mean, you will need to use a command received from the UART interface to change the BMI back to "User mode with debug enabled".

Regards,
Jesus

XMC1300 PASSWD register

$
0
0
Hello

I have a little project running in XMC1300 board.

I start modifying some registers but unfortunately I cant. I want to enable the writting in the protected bits.

Is this register: PASSWD, The PASSWD register is used to control the bit protection scheme.

And this is my code:


#include <stdint.h>
#include <stdio.h>

void main (void)
{

//Bit Protection Scheme Control Bits
*((uint32_t*)0x40010024)|= (3<<6);
*((uint32_t*)0x40010024)&= ~(1<<5);
*((uint32_t*)0x40010024)&= ~(1<<4);
*((uint32_t*)0x40010024)&= ~(1<<3);

//Password Bits
*((uint32_t*)0x40010024)&= ~(1<<1);
*((uint32_t*)0x40010024)&= ~(1<<0);

for (;;)
{

}
}

Attachment 2768

Im doing something bad?

Thanks
Xabi
?????

Connection closed by the GDB server - no source available for "0x0"

$
0
0
The issue happened again and I think I know the reason now.

Yesterday was working on a newly set up project, all working well - including debugging.
Over night the PC was in standby, debugger was still connected and the DAVE project was opened.
Today I brought up the PC, but on the first attempt to flash I got an error message in DAVE that the jLink interface was not found.
So I unplugged/plugged the board again (its a xmc2go board).
Since then, only flashing works, but not debugging (stops with the message: "Connection closed by the GDB server.").

I tried PC reboots with a connected and not connected board, I also tried project cleanup + rebuild - but this project seems to be corrupt somehow.
Also removing the whole "Debug" directory manually and do a rebuild is also not enough.

Intrestingly, only this project is non-functional, I set up some other test projects as well yesterday, these still work - which fits to the other posts above...

So I did some more experiments and figured out that it is sufficient to rename the project and rebuild it.
So the debug binary gets a new name and debugging is possible again. Maybe it is just some file permission issue or caching problem of the debugger tools and/or Win7...

Debugging Aurix Kit TC297 through DAP miniwiggler

$
0
0
Hello,

I am trying to connect the Aurix Application kit TC297 to Infineon's DAP miniWiggler for debugging.
I am using the Free TriCore Entry Tool Chain: AURIX™ Free Tool Chain.

I am using the latest version of DAS. For debugging I turn on DAS Server "UDAS". But when I "Start Client" it gives me error: "DAS Error: DEVICE_ACCESS" and
"No device connected" is displayed.

Is it because I am using Free TriCore Tool for development? Do I need to purchase licensed version of UDE from pls?
Or how do I solve this problem?

Quick response will be appreciated as I am stuck due to this.

Regards,
Divya

TC2x5 TriBoard User Manual

$
0
0
You will need to register with infineon and then log into https://iauth.infineon.com/my.policy. There u will be able
to search for all the documents u want. It is a shame that such expensive boards come with no documentation.

Motor Application HBrücke

$
0
0
Welche Mosfets sind am besten fuer H- Brückentreiber (Motor application) zu nehmen? Wo soll ich suchen?

What is the effect of 100 microseconds(us) transient in a automobile battery?

$
0
0
The big capacitors will keep your board powered during the black period.

If the capacitors are not big enough, your board will power down and start a power on reset when the voltage arises again.

Failed to build RFbeam_radarKit_Ethernet project

$
0
0
Otherwise, it is impossible to decrypt your Korean-mixed error messages.

SPI DRiver for TC297

$
0
0
In case you use the HighTech toolchain. There are some examples using the SPI interface.

For example, the LCD and MicroSD card on the Application Kit board are accessed via the SPI interface.

See the comment:

Code:

/*--------------- Graphic LCD interface hardware definitions -----------------*/

/*
        LCD is connected to QSPI0 interface

        Port        Function        Type        Note
        P20.3        SLSO09                O        Touch Chip Select
        P20.6        SLSO08                O        CPLD Chip Select
        P20.11        SCLK0                O        Serial Clock
        P20.12        MRST0A                I        Master Receive Slave Transmit
        P20.14        MTSR0                O        Master Transmit Slave Receive
        P20.13        BGL                        O        background light

        remarks: accessing LCD controller through serial interface
        command byte: bit7=R/W,bit6=RS,bits5:0=cmd reg
        RS        R/W        function
        0        0        set an index register
        0        1        read a status
        1        0        write a register or GRAM data
        1        1        read a register or GRAM data

        remarks: using a CPLD for serial (SPI) to parallel (LCD) conversion
        bit9=R/W,bit8=E/S (endless | single transfer)
 */

How to read the "step" from the mark of a Tricore chip?

$
0
0
I have a TC2X5 Application Kit, which has a TC275 chip mounted.

The full mark of the chip is " SAK TC275T - 64 F200W CA ".

Then which step of this chip belongs to?

I have read the "AURIX™ TC27x variants Data Sheet Addendum", which list four variants of the TC275T:
  • 1. Variants BC Step
  • 2. Variants CA Step
  • 3. Variants DB Step
  • 4. Variants DC Step

It is obvious that the chip is of "CA Step".

But all the debug engine, memtools, etc want me to choose from " A, B, C " Step. So Anyone could guide me that whether this chip belongs to "A Step" or "C Step"?

[IMG]Attachment 2771[/IMG]

Thanks.
?????

Memory Trap in TC277

$
0
0
Hello,
I am very new to tc277, I have configured a stack to test adc pins in TC277. I am getting Fetch Bus Error in CPU1 which is translated
as trap in debugger window. Can u please help?
Snehal

Reference I2C driver for TC29x

$
0
0
Hello,

I am working with KIT_AURIX_TC297_TFT. I want to configure its I2C.
Can anyone please help me with a reference code for initializing I2C of Aurix TC297?
I am using Free TriCore Entry Toolchain (HighTec Development Platform) for programming the micro controller in C.

Thanks in advance
Divya

How to fill or dump parts of RAM from DAVE IDE?

$
0
0
you should look into the linker script (*.ld file in the project root).
there you would need to load the pattern BEFORE things like stack and bss are loaded (partially overwriting your pattern).
Viewing all 9892 articles
Browse latest View live


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