AURIX™ Forum Discussions
text.format{('custom.tabs.no.results')}
Hello,
I am trying to integrate support for the AURIX TC375 into my current custom build system which uses makefiles to compile my project code. I have been unable to use the TASKING compiler outside of the IDE. Are there any suggestions as to how I should approach this problem, and / or which compilers I should use?
Thank you!
Show LessHi,
My bootloader run debug mode in ADS(aurix development studio) with miniwiggler is work good, but run in normal mode always fail at download app step, seems MCU no any response in this phase, have any advice?
Thanks.
Supplementary Note:
CanRxPin:IfxMultican_RXD0A_P02_1_IN
CanTxPin:IfxMultican_TXD0_P02_0_OUT
External HardWare pin, HWCFG[3:4:5]=[0:1:1]
Hello
If the ADC group results are read via DMA, should I expect the result valid flag to be 0xxxxxxxx or 8xxxxxxx on the RAM destination address? At the moment I can see 8xxxxxxx on both source register and destination RAM
I get attached error when I try to program my TC397 using memtool via 'T39x B-Step(DAS))' . I don't know what went wrong before. I referred some other related post in this community and ensure that 'Init PSPR0/DSPR0 on connect' is ticket when i perform flashing.
Does anyone has any clue?
But, I dindt understand "using UDE communication device instead of DAS with using 2pin DAP". Can someone help?
Show LessI am using TC275 lite kit. I want to write a EN bit in GLOBALCON which is rwh. Is it possible to write directly to that bit?
Also, will it cause any effect to the microcontroller if I write by disabling ENDINIT safety protection?
Is there any other way to set EN bit without disabling ENDINIT safety protection?
Show Less
Hi!
I am creating PWMs with dead time with pwmAtomHl.h file, top pwm is in CCX vector, bottom in coutx.
I need to implement also a shift between my CCXs pwms but I don't know how.
They are UP DOWN counters so everything seems more complicated for shift.
I want to create a master slave configuration for the start of pwms but I don't know how.
I need a shift of 90 degrees or 180 degrees, so a code that can be easily changed.
I attached my code below.
Thank you in advance for every suggestion! because the starting of CNO by a trigger is not present in any example so I have many difficulties!
void ATomPwmUpDowncounter(){
IfxGtm_enable(&MODULE_GTM); /* Enable GTM */
//SET THE CLOCK SOURCE TO ITS MAXIMUM SO 200 MHZ
//RF_PROT bit cleared in order to set CLK_DIV
gtm_ptr->CTRL.B.RF_PROT=0;
//Set cluster enable without clock divider
gtm_ptr->CLS_CLK_CFG.B.CLS0_CLK_DIV=01;
IfxGtm_Cmu_setClkFrequency(&MODULE_GTM, IfxGtm_Cmu_Clk_0, 200000000); // Set the CMU clock 0 frequency - ATOM
IfxGtm_Cmu_enableClocks(&MODULE_GTM, IFXGTM_CMU_CLKEN_CLK0); // Enable the CMU clock 0 - ATOM
//Configuration of the timer reset of atom counters
IfxGtm_Atom_Timer_initConfig(&g_timerConfig,&MODULE_GTM);//To set default parameters for timer
g_timerConfig.atom = PIN_CLOCK.atom;
g_timerConfig.timerChannel = PIN_CLOCK.channel;
g_timerConfig.triggerOut = &PIN_CLOCK;
//Change this parameter to change the frequency of pwms displayed
g_timerConfig.base.frequency = PWM_FREQUENCY*2; // CM0: clock reset
g_timerConfig.base.countDir = IfxStdIf_Timer_CountDir_up;
// g_timerConfig.base.countDir =IfxStdIf_Timer_CountDir_upAndDown;
g_timerConfig.base.trigger.enabled = TRUE;
g_timerConfig.base.trigger.outputEnabled = TRUE;
g_timerConfig.base.trigger.triggerPoint = 1000; // CM1: trigger at half period
g_timerConfig.initPins = TRUE;
g_timerConfig.clock=IfxGtm_Cmu_Clk_0;
g_timerConfig.base.minResolution = (1.0 / g_timerConfig.base.frequency) / 1000;
g_timerConfig.base.trigger.risingEdgeAtPeriod = TRUE;
IfxGtm_Atom_Timer_init(&g_timerDriver, &g_timerConfig);
//To start at zero value the timer
gtm_ptr->ATOM[0].CH2.CN0.B.CN0=0;
// create ATOM configuration
IfxGtm_Atom_PwmHl_initConfig(&pwmHlConfig); //For default configurations
//For configurations
pwmHlConfig.timer=&g_timerDriver;
pwmHlConfig.base.outputMode = IfxPort_OutputMode_pushPull;
pwmHlConfig.base.channelCount=1;
pwmHlConfig.base.deadtime=0;//100e-9;
pwmHlConfig.ccx = ccx;
pwmHlConfig.coutx = coutx;
pwmHlConfig.base.emergencyEnabled = FALSE;
pwmHlConfig.base.ccxActiveState = Ifx_ActiveState_high;
pwmHlConfig.base.coutxActiveState = Ifx_ActiveState_high;
pwmHlConfig.base.ccxOutputEnabled=TRUE;
pwmHlConfig.base.coutxOutputEnabled=TRUE;
pwmHlConfig.initPins=TRUE;
// initialize the ATOM
IfxGtm_Atom_PwmHl_init(&g_pwm, &pwmHlConfig);
IfxGtm_Atom_PwmHl_stdIfPwmHlInit(&pwmhl, &g_pwm);
//To set up down counting
gtm_ptr->ATOM[0].CH0.CTRL.B.UDMODE=0x3;
gtm_ptr->ATOM[0].CH1.CTRL.B.UDMODE=3;
//Counters all have to start from 0
gtm_ptr->ATOM[0].CH0.CN0.B.CN0=0;
gtm_ptr->ATOM[0].CH1.CN0.B.CN0=0;
IfxGtm_Atom_Timer_run(&g_timerDriver);
//To set duty cycle of PWMs Ton must be set in ticks
IfxStdIf_Timer* timer = IfxStdIf_PwmHl_getTimer(&pwmhl);
Ifx_TimerValue onTime[1]; // assume configured for 1 HL channel
onTime[0] = 600;
IfxGtm_Atom_PwmHl_setMode(&g_pwm, Ifx_Pwm_Mode_centerAligned);
IfxStdIf_Timer_disableUpdate(timer);
IfxStdIf_PwmHl_setOnTime(&pwmhl, onTime);
IfxStdIf_Timer_applyUpdate(timer);
}
Show LessHi Community,
I am trying to enable Serial communication (SSC) communication from Standby Core (SCR).
I have configured the pins to be controlled from SCR instead of Main controller(using P33_PCSR) and enabled SSC in/outputs(P01_IOCR2/3/4/5). PMCON1 set to 0x39(so bit 0 - SSC, enabled).
Now, no matter what I try to write to SSC_CONPH register, it always reads back the reset value (0x40). SSC_CONPH register is PAGE independent and RMAP is set to 0.
Is there something else I need to take care for to enable configuration of SSC ?
Please let me know if you would need more information to support me with this query.
Show LessHello, everyone. Please can you help me to fix this code that I linked below?
I would like that when the CCU6 sends the trigger to the EVADC, it also starts the T3 timer. I would, also, like that when the conversion finishes the T3 timer stops. Finally I would like to print out the value of the timer.
I also cannot set the function setTimerValue, (I know that the RELOAD_VALUE is wrong for my task) how do I get the actual count that should be equal to the conversion time?
Thank you very much in advance.
Show LessDear Engineers:
I am working on Aurix 2G TC364 for my company’s project program. When I downloaded the hex file via PLS UDE 5.2, it reported the error message as below. I want to cancel the protects, how can I do it? Thanks a lot.
Show Less
I am stating to use the AURIX_TC397_TFT and I am having problems in starting a project.
After following the "Infinion BIFACES - Migrate iLLD demos to managed HighTec projects", i`m having the following errors:
20:18:43 **** Incremental Build of configuration Default for project Demo ****
make all
Make files being generated !!!
Warning: simplexml_load_file(): I/O warning : failed to load external entity "1_ToolEnv/0_Build/1_Config/Config.xml" in C:\Tools\BifacesWin64\Bifaces\Scripts\Kernel\Configuration\Configuration.php on line 128
ERROR : 502: Config XML file '1_ToolEnv/0_Build/1_Config/Config.xml' could not be opened!
WARNING: 301: Configured source folder, '0_Src' doesn't exist!
Warning: Invalid argument supplied for foreach() in C:\Tools\BifacesWin64\Bifaces\Scripts\MakeGen\MakeGen.php on line 257
Now Build started !!!
make[1]: 1_ToolEnv/0_Build/9_Make/Project.mk: No such file or directory
make[1]: *** No rule to make target '1_ToolEnv/0_Build/9_Make/Project.mk'. Stop.
C:\Tools\BifacesWin64\bin/../Bifaces/Make/Root.mk:43: recipe for target 'build' failed
make: *** [build] Error 2
Can somebody help me with this? Show Less