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

UART problem to send in RTOS mode

$
0
0
I got working UART in non RTOS mode on relax kit 4500

Then I tried to use in RTOS environment. I created two more threads.
If I do nothing related to UART , program seems to work correctly.
Both LED are blinking as expected (so both threads are running) and I can ping the relax kit.


Is it available any example how to manage UART packets in RTOS environment?
?????

ASCLIN for Tc38x

$
0
0
Hello

I am working on ASCLIN device driver for TC38x in my project. Since we are trying in an ECU without LIN transceiver. So we need to figure our a pin with ASCLIN functionality. My question is if a pin is already initialized to use CAN driver, can it be re-initialized for LIN, or we need to de-initialize the CAN first?

In short, lets say P15.0 is CAN_H and P15.1 is CAN_L. Can I initialize my ASCLIN1 driver to override P15.0 and P15.1 as LIN Tx and Rx ?

Please clarify.

How to run ERIKA on multi-core with Infenion BIFCAE IDE (TC397 Troboard)

$
0
0
Hi,

I'm new to Tricore TC397 platform. Is there any reference code or document which shows me how to run ERIKA on multi-core with Infenion BIFACE IDE (HighTech Free TriCore™ Entry Tool Chain)?

I found this reference project to run ERIKA on multicore. But I have no idea to do it with Infenion BIFACE project.
Below are my draft ideas.

1. to configure ERIKA system timer for each core ( core1, core2, ..core5) --> It means that I have to enable system timer interrupt for each core.
2. change linker script ???


Best Regards,


Alex

XMC4200 :flash usage for EEPROM emulation

$
0
0
I would have some clarifications about the memory flash usage for eeprom emulation working with an XMC4200 having 256Kb of program flash:

Is the following memory configuration allowed ? I have tried it but without success :-(

64kB for bootloader starting at address C000000
32kB for EEPROM emulation starting at address C010000 (sector S4 and S5)
160 kB for the application firmware starting at address C018000

At the contrary the following configuration works :

64kB for bootloader starting at address C000000
64kB for EEPROM emulation starting at address C010000 (sector S4 ,S5, S6 and S7)
128 kB for the application firmware starting at address C020000

I would prefer the first configuration to have more memory for the application

Thank you for the help

big endian / little endian

$
0
0
Hello,

I want to define a union with 32 Bit.

union{
uint8_t x [4];
uint32_t y;
};

In one case I work with "uint32_t y" and in the other with "uint8_t x [4]".

My problem is that uint32_t is little endian but I need big endian. How can I change it?

I use Dave 4 and a XMC 4700 Controller.

Thanks for your help

S.H.

Debugging ASCLoader

$
0
0
Hello

In our Project we would like to use the ASCLoader to flash our application over UART (ASC BSL) to our custom XMC4800-2048 board.

During debugging the source (Infineon-XMC4000_Bootloader_ASC_example_code-AN-v01_03-EN.zip) for XMC4800 we came to the conclusion that the loader
will not erase a Flash sector if the first 4 bytes are blank. In EraseSector the dwSectorAddr is incremented till we hit a memory address with double word != 0.
In the routine this INCREMENTED Adress is then given to XMC4000_PFLASH_EraseSector as sector base adress for erase (see line 106 of xmc4000_flasher.c.
I tried to confirm my hypothesis so I produced a binary file where the first 4 bytes of every sector is 0 and the remaining bytes of the sector are 0xFF.

I programmed this file (attached) with XMCLink (Segger J-Flash-Lite v6.34h) to the device and since then the device shows signs as it is proteced from any debug access.
However I do not know why my device is no bricked! Reading the documentation I am confused what is located at 0x0C00 0000:
- is it the UCB0 content (p8-7, Reference Manual V1.13, PMU v1.13)
- or the Vector Table of the code (p 7-4, Reference Manual V1.3, Memory Organization V2.12)
How can I unbrick my device?
I would be greatful for any hint to resolve my problem with the bricked device, why it is bricked ...

Tobias
?????

I need the XMC4700 example of posif based on XMC lib

How to enable FPU instructions?

$
0
0
Hi,

The __VFP_FP__ and __SOFTFP__ are macros predefined by the compiler itself depending on the command line options.
You can check them by adding the compiler options ' -dM -E' (https://stackoverflow.com/questions/...cessor-defines)
The __VFP_FP__ is defined as long as you specify -mfpu=fpv4-sp-d16
The __SOFTFP__ is only defined if you specify -mfloat-abi=soft. In all other cases i.e. -mfloat-abi=softfp or –mfloat-abi=hard, it is not defined.
The __FPU_PRESENT is defined in the device header file.

The difference between -mfloat-abi=softfp or –mfloat-abi=hard, is the usage of the floating point registers in the later to pass floating point parameters to functions.


Regards,
Jesus

ETHCAT_SSC_XMC48 Example: Set I/Os scripting in TwinCAT3

$
0
0
The scripting you are looking for is called "structured text" and is used to program PLCs.
(Reading inputs and logical/functional reacting on the outputs).

This topic cannot be covered here inside the forum.
You will find tutorials on the web in general for this topic. In regard how to specifically use this scripting within TwinCAT please consult BECKHOFF.

XMC4500 Tip of the day: Flexible CRC Engine

$
0
0
Hi,

Is it possible to use the FCE for SAE J1850 CRC8 polynomial with the following parameters ?

Polynomial: 0x2F (x8 + x5 + x3 + x2 + x + 1)
Start value: 0xFF
Final XOR-value: 0xFF

Thank you very much

PHAB

June 2019: New Release of XMCLib v2.1.22

Vadc fifo

$
0
0
I have one of the ADC groups configured to control an external Multiplexer, the multiplexer is connected to channel 0 and I have a FIFO setup on 8 of the registers.
I have configured the FIFO as described in the VADC application note, with an interrupt being generated on the tail of the FIFO. This interrupt is being called every time a new result enters the tail of the FIFO as expected, however I don't want to have to generate an interrupt every time one of the multiplexers channels are converted, I would like for the FIFO to be filled with all 8 results and then an interrupt generated on the last result, i can then store those 8 values else were, clear the FIFO and wait for the next conversion.

Is it possible to configure / use it in this way?

Im using a XMC4500.

How to I prevent DAVE from deleting directories?

$
0
0
When I switch and build a Release configuration, DAVE deletes the Debug directory. When I switch and build a Debug configuration, the Release directory is deleted. Where can I find the DAVE setting to leave the unselected configuration directory alone?

Thanks in advance.

Not getting read message from display

$
0
0
Hi, there
I am using xmc4500 relax kit interfacing to matrix orbital eve2 display. After coding i am not getting mem read . the program waits for display response.
?????

BLDC Arduino shield TLE9879 support

$
0
0
Hi,

I'd need some support about the Arduino Software usage on this shield.
Provided examples just offer the code for on, spin and stop the motor but anything else. Could anybody give me some hints? (i.e. Examples for changing parameters for HALL mode, spin direction and so on)

Thanks in advance,
gaston

POSIF start error

$
0
0
Hello, amanning.
This issue is interesting for me too. I want to use quadrature encoder for calculation position by connect POSIF to CCU8, however for POSIF is no APP or example source code.
How you integrity POSIF in your project, DAVE CE PROJECT with LIB APPs or using only XMCLib?

How to use POSIF in DAVE4.4.2?

$
0
0
Hello, jferreira.
There is get example source code for using POSIF with XMCLib. And how it merge with existing APPs in project?
I am understand that question not for this topic, however where can i find examples for mixed project with APPs and custom code based on XMCLib.

Abnormal GH & GL waveform

$
0
0
Hello,

thank you for your post and your interest in our products!
To help you I would need some more information:

1) What is your supply voltage?
2) What load are you driving?
3) Are you jumping with your PWM? (from a high to a low duty cycle)

