Warning
This page is located in archive. Go to the latest version of this course pages. Go the latest version of this page.

HW 03 - Input/Output Operations

  • Use the initialization of the HW components
    • UART interface
    • User LED light
    • User Button
  • Adjust the program developed in HomeWork 01 to be able to:
    • Read the state of the button.
    • Write the state of the User LED.
  • Adjust the program from HomeWork 01 to use at least two threads where:
    • the first thread manages reception from the serial line.
    • the second thread manages the user interface.

These parameters of the program will be evaluated: Nucleo side

  • 1 point - the communication protocol is non trivial - it has more then one character and ends with \r\n characters
  • 1 point - the Nucleo stores the incoming communication in the buffer and process the buffer
  • 1 point - the Nucleo is capable to control LED based on commands defined in communication protocol
  • 1 point - the Nucleo is capable to read state of the button based on commands defined in communication protocol
  • 1 point - the PC program initializes the serial communication interface
  • 1 point - the PC program is capable to get one command line parameter which is the path to the USB interface
  • 1 point - there is no memory leak in the program - e.g. all the malloc has their free
  • 1 point - the PC program is capable to send messages to Nucleo - non trivial messages
  • 1 point - the PC program is receiving the data into the buffer which is subsequently processed
  • 1 point - the PC program is capable to send a custom command to the Nucleo and in case the Nucleo will not recognise the commnad it will reply with “Wrong command” answer and this reply will be displayed by PC application.
courses/be5b99cpl/hw/hw03.txt · Last modified: 2018/11/14 11:28 by pacesp