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

Python was not found but can be installed from the Micros #34

Closed
2 tasks
aadog opened this issue Oct 22, 2020 · 2 comments
Closed
2 tasks

Python was not found but can be installed from the Micros #34

aadog opened this issue Oct 22, 2020 · 2 comments

Comments

@aadog
Copy link

aadog commented Oct 22, 2020

What kind of issue is this?

  • [ YES] Question.
    This issue tracker is not the place for questions. If you want to ask how to do something,
    or to understand why something isn't working the way you expect it to,
    use Community Forums or Premium Support

  • [ YES] PlatformIO IDE.
    All issues related to PlatformIO IDE should be reported to appropriate repository:
    PlatformIO IDE for Atom or
    PlatformIO IDE for VSCode

  • Development Platform or Board.
    All issues (building, uploading, adding new boards, etc.) related to PlatformIO development platforms
    should be reported to appropriate repository related to your hardware
    https://github.com/topics/platformio-platform

  • Feature Request.
    Start by telling us what problem you’re trying to solve. Often a solution
    already exists! Don’t send pull requests to implement new features without first getting our
    support. Sometimes we leave features out on purpose to keep the project small.

  • [ YES] PlatformIO Core.
    If you’ve found a bug, please provide an information below.

You can erase any parts of this template not applicable to your Issue.


Configuration

Operating system: Win10 x64,python3.9(x64)

PlatformIO Version (platformio --version):PlatformIO, version 5.0.2b2

Description of problem

Steps to Reproduce

1.platformio.exe -c clion run --target upload -e stc89c52rc
2.
3.

Actual Results

Processing stc89c52rc (platform: intel_mcs51; board: stc89c52rc)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/intel_mcs51/stc89c52rc.html
PLATFORM: Intel MCS-51 (8051) (1.2.2) > Generic STC89C52RC
HARDWARE: STC89C52RC 11MHz, 512B RAM, 8KB Flash
PACKAGES:

  • tool-stcgal 1.104.0 (1.4)
  • toolchain-sdcc 1.30804.10766 (3.8.4)
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 0 compatible libraries
    Scanning dependencies...
    No dependencies
    Building in release mode
    Checking size .pio\build\stc89c52rc\firmware.hex
    Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
    Flash: [ ] 1.3% (used 103 bytes from 8192 bytes)
    Configuring upload protocol...
    AVAILABLE: stcgal
    CURRENT: upload_protocol = stcgal
    Looking for upload port...
    Auto-detected: COM36
    Uploading .pio\build\stc89c52rc\firmware.hex
    Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640scons:
    *** [upload] Error 9009
    ============================================== [FAILED] Took 0.82 seconds ==============================================

Expected Results

He can't recognize python well, my machine is installed python3.9 and has done env

If problems with PlatformIO Build System:

The content of platformio.ini:

[env:stc89c52rc]
platform = intel_mcs51
board = stc89c52rc

Source file to reproduce issue:

#include <8051.h>
int main() {
// write your code here
}

Additional info

@chenwangnec
Copy link

Problem solving method

Modify C:\Users\user name.platformio\platforms\intel_mcs51\builder
main.py

Line 156

UPLOADCMD="python3 %s $UPLOADERFLAGS $SOURCE"% stcgal)

change into

UPLOADCMD="python %s $UPLOADERFLAGS $SOURCE"% stcgal)
Compile upload burn copy
Mine is solved like this

翻译中文

问题解决方法

修改C:\Users\用户名.platformio\platforms\intel_mcs51\builder
main.py

156行

UPLOADCMD="python3 %s $UPLOADERFLAGS $SOURCE" % stcgal )

修改为

UPLOADCMD="python %s $UPLOADERFLAGS $SOURCE" % stcgal )
编译上传烧拷
我的就是这样解决的 我的环境也是winows 10 vscode+PlatformIO 8051-stc89c52rc
已经正常编译和烧拷固件

@ivankravets ivankravets transferred this issue from platformio/platformio-core Oct 28, 2020
@aadog
Copy link
Author

aadog commented Nov 5, 2020

Thank you for your repair, now it is normal, so what should I do if I can’t find the c51 extension keyword and header file of stcc in clion

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

No branches or pull requests

2 participants