cancel
Showing results for 
Search instead for 
Did you mean: 

AutodevkitStudio How to create a LED-blinking project ?

Pooja1
Associate II

Working with AutodevkitStudio using AEK$MCU-C4M3A and AEK$MCU-SPC5LNKA, how to create a project for led blinking give step by step explaination.

 

 

 

1 REPLY 1
SRomeo
ST Employee

Hi Pooja, to create a project from scratch in AutoDevKit you need to follow these steps:

 

  1. Click on "Create new SPC5 application" (on the right) SRomeo_0-1776090569213.png
    And name it as you like.
  2. Click on Application Name (on the left) and then Click on the green "+" symbol:
    SRomeo_1-1776090731263.png
  3. Search for "spc58e", select SPC58ECxx Platform Component and click "OK"SRomeo_2-1776090843256.png

     

  4. Add "AutoDevKit Init Package", "Spc58ECxx Init package" and "SPC58ECxx Low level drivers" as well.
    All other AEK components will be added automatically:
    SRomeo_3-1776091070141.png
  5. Click onSRomeo_4-1776091225781.png to generate automatically component configuration code (main.c included)
  6. Double click on main.c (on the left) to open it on the editor.
  7. Click on the SRomeo_6-1776091744960.png(on the right) to open the PinMap
  8. Now, in order to allocate the correct pins. you need to understand which are the MCU pins wired to a LED for your board.
    You are using an AEK-MCU-C4M3A so take a look to its schematic.
    SRomeo_5-1776091567639.png

     


    As you see the board is equipped with 5 LEDs, which may be driven by means of 5 MCU pins.
  9. Click on the search bar (on the top-left corner)
    and fill with the name of the port/pin combination:
    SRomeo_7-1776091980062.png

    The pin will automatically be highlighted in blue.

  10. Right click on the pin and select:  Input/Output -> SIUL/GPIO
    SRomeo_8-1776092126562.png
  11. Click on Save (Top-left corner) and close the Pinmap Editor.

     

    SRomeo_9-1776092322657.png
    Now your MCU pin is allocated. 
  12. Click on Generate once again to generate your board.h file (this file holds PIN defines)
  13. Write the following main code:
    SRomeo_10-1776092619210.png

    Save and click on SRomeo_11-1776092665961.png and you are DONE.

     


    Best regards,
    Simone
    AEK_Team