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

ASCLIN on TC234 ADAS problems

$
0
0
Hi

Did the code clear CPU ENDINIT bit before accessing register BIV?
Some of AURIX critical registers are ENDINIT protected.

The following registers are ENDINIT protected:
• BTV, BIV, ISP, PMA0, PMA1, PMA2

Xmc1302 p1.4 LED

$
0
0
I have XMC power explorer kit and I am using the the control boards with XMC1302 and XMC4200 for learning.
On the XMC1302 board there is a test LED connected to P1.4. I wanted to blink it with the PWM app but it is not shown as feasible from the pin mapping tool.
Could you please help me understand why P1.4 is not available for the pwm output? Can it be made available? Am I doing anything wrong?
Thanks in advance.
YH
?????

Migrating PMSM FOC LIB from DAVE to Keil uVision

$
0
0
Hello everybody,

I have been working with XMC4400 by using both DAVE and Keil uVision . When I try to migrate projects from Dave to uVision I can make them work with the help of the document ; http://www.keil.com/appnotes/files/apnt_258.pdf

When it comes to migrate the pmsm foc app to uVision (with PMSM_FOC_LIB ) , because of the linker or compiler settings , I couldn't make it work.

If I do not change and follow the steps for gpdsc to uVision migration and enable GNU extension I get L6218E: Undefined symbol linking error.

I have tried to change compiler that uVision use to GNU(2019-q4-major) by the referance http://www.keil.com/arm/gnu.asp . I have added linker script file, include library and include path but this time I got unrecognized character and bad instructions errors from startup_XMC4400.s file.


Waiting for your help..

Thank you..




Attachment 4508Attachment 4509
?????

TC389 low level drivers

$
0
0
Hi,

Since Aurix Studio does not include tc3xx MCU's, how can I get the drivers?

What happens when reading and flash operation conflict?

$
0
0
Hi Lucas,

This depends on whether the flash bank to be accessing the same bank or not. "Read from flash", would mean a read access is done via the SRI bus and "Flash Operation" means the flash bank is in "BUSY" state with a command.
Case 1) Same bank; Master 1 and 2 access to same bank (e.g. PF0) according to the following table:
Attachment 4510
1) During its execution the Flash bank reports BUSY in FSR. In this mode read accesses to this Flash bank are refused with a bus error or the ready is suppressed until BUSY clears.
This can be configured (see FCON.STALL). At the end of an operation the Flash bank returns to read mode and BUSY is cleared.
2) Bus error occurs for write access to DF0 address range when normal command interpreter is busy with a command. Bus error occurs for write access to DF1 address range when HSM command interpreter is busy with a command.
In case of flash commands conflict by the CPU and HSM, please see "Time Slice Control".
Case 2) Different bank; Master 1 and 2 access to different bank (e.g. PF0 and PF1) according to the following table:
Attachment 4511

Best regards,
Mr. AURIX™
?????

AURIX Compiler

$
0
0
Theoretically you should be able to run the same code by using the Hightec Free Licence only for Evaluation Purposes.

TC39 Powerup Start with ED and PD

$
0
0
Can you confirm that you have programmed the UCB_BMHDx_ORIG and UCB_BMHDx_COPY on the PD device?

If these are not programmed the debugger will usually set the start address according to your elf file.

A Boot Mode Header is an information structure that specifies user startup options, including the starting address of user code.
In AURIX™ TC3xx Platform, four sets of Boot Mode Headers (BMHDx for x=0, 1, 2, 3) are defined in the User Configuration Blocks (UCB) of Data Flash (DFLASH). Each set contains an original and copy in UCB_BMHDx_ORIG and UCB_BMHDx_COPY, respectively.

SMU Configuration Steps

$
0
0
I am also writing here as probably it is also related to safety.
I am currently using the TC277_TFT board and in the schematic I see that the external IC TLF35584 is used which Infineon recommends to use also for Functional Safety.
I browsed the 240 pages!!! datasheet in order to get an idea about how this IC should work together with the Aurix, but the whole logic seems to need either an entire development team, or some already developed and tested
safety library.
Also on the schematic I see that the SS1/2 outputs are routed to a LED and to the Aurix.
Is this normal, or this is done just on the Evaluation Board, but in reality they should be disabling some actuators to ensure a safe state when the monitoring detects a problem?

