Ejemplo n.º 1
0
#!python3
"""
Script Wrapper for uploading firmware to LPC Expresso boards via LPCLink-1
"""

import sys, logging, argparse
from lpc_settings import LPCSettings
from pylib.logwrapper import LogWrapper
from pylib.process import Process
from os.path import abspath, dirname, join

try:

    # Setup logging
    LogWrapper.LogLevel = logging.DEBUG
    LogWrapper.setup()
    log = LogWrapper.getlogger()


    # Function to Boot the LPC Board
    def bootlpc():
        log.info("Booting the LPC Board")
        proc = Process()
        proc.ExePath = Setts.bootbin
        proc.Start()





    ROOT = abspath(dirname(__file__))