**** BEGIN LOGGING AT Fri Jun 12 02:59:58 2020 Jun 12 07:26:05 deepankarmaithan: Don't use the web interface for now, stick to PulseView Jun 12 09:26:59 Abhishek_: i am using the pulseView Jun 12 10:00:39 but my beagle wireless is not connected using usb i am connected to it using wifi. do you think that can be a problem Jun 12 10:01:04 I don't think so Jun 12 10:03:06 hmm Jun 12 10:03:39 I have a LED connected to PRU pin which is blinking. So it seems the pin is toggling well Jun 12 10:03:42 try sigrok-cli on the BeagleBone itself? Jun 12 10:04:08 sigrok-cli -d BeagleLogic something something Jun 12 10:04:33 https://beaglelogic.readthedocs.io/en/latest/first_capture.html Jun 12 10:05:50 thanks for the link trying now Jun 12 10:08:44 Abhishek_: Also i wrote some code to toggle r30 using some fucntions that i can later fetch get input from the driver. But using this code the Register value is not changing however when i run the code in codeblock using dummy r30 r31 the code works. Can you please look into it what am i missing. Meanwhile i try to see the sig cli Jun 12 10:08:44 https://github.com/deebot/Beaglebone-BidirectionBus/blob/master/ReadWritePRU.c Jun 12 10:09:40 this is PRU-GCC or CLPRU? Jun 12 10:10:46 THis is ClPRRU i couldnot find the header file that was includeed int he gcc code so couldnot understand how it is writing to register. so tried CLpru Jun 12 10:11:09 there's __R30 and __R31 if I remember correctly for R30 and R31 Jun 12 10:14:41 this header #include is used and defines he write calls but i couldnot find it write_r30(c & 1 ? 0xffff : 0x0000); this fucntion must be defined in there Jun 12 10:23:59 look in the clpru directory Jun 12 10:24:04 which clpru Jun 12 10:24:36 and find the directory and see the def of the function Jun 12 10:27:01 I could find out all the include files for clpru and the code i shared above compiles well on clpru but the issue was to find out the header whcih is used in prugcc code. Jun 12 10:27:09 Wireless booted to sd card Jun 12 10:27:17 now trying the cli Jun 12 10:46:26 beagle wireless suddenly stopped booting Jun 12 10:52:34 Abhishek_: i now finally have the beaglelogic working Jun 12 13:57:44 jkridner: lorforlinux tried to refactor into dtbo, but I get a FDT_ERR_NOTFOUND: https://pastebin.com/4TLsmy9k this is the dts file I wrote: https://github.com/NiklasWan/bb.org-overlays/blob/dev_gsoc_face/src/arm/BBAI_BB-BONE-FACE-8CH-00A0.dts Can you spot the error? Jun 12 14:22:31 nwan: I am having the same problem with the LCD4 cape overlay :( Jun 12 14:24:26 argh :D Jun 12 14:25:35 jkridner: Even if the overlay worked I will not be able to see anything on screen as VDD-5v pin on BBAI showing weird voltages (2.5-3.0), fixed that by cutting the VDD-5v trace and joining the SYS-5v ;) Jun 12 14:26:23 Which LCD4? Jun 12 14:26:37 nwan: try converting it to the older DT format it might work. Jun 12 14:27:02 Does it try to pull power off VDD_5V, instead of SYS_5V? Jun 12 14:27:08 4D4C (DT overlay name) Jun 12 14:27:35 @lorforlinux:matrix.org: yeah I also thought about that. I will try it out Jun 12 14:28:30 jkridner: this DT overlay https://github.com/NiklasWan/bb.org-overlays/blob/dev_gsoc_face/src/arm/BB-BONE-LCD4-01-00A1.dts Jun 12 14:29:46 Who is the manufaturer? Jun 12 14:29:53 where do I find the schematics? Jun 12 14:30:11 4D systems Jun 12 14:30:19 I think that is a really old overlay. Jun 12 14:31:25 datasheet -> https://4dsystems.com.au/mwdownloads/download/link/id/187/ Jun 12 14:31:50 sorry this is the overly i wrote https://github.com/NiklasWan/bb.org-overlays/blob/dev_gsoc_face/src/arm/BBAI_BB-BONE-LCD4-01-00A1.dts Jun 12 14:32:51 but i have to write BBAI_BB-BONE-4D4C-01-00A1.dts as my LCD using this overlay https://github.com/NiklasWan/bb.org-overlays/blob/dev_gsoc_face/src/arm/BB-BONE-4D4C-01-00A1.dts Jun 12 14:32:59 I guess https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BBAI_BB-BONE-LCD7-01-00A3.dts was debugged on AI. Jun 12 14:33:52 yes rcn-ee said he tested it on BBAI Jun 12 14:34:24 ugh! "The Adaptor board taps into the VDD_5V bus power on the BBB, which is connected to the DC Barrel Jack on the BBB. It will not receive power when the BBB is powered from USB, as the USB power goes via the BBB " Jun 12 14:34:38 VDD_5V is not supported by BeagleBone AI as an output. Jun 12 14:35:06 It's loading fine on the BBAI but the pwm pin is off (tried using an LED), pwm pin is working fine on BBB. Jun 12 14:35:42 "gen4-4DCAPEAdaptor is a Solder Jumper, which has 3 pads. By default, there is a track connecting the centre pad to the side marked VDD_5V. If SYS_5V is required instead, then this VDD_5V track must be cut between these 2 pads, and a solder blob be added instead between the centre pad and the pad marked SYS_5V." Jun 12 14:35:43 VDD_5V is surely connected to something but it's not 5V for sure. Jun 12 14:36:08 yes did that Jun 12 14:36:48 VDD_5V showing like 2.5V to 3V. Jun 12 14:36:50 oh. well, BBAI currently has a diode drop injected. Jun 12 14:37:07 The cape should be running from SYS_5V. Jun 12 14:37:35 VDD_5V should float. Jun 12 14:39:33 https://github.com/beagleboard/beaglebone-ai/issues/10 Jun 12 14:45:31 the max current draw for this LCD is 620mA at max brightness. Jun 12 14:46:09 it should work out without any problem if overlay works. Jun 12 14:47:21 what was the process of debugging? Jun 12 14:54:58 https://github.com/attractivechaos/klib I want to use this library, it has MIT license, I can use without any issue, right Jun 12 14:57:54 yes https://mit-license.org/ Jun 12 14:58:35 Okay cool, but readme says it covers under MIT License, repo doesnot include a license file. Jun 12 15:00:43 Is it necessary to include one? Jun 12 15:00:43 lorforlinux: changing dts to old syntax sadly did not work out Jun 12 15:02:50 nwan: the BBAI overlays written by rcn-ee loading without any problem, try loading them on your board. Maybe start adding your code piece by piece with using his code as template. Jun 12 15:04:16 lorforlinux: thanks. WIll try it out Jun 12 15:04:38 did your code worked when you added it to the beagleboneai DT? Jun 12 15:04:52 yes Jun 12 15:05:06 okay Jun 12 15:05:35 where are the AI overlays written by rcn-ee? I just find the ones you wrote Jun 12 15:06:05 Actually source code has license at top Jun 12 15:06:21 lorforlinux: ah found it Jun 12 20:32:50 jkridner: BBAI Ctag Face overlay is now working. I had to add a dt-binding for the dra7 clock config from kernel repo to the overlay repo, to get access to a symbol, I thought using DRA7_MCASP1_CLKCTRL is way more readable than just 0x30. This is my commit: https://github.com/NiklasWan/bb.org-overlays/commit/dd39dfb9c40421031d0ae916f603819e558a3c2e Jun 13 00:19:12 * lorforlinux[m]1 uploaded a video: VID_20200613_054614828.mp4 (17921KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/ZIFACaxjtwXtKtLLyJdbfuKq > Jun 13 00:20:03 jkridner: Servo cape DT overlay is done, demo with BBWL ^ Jun 13 00:21:39 one think I don't understand only 2 pwm devices are created when it loads, I couldn't figure out how to set all the 16 pwm pins at once. Jun 13 00:23:05 only `pca9685-pwm/2-0070/pwm/pwmchip9/`pwm9:0 & pwm9:1 are created when it loads how to enable all 16? Jun 13 00:26:30 this file -> linux/Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.txt says __The index 16 is the ALLCALL channel, that sets all PWM channels at the same time.__ but what index is that? Jun 13 00:52:47 In the video you can see that I am using power from barrel jack along with usb connect, The BBWL power led blinks and it doesn't boot up if I don't do that. Jun 13 00:55:43 After the power led becomes solid you can remove it, but you have to put power through barrel jack (just for a second) else no booting. Jun 13 00:56:25 It only happens when I use capes. Jun 13 01:17:25 Loads cape DT overlay is working fine no changes required, new servo cape overlay is here -> https://github.com/beagleboard/bb.org-overlays/pull/174 Jun 13 01:22:13 those were the newly written cape DT overlays, I have tested LCD4 cape, servo cape and loads cape on BBWL. I am going to test motorcape and relay cape today. Jun 13 01:23:01 I have to look for some hardware to test comms cape ;) Jun 13 01:29:19 Tested the relay cape on BBWL. Jun 13 02:32:48 Tested Motor cape on BBWL **** ENDING LOGGING AT Sat Jun 13 02:59:57 2020