Patent ID: 7886234

Claim:
A method for generating an embedded target image to be stored in a non-volatile memory device of an embedded system as firmware thereof, comprising: acquiring at least one available mode for each of a plurality of general purpose input output (GPIO) pins by parsing a configuration file; acquiring at least one mode name corresponding to the available mode for each GPIO pin by parsing the configuration file; acquiring an initial idle state for a default mode of each GPIO pin; acquiring a plurality of GPIO variables used in a software application by parsing a GPIO component file; generating a graphical user interface (GUI) editor according to the acquisitions to facilitate a user in providing settings information for the GPIO pins of a chip installed in the embedded system, wherein generating a GUI editor further comprises: generating a data sheet of u rows and v columns in the GUI editor; generating a mode drop down menu comprising at least one menu item corresponding to the acquired mode name for each row, thereby facilitating the user in determining default mode of the GPIO pin by selecting one menu item; generating at least one check box corresponding to the acquired available mode for each row, thereby facilitating the user in enabling one mode of the GPIO in by checking one check box; generating a check box, thereby facilitating the user in enabling an initial idle state for the default mode of the GPIO in by checking the check box; generating a state drop down menu comprising a plurality of predefined states, thereby facilitating the user in determining the initial idle state for the default mode of the GPIO in by selecting one menu item; and generating at least one variable drop down menu corresponding to the available mode of the GPIO pin, comprising a plurality of menu items corresponding to the acquired GPIO variables, thereby facilitating the user in determining mapping between one available mode of the GPIO in and one GPIO variable by selecting one menu item, generating source code in response to operating results of the GUI editor by the user; and generating the embedded target image by linking an object file compiled from the generated source code.