AURIX™ Forum Discussions
Hello everyone!
I'm trying to implement a solution to flash a .hex file in the TC397 microcontroller over CAN communication.
The MCU is receiving chunks of information and should flash it as it receives. I'm following the Flash example but I'm not sure to which location of the PFLASH I should write into. If I try to flash on 0xA0000000, the code just stops (I'm assuming that's because I'm running it from there) and from 0x80000000 nothing happens. At the moment I'm still not using A/B swap.
Is there any example or something similar to the process?
Thank you.
Hi,
I want to send data in between two infineon 387 boards. Is it possible to provide sample code?
I'm usinng Infineon SAK-TC367DP-64F300S AA Aurix controller . I am having difficulty switching Core0 (CPU0) from Idle to Run mode while the code is excuted in Core1 in PFlash1.
Currently, I have successfully enabled Core0 into Idle state and Core 1 into Run state using the provided code snippet:
void Ifx_Ssw_setCpu0Idle(void) { Ifx_SCU_WDTCPU *wdt = &MODULE_SCU.WDTCPU[0]; unsigned short cpuWdtPw = Ifx_Ssw_getCpuWatchdogPassword(wdt); Ifx_Ssw_clearCpuEndinit(wdt, cpuWdtPw); SCU_PMCSR0.B.REQSLP = 1U; Ifx_Ssw_setCpuEndinit(wdt, cpuWdtPw); }
However, I am now tasked with switching Core0 back to Run mode and Core 1 to Idle state. Despite following the steps outlined in the Aurix TriCore data, I have been unable to achieve this successfully.
Below, I have included the code snippet I have attempted to use for switching Core0 to Run mode:
Ifx_CPU *cpu = (Ifx_CPU *)&MODULE_CPU0; unsigned long programCounter = ((unsigned long) (&__Core0_start)); Ifx_CPU_SYSCON syscon; /* Set the PC */ cpu->PC.B.PC = programCounter >> 1U; /* Release boot halt mode if required */ syscon = cpu->SYSCON; if ((syscon.B.BHALT & 0x01U) == 1U) { syscon.B.BHALT = 0U; cpu->SYSCON = syscon; } Ifx_SCU_WDTCPU *wdt = &MODULE_SCU.WDTCPU[0]; unsigned short cpuWdtPw = Ifx_Ssw_getCpuWatchdogPassword(wdt); Ifx_Ssw_clearCpuEndinit(wdt, cpuWdtPw); SCU_PMCSR0.B.REQSLP = 0U; // Request CPU Run Mode Ifx_Ssw_setCpuEndinit(wdt, cpuWdtPw);
I would greatly appreciate it if you could review the provided code and offer any necessary corrections or additional steps required to successfully enable Core0 to Run mode while keeping Core 1 in Idle state.
Show LessSafetyPack自检时出现ECC错误,其中ECCS寄存器的ALL0和AERANY位都是1,请问可能是什么操作会导致这种情形,单独从起始地址为0x80000000的app启动不报这个错误,从起始地址为0x80028000的FBL启动然后进入0x80080000的app会报这个错误
Hi All,
I have a question related to SCR_XRam and SCR_IRam.
The question: How to know whether the SCR_XRam and SCR_IRam are initialized or are not initialized in startup code?
Thanks.
Show LessHi community.
I am using TOM to generate synchronised PWM signals, so I thought of using one TOM channel as a TIMER to send the reset signal to all other channels. This TIMER must reset itself when a reset signal arrives from the outside, this signal is acquired by the TIM and arrives at the TOM via the TIM_EXT_CAPTURE signal, but in the meantime, in case the external reset signal does not arrive, the timer counter must be able to reset itself so that the PWM period is guaranteed.
Referring to the image below, it seems obvious that I cannot realise the two reset modes at the same time, given the constraint of the EXT_TRIG and RST_CCU0 multiplexers
I would like to ask you if the only solution to implement this functionality is to change the bits of the two multiplexers EXT_TRIG and RST_CCU0 for the timer channel by perhaps implementing a watchdog timer that recognises when the external reset signal does not arrive within the 10 micro seconds window.
Show Less
Which is the best approach for FlexRay Configuration?
I was told that the best approach is to start with definition which options are needed / So, basically 2 MBit/sec Datarate , Channel A , Monitoring options enabled. Is this a best approach? If yes, how can I do this?
smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/SAK-TC397XP-256F300S%E5%B0%BE%E7%BC%80BC%E5%92%8CBD%E7%89%88%E6%9C%AC%E6%9C%89%E4%BB%80%E4%B9%88%E5%8C%BA%E5%88%AB/td-p/721501
Show LessMy TS279TA debug board spontaneously changed the password. Debugger: miniwiggler. I never set a password, the default password. I guess. The breakdown occurred due to a short-term power outage during firmware installation. DAS server log (Infineon Memtool 2021 session): NOTE: UDAS Console performance is significantly higher if this console window is minimized during operation. DAS Server has host port 65004 0.000000 Waiting for first DAS Client 0.312204 CC 00: New DAS Client "DASHPAS" (PID 1940) 1 DAS Clients connected (max. 32, one is DASHPAS) 3.605161 CC 01: New DAS Client "Universal Debug Engine" (PID 3300) 2 DAS Clients connected (max. 32, one is DASHPAS) 3.605278 CC 01: connect_to_device() start Automatic device detection Access HW has DAP, SWD or SPD interface to target or is not connected Device is connected with DAP device_sel 0, error none Device "TriCore-Family" Device ID0 is 0x201E9083 Device ID1 is 0x00000000 Valid Address Maps: 0, 1 3.623029 CC 01: connect_to_device() end (17.751 ms) 3.623160 CC 01: init_device() start init_option DAS_DIO_RESET_AND_HALT | DAS_DIO_NO_DEFAULT_KEY_TYPE device_key DAS_KEY_TYPE_256BIT key[0] 0x00000000 ... error DEVICE_LOCKED 3.680015 CC 01: init_device() end (56.855 ms) 3.680338 CC 01: disconnect_device() 3.680587 CC 01: connect_to_device() start Automatic device detection device_sel 0, error none Device "TriCore-Family" Device ID0 is 0x201E9083 Device ID1 is 0x00000000 Valid Address Maps: 0, 1 3.683412 CC 01: connect_to_device() end (2.825 ms) 3.683772 CC 01: init_device() start init_option DAS_DIO_RESET_AND_HALT | DAS_DIO_NO_DEFAULT_KEY_TYPE device_key DAS_KEY_TYPE_256BIT key[0] 0x00000000 ... error DEVICE_LOCKED 3.728949 CC 01: init_device() end (45.177 ms) 3.729439 CC 01: disconnect_device() 3.730330 CC 01: connect_to_device() start Automatic device detection device_sel 0, error none Device "TriCore-Family" Device ID0 is 0x201E9083 Device ID1 is 0x00000000 Valid Address Maps: 0, 1 3.733253 CC 01: connect_to_device() end (2.923 ms) 3.733530 CC 01: init_device() start init_option DAS_DIO_RESET_AND_HALT | DAS_DIO_NO_DEFAULT_KEY_TYPE device_key DAS_KEY_TYPE_256BIT key[0] 0x00000000 ... error DEVICE_LOCKED 3.792415 CC 01: init_device() end (58.885 ms) 3.793079 CC 01: disconnect_device() 3.799191 CC 01: Session closed 1 DAS Clients connected (max. 32, one is DASHPAS)
How to unlock a password?
Hello,
I am trying to connect Infineon Miniwiggler v3 to the Aurix Tc387, by using Infineon Memtool 2021.8.
But couldn't able to establish the connection between them.
Need support related to Memtool Settings and need details for DAP Miniwiggler v3.
Please support!!
Show Less