Hard Fault - XMC 4300 __asm("BKPT 0\n")

$
0
0
Hello,

I´m working with an XMC4300. Sometimes I have the problem that the uC end in a Hard Fault.
I have no clue what to do. I enabled Hard Fault debugging support in the CPU_CTRL_XMC4_0

My application : Using SPI to control a external Motor Controll Unit.

How can I find the cause of the Hard_Fault ?

Emulator Debug Port Secure error on Trace

$
0
0
Hello,

I have written the invalid values to the BMHD0 where there is no values in the other BMHDs. This invalid value locks the ECU.
Attachment 4512

According to the schematic, it is not possible for the other startup procedure. The following image shows the schematic.
Attachment 4513

I need the support to come solve this issue. Thanks in advance.
?????

Default Handler disrupting FreeRTOS program

BMI setting error

$
0
0
Hi,

Which BMI value did you set?

regards,
Jesus

compile source code with command line for Aurix Tricore TC277

$
0
0
Hello,

I work on the Aurix tricore TC277 microcontroller with the Hightec compiler which is with eclipse,
but now I need to compile my source code with command line, that means without using eclipse.
According to my research I found that it is feasible, but I did not find the necessary command.

Let me know if any details required.

Regards,
Rihab

OPCUASERVER_LWIP_XMC47 on xmc4800 automation board

$
0
0
Hi,

I just tested the example in the XMC4700 RelaxKit and there it is working without problems.

Attachment 4515

In the Libraries/lwip/port/nosys/netif/ethernetif.c you need to adapt the pins as follows:

Code:

#define RXD1    P14_9
#define RXD0    P14_8
#define RXER    P0_11
#define CLK_RMII P15_8
#define TX_EN    P5_9
#define TXD1    P2_13
#define TXD0    P2_12
#define CRS_DV  P15_9
#define MDIO    P1_11
#define MDC      P1_10
…

low_level_init(struct netif *netif)
{
…
  port_control.mode = XMC_ETH_MAC_PORT_CTRL_MODE_RMII;
  port_control.rxd0 = XMC_ETH_MAC_PORT_CTRL_RXD0_P14_8;
  port_control.rxd1 = XMC_ETH_MAC_PORT_CTRL_RXD1_P14_9;
  port_control.clk_rmii = XMC_ETH_MAC_PORT_CTRL_CLK_RMII_P15_8;
  port_control.crs_dv = XMC_ETH_MAC_PORT_CTRL_CRS_DV_P15_9;
  port_control.rxer = XMC_ETH_MAC_PORT_CTRL_RXER_P0_11;
  port_control.mdio = XMC_ETH_MAC_PORT_CTRL_MDIO_P1_11;
  XMC_ETH_MAC_SetPortControl(&eth_mac, port_control);

  XMC_ETH_MAC_Init(&eth_mac);

  XMC_ETH_MAC_DisableJumboFrame(&eth_mac);

  gpio_config.output_level = XMC_GPIO_OUTPUT_LEVEL_LOW;
  gpio_config.output_strength = XMC_GPIO_OUTPUT_STRENGTH_STRONG_SHARP_EDGE;
  gpio_config.mode = (XMC_GPIO_MODE_t)((uint32_t)XMC_GPIO_MODE_OUTPUT_PUSH_PULL |P2_12_AF_ETH0_TXD0);
  XMC_GPIO_Init(TXD0, &gpio_config);

  gpio_config.mode = (XMC_GPIO_MODE_t)((uint32_t)XMC_GPIO_MODE_OUTPUT_PUSH_PULL | P2_13_AF_ETH0_TXD1);
  XMC_GPIO_Init(TXD1, &gpio_config);

  gpio_config.mode = (XMC_GPIO_MODE_t)((uint32_t)XMC_GPIO_MODE_OUTPUT_PUSH_PULL | P5_9_AF_ETH0_TX_EN);
  XMC_GPIO_Init(TX_EN, &gpio_config);

  gpio_config.mode = (XMC_GPIO_MODE_t)((uint32_t)XMC_GPIO_MODE_OUTPUT_PUSH_PULL | P1_10_AF_ETH0_MDC);
  XMC_GPIO_Init(MDC, &gpio_config);

  XMC_GPIO_SetHardwareControl(MDIO, XMC_GPIO_HWCTRL_PERIPHERAL1);
…
}

