Spark Logic

examples linked to board type. since when?

ok, when did the Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog Examples menu entry get linked to the board type? :D :D :D

i thought i’d do my usual mods to the STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog example of digital blink. Went into examples, no Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog 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

Replies10

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

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

Thu Aug 04, 2016 6:24 am

Since IDE 1.6.10 and maybe some pre-release version.

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

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");

Thu Aug 04, 2016 1:17 pm

I can only tell that my Arduino 1.6.9 portable doesn’t has such feature.

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

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”.

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 STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog 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_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog into a hardware dir below portable/sketchbook?
saving a new sketch for either nano or MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog boards opens to my /home/stephen/sketchbook, not really portable.
moving my sketchbook/hardware/Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog to under portable looses the STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog board types.

<edit>
until i moved the hardware/Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog directory back to it’s ‘proper’ place, i lost the Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog examples menu entry
</edit>

stephen

Sat Aug 20, 2016 5:03 pm

Yes, I put STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog 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.

Post a reply

Optional · up to 10 MiB