Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 1 month ago.
How to change targets.json path
hi, anybody please explain how to change my "targets.json" file location. i have facing error at testing in mbedOS v5.
Executing 'python host_test.py -d H:\ -f "G:\mbed-OS\16B\mbed-os-latest\mbed-os-latest\.build\test\LPC1768\ARM\DTCT_1\detect.bin" -p COM29 -t 20 -C 1.5 -m LPC1768'
Test::Output::Start
Error parsing 'C:\yotta\python\lib\site-packages\mbed_tools-0.1.14-py2.7.egg\tools\..\hal\targets.json':
Error parsing 'C:\yotta\python\lib\site-packages\mbed_tools-0.1.14-py2.7.egg\tools\..\hal\targets.json':
Traceback (most recent call last):
File "host_test.py", line 38, in <module>
from tools.test_api import get_autodetected_MUTS_list
File "C:\yotta\python\lib\site-packages\mbed_tools-0.1.14-py2.7.egg\tools\test_api.py", line 43, in <module>
from tools.tests import TESTS
File "C:\yotta\python\lib\site-packages\mbed_tools-0.1.14-py2.7.egg\tools\tests.py", line 18, in <module>
from tools.data.support import *
File "C:\yotta\python\lib\site-packages\mbed_tools-0.1.14-py2.7.egg\tools\data\support.py", line 17, in <module>
from tools.targets import TARGETS
File "C:\yotta\python\lib\site-packages\mbed_tools-0.1.14-py2.7.egg\tools\targets.py", line 517, in <module>
in Target.get_json_target_data().items()
File "C:\yotta\python\lib\site-packages\mbed_tools-0.1.14-py2.7.egg\tools\targets.py", line 64, in wrapper
CACHES[(func.name, args)] = func(*args, kwargs)
File "C:\yotta\python\lib\site-packages\mbed_tools-0.1.14-py2.7.egg\tools\targets.py", line 137, in get_json_target_data
Target.targets_json_location_default)
File "C:\yotta\python\lib\site-packages\mbed_tools-0.1.14-py2.7.egg\tools\utils.py", line 356, in json_file_to_dict
with open(fname, "r") as file_obj:
IOError: [Errno 2] No such file or directory: 'C:
yotta
python
lib
site-packages
mbed_tools-0.1.14-py2.7.egg
tools
..
hal
targets.json'
where i can change my environment path?
Regards, Arun KR