ikarso has quit [Quit: Connection closed for inactivity]
jfsimon1981 has quit [Quit: Leaving]
jfsimon1981 has joined #beagle
<jfsimon1981>
Hi
ikarso has joined #beagle
<jfsimon1981>
is the beagle board working well in long time being turned on 100% duty ?
<set_>
Is it possible to use the uc2637n (controller) and lm1949m (driver(s)) w/ the PowerCape? I mean...
<jfsimon1981>
I remind having had troubles with a server running ssd type drive, where the drive did'nt like constant logs. although the beagle has a flash internal, i have no experience on long temr usage of them.
<set_>
Could I benefit from what the PowerCape offers in dedicated power supplies to handle these controllers and drivers?
* set_
waits internally!
<jfsimon1981>
i mean the read write errors on storage
<set_>
The drivers accept up to 8v but my 12v supply into the controller creates a 10v supply to the drivers. How would I go about creation of less voltage w/out a step down converter?
<set_>
This is a "no-issue" for a bit anyway, i.e. as the darlington transistor is not stocked!
<zmatt>
jfsimon1981: all flash storage of any kind will deteriorate with writes
ikarso has quit [Quit: Connection closed for inactivity]
kveremitz has quit [Read error: Connection reset by peer]
kveremitz has joined #beagle
<set_>
Is it possible to make a .h file w/ all or some of the #define directives for specific use on the am335x?
<set_>
I know it would be an endless file but just some items would be needed.
<set_>
Oh and for that darlington transistor, I ordered a couple that handle many in one package. So, if necessary, I can double up on trans. in the form of one chip. Lucky me. They had them by the plenty.
<set_>
1976 darlington trans. package updated in 2019. Ooh yea!
<jfsimon1981>
hi set, what do you mean more precisely regarding the header file ?
<set_>
Well, I have a header file for a type of M4 w/ all the registers that can be offered in the form of "#define" directives. I will share a line to show you.
<set_>
#define GPIO_PORTF_AHB_DATA_R (*((volatile unsigned long *)0x4005D3FC))
<set_>
So, I can use this file to call specific #define directives from the M4 registers for use.
<zmatt>
that has nothing to do with the M4 and everything to do with the rest of the chip
<set_>
Oh.
<set_>
That is just one line. It has nothing to do w/ programming, okay. But, the file is made for a reason right?
<zmatt>
that's not what I said
<set_>
I know that is not what you said.
<set_>
I was paraphrasing.
<zmatt>
badly, as usual
<set_>
Ha!
<zmatt>
it declares one register of one peripheral on whatever microcontroller you're looking at
<zmatt>
(in a way that's a bit ugly)
<set_>
Right. But why would they declare every memory mapped directive that the chip consisted of in 2013?
<zmatt>
??
<set_>
2013 or whatever year. It is a good M4 that has been around for years.
<set_>
The file obviously maps the hex to the region.
<zmatt>
what do you mean "why would they declare" them? to have a convenient way to read and write them obviously?
<set_>
Oh. But...could that not be done in the .c file?
<set_>
Oh. Okay. I got it.
<zmatt>
everything you can do in a .h file you can do in a .c file, a .h file is a fragment of C code meant to be reusable across different C files
<set_>
Right. Okay. Exactly but the file is well over 5000 lines. Okay. Understood.
<zmatt>
and you really don't want those 5000 lines in your actual .c file
<set_>
Aw.
<zmatt>
this header file is almost certainly machine-generated
<set_>
Oh. Maybe.
<set_>
This is what I did not understand.
<set_>
B/c...in reality, there must be another way outside of typing that many lines one by one.
<set_>
Plus learning the hex definition along w/ the memory mapped portions, it cannot be easy.
<set_>
Machine-generated!
<set_>
Okay, we are getting somewhere. At some point, someone had to enter them in right?
<set_>
Or is it just randomly entered by machines and then at some point another person runs over and says, "This is called PORTA_TYPE_DEFI"?
<set_>
Anyway...I will research this idea. I see Hackaday has some interesting ideas.
<set_>
@zmatt: Do you have a machine generated .h file for the am335x?
<set_>
No issue if so or not, I just thought it would be neat to have this so-called .h file for promoting software builds.
<jfsimon1981>
set, what are you trying to do with the header question, which isn't yet available in the dev library ?
<set_>
Oh. Um, random programming in C/C++ to build on my knowledge.
<set_>
I like learning what I can when possible and it is Winter, sort of. It will get cold later today or in a bit.
<zmatt>
there's no such single header file for the am335x, just bits for different peripherals/subsystems. there's generally no circumstance where you'd have a need or desire to include a header file representing the _entire_ am335x
<set_>
Right. I understand. It is a very large chip.
<set_>
It has many facets to it. I am not discounting this fact.
<zmatt>
and also, there's usually an MMU that remaps addresses, so it's not even possible to make macros like these because the actual address may not be known at compile-time
<set_>
Hmm. Okay. No issue. Winter time makes for no grass growing circumstances. So, I will have time!
<set_>
Dang it. So, mapping addresses is out for me. Okay.
<set_>
Well, 85 to 33 in two hours. There must be a storm brewing. Winter! No grass!
<set_>
@zmatt: I am not sure exactly how I can program yet. This is the concern so far. If I was to use a specified set of .h file w/ preprocessor directives and the exact hex value for each, would mapping be easier for me?
<jfsimon1981>
set
<set_>
yes?
<jfsimon1981>
you can for example look into headers. If logged into a beagle:
<jfsimon1981>
less /var/lib/cloud9/common/prugpio.h
<set_>
Aw!
<set_>
I figured this much.
<zmatt>
it should be noted that this is only relevant for pru, and even then accessing peripherals from pru requires exercising a great deal of care
<jfsimon1981>
af well you can simply search for and extract a complete header list:
<jfsimon1981>
It does call find and looks for *.h recursively starting from root.
<set_>
Nice.
<jfsimon1981>
">" is the redirect to file
<set_>
right. What is bb-code-server?
<jfsimon1981>
s this a search result ?
<set_>
Yes. I found /opt/bb-code-server/ .
<jfsimon1981>
ok
<jfsimon1981>
that's a local application
<set_>
Oh. Like beaglecfg?
<jfsimon1981>
quite no idea, there's really a long list of applications and headers you'll find there
<set_>
Right.
<set_>
It is.
<jfsimon1981>
that's basically everything, from linux to what the manufacturer developped and provided (TI people)
<set_>
Oh.
<set_>
Nice.
<jfsimon1981>
From the names and location you can make a guess. Then you can open some headers and discover the registers, adresses, so on
<set_>
Well, I guess since it is just me, I may not look at that file again. Who knows really? I might be able to use it. OH!
<set_>
Nice! Double nice!
<jfsimon1981>
i quickly checked a few gpio related headers and clock as well
<set_>
Hmm.
<set_>
You are being awful nice. What do you need?
<set_>
I am just playin' around. Sorry to be so blunt.
<jfsimon1981>
it's interesting but probably difficult to use. If you want to develop an application using c/c++, usually all you need is a few library, call them as needed.
<set_>
Right!
<set_>
Now, you taught me a lot. Geesh. Now, I have to do something to make you proud. Aw!
<jfsimon1981>
Are you developping on Windows dektop ?
<set_>
On the BBBW...
<set_>
I mean, yes, I use Windows at times.
<jfsimon1981>
ok
<set_>
Is Windows Embedded coming back into play?
<set_>
I remember someone saying, in here actually, that Microsoft was blabbing finally on their system OS procedures.
<set_>
This would make it Open Source!
<jfsimon1981>
honestly windows apparently does'nt like to much being embedded. I think they have tried and abandonned, it was a hack. I may be wrong, i don't follow win dev too much
<set_>
Right.
<set_>
They did it for a bit.
<set_>
Then, they started to charge.
<jfsimon1981>
do you code in c++ ?
<set_>
Sort of...not well. I do not research enough to know how to do it w/ ease. I read up on my books but they are a "means to an end." They never teach me what I want to choose to learn.
<set_>
It is like a book ago, I was held back to random math. Then, another book was about random engineering aspects on how programming can help any engineer figure out their math equations easily.
<set_>
I have that Big Book on C++ by Stroustrup.
<set_>
I just have not gone into it in detail again.
<set_>
Yep.
<jfsimon1981>
i take just 1 minute of your time, are you logged in the beagle now ?