logs archiveBotHelp.net / Freenode / #43oh / 2015 / August / 18 / 1
voodoofish430
boards are in today, can't wait to get my hands on em. :)
r0b-
boards for what?
Rickta59
hmm .. one step forward two steps back
so i'm just messing around with an old msp430g2231 .. using the msp430fr5969 lp as a programmer
using msp430-elf-gcc .. program works and does what i want
i can use CCS to debug with it ..
but ..
using it with the latest mspdebug tilib ..
it really doesn't work
although debugging the same program in ccs lets me see all the variables
look at the stack ..
whatever
so i search to see if they provide some gdb agent for linux command line
i find a doc that talks about a gdb_agent_console
.. i find that file
it wants an argument called msp430.dat ..
of course that is no where in my tree
so wtf TI
i look at the running processes under ccstudio ..
and i see it is running a libDebugServer.so from ccstudio ..
that seems to be doing all the work
grr
.. ok .. it seems to be part of another download ..
can't compute CFA for this frame
... that is what i was getting with mspdebug
and seems to still be a problem with gdb_agent_console
bleh
ismail_
hello
cambazz
hello
energia
hello, Wire.begin(1) gets ignored by energia. I am trying to use the second i2c port, but no luck
Rickta59
have you put a scope on there to see what is happening
you don't mention which LP
what do you think Wire.begin(1) is supposed to do energia
energia
well I am on msp430 5529
Rickta59
ok ..
so what do you think Wire.begin(1) does
energia
and there are two i2c ports according to the pinout poster
i looked at Wire.cpp in energia source, and Wire.begin(1) is supposed to init the wire to 2nd port
Rickta59
link to file?
energia
you mean my source code or the wire.cpp that I looked?
Rickta59
the wire.cpp
the one i looked at has no feature to switch i2c peripheral used
energia
one sec
Rickta59
lm4f .. yeah it has a setmodule
msp430 .. no such feature
https://github.com/energia/Energia/blob/master/hardware/msp430/cores/msp430/Wire.cpp#L74
that is what i see
energia
energia-0101E0016/hardware/msp430/cores/msp430/Wire.cpp
yes
Rickta59
yeah so begin() .. sets the address of the i2c slave
it doesn't do anything to change which i2c peripheral is used
energia
hmm... and how do we do it then?
Rickta59
it probably doesn't do it
you could implement some scheme like the setmodule function that is in the lm4f energia version
energia
isnt setting the adress same as changing the i2c peripheral used?
Rickta59
no
it is referring the address of the i2c slave address
energia
oh, ok, yes I remember on the other launchpad, (lm4f) there was a setModule
maybe this has one too?
Rickta59
hmm .. i just said it doesn't exist
energia
ok
well question, the problem is that i need to use both i2c and spi on a 5529 LP
Rickta59
well then you have some work to do if you want to use energia
energia
so is there any easy way to change the spi port to the other one?
because both i2c and spi ports overlap
Rickta59
you could bitbang the spi on any port
energia
ok
Rickta59
* of course you would have to do that
or you could implement a setModule .. for msp430 .. but you would also have to do that
Spirilis may have implement spi stuff like that someplace .. maybe he will chime in
voodoofish430
r0b-: adapter board for the nrf24l
r0b-
ah
voodoofish430
finally got around to working on it.
Rickta59
https://github.com/spirilis/msprf24/blob/master/msp430_spi.c ..
some examples using different spi ports
energia
well, all i need to do is attach a nokia 5110 LCD and an i2c sensor, ina219. 5110LCD is spi
ok let me look at that
Rickta59
that is for usci ..
i think the 5529 has eusci?
ah nm .. looking at the code i see he has a 5529 config
energia
well i am looking at the code, but i am lost
Rickta59
what part is confusing?
the api is just 4 functions
spi_init
spi_transfer .. transfer16 and transfer9
https://github.com/energia/Energia/issues/298 how about that
which leads to this:
https://github.com/energia/Energia/pull/398
although it doesn't seem like it would just work ..
* seems to have conflicts with the current tree
would have been simpler if they had just implemented a setModule method
you might ask in #energia
energia
https://github.com/energia/Energia/issues/298 yeah I found this too
is there a setModule in msp432?
Rickta59
no idea .. that is using the rtos ting
i went looking for the source when it first got released and it wasn't out there ... but that was months ago and I haven't looked since
looking at the source now I see you would probably have to build it to see what files it uses .. probably pulls in a bunch from someplace else
https://github.com/energia/Energia/blob/master/hardware/msp432/cores/msp432/wiring.c
points to some file i don't see in the tree ..
so it is probably hidden someplace else
« prev 1 2 next »