element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
At The Core Design Challenge
  • Challenges & Projects
  • Design Challenges
  • At The Core Design Challenge
  • More
  • Cancel
At The Core Design Challenge
Blog Alphabet Learning Toy for Kids - Blog#2: Getting Started with PSoC 62S4 Pioneer Kit & ModusToolbox 3.0
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join At The Core Design Challenge to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: taifur
  • Date Created: 16 Apr 2023 7:51 AM Date Created
  • Views 400 views
  • Likes 7 likes
  • Comments 0 comments
  • infineon
  • PSoC 62S4 pioneer kit
  • modustoolbox
  • More At The Core Design Challenge
Related
Recommended

Alphabet Learning Toy for Kids - Blog#2: Getting Started with PSoC 62S4 Pioneer Kit & ModusToolbox 3.0

taifur
taifur
16 Apr 2023

Before making anything with PSoC 62S2 Pioneer Kit first I need to set up the software environment. I am going to use ModusToolbox 3.0 with Eclipse IDE for firmware development. You can download and install ModusToolbox 3.0 using this link. You can take help from ModusToolbox tools package installation guide. I prefer Infineon Developer Center Launcher for installing ModusToolbox and you can manage all the installation from the Developer Center Launcher.

image 

For using ModusToolbox 3.0 Eclipse IDE is not required but I feel comfortable with Eclipse IDE and I will use it here for my development.

After setting up any development environment it is a good practice to build and run the "hello wordl!" program or blinking LED program. It confirms the perfect setup of the development environment. I always do this before writing any code by myself. All MCU development comes with hello world/blinking led program and PSoC is not an exception.

ModusToolbox Getting Started Guide is an excellent reference for building and running you first example. Following the guide I was able to create and build hello_world program without any difficulties.

image

After programing the PSOC 62S4 board with the hello_world program it was working as expected. To be frank the provided hello_world program is a bit complex. So, I modified the code and keep only the minimum instructions. I was trying to make it as simple as possible like the blink program of the Arduino IDE. Here is my minimum code for blinking an LED connected to the D7 pin of the Arduino header.

#include "cyhal.h"
#include "cybsp.h"


int main(void)
{
    cy_rslt_t result;

    /* Initialize the device and board peripherals */
    result = cybsp_init();
    
    /* Board init failed. Stop program execution */
    if (result != CY_RSLT_SUCCESS)
    {
        CY_ASSERT(0);
    }

    result = cyhal_gpio_init(CYBSP_D7, CYHAL_GPIO_DIR_OUTPUT,
                                 CYHAL_GPIO_DRIVE_STRONG, CYBSP_LED_STATE_OFF);

    /* GPIO init failed. Stop program execution */
    if (result != CY_RSLT_SUCCESS)
    {
        CY_ASSERT(0);
    }

    for (;;)
    {

        cyhal_gpio_write(CYBSP_D7, true);
        cyhal_system_delay_ms(1000);
        cyhal_gpio_write(CYBSP_D7, false);
        cyhal_system_delay_ms(1000);
        
    }
}

I was happy enough to see that it is working and it increased my confidence level because I was new in this platform.

The program was built at first attempt without any error.

image

Then I programed the board and connect a LED with the D7 pin of the Arduino header. This is my test circuit.

image

Now I am prepared and confident for the next step.

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube