logs archiveBotHelp.net / Freenode / #43oh / 2015 / September / 10 / 3
Spirilis
fu*k yeah.
now it's working
well
haven't analyzed with the Saleae Logic16 yet but pausing the execution reveals it's inside RSPI_RX210<SFRBASE_RSPI0>::transfer(unsigned char) [clone .local.33.1410] at 0xfff802a9
Rickta59
the .init not setup as KEEP?
Spirilis
not main::i() at 0x0 or some bullsh*t
yeah
there's a few things they need to tweak about that GNURX project generator.....
KEEP .init, .fini, and .rodata for one
plus the .eh crap isn't being kept
okay so this was almost enough bullsh*t to resign the RX architecture forever, but, maybe not since I just figured it out :P
Rickta59
heh ..
Spirilis
sounds like idiocy on the part of the KPIT guys or just inexperience with C++ and not enough customers care about it for them to fix the bugs
Rickta59
i went through the same stuff with the ti arm stuff and gcc
Spirilis
yeah
Rickta59
i probed the ti guys and they were like .. don't know anything about c++ and gcc
* at least the ones i had access to
it is a eye opening thing when you start doing this type of thing
Spirilis
yeah
Rickta59
really puts it all into place
Spirilis
like those guys are supposed to be experts on the topic ........ but yeah
not so much
Rickta59
you will find in the gcc world ..
lots of people use it for c
and the people that use it for c++ .. sometimes don't really know
Spirilis
yeah
seems like it
seriously though I wonder if someone's written a large book on GCC internals, if not, they could dedicate several chapters to the C++ crap
Rickta59
there are a couple of books
check out safari online
cambazz
hello, if I need an rtc that needs to keep microseconds, what would I do?
i mean i want it both to kick microseconds, and be aligned with the actual time
Spirilis
not sure
that sounds dubious imo b/c most RTC's base their clock off a stable 32.768KHz XTAL
it might be doable on an MCU by having an RTC fire an interrupt that resets a microsecond-level timer counter every second so that when you need information you can request the time down to the second and add the value of your microsecond timer to it
roxfan
check the NTP sync protocol, might give you some ideas
Rickta59
i thought ntp was millisec accurate?
* heh .. and i used to think msecs were really small'
which chip are you using cambazz ?
with the arm ones you could turn on the systick timer and set the count to microseconds
* although it would chew up a lot of time
for other chips you could throw a timer at it and have it increment an unsigned long
« prev 1 2 3 next »