Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mbed test is not working in mbed-os-example-bootloader application #4055

Closed
tkaman opened this issue Mar 28, 2017 · 5 comments
Closed

mbed test is not working in mbed-os-example-bootloader application #4055

tkaman opened this issue Mar 28, 2017 · 5 comments

Comments

@tkaman
Copy link
Contributor

tkaman commented Mar 28, 2017

Description

  • Type: Bug
  • Priority: Minor

I imported mbed-os-example-bootloader application and tried to run mbed test with it, but it is not working.

$ mbed test --list
Traceback (most recent call last):
  File "C:\ARM\SourceCode\mbed-os-example-bootloader\mbed-os\tools\test.py", line 128, in <module>
    app_config=options.app_config))
  File "C:\ARM\SourceCode\mbed-os-example-bootloader\mbed-os\tools\test_api.py", line 2017, in find_tests
    silent=True, app_config=app_config)
  File "C:\ARM\SourceCode\mbed-os-example-bootloader\mbed-os\tools\build_api.py", line 339, in prepare_toolchain
    add_regions_to_profile(build_profile, config, cur_tc)
  File "C:\ARM\SourceCode\mbed-os-example-bootloader\mbed-os\tools\build_api.py", line 290, in add_regions_to_profile
    profile["common"].append("-D%s=0x%x" %  define)
TypeError: 'NoneType' object has no attribute '__getitem__'
[ERROR] 'NoneType' object has no attribute '__getitem__'
[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u C:\ARM\SourceCode\mbed-os-example-bootloader\mbed-os\tools\test.py -t ARM -m K64F --source C:\ARM\SourceCode\mbed-os-example-bootloader --build C:\ARM\SourceCode\mbed-os-example-bootloader\BUILD\tests\K64F\ARM --test-spec C:\ARM\SourceCode\mbed-os-example-bootloader\BUILD\tests\K64F\ARM\test_spec.json --list" in "C:\ARM\SourceCode\mbed-os-example-bootloader"

I did not touch any files in the repo.

tamkam01@E109896 MINGW64 /c/ARM/SourceCode/mbed-os-example-bootloader (master)
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

tamkam01@E109896 MINGW64 /c/ARM/SourceCode/mbed-os-example-bootloader/mbed-os (mbed-os-5.4)
$ git status
On branch mbed-os-5.4
Your branch is up-to-date with 'origin/mbed-os-5.4'.
nothing to commit, working tree clean

mbed cli version
tamkam01@E109896 MINGW64 /c/ARM/SourceCode/mbed-os-example-bootloader (master)
$ mbed --version
1.0.0

mbed os is the latest version
tamkam01@E109896 MINGW64 /c/ARM/SourceCode/mbed-os-example-bootloader/mbed-os (mbed-os-5.4)
$ git pull
Already up-to-date.

tamkam01@E109896 MINGW64 /c/ARM/SourceCode/mbed-os-example-bootloader/mbed-os (mbed-os-5.4)
$ git describe
latest

On mbed os master branch the same issue is seen.

Strange thing is that another example application (mbed-os-example-blinky) with the same mbed os version is working fine

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 28, 2017

cc @theotherjimmy

@theotherjimmy
Copy link
Contributor

huh. I'll look into this in more depth.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 29, 2017

@theotherjimmy any findings?

@theotherjimmy
Copy link
Contributor

Not yet.

@theotherjimmy
Copy link
Contributor

I figured out what the problem was. #4070 has the solution.

@sg- sg- closed this as completed in #4070 Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants