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 support for teensy31 not properly implemented #305

Closed
heyer2 opened this issue Oct 10, 2015 · 8 comments
Closed

mbed support for teensy31 not properly implemented #305

heyer2 opened this issue Oct 10, 2015 · 8 comments
Assignees
Labels
Milestone

Comments

@heyer2
Copy link

heyer2 commented Oct 10, 2015

Teensy support not properly implemented in the software (possible only the interface?)
Take a look at:
tformio/platformio/boards/teensy.json

Here it is indicated that the teensy31 supports the mbed framework.
However, actually using the software gives no such indication.

For example look at:
platformio/platformio/platforms/teensy.py

Here the mbed framework is not included!

@ivankravets
Copy link
Member

In board's frameworks field is defined default frameworks. mbed is optional framework for Teensy. See meed-blink example for Teensy 3.1 https://github.com/platformio/platformio/tree/develop/examples/mbed/mbed-blink

[env:teensy31]
platform = teensy
framework = mbed
board = teensy31

@heyer2
Copy link
Author

heyer2 commented Oct 10, 2015

Here is the immediate error I get upon running the example:

IOError: [Errno 2] No such file or directory: '/Users/heyer/.platformio/packages/framework- mbed/variant/TEENSY3_1/TEENSY3_1.eix':

It seems that the mbed package does not get installed automatically despite defining it in the .ini file.

@ivankravets
Copy link
Member

  1. Give me please an output of this command:
ls -la ~/.platformio/packages/framework-mbed/variant/TEENSY3_1/
  1. Try to reinstall teensy platform
platformio platforms uninstall teensy
platformio platforms install teensy

@heyer2
Copy link
Author

heyer2 commented Oct 11, 2015

Result of first command:

$ ls -la ~/.platformio/packages/framework-mbed/variant/TEENSY3_1/
ls: /Users/heyer/.platformio/packages/framework-mbed/variant/TEENSY3_1/: No such file or directory

I reinstalled the teensy platform using the commands you gave me, but it does not change the result of running the first command.

The mbed framework is not installed when I install the teensy the platform.

My version is 2.3.3

@ivankravets
Copy link
Member

Hm... Please provide me this info:

python -c "import platform; print platform.uname()"

ls -la ~/.platformio/packages/framework-mbed/variant/

Thanks.

@heyer2
Copy link
Author

heyer2 commented Oct 12, 2015

Python command:

('Darwin', 'Daniels-MacBook-Pro.local', '15.0.0', 'Darwin Kernel Version 15.0.0: Wed Aug 26 16:57:32 PDT 2015; root:xnu-3247.1.106~1/RELEASE_X86_64', 'x86_64', 'i386')

Upper directory listing (ls -la ~/.platformio/packages/framework-mbed, I removed the "variant" part of the query")

ls: /Users/heyer/.platformio/packages/framework-mbed/: No such file or directory

I haven't really gone into your code, but I have a suspicion that the problem is that the teensy platform is not defined as using the mbed platform. I can see the package is not installed when I install the teensy platform. Perhaps an issue in this file?
https://github.com/platformio/platformio/blob/master/platformio/platforms/teensy.py

@ivankravets ivankravets added this to the 2.3.4 milestone Oct 12, 2015
@ivankravets
Copy link
Member

Yes, this is bug!!! Thanks! 👍

Temporary solution, please install some platform which contains framework-mbed:

platformio platforms install nxplpc

Have it helped you?

@heyer2
Copy link
Author

heyer2 commented Oct 12, 2015

It did indeed fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants