Difference between revisions of "Exercise - Transferring a Program to the Microcontroller"

From Flowcode Help
Jump to navigationJump to search
Line 1: Line 1:
This exercise looks at transferring to the microcontroller, the flowchart 'Lamp1.fcf' which you developed in the exercises [[Exercise - Creating a Flowchart|Creating a Flowchart]] and [[Exercise - Adding Devices to a Flowchart|Adding Devices to a Flowchart]].<br />
+
This exercise looks at transferring to the microcontroller, the flowchart 'Lamp1.fcf' which you developed in the exercises [[Exercise - Creating a Flowchart|Creating a Flowchart]] and [[Exercise - Adding Devices to Flowcode|Adding Devices to a Program]].<br />
 
This involves:
 
This involves:
 
* Compiling the program (translating it into a form which the microcontroller can use).
 
* Compiling the program (translating it into a form which the microcontroller can use).

Revision as of 12:15, 17 July 2013

This exercise looks at transferring to the microcontroller, the flowchart 'Lamp1.fcf' which you developed in the exercises Creating a Flowchart and Adding Devices to a Program.
This involves:

  • Compiling the program (translating it into a form which the microcontroller can use).
  • Moving it to the connected microcontroller.
  • Storing it in the microcontroller's memory.

For more details about this part of the process, see Adding Finishing Touches.



Load the Flowcode Flowchart


Compile the program

  • Click on the 'Compile to chip' icon. Btn Compile Chip.png
The 'Compiler Messages' box appears and shows the progress of the process.
First of all, the program is converted into 'C' language.
This is then translated into another language called 'Assembler'.
Finally, the resulting code is transferred to the microcontroller.
The good news is that all of this happens automatically, without the need for any intervention from you!


What Next?

The final step is to test that the program controls the hardware.