logs archiveBotHelp.net / Freenode / #43oh / 2015 / September / 3 / 1
XTL
Local hackerspace just got a box with some 6 LP kits and assorted boards.
Nobody's managed to use the ez430 and radio kits yet either, though.
Should put all that to some kind of cute demo use.
voodoofish430
You could do a lot with 6 lp kits....depending on which model they are...
Spirilis
ok, past one of my least favorite pieces, TESTING my code ...
although I do love using the logic analyzer :-D
my AbstractWiring codebase's Serial and SPI stuff works right
the C++ template concept makes implementing a truly portable USCI 9-bit SPI simulation much nicer too
that 9th bit is slow as fu*k but it works
freebeans
can anyone give me one reason not to go back to arduino?
Spirilis
arduino's more mature for mcu noobs, TI's MCUs have their features but tbh nothing smashingly compelling for a newbie
I think of the TI products e.g. msp430 and msp432 as nice for more advanced users who can appreciate the finer details of an architecture...
I've heard good things about the teensy for arduino folks who want a little more
haven't bought any teensy hw myself though. I got too much TI hardware to play with to justify buying more crap...
freebeans
finer details of an architecture?
man, I bought a connected launchpad
and either I use some closed source IDE with everything included (in which I learn nothing about the process)
or I use energia, which again abstracts so much
I can't seem to find one single tutorial on how to set a toolchain on my debian machine
and TI's website didn't help much
Spirilis
tm4c129 launchpad?
freebeans
exactly
Spirilis
well the good thing is you can usually bust out TivaWare API calls 'n stuff in energia
so you can get a taste of the lower level crap
and that's a good point, about no tutorial for setting up a separate toolchain
the basic idea, fwiw, is to get: launchpad.net arm-none-eabi-gcc installed, then TivaWare from TI's site
use energia's lm4flash to write to the device's flash (it's got all the bits to make that work)
freebeans
I'll take a look into that
Spirilis
fact is though, energia comes with all that
in energia-0101E0016/hardware/lm4f/bin is the arm-none-eabi-gcc compiler
er
hardware/tools/lm4f/bin
but yeah, you won't find any tutorial for getting a "scrapper's toolchain" working as I like to call it
freebeans
yeah, I've been trying to cut the fat from energia
since I do not own a msp430 board anymore
Spirilis
you can d/l the latest TivaWare too and just point your PATH to energia's hardware/tools/lm4f/bin for the compiler (that might also have lm4flash)
freebeans
cuz geez the uncompressed folder takes almost 1GB
Spirilis
I haven't done too much with my tivas, but they do seem to be quite capable MCUs
freebeans
yeah, I'm not blaming the MCUs
but the information, you know
Spirilis
TI's software experience ... best way to put it, imo ..... is pretty godawful terrible as I've come to the conclusion so far
the pieces are all there but nobody seems to put it together
freebeans
either you get energia or some limited edition IDE
Spirilis
well the IDE is unlimited when you use the launchpad board with it iirc, so there is that
freebeans
and both ways you learn nothing
Spirilis
yeah
freebeans
I dislike so much avr fanboys
but any time I want I can just apt-get install avr-gcc
and of course binutils, avrdude
Spirilis
well the arm compiler is pretty freely available, but you would be right in pointing out that lm4flash nor TivaWare are open source iirc
lm4flash might be open source I think but nobody ships it
TivaWare is intentionally kept close to TI's chest... although the driverlib is technically BSD licensed
freebeans
that's another point I don't get
Spirilis
in no small part b/c it's also in ROM
freebeans
I worked my whole life whit 8-bit uC so far
once you get an arm compiler
does it compile for all?
Spirilis
in theory the instruction set works for most of the same class, but, the peripherals will all be a little different between different vendors and that's where you get in trouble
TivaWare doesn't so much provide support for the ARM instructions as it does provide support for how to use the peripherals and clocking systems
freebeans
cause these criptic prefixes don't help me
Spirilis
and some of the ARM peripherals like SysTick
yeah if you're used to a simple world of 8-bit, ARM is a rude awakening of complexity
freebeans
hm
yeah
can you point me any piece of info on arm
just so i get the prefixes right?
Spirilis
what prefixes are you referring to... the arm-none-eabi crap?
freebeans
yeah
btw should I get the compiler and stuff from TI since there's the peripheral sh*t?
Spirilis
no
compiler can be the common arm one
see here: https://launchpad.net/gcc-arm-embedded
that's sort've the gold standard open compiler for all ARM "microcontrollers", meaning, ARM Cortex-M series chips
and I think "arm-none-eabi" can be just understood as "arm compiler for Cortex-M" without fully grokking each word in the phrase
eabi is just the universal binary ABI for ASM calls this compiler adheres to
what you need from TI is TivaWare, which has the headers and C source files for the peripheral drivers.
along with a lot of other cruft you won't care about (in part b/c it's not even open source)
here's ARM's page on Cortex-M: http://www.arm.com/products/processors/cortex-m/
that'll give you a lot of marketing BS but general information about what arm's "microcontroller" offerings are about
where TI, Freescale, STM, etc come into the picture is they "license" the ARM cores, add their own peripherals on top and produce a final chip that's tailored for whatever use cases they feel are profitable for them to target
I was told once by a TI'er, for what it's worth, that the TM4C129 (Tiva-C w/ Ethernet) series chips were initially conceived of in TI as a solution for baseboard management controllers in high-end servers
so you have to look at the whole chip and its peripheral set from that light.... this is what they "had in mind" when they designed it. You almost never get that kind of information from a vendor though.
freebeans
yeah
Spirilis
anyway as far as toolchains for the tiva, you could probably extract the "hardware/tools/lm4f" folder from energia someplace and delete the rest
freebeans
thank you very much
Spirilis
np
freebeans
okay
Spirilis
oh also one thing
freebeans
I'll see if that works
but be4 i go
Spirilis
tiva's are ARM Cortex-M4F, the F means floating point
freebeans
oh
that makes sense
how can the compiler
Spirilis
there are 2 different "ABI" conventions for the floating point support
freebeans
compile
code
for the peripherals
if it was not meant to?
does it simply writes to registers and bob's your uncle?
« prev 1 2 next »