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.

TMS320F28335: software design of gloabl variable and pointer

Part Number: TMS320F28335

Hi TI,

How to avoid the use of global variables pointer when coding?

And how to realize structrual and modularized software design?

Can you send me some docs or demo for learning?

Best regard

Frank 

  • This is a very broad software architecture question that applies well beyond the C2000 support we provide on this forum. I can help provide support on how best to disable interrupts or use TI-RTOS semaphores to protect the global variables you do have or discuss how our compiler handles them if you have specific questions.

    There are a lot of discussions on the web and in books about best practices regarding pointers and globals. I recommend doing some research into the different opinions and standards that are out there and decide what's right for your application.

    Whitney