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.

LAUNCHXL-F28377S C2000 Delfino | Programming Questions



Hello Beautiful People of the TI forum, 

If you are an experienced CCS/TI C200 user, please help! 

System:

LAUNCHXL-F28377S

Project Description:

I'm working on a control system for an AC machine.

Basically I'm just measuring multiple analog signals, doing some digital signal processing to find the analog signal's RMS, freq, and phase-offset (to a reference signal), then giving these values to a variable-frequency-drive algorithm (also implemented on the c2000) which ultimately determines the firing patterns for two bridges (2x6 IGBTs) controlling a doubly-fed induction machine (typically found in wind turbines).

I've implemented all my code in matlab and an Arduino DUE, but have realized that the DUE does not have the processing power to accomplish this task. That's when I was introduced to the LAUNCHXL-F28377S and ever since have been attempting to implement my designs in the new controller. 

Ideally here are the fundamental needs for my project to function:

  • Data visualization for Algorithm function verification: Serial output via COM port (accomplished) (also CCS has the ability to plot data from direct memory access)
  • Time-stamping: accomplished using the "cpu_timers_cpu01" example.
  • Analog reading: I need >30 samples/cycle (60Hz signal) for 12 channels.
  • Trigonometric functions -> used for bridge control algorithm. Modulating and carrier signals must be generated and compared in code.
  • Digital outputs: this part is easy.

Problems encountered:

I'm use to the extremely helpful level of abstraction the Arduino IDE has to offer, so it's been a challenge working in Code-Composer-Studio 6.1.2. Currently I'm referencing the code for the "out-of-box" demo (Example_2877SLaunchPad) which offers examples of ADC reading and data communication using the COM port. 

Question 1: How do I setup a new project (from scratch) that will target the F28377S?. How do I distinguish from code that can only be implemented in RAM vs FLASH? Can all code be implemented in FLASH? What are the benefits of implementing code in RAM vs FLASH?

Question 2: Can I use the C++ "class" structure in CCS? I keep getting errors when I try to create a class.

Question 3: How do I upload programs to the F28377S flash instead of RAM? I learned that the MCU has 1MB of flash, whereas only 164 kB of RAM so I'm quickly running into problems when uploading programs that have large arrays. 

Question 4: How do I combine C and C++ source code into one project (if it's even possible).

Question 5: How do I setup the ADC for maximum sampling frequency.

Thank you for taking your time to help a beginner, I appreciate any answers or references you can provide. 

- JT