examples linked to board type. since when?

zmemw16
Wed Aug 03, 2016 5:06 pm
ok, when did the Arduino_STM32 Examples menu entry get linked to the board type? :D :D :D

i thought i’d do my usual mods to the STM32 example of digital blink. Went into examples, no Arduino_STM32 examples entry.
after firtling about abit with a re-install of Arduino, i changed the board from Due to f103c8 and checked examples, all as expected.

stephen


RogerClark
Wed Aug 03, 2016 9:41 pm
Not sure, but I know that the Arduino IDE team have been working on a feature like this, so perhaps it is now part of the latest version.

What version of the IDE are you running


zmemw16
Wed Aug 03, 2016 10:47 pm
home built 1.6.9r0 with minor mod to give versionized ./.arduino169r0

had me puzzled and scratching head ;)

as an aside:
if i only ever use stlink and boot0/boot1 both zero, i only have to press reset or cycle power; correct?
and if i want to program via uart1, than i need to move boot0 to 1; correct?
that’s for the system boot loader, does it time out and then jump to run the flash?

stephen


zoomx
Thu Aug 04, 2016 6:24 am
Since IDE 1.6.10 and maybe some pre-release version.

RogerClark
Thu Aug 04, 2016 6:34 am
I suspect that how @zmemw16 has this feature as they built their own version, which probably had 1.6.10 features in 1.6.9

zmemw16
Thu Aug 04, 2016 9:35 am
i used the official 1.6.9r0 source and only changed “arduino15” to “arduino169r0”; istr only one file changing – line 80 something

grep is running; 5m … whilst it is, anyone know how to look for multiple strings in a file, ok egrep as i posted in a thread
this could take a while … 10m
[edit] Arduino_STM32/Arduino-1.6.9-r0/arduino-core/src/processing/app/Platform.java: File dataFolder = new File(home, ".arduino169r0");


zoomx
Thu Aug 04, 2016 1:17 pm
I can only tell that my Arduino 1.6.9 portable doesn’t has such feature.

zmemw16
Thu Aug 04, 2016 11:55 pm
i certainly didn’t :!:

it’s not difficult to build, follow the instructions. i don’t know java, c and c++ bits of. three or four assembly ones.
minor’ish point, i’m on debian 8 x64, so all the support software is already to hand. :)

it was my way of running multiple arduino versions without cross contamination in the preferences file.

you say portable, is that a windows re-definition of something?

stephen


zoomx
Sun Aug 07, 2016 10:53 pm
To have a portable version, in Windows, you have to download the zip version and decompress it in a folder. Then, inside the folder, you have to create another folder named “portable”. That’s all. In this way libraries and sketch will be inside the subfolder Sketchbook of the folder portable.

I believe that in Linux and OSX is the same but I don’t know if the directory must be called “portable” or “Portable”.


zmemw16
Mon Aug 08, 2016 12:00 pm
i just added a ‘portable’ dir to the binary package installation.
a sketchbook with a sub dir of libraries is created in there on first use, additionally installing the stm32 compiler using the board manager package with m3 in the name puts all the packaging, staging stuff and a preferences.txt in there as well. logical if it’s going walkies.
it updates that ‘new’ preferences.txt with the sketchbook dir name from the original preferences.txt

now to be truly portable, i’ll need to install Arduino_STM32 into a hardware dir below portable/sketchbook?
saving a new sketch for either nano or maple boards opens to my /home/stephen/sketchbook, not really portable.
moving my sketchbook/hardware/Arduino_STM32 to under portable looses the stm32 board types.

<edit>
until i moved the hardware/Arduino_STM32 directory back to it’s ‘proper’ place, i lost the Arduino_STM32 examples menu entry
</edit>

stephen


zoomx
Sat Aug 20, 2016 5:03 pm
Yes, I put STM32 core in hardware folder but I am using 1.6.9 so I don’t check if examples changes.

Sometimes it happens that instead of using the portable sketchbook folder it uses the folder in your home folder. Just manually open a sketch in the portable folder and it works again.


Leave a Reply

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