Best,
Fiz

Bridge Drive Issue

$
0
0
Hi Peter,

Which boards were you using?
Over current can also be caused when the active and free-wheeling MOSFET are turned on at the same time.
Try increasing the charge and discharge current of the bridge driver or increasing the cross-current-protection time.
Best,
Fiz

Optiga TrustX key derivation

$
0
0
Hi,
I am playing this example from NordicSemi here:
https://infocenter.nordicsemi.com/in...cp=5_1_4_3_1_2

In this example, there is a test regarding key derivation as:

Code:

static void uc_key_derivation(void)
{
    optiga_lib_status_t optiga_lib_status;
    uint8_t  info[100] = { 0 };
    uint16_t info_len  = 100;
    uint16_t oid              = 0xF1D0;
    uint8_t  shared_secret[64] = { 0 };

    // Check if key derivation is supported (OPTIGA Trust X after version 1.20.1048)
    optiga_lib_status = optiga_util_read_data(0xE0C2, 0, info, &info_len);
    DEMO_OPTIGA_ERROR_CHECK(optiga_lib_status);

    if (info[25] == 0x10 && info[26] == 0x48) // !!!! THIS CONDITION RETURNS TRUE
    {
        NRF_LOG_INFO("Key derivation not supported!\r\n");
        NRF_LOG_FLUSH();
        return;
    }

As I understand, it checks the fw version of the OptigaX for if key derivation is supported or not. According to the reply of the TrustX device, the function returns with 'Key derivation not supported!' message.
The thing is that, in the datasheet (revision 2.6), it clearly says OptigaX supports key derivation in the first page.
Quote:

Crypto ToolBox with ECC NIST P256, P384, SHA-256 (sign, verify, key generation, ECDH, key derivation)

I appreciate if anybody has any suggestion with that, if this is the case or not, and how to use key derivation with optigaX.

Best regards,
Vedat
Viewing all 9892 articles
Browse latest View live


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