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.

Converting Example project to a standalone project

Other Parts Discussed in Thread: CONTROLSUITE

Hi,

I am using PMSM Sensored FOC project. I want to convert it to a standalone project. 

1) Now I am running the code in debug mode. How to flash the code in release mode? Any thing to take care before releasing the code to the target?

2) After this when I power on the MCU the program should start running and I should be able to  start the motor with some external application through serial communication. (SPI, SCI)? What changes should I make in the project

I don't know where to start please help me.

Regards,

Dijo Paulson

  • Hi,

    DIJO PAULSON said:
    1) Now I am running the code in debug mode. How to flash the code in release mode? Any thing to take care before releasing the code to the target?

    You should be able to switch to flash mode by simply right clicking on the project -> Build Configurations -> Set Active.

    Let me know if you can find that option.

    DIJO PAULSON said:
    2) After this when I power on the MCU the program should start running and I should be able to  start the motor with some external application through serial communication. (SPI, SCI)? What changes should I make in the project

    For this you'll have to refer SCI communication example code to burst out data through UART and then convert the same to USB on your PC.

    Sample codes can be found here depending on the device you're working on: C:\ti\controlSUITE\device_support

    Regards,

    Gautam

  • Yes I could find that option .After doing this when power is gone does the program still reside in the flash ? Since I am working in debug mode. Every time I press the debug option the program (.out file) is loaded on to the target

    1) When a program is burned to flash does the full program run from flash ? I found that ISRs run from ram
    2) Can explain the booting process here in simple terms ie. what happens from the moment the target is connected.

    Regards,
    Dijo Paulson
  • DIJO PAULSON said:
    1) When a program is burned to flash does the full program run from flash ? I found that ISRs run from ram

    Everything gets loaded to Flash. This can be further controlled by modifying .cmd file.

    DIJO PAULSON said:
    2) Can explain the booting process here in simple terms ie. what happens from the moment the target is connected.

    You can check the BOOT ROM section of the reference manual.