?????

XMC1202 with ULINK2?

$
0
0
Hi,

The BMI is correct. Can you try by upgrading the JLink software?

If I try the same I get the following (using latest JLink software)

Code:

Load "C:\\Files\\Projects\\MDK\\XMC1400_Test_JLINK\\Objects\\XMC1400_Test_JLINK.axf"
Set JLink Project File to "C:\Files\Projects\MDK\XMC1400_Test_JLINK\JLinkSettings.ini"
* JLink Info: Device "XMC1404-0200" selected.
 
JLink info:
------------
DLL: V6.62d, compiled Mar  2 2020 09:22:41
Firmware: J-Link Lite-XMC4200 Rev.1 compiled Mar  1 2019 11:28:26
Hardware: V1.00
S/N : 591046198
 
* JLink Info: Trying to identify target via SPD
* JLink Info: Could not identify target via SPD. Trying again via SWD.
* JLink Info: Found SW-DP with ID 0x0BB11477
* JLink Info: Unknown DP version. Assuming DPv0
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[1]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x04770021)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xF0000000
* JLink Info: CPUID register: 0x410CC200. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M0 r0p0, Little endian.
* JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl[0] @ F0000000
* JLink Info: ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB471 ROM Table
* JLink Info: ROMTbl[1] @ E00FF000
* JLink Info: ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
* JLink Info: ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
* JLink Info: ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
ROMTableAddr = 0xF0000000
* JLink Info: Performing XMC1000 reset
 
Target info:
------------
Device: XMC1404-Q064x0200
VTarget = 3.300V
State of Pins:
TCK: 0, TDI: 0, TDO: 0, TMS: 16, TRES: 0, TRST: 1
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints:          2
JTAG speed: 3000 kHz
 
Erase Done.
Programming Done.
Verify OK.
Flash Load finished at 15:19:02


These are my debug settings
Attachment 4516

Regards,
Jesus

Can't enable LMU/SRAM read buffers in TC29x

$
0
0
Hi jjorba.

For TAG IDs: the idea with Safe/Non-Safe TAG IDs is that you can use the ACCENx registers to restrict which bus masters have access to various parts of the system. No impact to LMU performance.

Just to be sure - is a a volatile variable? If not, the compiler will optimize the loop away and just do the last assignment of a=my_global_array[999].
Are you sure that DCACHE is not enabled? Verify CPU0_DCON0.DCBYP=1.
Can you share the assembly code for your example?

TLE9879QXA40 Arduino Shield Not Responive

$
0
0
Hello,

I have loaded the sketch "bldc_shield_blinky_test" and it looks like the shield cannot be found. I have tried two different Arduino Unos as well with the same result.

When I open the serial monitor I get:

INFO: Starting initialization
INFO: Sending reset request to all boards
WARNING: Board[1]; Command[901]; Answer[0]
WARNING: Board[1]; Command[901]; Answer[0]
WARNING: Board[1]; Command[901]; Answer[0]

Here is a pic of the unit. LED2 lights up white when 12VDC is supplied to the shield.

Can anyone provide me with some next steps or troubleshooting?

Attachment 4517
?????

ASCLIN on TC234 ADAS problems

$
0
0
Quote:

Originally Posted by VincentWan View Post
Hi

Did the code clear CPU ENDINIT bit before accessing register BIV?
Some of AURIX critical registers are ENDINIT protected.

The following registers are ENDINIT protected:
• BTV, BIV, ISP, PMA0, PMA1, PMA2

Ugh, this isn't mentioned in the architecture manual.
I wrapped it with clear/set of the ENDINIT, and it works.
Thanks.

Toshi

IGBTs with short circuit capability

$
0
0
Hi, could you please tell me why to use IGBTs with short circuit capability? What exactly do you mean with short circuit?

Rg for drives

$
0
0
Dears,
can anybody tell me how to figure out the right Rg for drive applications?
Ty
Max
Viewing all 9892 articles
Browse latest View live


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