AURIX™ Forum Discussions
text.format{('custom.tabs.no.results')}
Hi,
starting from the examples MCMCAN_1_KIT_TC375_LK and ADC_Single_Channel_1_TC375_LK I have to send the value acquired from the analog channel with a CAN message. This is how I've tried to do that:
void transmitCanMessage(void)
{
/* Initialization of the RX message with the default configuration */
IfxCan_Can_initMessage(&g_mcmcan.rxMsg); // @suppress("Field cannot be resolved")
/* Invalidation of the RX message data content */
memset((void *)(&g_mcmcan.rxData[0]), INVALID_RX_DATA_VALUE, MAXIMUM_CAN_DATA_PAYLOAD * sizeof(uint32)); // @suppress("Field cannot be resolved")
/* Initialization of the TX message with the default configuration */
IfxCan_Can_initMessage(&g_mcmcan.txMsg); // @suppress("Field cannot be resolved")
/* Define the content of the data to be transmitted */
//g_mcmcan.txData[0] = TX_DATA_LOW_WORD; // @suppress("Field cannot be resolved")
//g_mcmcan.txData[1] = TX_DATA_HIGH_WORD; // @suppress("Field cannot be resolved")
/* Define the content of the data to be transmitted */
g_mcmcan.txData[0] = (uint16)(g_result & 0xFFFF); // @suppress("Field cannot be resolved")
g_mcmcan.txData[1] = (uint16)((g_result >> 16)& 0xFFFF); // @suppress("Field cannot be resolved")
/* Set the message ID that is used during the receive acceptance phase */
g_mcmcan.txMsg.messageId = CAN_MESSAGE_ID; // @suppress("Field cannot be resolved")
/* Send the CAN message with the previously defined TX message content */
while( IfxCan_Status_notSentBusy ==
IfxCan_Can_sendMessage(&g_mcmcan.canNode, &g_mcmcan.txMsg, &g_mcmcan.txData[0]) ) // @suppress("Field cannot be resolved")
{
}
}
but it does not work.In addiction I cannot understand where the global variable g_result is stored.
I'm at a very beginner level and this is for a scolar project, could someone please help me?
Thanks in advice, I'll also share the entire file in the upload section.
您好,我在TL9261芯片的DATASHEET中未看到Node internal delay time的描述,想问一下这个时间应该在哪里查找呢?
Can the dead time of the EVRC driver be adjusted, and if so, where can I find the description of the registers.
We are using Tasking IDE on Aurix evaluation board. There’s a build in miniWiggler debugger. We can use this miniWiggler debugger to debug the code. We can set break points, stop at break points, evaluate variables at break points. However, one main feature is not working in all the PCs: we cannot do “step into”, “single step”, “step through” features. We must unset the break point in the current step and set a break point in the next step then hit “continue to run” to mimic the “single step” feature. Is that the problem with the debugger? Do j-link debugger work with Tasking IDE?
Thank you so much for your answer.
Show LessHi,
I have a AURIX MotorControl Application Kit with TC234LF, I want to switch from ADS to Visual Studio Code. I'm going to make it through the GCC compiler, but there is a problem using the winIDEA debugger. WinIDEA requires a license. I did not find a price list on the website and how to buy it.
Are there alternative debuggers that can be used in Visual Studio Code?
Hello,
I am facing an issue while writing data to the DFlash memory region. I am using the TC375 Flash programming Example code with some changes. Below is the scenario for which I am facing the issue.
1. The first time writing data (0xAF000400) to the address 0xAF000240 is writing successfully.
2. reading data from 0xAF000240 reading successfully.
3. If I write the data that is read from 0xAF000240 to the same address by updating the data with some other value, the memory(0xAF000240) is filling with zeros (0x00000000).
Can any one please suggest the solution.
Thank you very much !
Show Less
请教大家一个问题
我现在做的boot程序在跳转app程序的时候,如果boot程序和app程序都没有使用中断的情况下可以正常跳转,但是boot程序或app程序有一方面使用中断的话就会进入到debug,boot程序或app程序单独运行时没有问题。下面按照串口中断举例。
调试状态下会卡在下图位置:
我想知道是哪个地方设置的不对或者少设置了什么地方。
Show LessHi,
For Aurix TC397 is there any RTOS/Software BSP available other than AUTOSAR 4.2
Thank you
Hello Community,
I faced below error while I was using OneEye tool for debugging. pls looked into it.
MCD API error message:
Code: 268435456
Message: Could not load DAS API library V4.x
MCD API error message:
Code: 257
Message: MCD API not used properly
>>> WARNING : Could not initialize MCD. Please verify that you are connected to the target via MiniWriggler and that the target is powered
>>> WARNING : Mcd_Api_Wrapper::mcdInit called but DLL was not loaded
Show Less