cancel
Showing results for 
Search instead for 
Did you mean: 

Enter 11 bit CANStandard ID in hex format from Serial Terminal using STM32f407

PJose.1
Associate II

hi all,

i am trying to do CAN Communication using STM32f407 and transceiver using Cube MX and Cube IDE. Now i have given default value for CANTxHandletypedef Txheader.StdID = 0x321. As a next step i need to add this STDID value by entering through Serial terminal. Anyone please suggest some logic or code to implement this function. i have implemented the serial reception function and recieved the string into an array RXbuff.

Awaiting Reply

Thanks

1 REPLY 1

sscanf(str, "%x", &StdID);

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..