element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum Have a question about Micrium's embedded software? Ask our Expert, Matt Gordon
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 35 replies
  • Subscribers 502 subscribers
  • Views 4504 views
  • Users 0 members are here
  • applications
  • device
  • embedded
  • kernel
  • micrium
Related

Have a question about Micrium's embedded software? Ask our Expert, Matt Gordon

e14 Contributor
e14 Contributor over 15 years ago

This thread has been closed to new questions.

However, we welcome you to Post Your Question about Embedded in the element14 Community Embedded group. You'll find many fellow members and experts who have just the answer you're looking to find! 

 

Thank You, Your Friends at element14 Community

image

 

Matt Gordon

Matt Gordon is a senior applications engineer at Micrium.  He began his career developing device drivers, kernel ports, and example applications for Micrium's customers.  Drawing on this experience, Matt has written multiple articles on embedded software.  He also heads Micrium's training program and regularly teaches classes on real-time kernels and other embedded software components.  Matt holds a bachelor's degree in computer engineering from Georgia Tech, Georgia in the USA.


  • Sign in to reply
  • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago

    Dear Matt,

     

    I'm trying to use uc/os II on a STM32F103, usart communication. Things aren't working at all, and can't find working examples over the net.

    Could you please post some? I've read it's necessary to tell uC that system is entering an isr.

    Regards

     

    Carlos

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago

    Hello sir,

    I already have an application developed in vb.net 2008 that can detect user's face, but how can i link this with GINA(in winXP) so that i can develop a login system that recognizes users and allows them to login to windows with their face .

    I have browsed several custom GINA sources codes but all speaks in C++ and i know custom GINA can only developed in C++ code.

    Is there anyway i could link GINA to my application written in VB.NET, any function call from a custom GINA or something like that ?

    Can you provided a custom GINA so that i can use this and link to my VB.NET or VB6 or even C# application ?

    I know GINA is used upto win XP only. I just need to implement this feature in an XP machine only nothing beyond that.

    I hope you will be grateful to help me in that direction.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago

    Hi Matt,

     

    Hey I have another evalboard form Luminary Micro LM3S3748-IQC50-A0LM3S3748-IQC50-A0 and Iwant to use the OS-III on this board but the ports for this board are not available for using with OS-III. It is supported with OS-II though. What do you suggest that i should do?

     

    Thanks in advance Matt.

     

    Regards,

    jumbowat

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago

    Hi Matt,

     

    The tasks run only once even if they are run in while(1) or while(DEF_ON)

     

    What should I do if I want to run the tasks infinitely????

     

    Please help.

     

    Kind Regards,

    jumbowat

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago in reply to e14 Contributor

    Technically, just one uC/OS-III port is used for all of the Luminary Micro/TI Stellaris parts; it is a generic Cortex-M3 port.  To run uC/OS-III on the particular board that you have in mind, you will need the kernel's source code and this port.  You will also need a modicum of BSP and application code.  You can get the kernel code (source and port) from an existing uC/OS-III Stellaris project--for instance, the LM3S9B92-based project that was developed for the TI version of Micrium's uC/OS-III book.  You can also borrow your application code from such a project, but this code might need to be modified slightly to suit your platform.  As for the BSP, you should be able to reuse the code from the uC/OS-II project that you mentioned.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago in reply to e14 Contributor

    Thank you Matt. image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago in reply to e14 Contributor

    In uC/OS-II and uC/OS-III, a task containing an infinite loop should run periodically.  The only tasks that should run just once are those that are deleted via OSTaskDel(). 

     

    Regards,

     

    Matt

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago in reply to e14 Contributor

    The projects that were developed for the STM32 version of Micrium's uC/OS-III book contain USART code that could serve as your template.  You can download these projects from the knode: http://www.element14.com/community/docs/DOC-36991/l/micrium-ucos-iii-project-for-stmicro-cortex-m3-stm32f107. 

     

    Regards,

     

    Matt

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago

    Hi Matt,

     

    You have been a great help, just one little thing, how to use the flags in uC/OS-III. I define the bits, create the flag, pend the flag and after the task is executed I post the flag, but I guess its not as simple as using a semaphore, beacuse its not working. Please help Matt. image

     

    Regards,

    jumbowat

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • e14 Contributor
    e14 Contributor over 14 years ago in reply to e14 Contributor

    To some extent, event flags are like collections of binary semaphores.  Each flag represents an event and can be in one of two possible states: the event has taken place, or it hasn’t.  Your application can wait on these events using a pend function similar to the one provided as part of uC/OS-III’s semaphore API. 

     

    The pend function, which is named OSFlagPend(), accepts a number of arguments, the second of which is a bit pattern indicating the particular flags that are of importance to the calling task.  The function also accepts an options value that allows the calling task to specify whether it will wait for all (an “and” pend) or any (an “or” pend) of the designated events to take place.  A return from the pend function typically occurs once the conditions established by the calling task through these two arguments have come into existence.  However, the calling task can use another of the function’s arguments to specify a timeout, a period of time after which the function will return regardless of which events have taken place. 

     

    The pend function’s counterpart is the event flag post function, OSFlagPost().  Like pend, this function accepts an argument that specifies a set of flags.  In the case of post, though, the calling task will not wait on these flags; instead, the kernel will update the flags’ values to indicate that the events to which they correspond have taken place. 

     

    Example pend and post calls are shown below.  Additional example code can be found in the uC/OS-III books available from the knode.   

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
<>
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 © 2026 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.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube