**** BEGIN LOGGING AT Sun Jan 02 02:59:56 2022 Jan 02 09:26:46 Hi Jan 02 09:37:05 is the beagle board working well in long time being turned on 100% duty ? Jan 02 09:37:34 Is it possible to use the uc2637n (controller) and lm1949m (driver(s)) w/ the PowerCape? I mean... Jan 02 09:38:00 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. Jan 02 09:38:24 Could I benefit from what the PowerCape offers in dedicated power supplies to handle these controllers and drivers? Jan 02 09:38:33 * set_ waits internally! Jan 02 09:38:50 i mean the read write errors on storage Jan 02 09:51:06 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? Jan 02 10:19:17 This is a "no-issue" for a bit anyway, i.e. as the darlington transistor is not stocked! Jan 02 11:18:36 jfsimon1981: all flash storage of any kind will deteriorate with writes Jan 02 12:12:23 Is it possible to make a .h file w/ all or some of the #define directives for specific use on the am335x? Jan 02 12:12:51 I know it would be an endless file but just some items would be needed. Jan 02 12:16:03 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. Jan 02 12:18:05 1976 darlington trans. package updated in 2019. Ooh yea! Jan 02 12:20:19 hi set, what do you mean more precisely regarding the header file ? Jan 02 12:23:44 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. Jan 02 12:24:39 #define GPIO_PORTF_AHB_DATA_R (*((volatile unsigned long *)0x4005D3FC)) Jan 02 12:25:34 So, I can use this file to call specific #define directives from the M4 registers for use. Jan 02 12:26:02 that has nothing to do with the M4 and everything to do with the rest of the chip Jan 02 12:26:18 Oh. Jan 02 12:26:47 That is just one line. It has nothing to do w/ programming, okay. But, the file is made for a reason right? Jan 02 12:27:31 that's not what I said Jan 02 12:27:40 I know that is not what you said. Jan 02 12:27:48 I was paraphrasing. Jan 02 12:27:54 badly, as usual Jan 02 12:27:57 Ha! Jan 02 12:28:17 it declares one register of one peripheral on whatever microcontroller you're looking at Jan 02 12:28:39 (in a way that's a bit ugly) Jan 02 12:29:11 Right. But why would they declare every memory mapped directive that the chip consisted of in 2013? Jan 02 12:29:24 ?? Jan 02 12:30:08 2013 or whatever year. It is a good M4 that has been around for years. Jan 02 12:31:04 The file obviously maps the hex to the region. Jan 02 12:31:08 what do you mean "why would they declare" them? to have a convenient way to read and write them obviously? Jan 02 12:31:29 Oh. But...could that not be done in the .c file? Jan 02 12:31:46 Oh. Okay. I got it. Jan 02 12:32:12 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 Jan 02 12:32:37 Right. Okay. Exactly but the file is well over 5000 lines. Okay. Understood. Jan 02 12:32:49 and you really don't want those 5000 lines in your actual .c file Jan 02 12:32:55 Aw. Jan 02 12:32:57 this header file is almost certainly machine-generated Jan 02 12:33:03 Oh. Maybe. Jan 02 12:33:12 This is what I did not understand. Jan 02 12:33:33 B/c...in reality, there must be another way outside of typing that many lines one by one. Jan 02 12:34:09 Plus learning the hex definition along w/ the memory mapped portions, it cannot be easy. Jan 02 12:34:34 Machine-generated! Jan 02 12:34:50 Okay, we are getting somewhere. At some point, someone had to enter them in right? Jan 02 12:39:16 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"? Jan 02 12:40:19 Anyway...I will research this idea. I see Hackaday has some interesting ideas. Jan 02 12:51:22 @zmatt: Do you have a machine generated .h file for the am335x? Jan 02 12:53:07 No issue if so or not, I just thought it would be neat to have this so-called .h file for promoting software builds. Jan 02 13:00:06 set, what are you trying to do with the header question, which isn't yet available in the dev library ? Jan 02 13:00:57 Oh. Um, random programming in C/C++ to build on my knowledge. Jan 02 13:01:40 I like learning what I can when possible and it is Winter, sort of. It will get cold later today or in a bit. Jan 02 13:01:41 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 Jan 02 13:02:18 Right. I understand. It is a very large chip. Jan 02 13:02:35 It has many facets to it. I am not discounting this fact. Jan 02 13:02:59 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 Jan 02 13:03:36 Hmm. Okay. No issue. Winter time makes for no grass growing circumstances. So, I will have time! Jan 02 13:05:11 Dang it. So, mapping addresses is out for me. Okay. Jan 02 13:06:10 Well, 85 to 33 in two hours. There must be a storm brewing. Winter! No grass! Jan 02 13:07:39 @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? Jan 02 13:10:24 set Jan 02 13:10:37 yes? Jan 02 13:10:42 you can for example look into headers. If logged into a beagle: Jan 02 13:10:43 less /var/lib/cloud9/common/prugpio.h Jan 02 13:10:56 Aw! Jan 02 13:10:59 I figured this much. Jan 02 13:11:22 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 Jan 02 13:11:26 af well you can simply search for and extract a complete header list: Jan 02 13:11:44 sudo find / -name "*.h" > headers_search Jan 02 13:11:54 Nice. Okay. Jan 02 13:11:59 and search for specifics in it Jan 02 13:12:01 | Jan 02 13:12:08 less headers_search Jan 02 13:12:15 Okay. Jan 02 13:12:48 When viewing, type "/gpio" enter, and "n" for next, to scroll down and look for all headers with gpio in the name. Jan 02 13:12:59 Okay. Jan 02 13:13:41 That's one example how you can dive into the file system. Then view the header file with "less". Some contain internal addresses. Jan 02 13:14:00 I am booting now. Jan 02 13:18:58 Those are some neat commands. Jan 02 13:19:12 I was unaware of / -name Jan 02 13:19:31 It did not brake my system either! Jan 02 13:20:41 that's the wole commane "sudo find / -name "*.h" > headers_search" Jan 02 13:20:59 I put the file as MyFile.txt. Jan 02 13:21:04 It does call find and looks for *.h recursively starting from root. Jan 02 13:21:12 Nice. Jan 02 13:21:25 ">" is the redirect to file Jan 02 13:22:00 right. What is bb-code-server? Jan 02 13:22:50 s this a search result ? Jan 02 13:23:36 Yes. I found /opt/bb-code-server/ . Jan 02 13:23:53 ok Jan 02 13:24:14 that's a local application Jan 02 13:24:28 Oh. Like beaglecfg? Jan 02 13:24:58 quite no idea, there's really a long list of applications and headers you'll find there Jan 02 13:25:09 Right. Jan 02 13:25:13 It is. Jan 02 13:25:29 that's basically everything, from linux to what the manufacturer developped and provided (TI people) Jan 02 13:25:46 Oh. Jan 02 13:25:47 Nice. Jan 02 13:26:16 From the names and location you can make a guess. Then you can open some headers and discover the registers, adresses, so on Jan 02 13:26:28 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! Jan 02 13:26:32 Nice! Double nice! Jan 02 13:26:53 i quickly checked a few gpio related headers and clock as well Jan 02 13:27:02 Hmm. Jan 02 13:27:10 You are being awful nice. What do you need? Jan 02 13:27:43 I am just playin' around. Sorry to be so blunt. Jan 02 13:27:49 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. Jan 02 13:27:59 Right! Jan 02 13:28:24 Now, you taught me a lot. Geesh. Now, I have to do something to make you proud. Aw! Jan 02 13:28:42 Are you developping on Windows dektop ? Jan 02 13:28:56 On the BBBW... Jan 02 13:29:05 I mean, yes, I use Windows at times. Jan 02 13:29:10 ok Jan 02 13:29:38 Is Windows Embedded coming back into play? Jan 02 13:30:11 I remember someone saying, in here actually, that Microsoft was blabbing finally on their system OS procedures. Jan 02 13:30:20 This would make it Open Source! Jan 02 13:30:25 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 Jan 02 13:30:38 Right. Jan 02 13:30:43 They did it for a bit. Jan 02 13:30:48 Then, they started to charge. Jan 02 13:31:08 do you code in c++ ? Jan 02 13:31:57 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. Jan 02 13:33:07 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. Jan 02 13:33:56 I have that Big Book on C++ by Stroustrup. Jan 02 13:34:07 I just have not gone into it in detail again. Jan 02 13:35:14 Yep. Jan 02 13:35:24 i take just 1 minute of your time, are you logged in the beagle now ? Jan 02 13:35:25 Do you handle C/C++ well? Jan 02 13:35:29 Yes. Jan 02 13:35:47 go to the home dir and type Jan 02 13:35:49 I am logged in and rambling. Jan 02 13:35:50 wget http://jean-francois-simon.com/share/set/prime.tgz Jan 02 13:35:58 Okay. Jan 02 13:36:06 to go home just type "cd" enter Jan 02 13:36:22 What is supposed to happen? Jan 02 13:36:31 it will download an archive file Jan 02 13:36:35 Oh. Jan 02 13:36:38 I get that idea. Jan 02 13:36:43 which is a source to calculate prime in c++, very small program Jan 02 13:36:54 Oh. Jan 02 13:37:03 let me know once it's done Jan 02 13:37:08 I am sorry for disturbing you. Jan 02 13:37:13 I am not going to do it. Jan 02 13:37:23 It is not against you or anything. Jan 02 13:37:34 I am tired and my mom is calling. HA! Jan 02 13:37:42 right Jan 02 13:37:45 All jokes aside, thank you. Jan 02 13:37:48 np Jan 02 13:38:25 So, are we moving on? Jan 02 13:38:45 what do u mean ? Jan 02 13:38:54 I do not know what I mean. Jan 02 13:38:56 Oops. Jan 02 13:39:02 Okay for now. I will break. Jan 02 13:39:24 right see you Jan 02 13:39:32 Later for now! Jan 02 13:39:57 that program just calculated a primer number, for instance you write "prime 10" it returns the next prime above 10 Jan 02 13:40:13 (ie 11) Jan 02 13:43:56 nice. Jan 02 13:44:58 basically i sent you the source you could compile and run it, that's all Jan 02 13:45:29 Okay. No issue. I just am scared of random things the odder I get. Jan 02 13:46:53 wget is a a download command Jan 02 13:46:57 I know. Jan 02 13:47:07 gz is an extract command Jan 02 13:47:17 wget! I am used to it. I use tar. Jan 02 13:48:56 gzip! Jan 02 13:49:44 ok Jan 02 13:50:00 I am foolish and silly, i.e. to the point of no return! Jan 02 13:53:07 http://jean-francois-simon.com/share/set/prime.cpp Jan 02 14:02:14 I got a site too! Jan 02 14:02:29 It is not a nice as your site though. It is for fun so far. Jan 02 14:03:47 This cold is kickin' in. The wind is blowing around downed fridges! Jan 02 14:03:57 Back to the BBB! **** ENDING LOGGING AT Mon Jan 03 02:59:57 2022