-
Notifications
You must be signed in to change notification settings - Fork 250
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
error on compile: arm-none-eabi-g++ #363
Comments
Hi @steinerlein please read this: #331 |
I have successfully resolved all compiler linking problems by hardlinking their respective locations in the arduino IDE's robots.txt and platform.txt. I will post the changes I had to make next week. |
For the fun of it, I thought it would be nice to try being able to build in Sublime text so I did a search and found Stino... And I have now run into the issue you mentioned: I opened the Example blink, and verified I could compile it for a standard Arduino like a mega. Then selected Teensy 3.6. I have Arduino 1.6.12 installed with Teensyduino 1.31-beta1. [Stino - Start building "Blink"...] [Stino - Exit with error code 1.] So it would be great if you shared your solution. Thanks |
Update: I fixed part of this in the python code, to be able to handle the compiler path string as it is in the teensy platform.txt file, plus I added support for extra.time.local which current Teensy builds use. There still is an issue with the archive command definition having hard coded path to where the core compile files are stored, which appears to differ from what this build uses. So I updated my platform.txt to to: With these changes I am able to build simple programs like blink. However now running into problems with libraries. In particular, the code does not appear to process the libraries, that were install by Teensyduino. Which on my machine with the current Arduino the libraries are stored in: C:\arduino-1.6.12\hardware\teensy\avr\libraries Not sure if another bug report on this or not. But in the mean time, I pushed my changes up to: Update: I did the change suggested in issue #330 and it appears to fix this last problem |
KurtE, thanks for posting your solution! The entries I changed are: Again, this is not guaranteed to work with any config, but it did with mine. If you have this problem, Kurts solutions seems much cleaner. |
Thanks, Yesterday I verified I could do some uploads with standard teensy loader, then tried setting up Arduino to use TyQt to do the uploads. Ran into issues where Stino was not picking up the new command that TyQt added: recipe.objcopy.tyqt.pattern My guess is Arduino enumerates all items under: recipe.objcopy and executes them. But the current Python code here is hard coded to only look for two specific ones. I added support to look for the TyQt one as well. So I was able to get this to run... So the only thing I needed to still change in platform.txt is the recipe.ar.pattern, which I showed in previous message. The way I changed it made it still compatible with using Arduino IDE as well. Not sure if it will be picked up or not, but did a Pull Request: |
@KurtE What is TyQt? |
TyQt is now TyCommander is a nice set of utilities for the Teensy processors. In particular for uploads of programs and Serial monitor. It is nice for being able to have multiple teensy boards plugged in and it keeping track of which program should go to which teensy and having multiple serial windows open... More info up at: https://github.com/Koromix/tytools |
@KurtE Add all recipe.objcopy.*.pattern to build command list, you think it will help?
Another question:
|
Not sure:
I only learned enough to be dangerous. But yes I think doing the all objcopy might help.
As for patch elf – Not sure. As mentioned sounds like it is not used by the 1.6.6 builder, which probably implies that it may not
Be used with the more current versions of the IDE. I am mostly using 1.8.1 I have also moved to a new machine and don’t fully
Have this stuff properly installed yet.
From: Will Robot [mailto:notifications@github.com]
Sent: Thursday, March 09, 2017 3:58 PM
To: Robot-Will/Stino <Stino@noreply.github.com>
Cc: KurtE <kurte@rockisland.com>; Mention <mention@noreply.github.com>
Subject: Re: [Robot-Will/Stino] error on compile: arm-none-eabi-g++ (#363)
@KurtE <https://github.com/KurtE> Add all recipe.objcopy.*.pattern to build command list, you think it will help?
bin_keys = ['recipe.objcopy.eep.pattern']
for key in cmds_info:
if key.startswith('recipe.objcopy.') and key.endswith('.pattern'):
if '.eep.' not in key:
bin_keys.append(key)
for key in bin_keys:
cmd = cmds_info.get(key, '')
if cmd:
cmds.append(cmd)
msgs.append('')
Another question:
In teensy platform.txt, when and how to use the following command?
## Patch ELF - TODO: not supported by Arduino 1.6.6 builder
recipe.elfpatch.pattern="{compiler.path}/hardware/tools/{build.elfpatch}" -mmcu={build.mcu} "{build.path}/{build.project_name}.elf" "{sketch_path}/disk"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#363 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/ABfGQC3Dm3lNHwQQEhKW3RYyvMkvtEQgks5rkJIZgaJpZM4KD17Z> .
|
@KurtE Thanks a lot. |
I decided to try and download your latest stuff. Can I setup to do Teensy? Looked like you could.
But not sure steps to do so.
Thanks
Kurt
From: Will Robot [mailto:notifications@github.com]
Sent: Friday, March 10, 2017 6:49 PM
To: Robot-Will/Stino <Stino@noreply.github.com>
Cc: KurtE <kurte@rockisland.com>; Mention <mention@noreply.github.com>
Subject: Re: [Robot-Will/Stino] error on compile: arm-none-eabi-g++ (#363)
Closed #363 <#363> .
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#363 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/ABfGQJZHJhn550Ytv9N13GCSWlsvfL8Qks5rkguWgaJpZM4KD17Z> .
|
@KurtE As Teensy does not provide a package index file, you need firstly install Arduino IDE and install Teensy to Arduino IDE. Then, set the Arduino IDE folder path as the step in Readme. Then restart SublimeText. If the Arduino IDE folder path is right (contains hardware folder), you will find 'Arduino IDE' in menu 'platform', and 'teensy' in 'Arduino IDE'. Then choose 'teensy' and choose board, it will work. As there are still bugs in this soft, I am still working to improve it. Thanks a lot. |
Thanks, I tried again, and had better luck when I moved the Arduino ide install out of the root of the drive: I am pretty sure I tried it with / and \ and each time I would reload sublimetext it would blank the field back out. I went through the steps as mentioned. First thing I noticed was the board options were not correct. Tried Open sketch, but the sketch I wanted is in a subfolder. i.e. So I used open folder and opened up the sketch folder, I then opened the sketch file and tried a build.
Question: should I continue to make comments on this issue or is there an other preferred way? Thanks |
and build the blink.ino:
|
I try to compile for Teensy 3.2 with Teensy 1.29 and Arduino 1.6.8 and get this error:
(aka: no such file or directory)
I have had a look at #248 but that didn't solve it for me.
Any ideas? I would really like to use Stino.
The text was updated successfully, but these errors were encountered: