1.6.5r2 working with Maple Mini!!!

mrburnette
Mon Jun 22, 2015 1:47 pm
I installed 1.6.5 r2 in support of the ESP8266 – Windows 8.1 64-bit
viewtopic.php?f=45&t=356#p3171

The “portable” folder was build as explained above. I created a directory join to my Arduino folder in my home (Documents) directory. I did a test compile of the ESP8266 and it all worked.

What I did NOT notice is that the symlink also “activated” the STM32 code stuck in the hardware folder! Yes, in looking over the installation this morning, I noticed toward the end of the board selections the Maple stuff. I selected Maple Mini R2, set the bootloader to 2.0, picked the blink sketch, compiled and uploaded.

Yes.
The basic steps seem to be a virgin install of 1.6.5r2 and
– create the portable folder under Program Files\Arduino1.6.5r2\
C:\Program Files (x86)\arduino-1.6.5-r2\portable

– Install Due, you can verify that everything got stuck into portable:
C:\Program Files (x86)\arduino-1.6.5-r2\portable\packages\arduino\hardware\sam\1.6.4

– build a linked directory “sketchbook” from inside portable to your Arduino directory located in Documents
C:\Program Files (x86)\arduino-1.6.5-r2\portable\sketchbook
On my box,
C:\Program Files (x86)\arduino-1.6.5-r2\portable>mklink /j "C:\Program Files (x86)\arduino-1.6.5-r2\portable\sketchbook" D:\Documents\Arduino

Junction created for C:\Program Files (x86)\arduino-1.6.5-r2\portable\sketchbook <<===>> D:\Documents\Arduino


RogerClark
Tue Jun 23, 2015 2:18 am
Ray,

I uninstalled my old copy of Arduino (1.6.4), then installed 1.6.5.r2 However I forgot to remove %appdata%\Arduino15, so I got a message about existing data.

So I closed the IDE, renamed %appdata%\Arduino15 to %appdata%\Arduino15.bak
Then I added the portable folder to C:\Program Files (x86)\Arduino (which Windows seemed to let me do without authenticating).

I then restarted the IDE, but I get the message “You forgot your sketchbook”
“Arduino cannot run because it could not create a folder to store your sketchbook”

So what I had to do was change the permissions on the “Portable” folder

Once I did that, the IDE could then create the files it wanted, in the “portable” folder, including a sketchbook folder, and all the package json files that it downloaded.
I could then also install the Due to get the ARM compiler.

I can see that the sketchbook simlink works, but its quite a complicated install process that people would need to go though.


mrburnette
Tue Jun 23, 2015 12:04 pm
RogerClark wrote:

I can see that the sketchbook simlink works, but its quite a complicated install process that people would need to go though.

zoomx
Tue Jun 23, 2015 1:33 pm
Some questions:

1) There is a final release of 1.6.5 but you still use 1.6.5r2 or I am wrong?
2) Since Vista writing in C:\Program Files (x86) or C:\Programs is not allowed and discouraged. Usually programs need administrative privilege to write there or, if you use compatibility mode you will write c:\USERNAME\AppData\Roaming like the IDE normally do. Maybe it’s better to use a portable version outside the Program folder?
3) I have 1.6.5 and I am able to program Maple Mini so I don’t understand the topic heading. It mean that it works in the portable version?


mrburnette
Tue Jun 23, 2015 5:01 pm
zoomx wrote:Some questions:

1) There is a final release of 1.6.5 but you still use 1.6.5r2 or I am wrong?
2) Since Vista writing in C:\Program Files (x86) or C:\Programs is not allowed and discouraged. Usually programs need administrative privilege to write there or, if you use compatibility mode you will write c:\USERNAME\AppData\Roaming like the IDE normally do. Maybe it’s better to use a portable version outside the Program folder?
3) I have 1.6.5 and I am able to program Maple Mini so I don’t understand the topic heading. It mean that it works in the portable version?


RogerClark
Tue Jun 23, 2015 9:07 pm
It looks like things have changed again

i got an email from Federico cc’ed to me.


This PR aims at solving the long debate that took place on the developers mailing list about the location of cores/tools installed through Boards Manager. On windows it was Roaming\Arduino15, which breaks Microsoft rules and causes troubles to who actually like own profile to roam between different computers

New location is %LOCALAPPDATA%\Arduino15

When no custom preferences file location is specified (via CLI) and if the IDE finds something in %APPDATA%\Arduino15 and no %LOCALAPPDATA%\Arduino15 is present, IDE prefs files will be moved. Nothing will happen otherwise.

i have not had chance to see if the portable folder system has been retained as well as this change.
I presume I’d need to download a nightly build in order to check.


pico
Wed Jun 24, 2015 5:48 am
RogerClark wrote:
Windows seemed to let me do without authenticating).

I then restarted the IDE, but I get the message “You forgot your sketchbook”
“Arduino cannot run because it could not create a folder to store your sketchbook”

So what I had to do was change the permissions on the “Portable” folder

Once I did that, the IDE could then create the files it wanted, in the “portable” folder, including a sketchbook folder, and all the package json files that it downloaded.
I could then also install the Due to get the ARM compiler.

I can see that the sketchbook simlink works, but its quite a complicated install process that people would need to go though.


pico
Wed Jun 24, 2015 6:04 am
Note: One quirk I’ve found in 1.6.5r2 is that preferences.txt wont accept an absolute path for the sketchbook folder, only a relative path.

So, in my case, ..\MySketches works, but entering c:\arduino\MySketches, or \arduino\MySketches doesn’t.

Not a show stopper by any means, but weird.


RogerClark
Wed Jun 24, 2015 6:09 am
I just tried the nightly build but it didn’t seem to use the new location

zoomx
Wed Jun 24, 2015 6:10 am
I never used the installer, only the zip. I have all IDEs in a folder together with Energia IDEs.

Thanks for the explanations.


RogerClark
Wed Jun 24, 2015 9:50 am
I have been experimenting with a Boards Manager package file, and I’ve noticed quite a bad use of disk space with the ARM compiler.

It looks like the Boards Manager, unzips the compiler package separately into all boards that need that compiler.

It doesn’t need to download the ARM compiler again, if our package uses the same compiler that the Due does, but it does waste 244Mb of space, because the compiler is unzipped into our tools folder as well as the SAM/tools folder.

I’d assumed that the whole point of separating the tools into different sections in the package JSON file was so that the same tools files could be used by multiple cores, but this isn’t the case.

Edit.

BTW. I copied the “tools” section from my package json file from the SAM one, so its has the same dependencies as the DUE

"toolsDependencies": [
{
"packager": "arduino",
"name": "arm-none-eabi-gcc",
"version": "4.8.3-2014q1"
}
]


Leave a Reply

Your email address will not be published. Required fields are marked *