AURIX™ Forum Discussions
Hello!
I have the following code that is not working. After first call of readRegister response is 0, after calling readRegister the second time, I receive the expected value.
Can you please help? I must mention that my application is based on the Infineon SPI_CPU_TC334 training and I've also tried to change spiMasterChannelConfig.channelBasedCs but I still don't receive the expected behavior.
I've also attached the source code for QSPI.
Thank you!
/**********************************************************************************************************************
* \file Cpu0_Main.c
* \copyright Copyright (C) Infineon Technologies AG 2019
*
* Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of
* business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use
* are agreed, use of this file is subject to following:
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and
* accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute,
* and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the
* Software is furnished to do so, all subject to the following:
*
* The copyright notices in the Software and this entire statement, including the above license grant, this restriction
* and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all
* derivative works of the Software, unless such copies or derivative works are solely in the form of
* machine-executable object code generated by a source language processor.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*********************************************************************************************************************/
#include "Ifx_Types.h"
#include "IfxCpu.h"
#include "IfxScuWdt.h"
#include "QSPI_Config.h"
#include "Timers.h"
#define LED &MODULE_P00,5
IFX_ALIGN(4) IfxCpu_syncEvent g_cpuSyncEvent = 0;
volatile uint8 delay;
static unsigned char response = 0;
void core0_main(void)
{
IfxCpu_enableInterrupts();
/* !!WATCHDOG0 AND SAFETY WATCHDOG ARE DISABLED HERE!!
* Enable the watchdogs and service them periodically if it is required
*/
IfxScuWdt_disableCpuWatchdog(IfxScuWdt_getCpuWatchdogPassword());
IfxScuWdt_disableSafetyWatchdog(IfxScuWdt_getSafetyWatchdogPassword());
/* Wait for CPU sync event */
IfxCpu_emitEvent(&g_cpuSyncEvent);
IfxCpu_waitEvent(&g_cpuSyncEvent, 1);
//init1msTimer();
initQSPI2Master();
initQSPI2MasterChannel();
resetIMMU();
selfTestIMMU();
/*uint8 xGyro, yGyro, zGyro;*/
while(1)
{
response = readRegister(WHO_AM_I, 0x00);
// response = readRegister(WHO_AM_I, 0x00);
//readIMMUAxis(&xGyro, &yGyro, &zGyro);
}
}
Show Less
Hi,
I want to configure my UART module
TX should happen with 10US that i have configured with GPT ,
RX should happen with Interrupt based.
same when i tested RX got struck in IfxStm_isDeadLine(inline) function.
I want to know why it is getting strucked
Show Less
Hello All,
I am trying to debug using Aurix TC399XP kit, winIDEA debugs successfully.
However, when I try the Tasking c/c++ debugger, it fails with the following error "Loading failed: Flash programming failed, there may be a problem with the flash memory itself."
I am using the latest Aurix Development Studio v1.9.20.
BR,
Show LessHi, I am using TC 387. Is it possible to do multi tasking in this board in a single core?
Hi everyone,
I started working with Linker scripts and startup code that comes in the demo, but I can't find a reference/ manual that will documents the scripting language used in the LSL files mainly the HighTech one.
Can anyone please point me towards it?
And I want to know what does a FLAGS(z) mean I can't find any answer to what this "z" flag do.
Thank You.
Show LessIm using tc377 for uart communication, I have to send data from tx without interrupt by using Timer(Gpt12)
when i using this Data is stored in Tx buffer but not transmitting to Rx.
This is timer function
void interruptGpt12_T3(void)
{
IfxCpu_disableInterrupts();
IfxPort_togglePin(LED);
if(g_flag1 == 1)
{
send_receive_ASCLIN_UART_message();
}
IfxGpt12_T3_setTimerValue(&MODULE_GPT120, RELOAD_VALUE_T3);
IfxCpu_enableInterrupts();
}
This one data transfer and receive function through uart
extern void send_receive_ASCLIN_UART_message(void)
{
IfxAsclin_Asc_write(&g_ascHandle, g_txData, &g_count, TIME_INFINITE); /* Transmit data via TX */
IfxAsclin_Asc_read(&g_ascHandle, g_rxData, &g_count, TIME_INFINITE); /* Receive data via RX */
}
Show Less
Hi infineon
As the title said, I got a problem with "Vddk", I use the next formula to configure "Vddk", but some products(not all, same program) will exceed the threshold(±2%) when ambient temperature increasing, and the calculated value close to low boundary? Could you give me some advise? Thanks
Show Less
We have been working on debugging an issue where the TC29x Ethernet receiver halts after being saturated with messages and the Ethernet module must be restarted for the receiver to continue receiving messages. We have seen this behavior on two of our designs and on the TC2X9 Triboard. In debug mode the Receive Watchdog Timeout bit causes an interrupt and data corruption is seen when reviewing the Rx buffers. This eventually leads to the receiver halting, no longer receiving any messages and the missed FIFO counter being filled with the missed messages. We are trying to determine the root cause of the data corruption and the halting of the receiver. Any help on this would be greatly appreciated.
Note, with our current test configuration we have also seen that disabling the "Automatic Pad or CRC Stripping" and "CRC Stripping of Type FRAMES" in the MAC configuration prevents the receiver from halting, but we would like to know the root cause of this issue.
Show LessI'm trying to eliminate one particular ISR from my old OS configuration. So currently RTA-OS configuration tool, tricore tasking of version 6.2 with licensed & old configured file .rtaos & .arxml. To build i'm using BuildOS.bat (tricore compiler) file.
But when i try to check documents related to build using available file i'm unable get it. As i'm new user to this not getting where the mistake is done. Kindly it's my humble requesting for guidance to build with correct path & setup.
Show Less