10 years, 6 months ago.

I can't work tutorial 1768 build.py

I try mbed tools tutorial. following is resule.

kazu@kazu-deverop:~/mbed/gitexport/mbed/workspace_tools$ ./build.py -m LPC1768 -t GCC_CS
[WARNING] Using default settings. Define you settings in the file "workspace_tools/private_settings.py" or in "./mbed_settings.py"

>>> BUILD LIBRARY CMSIS (LPC1768, GCC_CS)
Assemble: startup_LPC17xx.s
[Errno 2] No such file or directory


Completed in: (0.01)s


Build failures:
  * GCC_CS::LPC1768
kazu@kazu-deverop:~/mbed/gitexport/mbed/workspace_tools$ 

my settings.py file.

##############################################################################
BUILD_DIR = abspath(join(ROOT, "build"))

# ARM
armcc = "standalone" # "keil", or "standalone", or "ds-5"

if armcc == "keil":
    ARM_PATH = "C:/Keil_4_54/ARM"
    ARM_BIN = join(ARM_PATH, "BIN40")
    ARM_INC = join(ARM_PATH, "RV31", "INC")
    ARM_LIB = join(ARM_PATH, "RV31", "LIB")

elif armcc == "standalone":
    ARM_PATH = "/home/kazu/armsoucery/arm-none-linux-gnueabi"
    ARM_BIN = join(ARM_PATH, "bin")
    ARM_INC = join(ARM_PATH, "include")
    ARM_LIB    = join(ARM_PATH, "lib")

elif armcc == "ds-5":
    ARM_PATH = "C:/Program Files (x86)/DS-5"
    ARM_BIN = join(ARM_PATH, "bin")
    ARM_INC = join(ARM_PATH, "include")
    ARM_LIB    = join(ARM_PATH, "lib")

ARM_CPPLIB = join(ARM_LIB, "cpplib")
MY_ARM_CLIB = join(ARM_PATH, "lib", "microlib")

# GCC ARM
GCC_ARM_PATH = "/home/kazu/armsoucery/arm-none-linux-gnueabi"

# GCC CodeSourcery
GCC_CS_PATH = "/home/kazu/armsoucery/bin"

# GCC CodeRed
GCC_CR_PATH = "C:/code_red/RedSuite_4.2.0_349/redsuite/Tools/bin"

I don't know [Errno 2] No such file or directory. I find startup_LPC17xx.s already. Please advice for me.

Question relating to:

1 Answer

10 years, 6 months ago.

Hello,

please rename your settings to private_settings.py, as there's a warning issued when you run workspace_tools.

The error you see means the toolchain can be found in the path specified.

Regards,
0xc0170

Accepted Answer

Thank you Martin, I try to make file to the private_settings.py. but I can't solve this issue.

#mbed SDK
#cut of any licence comment limitation 3000 char this site.

from os.path import join, abspath, dirname
import logging

ROOT = abspath(join(dirname(__file__), ".."))

# These default settings have two purposes:
#    1) Give a template for writing local "private_settings.py"
#    2) Give default initialization fields for the "toolchains.py" constructors

##############################################################################
# Build System Settings
##############################################################################
BUILD_DIR = abspath(join(ROOT, "build"))

# ARM
armcc = "standalone" # "keil", or "standalone", or "ds-5"

if  armcc == "standalone":
    ARM_PATH = "/home/kazu/armsoucery/arm-none-linux-gnueabi"
    ARM_BIN = join(ARM_PATH, "bin")
    ARM_INC = join(ARM_PATH, "include")
    ARM_LIB    = join(ARM_PATH, "lib")

ARM_CPPLIB = join(ARM_LIB, "cpplib")
MY_ARM_CLIB = join(ARM_PATH, "lib", "microlib")

# GCC ARM
GCC_ARM_PATH = "/home/kazu/armsoucery/arm-none-linux-gnueabi"

# GCC CodeSourcery
GCC_CS_PATH = "/home/kazu/armsoucery/bin"


BUILD_OPTIONS = []

# mbed.org username
MBED_ORG_USER = "kazu_zamasu"

##############################################################################
# Test System Settings
##############################################################################
SERVER_PORT = 59432
SERVER_ADDRESS = "10.2.200.94"
LOCALHOST = "10.2.200.94"

MUTs = {
    "1" : {"mcu": "LPC1768",
        "port":"/dev/ttyACM0", "disk":'/media/mbed',
        "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"]
    },
    "2": {"mcu": "LPC11U24",
        "port":"/dev/ttyACM0", "disk":'/media/mbed',
        "peripherals":  ["TMP102", "digital_loop", "port_loop", "SD"]
    },
    "3" : {"mcu": "KL25Z",
        "port":"/dev/ttyACM0", "disk":'/media/mbed',
        "peripherals":  ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"]
    },
}

##############################################################################
# Private Settings
##############################################################################
try:
    # Allow to overwrite the default settings without the need to edit the
    # settings file stored in the repository
    from workspace_tools.private_settings import *
except ImportError:
    print '[WARNING] Using default settings. Define you settings in the file "workspace_tools/private_settings.py" or in "./mbed_settings.py"'

result

workspace_tools$ ./build.py -m LPC1768 -t GCC_ARM

>>> BUILD LIBRARY CMSIS (LPC1768, GCC_ARM)
Compile: system_LPC17xx.c
[Errno 2] No such file or directory


Completed in: (0.01)s


Build failures:
  * GCC_ARM::LPC1768

Please advice require this SDK path. Regards, Kazu,

posted by Kazu Zamasu 03 Jun 2014

What I would do, invoke gcc compiler from the workspace_tools with the path defined in your private_settings. Does that work? It should not, based on failures above.

posted by Martin Kojtal 04 Jun 2014