<tpbsd>
I needed to print every peripheral register in a cortex-m
<tpbsd>
in this case it had 466 registers
<tabemann>
ich verstehe
<tpbsd>
i wanted to do a before and after snapshot of a mcu configs
<tpbsd>
how is this for irony ?
<tpbsd>
the STM32F103 was released in 2004, it has a nasty bug that prevents two debug registers being read from a user program. They are only readable externally and internally when a debugger is connected to the chip
<tabemann>
did you just print the registers, or did you buffer them in memory and print them afterwards (because the act of printing might change the registers)
<tpbsd>
along comes a cloner who does their own implementation of the chip and they fix that bug!
<tpbsd>
I just print them, the act of printing probably only affects some registers in USART1
<tabemann>
it's always great when clones fix bugs for you, so now you have to deal with both the unfixed and the fixed impl
<tpbsd>
but theryre the same each read with this word
<tpbsd>
well I'm not using the clone, just testing for it as the shy and sensitive Chinese sellers seem to accidentally supply a lot of the clones marked as STM32F chips
<tpbsd>
now at least I know one way to tell the clone from the authentic
<tabemann>
back
<tabemann>
but only that particular clone
<tabemann>
there may be other clones which more faithfully cloned the original's behavior
<tpbsd>
sure
<tabemann>
I should add a flag to determine whether a word is being <BUILT
<tpbsd>
there only seems to be about 5 known clones, and all but only two seem popular now
<tpbsd>
of those two, both use different dies to the original authentic chip and one of them identifies itself clearly a a different chip, the other one counterfeits the STM internal ID's and codes
<tpbsd>
the 'honest' clone is the one that fixed the errata
<tpbsd>
as yet I dont know about the counterfeit clone
<tabemann>
back
<tpbsd>
37,00 C / 98,71 F at my desk right now. 1pm
<tabemann>
lemme guess, australia is currently on fire
<tpbsd>
not here, today
<tabemann>
australia always seems like it's the hottest place on earth
<tabemann>
like insane temperatures in the 40s C often
<tpbsd>
especially if you live here
<tabemann>
where it's a cool day when it's only in the high 30s
<tpbsd>
the forcaset is 39C here where I am, today
<tpbsd>
I can see one 40C on the temp map already
<tpbsd>
37,25 C / 99,04 F 1.75 degrees away from today max now
<tpbsd>
but it doesnt peak here for another 2 hrs
<tpbsd>
yeah, I actually feel cold and need a coat if the temp drops to 26C !
iyzsong has joined #forth
<tabemann>
26 C is nice weather here
<tabemann>
like temperature where I can go around wearing one lay er
<tpbsd>
and here, tho it's often 99% Relative humidity during summer
<tpbsd>
which sucks
<tabemann>
I don't know how people do that
<tpbsd>
me neither
* tabemann
remembers the reference to 45 C in Beds are Burning, and remembers thinking how in hell does anyone deal with thatt
<tpbsd>
one gets used to it
<tpbsd>
it's been 46C at this deck, which was a bit overly warm for me, in fact I had to shut this PC down after it warned me it was too hot
<tpbsd>
desk
<tabemann>
ugh
<tpbsd>
id never seen it do that before
<tpbsd>
46C and 99% RH
<tabemann>
ughity ughity ugh ugh ugh
<tpbsd>
hahah
<tpbsd>
and that same day my building aircon failed at night. I woke up to hot air blowing out the vent
<tabemann>
ugh
<tpbsd>
thats probably why the english sent their prisoners here, no one really wanted to come here if they had a choice
<tpbsd>
generally if they had a choice tyeyd go to Maine
<tabemann>
the question of where the best place in the US is weather-wise is a good one
<tabemann>
like here in WI the weather is great during the summer, but it often gets quite cold during the winter
<tabemann>
but cold isn't hard to deal with provided you have modern heating systems
<tpbsd>
here winter is the best time of year, little rain, clear skies, 18 - 25C usually
<tabemann>
and it's not cold enough that you're going to get frostbite from being outside except under the very worst conditions
<tpbsd>
maybe 2C for a couple of days in the middle of winter
<tpbsd>
it's when I ride my motorbike as summer is just horrible
<tpbsd>
no one has heating here
<tabemann>
heating is an absolute necessity here
<tabemann>
whereas AC is not
<tpbsd>
I dont like AC myself and havent had it for the last 4 years
<tabemann>
why?
<tpbsd>
too much temperature difference going from a room with it to one without
<tpbsd>
and back
<tpbsd>
plus they never seem to regulate properly, either too cold or too hot
<tpbsd>
I decided to toughen up in 2016 after the aircon died and I manage ok
<tabemann>
were you using room AC rather than central AC?
<tpbsd>
plus this part of my shed is huge, it's far to big to try and aircon
<tpbsd>
central AC is fairly rare, and very expensive to run
ryke has joined #forth
<tpbsd>
38,00 C
<tpbsd>
100,51 F
<tabemann>
okay, got create and <build/does> implemented
boru` has joined #forth
boru has quit [Disconnected by services]
boru` is now known as boru
<tabemann>
okay, I've gotta head out - bbl
tabemann has quit [Read error: Connection reset by peer]
dddddd has quit [Remote host closed the connection]
tabemann has joined #forth
gravicappa has joined #forth
<tabemann>
back
<tpbsd>
38,81 C
<tpbsd>
101,86 F
ryke has quit [Ping timeout: 265 seconds]
<tabemann>
es ist zu heiß
<tabemann>
mir ist nicht sehr heiß
<tpbsd>
39,50 C
<tpbsd>
103,21 F
<tpbsd>
it's gotta peak soon
<tabemann>
103.21 F is too hot
<tpbsd>
tue - sat forecasts are a lot nicer: 25 25 27 28 28
<tpbsd>
cant argue with you there
<tabemann>
okay, next thing to do - implement IF ELSE THEN, BEGIN UNTIL, BEGIN WHILE REPEAT, and BEGIN AGAIN
<tpbsd>
nice!
<tpbsd>
Im working on my STM32F103 fake diagnostics Forth bootable binary V2
<tpbsd>
It now generates a text summary of the chip plus one in XML for storage and feeding into a database
dave0 has joined #forth
jsoft has quit [Ping timeout: 260 seconds]
<tabemann>
okay, I'm gonna hit the sack
<tabemann>
somehow I'm having trouble wrapping my brain around ELSE, even though IF and THEN were trivial
<tpbsd>
Forth is like that
<tpbsd>
one has to grow new neurons ...
<tpbsd>
special ones with a left twist
<tabemann>
the thing is that I've implemented ELSE before two times
<tabemann>
but neither time did I implement it in assembly
<tpbsd>
obviously the special neurons untwisted themselves ...
<tpbsd>
it's assembly that separates the men from the pretenders ;-)
<tpbsd>
39,12 C
<tpbsd>
102,53 F ahh it's finally started to drop!
<tabemann>
I'm surprised at how much progress I've made, since it took Matthias two years to implement Mecrisp, and this has been like 2-3 months
<tabemann>
of course I haven't debugged it at all, and it lacks key things like fixed-point arithmetic
<tpbsd>
he didnt copy anyone anyone else ;-)
<tabemann>
the only things I copied were the flash, clock, and serial code
<tpbsd>
hehe, it's a BIG task
<tpbsd>
it took him 2 years with MSP430, he basically ported it to cortex-m
<tpbsd>
and that was a lot quicker for him
<tabemann>
the parts that I didn't copy were by far easier, and the hardest part of those was the compilation code
<tpbsd>
I'm sure MSP430 is TONS easier than thumbx also
<tabemann>
I copied the parts I did basically because I didn't have a clue about how talking directly to the hardware worked
<tpbsd>
worth the agro ?
<tabemann>
it was worth licensing the code as GPL3
<tpbsd>
Mecrisp-Stellaris is very comprehensive, no outstanding bugs but it could do with a conditional branch improvement
<tabemann>
the conditional branch part is not copied at all from mecrisp-stellaris
<tpbsd>
one problem is that it errors on the thumb short conditional branches if theyre exceeded, it needs to be able to do 32 bit branching
<tpbsd>
interestingly the risc-v version can do 32 bit branching
<tabemann>
I wrote code so that on systems that support Thumb2 it does long (but not 32-bit) branching
<tpbsd>
matthias recently did a FFT Word and couldnt impliment it in Mecrisp-Stellaris because of the above issue
<tabemann>
*conditional branching
<tpbsd>
but he did it in mecrisp-quintus for risc-v
<tabemann>
note that there is a simple solution - break up your word
<tpbsd>
he's a small image fanatic, his msp430 Forth is 14kb
<tpbsd>
yeah, thats what I do, but maybe his FFT Word had special needs ?
<tabemann>
the main special need I can see is if data being communicated via the return stack
<tabemann>
which can't be done well when breaking up words
<tabemann>
anyways, I should really get to bed
<tpbsd>
FFT is well above my pay grade, so I cant comment
<tpbsd>
cya
<tabemann>
g'night
rdrop-exit has joined #forth
proteus-guy has quit [Remote host closed the connection]
<tpbsd>
39,87 C
<tpbsd>
103,88 F
<tpbsd>
ohh rein be here soon!
<tpbsd>
rain even!
jsoft has joined #forth
proteus-guy has joined #forth
dys has quit [Ping timeout: 260 seconds]
X-Scale` has joined #forth
X-Scale has quit [Ping timeout: 268 seconds]
X-Scale` is now known as X-Scale
dys has joined #forth
jsoft has quit [Ping timeout: 240 seconds]
xek has joined #forth
jsoft has joined #forth
iyzsong has quit [Ping timeout: 265 seconds]
iyzsong-x has joined #forth
jsoft has quit [Ping timeout: 268 seconds]
proteus-guy has quit [Ping timeout: 265 seconds]
rdrop-exit has quit [Quit: Lost terminal]
jsoft has joined #forth
tpbsd has quit [Read error: Connection reset by peer]