This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280049: If C2000 device support stack canaries

Part Number: TMS320F280049


Hi team,

I ask this for our customer.

According to the following link, the stack canary is implemented in the compiler, but only GNU (GCC) or TI arm compiler is mentioned.

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1170384/tm4c129encpdt-binary-security-and-stack-canaries/4404832?tisearch=e2e-sitesearch&keymatch=Stack%20Canaries#4404832

Customer want to know whether C2000 compiler we use can also implement the stack canary? If so, how to implement it? Is there any relevant information or document? If not, do we have other similar methods? Customers want to know if we have cyber ​​security program (to prevent stack information from being modified). I recommended ERAD's stack overflow detection code for customer, but it's not quite what theyt asked for. Stack overflow is a detection measure in functional safety, and stack canary is a measure in network security.

https://mcuoneclipse.com/2019/09/28/stack-canaries-with-gcc-checking-for-stack-overflow-at-runtime/

Best,

Julia