by-passing the arduino-e-ness?
could we have a flag __HAL_CODE__ ?
it is perhaps not a good idea for libraries:–)
stephen
could we have a flag __HAL_CODE__ ?
it is perhaps not a good idea for libraries:–)
stephen
Tue Sep 08, 2015 11:54 am
could we have a flag __HAL_CODE__ ?
it is perhaps not a good idea for libraries:–)
stephen
Tue Sep 08, 2015 3:01 pm
stephen
Tue Sep 08, 2015 4:07 pm
I don’t see a problem access the HAL layer interface, we have also totally access to the libmaple layer or I missed something?
I always use 80% “Arduino code” and about 20% low level things… I would say this is the real power of STM32duino -> the world of both!
Wed Sep 09, 2015 8:55 pm
Wed Jan 20, 2016 10:02 pm
Wed Jan 20, 2016 11:09 pm
arduino wise you store it in the sketchbook folder in a folder fred containing fred.ino and fred.cpp
if you copied the Arduino.h include line into fred.cpp, i suspect you’d be able to apply the tools you’re used to using
to it as the main file? you’ll need the various binary, include, search and libraries paths from a verbose compilation to even create a Makefile.
that’s a completely different world in Arduino(Arduino-mk) and a slowly greying black hole in 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 ; at least for me it is.
i was looking at Arduino-mk on hackaday yesterday and there’s TeensyTeensyDevelopment and computing boards…true ide.contributions.boards.support.urls.wiki= ide.create_platforms_from_boardsTXT. teensy =build.core vm.debug=true software=ARDUINO ssh.user.name=root ssh.user.default.passwor…View in hardware catalog support now available.
oh look the tab’s still there
http://hackaday.com/2015/10/01/arduino- … -for-that/
:shock:
stephen
ps.you may want to look at Cube-MX and HAL as well, as the worlds seem to be on a slow collision course.
Thu Jan 21, 2016 12:08 am
arduino wise you store it in the sketchbook folder in a folder fred containing fred.ino and fred.cpp
if you copied the Arduino.h include line into fred.cpp, i suspect you’d be able to apply the tools you’re used to using
to it as the main file? you’ll need the various binary, include, search and libraries paths from a verbose compilation to even create a Makefile.
that’s a completely different world in Arduino(Arduino-mk) and a slowly greying black hole in 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 ; at least for me it is.
i was looking at Arduino-mk on hackaday yesterday and there’s TeensyTeensyDevelopment and computing boards…true ide.contributions.boards.support.urls.wiki= ide.create_platforms_from_boardsTXT. teensy =build.core vm.debug=true software=ARDUINO ssh.user.name=root ssh.user.default.passwor…View in hardware catalog support now available.
oh look the tab’s still there
http://hackaday.com/2015/10/01/arduino- … -for-that/
:shock:
stephen
ps.you may want to look at Cube-MX and HAL as well, as the worlds seem to be on a slow collision course.
Thu Jan 21, 2016 7:34 am
i’m aware to the topic and that i started it and your position in its regard, but whilst i appreciate it and do like its ease of use, the ability to drop down the abstraction level is to my mind not such a bad thing.
to me it is simply that for what i want to do it is possibly the best way. i also like perl, c and c++ programming, as you can probably tell i didn’t take to Ada at all well, regardless of 3 off 5 day courses.
(the last course was 20mls each way and i did it on my first 700c hand built wheels, trued them twice in that week and not needed to since.)
i started with 65026502Microcontrollers and processors…built wheels, trued them twice in that week and not needed to since.) i started with 6502 and it took me six months to write my first program in hex, actually it took me 5.95 mont…View in hardware catalog and it took me six months to write my first program in hex, actually it took me 5.95 months to grasp the concept of byte, shift and rotate, assembler and hex etc, then it became a so simple it’s difficult to explain it thing.
understanding the aspects of hal and cubemx and how to potentially exploit them to a future ‘abstraction layer’ for 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 is also to me of some interest.
i was merely pointing out that as he is aware of other tool chains, he might look at a couple of possibilities that might/could allow him to perhaps better use his knowledge of their capabilities.
hackaday was one i’m still looking at as i’ve tried it before in pure Arduino land and was curious about the TeensyTeensyDevelopment and computing boards…true ide.contributions.boards.support.urls.wiki= ide.create_platforms_from_boardsTXT. teensy =build.core vm.debug=true software=ARDUINO ssh.user.name=root ssh.user.default.passwor…View in hardware catalog aspect with a view to 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 use.
i pulled the items, followed upto their github repositories, even gone to read documentation about it.
i have been trying to use it as well, pointing out that i had fun with the various paths etc just seemed polite as well as it being a potential problem.
the reference to cubemx/hal was an immediate after-thought and edit, no idea why its bolded.
stephen
Thu Jan 21, 2016 10:42 am
Thu Jan 21, 2016 2:33 pm
Thu Jan 21, 2016 2:56 pm
i’m aware to the topic and that i started it and your position in its regard, but whilst i appreciate it and do like its ease of use, the ability to drop down the abstraction level is to my mind not such a bad thing.
<…>
Thu Jan 21, 2016 8:14 pm
ok, maybe a thread title change, summarise :-
the visible abstraction layer is arduino [orientated/extendable?]
it’s likely to have another layer of hardware abstraction – tdb,
but we’d like to tinker as well’
ultimately a stm32fx.
we’re ‘arduino on stm32fx, optional extras’?
however you can only blink so many leds, clatter relays, … … at some point a decision to do something more with it will occur or not, not is a loss.
i was reading/watching you-tube on esp-8266 with arduino and using AT commands, my thought was could i use a lua variant and what would it involve/what gains? probably not, but i looked just in case.
not hiding the hardware is also important, it makes it fun. at sometime people will have issues with it. if they don’t see the hardware functionality and the connections, that’ll lead to many more ‘newbie’ questions. encouraging people to take that extra look and google as you do, then ask slightly deeper questions will ultimately be more beneficial.
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 aspect is that i like the go faster stripe, i don’t want it to be my purchasing reason, but i want to get it at the right price, just below the knee of the performance and resources against cost graph, where it’s still linear and not asymptotic.
my eyes only go so fast, my brain somewhat slower.
your projects are building blocks to me, i do the same, i tend to do it in software, i break the ultimate destination into little programs with just one aspect, debug those and assemble (shave , glue ) them into my picture frame.
if i can see a possible (future or multiple use) benefit to moving a chunk of my blocks to a sub-system, whether it’s to an ATtiny85ATtiny85Microcontrollers and processors…re-sets that the user cannot affect. here is an example of my PID implementation: … - attiny85 / the particular PID routines it used are application and instance independent, mean…View in hardware catalog , ATmega1284ATmega1284Microcontrollers and processors…benefit to moving a chunk of my blocks to a sub-system, whether it’s to an attiny85, atmega1284 or a stm32 chip. it’s just a block. i once had 2yrs commissioning an ate system, fr…View in hardware catalog or a 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 chip. it’s just a block.
i once had 2yrs commissioning an ate system, freedom to go anywhere from a command language, interpreter written in macro-11 through any of the sub-systems(8031/2,80518051Microcontrollers and processors…mand language, interpreter written in macro-11 through any of the sub-systems(8031/2, 8051 /52), adc, dac, controlled power supplies, relay card types and STT’s, interfaces to iee…View in hardware catalog /52), adc, dac, controlled power supplies, relay card types and STT’s, interfaces to ieee equipment to the inside of the target uut.
object find the reason it don’t and where, suggest how to fix it. i got there really early and left really late. all immensely enjoyable.
stephen
currently massively distracted, frontier series, ryk brown, 11 down, 4 to go, – very tom clany’ish style, kindle unlimited
Thu Jan 21, 2016 8:34 pm
Albeit the library is not for external hardware, but its not uncommon to have a library e.g AVRAVRMicrocontrollers and processors…Arduino\libraries\U8glib\U8glib.cpp, C:\Program Files (x86)\Arduino\hardware\arduino\ avr \cores\arduino\HardwareSerial.h, C:\Program Files (x86)\Arduino/Blink3.ino, D:\Users\me\A…View in hardware catalog TimerOne , which purely provides access to hardware functions that the core Arduino API doesnt.
(EEPROMEEPROMGeneric components and modules without part numbers…ly bought one of these: … fbb0123c5e It’s really small (50x40mm) but includes an i2c eeprom , and sdcard slot, and all MCU pins broken out. I have still not used it, but plan to u…View in hardware catalog library is the same)
But… I think in reality it would be impractical to write such a library to be compatible with Libmaole, as it would proably cause massive code bloat, and potentially cause the core to stop working when various HAL functions were run.
It would also duplicate a lot of functions in the Arduino API and the libmaple API.
I suspect the only practical way to do this is using @sheepdoll’s HAL based core, rather than libmaple.
In terms of Arduino-ness.
I presume if a system has all the Arduino 1.0 API functions, and uses setup() and loop(), and handles libraries in an Arduino way … and compiles in the Arduino IDE
Then it probably passes the test.
( cases in point, include the TeensyTeensyDevelopment and computing boards…true ide.contributions.boards.support.urls.wiki= ide.create_platforms_from_boardsTXT. teensy =build.core vm.debug=true software=ARDUINO ssh.user.name=root ssh.user.default.passwor…View in hardware catalog and ESP8266ESP8266Microcontrollers and processors…working, on the Arduino.cc forum The ESP thing looks similar, but at the moment, www. esp8266 .com is not responding, so I’ll take a look later to see if it seems to be the same b…View in hardware catalog -Arduino)
Thu Jan 21, 2016 9:00 pm
would you have seen an outline structure/diagram of it anywhere? at this point even a terrible one
doxygen????
stephen
Thu Jan 21, 2016 9:23 pm
I presume if a system has all the Arduino 1.0 API functions, and uses setup() and loop(), and handles libraries in an Arduino way … and compiles in the Arduino IDE
Then it probably passes the test.
( cases in point, include the TeensyTeensyDevelopment and computing boards…true ide.contributions.boards.support.urls.wiki= ide.create_platforms_from_boardsTXT. teensy =build.core vm.debug=true software=ARDUINO ssh.user.name=root ssh.user.default.passwor…View in hardware catalog and ESP8266ESP8266Microcontrollers and processors…working, on the Arduino.cc forum The ESP thing looks similar, but at the moment, www. esp8266 .com is not responding, so I’ll take a look later to see if it seems to be the same b…View in hardware catalog -Arduino)
Thu Jan 21, 2016 9:27 pm
stephen
Thu Jan 21, 2016 10:01 pm
would you have seen an outline structure/diagram of it anywhere? at this point even a terrible one
doxygen????
stephen
Thu Jan 21, 2016 10:09 pm
https://github.com/esp8266/Arduino/tree … /libraries
I’m not sure if there is anything we could take from this approach, possibly not, but I still think its a well structured “Core”
Thu Jan 21, 2016 10:23 pm
Thu Jan 21, 2016 10:34 pm