damogranlabs / VS-Code-STM32-IDE

Use VS Code as STM32 IDE with CubeMX
MIT License
247 stars 52 forks source link

not working for me #6

Closed jlhavens closed 5 years ago

jlhavens commented 5 years ago

After instaling prereqs, I find the "First Steps" somewhat too sparse to follow. No clear "Create CubeMX project and select 'Makefile' as output file" method.

I opted to open the example. When i ran the update.py I got several error similar to "Unable to find path to openOCD stlink.cfg configuration file on path: C:/Users/Admin/AppData/Roaming/GNU MCU Eclipse/OpenOCD/interface/stlink.cfg" where the scrips was looking for a file in a directory unlike the one I had entered to the earlier quiries.

After fixing these problems by cutting and pasting the appropriate files in what appear to be the non-standard directory locations, the script got past the "Tools paths updated." But went on to throw this error ///// Traceback (most recent call last): File "d:/Downloads/VS-Code-STM32-IDE-master/example/ideScripts/update.py", line 50, in makefileData = makefile.getMakefileData(makeExePath, gccExePath) File "d:\Downloads\VS-Code-STM32-IDE-master\example\ideScripts\updateMakefile.py", line 86, in getMakefileData projectName = self.getMakefileVariable(makeExePath, gccExePath, self.mkfStr.projectName)[0] File "d:\Downloads\VS-Code-STM32-IDE-master\example\ideScripts\updateMakefile.py", line 296, in getMakefileVariable proc = Popen(arguments, stdout=PIPE) File "C:\Users\Admin\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 709, in init restore_signals, start_new_session) File "C:\Users\Admin\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 997, in _execute_child startupinfo) PermissionError: [WinError 5] Access is denied //////

Is there a solution to this problem?

Thanks, I'm sure a lot of work went into this, but its not working for me. Jeff

schperplata commented 5 years ago
  1. No clear "Create CubeMX project and select 'Makefile' as output file" method. This is a STM32 CubeMX specific, and is not part of this 'guide'. Google will surely be helpful enough. Anyway, the trick is to create CubeMX project as you would normally do, than set output generator to create Makefile (not for example, Keil project).

  2. When i ran the update.py I got several error similar to "Unable to find path to openOCD stlink.cfg configuration file on path: I am guessing: did you use (rename, delete '*.backup') 'buildData.json' file? This paths otherwise won't be purposed/checked. You should start with a fresh copy of example project, and specify paths in terminal as it is shown on video. 'buildData.json.backup' is there really just for the reference. Is my assumption correct?

  3. Other errors I don't know exactly what is going on, but I assume something is locking your files. As you can see from the error output, some subprocess is in fact created, but the files are locked or inaccessible. This can be due few reasons, usually some other software is interfacing with file, or unsaved changes are pending and file is therefore locked. I haven't experienced such issues so far, so double check you have all the R/W permissions.

jlhavens commented 5 years ago

Thank you for your prompt response.

I loaded stm32CubeMX today. Coming from the arduino environment, there is a lot that I am unfamiliar with in terms of the more professional programming tools. After running through a youtube summery of the the CodeMX capabilities I am almost convinced that programming the STM32 is probably too complex for a hobby developer like me.

I'll give a try to your suggestions and let you know if I continue to have problems.

Thanks again, Jeff


From: Domen Jurkovič notifications@github.com Sent: Thursday, December 20, 2018 2:29 AM To: damogranlabs/VS-Code-STM32-IDE Cc: jlhavens; Author Subject: Re: [damogranlabs/VS-Code-STM32-IDE] not working for me (#6)

  1. No clear "Create CubeMX project and select 'Makefile' as output file" method. This is a STM32 CubeMX specific, and is not part of this 'guide'. Google will surelly be helpful enough. Anywaym the trick is to create project as you would normally do, than set output generator to create Makefile (not for example, Keil project).

  2. When i ran the update.py I got several error similar to "Unable to find path to openOCD stlink.cfg configuration file on path: I am guessing: did you use (rename, delete '*.backup') from 'buildData.json' file? This paths otherwise won't be purposed/checked. You should start with a fresh copy of example project, and specify paths in terminal as it is shown on video. 'buildData.json.backup' is there really just for the reference. Is my assumption correct?

  3. Other errors I don't know exactly what is going on, but I assume something is locking your files. As you can see from the error output, some subprocess is in fact created, but the files are locked or inaccessible. This can be due few reasons, usually some other software is interfacing with file, or unsaved changes are pending and file is therefore locked. I haven't experienced such issues so far, so double check you have all the R/W permissions.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/damogranlabs/VS-Code-STM32-IDE/issues/6#issuecomment-448900797, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGZa3TPC0aszMExlMlRexGgCwI79e-7Sks5u6zxYgaJpZM4Zbdjk.

schperplata commented 5 years ago

Oh, don't worry, CubeMX and STM32 products are one of the simplest and more user friendly products on the market. I've also started on arduino years ago, and although it took me some time, learning curve is still quite fast. I advice you to start by the simplest example you can imagine, like blink an LED. Try to set up VS Code and than continue from there to more complex projects. Also, ST community is large and responsive, you will be doing amazing things in a matter of weeks!

Good luck!