Comments (7)
I changed 'MCU GCC Linker' to 'MCU G++ LInker' in the script just to get pass this. My .cproject doesn't contain 'option' subchild on 'MCU GCC Linker'.
Next error,
FileNotFoundError: [Errno 2] No such file or directory: '/Volumes/TouchGFXProjects/stm32piodemo/lib/STLinkedResources/Buttons.cpp':.
The directory contain softlinks to files being deleted and recreated when PlatformIO rebuilds index. Interestingly, running setup_cubemx_env_auto.py (buy pio run) causes the index rebuild every 3s.
If I close the workspace and reopen, the rebuild stops but keeps repeating again after a compile attempt.
I wonder what trigger the index rebuild.
from pio_and_stm32cubeide.
I think something with MacOS symlink issue. I can't even open the file directly on MacOS terminal. ls shows the links but cat can't find the file.
from pio_and_stm32cubeide.
Are you using CubeMX or STM32CubeIDE? The script is heavily based on the information that STM32CubeIDE writes, and it might be something that CubeMX does not fully do. If you use CubeMX, then a first test would be to open the project once with STM32CubeIDE.
If this is not the case, and if you are using STM32CubeIDE, then the next step would be to send me your project so that I can have a look at the generated data, if that would be ok.
Regarding the symlinks: I don't think that the problem has to do with OSX. I'm using OSX as well. This suggests the the symlinks are not pointing to a valid file location, which again suggests that the information cannot be read from the files correctly...
from pio_and_stm32cubeide.
Thanks for the response. I just realize TouchGFX Designer code generation is a mess. Even using cubeide, it wasn't a straight forward process. I have to add/modify paths in Eclipse project property. Additionally, the option 'Add necessary files as ref...' breaks TouchGFX Designer path organization.
I give up. Back to the super slow bloated Eclipse with editor that sometimes takes seconds to respond to a key press.
With the symlink, for some reason my Mac doesn't like it if the link directory is under the same directory of the file it's pointing to. I even tried with ln command on terminal.
from pio_and_stm32cubeide.
I just tested this. In the case you said is not ok (I used the file test.txt and linked to the same name in dir LinkedDir):
LinkedDir % ln -s ../ActualFileDir/test.txt test.txt
lrwxr-xr-x 1 jbaumann staff 25 13 Jan 17:46 test.txt@ -> ../ActualFileDir/test.txt
Works. Editing the file works, is reflected in the linked original.
Which command did you use?
And I work with Eclipse on a Macbook from 2015 and have not yet seen these delays. This is strange.
I haven't used TouchGFX Designer yet, so I have no experience with that.
from pio_and_stm32cubeide.
I did exactly what your script does except with ln command. My problem may be because of the samba directory. Designer only works on Windows and can't access network directory. It's a mess but it's the only GUI tool that doesn't cost $10Ks.
from pio_and_stm32cubeide.
You could run the Designer in a virtual machine that runs Windows (I personally have good experiences with Virtualbox). This way you could run the Designer on your local machine. And after running Designer you could simply copy its generated data to a directory mounted from OSX (or you could maybe export one of the directories inside the virtual machine).
But all of that is outside the scope of this project. If your STM32CubeIDE-project compiles successfully in the IDE it should be possible to transfer it to Platform.io. And if there is something I can help you with there, please open a new issue.
from pio_and_stm32cubeide.
Related Issues (8)
- Script fails with custom board HOT 20
- VSCode on Windows needs elevated right to be able to create `./lib/STLinkedResources` link files HOT 7
- Script creates incorrect link files in `./lib/STLinkedResources` on Windows (VSCode) HOT 15
- Not working with STM32CubeIDE 1.7.0 / STM32CubeMX 6.3.0 HOT 5
- AttributeError: 'NoneType' object has no attribute 'get' HOT 1
- Error multiple request to rebuild HOT 2
- error of redefinition HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pio_and_stm32cubeide.