AURIX™ Forum Discussions
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.
I found all the sample projects are using hard coded pin configuration.
As an example for "Ethernet_1_KIT_TC397_TFT" project all the pins are hardcoded in files Configuration.h and implementation is in IfxGeth_PinMap.c
And from IDE seems it is not even shows as configured.
After manual configuration it became like below
But all codes are generated in Library directory in mentioned file
Now question is how to use those PIN from program to configure Ethernet for RMII0? Should I need to do it manually reading datasheet?
Is there anyway that those PINs will be automatically configured and I can use the auto generated code directly?
Show Less
Dear Team,
I want to know the difference between DAP miniwiggler and XMC_LINK_SEGGER_V1.
hi
i want to use the SCR in order to reduce the power consumption , and meet some block point. please check state flow bellowing :
if SW switch to SCR domain to execute, which position will sw execute next after wake up source login and exit from SCR domain ?
Step A (step A as the SW first code after reset )? or back to Step B?
Show Less
Hello,
I am investigating possibilities to use FlexRay (E-Ray) message RAM for the custom debug purposes, as FlexRay communication will not be needed.
Can it be accessed directly by the CPU core? If yes, what would be the starting address of the Message RAM?
Controller I am using is AURIX TC36x (SAK-TC364DP-64F300F AA).
Thanks for your support,
BR,
Djordje
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
Can Host read the the PFlash sectors configured as HSM exclusive? Or is it only the debug interface via which we cannot read it.
#HSM #TC3xx #Aurix
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?