On Sun, Aug 9, 2020 at 8:15 PM, Graham Stott<gbcs...@comcast.net> wrote:
If (as Dennis asked) you are asking about this program for a bare-board (no OS) configuration, then I suggest you look at TI's starterware. It has routines for I2C and GPIOs that you can use from the C program to provide the functionality you are asking for. You can use CCS for the development. There are videos online for "getting started" with starterware and CCS.
Graham
P.S Dennis - FYI, I have a Beaglebone white and a PocketBeagle and I only run starterware on them. I do read this forum often.
-----Original Message-----
From: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] On Behalf Of Dennis Lee Bieber
Sent: Sunday, August 09, 2020 11:08 AM
To: Beagleboard <beagl...@googlegroups.com>
Subject: [beagleboard] Re: I2C driver for a PCA9685 servo controller board for s90 servos
On Wed, 5 Aug 2020 18:36:12 -0700 (PDT), in gmane.comp.hardware.beagleboard.user
marcbob34-Re5JQE...@public.gmane.org wrote:
>Can anyone provide a C program that can be run in CCS that would
>program an I2C controller on the BBB board to generate the desired
>clock frequency signal and the required data signals on the I2C bus.
>
>
>Part 1. Program the device to generate signals to turn LED15 to full ON.
>Should be measurable voltage from the number 15 signal pin on the servo
>board.
>
>Part 2. Develop commands you send to to intialize it for the
>correct frequency for your servo, set up a timer on the BBB to control
>delays, and intialize the BBB User LEDs.
The phrasing of this sounds very much like it is some sort of homework assignment.
Doing someone else's homework is frowned upon in many forums. The mention of CCS also complicates matters in that CCS supports bare-board development (using TI's SDK, I believe) and maybe Linux development.
If running under Linux, there are native compilers which run on the BBB, though without an IDE (especially if one hasn't installed X-Window system). Also one can set up a cross-development environment (easiest to be running in a desktop Linux -- set up Debian in Oracle VirtualBox if running on a Windows system... Instructions for cross-development, including configuring Eclipse, are in Chapter 7 of Molloy's Exploring Beaglebone 2nd Ed [or use his Exploring Raspberry-Pi -- chapter 7 is practically identical).
So first: Are you talking about a bare-board (no OS) configuration or an application to run under Linux? I don't recall anyone on the forum that regularly works with bare-board -- there is just so much that has to be set up just to start a program running.
Second: Show us YOUR code and explain what doesn't seem to be working with it. And don't submit the equivalent of
#include <stdio>
void main(argc, *argv)
{
/* need help here */
}
We can help correct your attempts, but won't write the code for you.
Providing a link to the documentation for your peripheral board would also have been useful.
Heh -- I'd probably start with the out-of-stock Adafruit board, and use Python via the Adafruit_Blinka compatibility library to use their CircuitPython PCA9685 module.
--
Dennis L Bieber
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/4dd0jfd9hajh7649m43sun2j6t02ti9a1p%404ax.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/000501d66eb3%24a5aa96b0%24f0ffc410%24%40comcast.net.
The code you copied below seems to be incomplete. After the routine “set_slave_addr” and before the comment “//P9 Connector settings”, I believe there is missing code. I therefore cannot tell if your setup code is complete.
Graham
From: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] On Behalf Of marc...@gmail.com
Sent: Saturday, August 15, 2020 2:35 PM
To: BeagleBoard <beagl...@googlegroups.com>
Subject: [beagleboard] Re: I2C driver for a PCA9685 servo controller board for s90 servos
So I have been working on this on my own time, I am a potential CE student. This was an assignment for someone who gave it to me along with caped BBB. I am running barebones using CCS and a TI XDS100v2 USB Debug Probe/CortxA8 sim. They wrote this program as an LCD driver using the I2C1 bus from the BBB.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/5a0fb22d-8c0b-4c1e-8e90-6576aba1717eo%40googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit
On Sat, Aug 15, 2020 at 10:18 PM, marc...@gmail.com<marc...@gmail.com> wrote:
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit
I did a quick review of the set up part of the code you posted. The code is not complete. It is missing some clocks setup.
You should download the TI AM335x Technical Reference manual. I have version spruh73q. Look at the picture on page 1563. You will see that the L4_per is connected to the L3S unit. Now look at the picture on page 1565. You will see the I2C2 is on the L4 peripheral bus (L4_per). So you need to enable the clocks for both the L3s and the L4 unit to be able to use I2C2.
I did not look at any of the other code, but I think the value for the pin mux should be 0x33. That turns on the pull up.
There is a lot of great information in the Reference manual, so happy reading and coding.
Graham
From: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] On Behalf Of marc...@gmail.com
Sent: Saturday, August 15, 2020 5:27 PM
To: BeagleBoard <beagl...@googlegroups.com>
Subject: [beagleboard] Re: I2C driver for a PCA9685 servo controller board for s90 servos
You are right the code that is missing is
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/d0cbb043-6e61-4bb4-b93b-55dde349123fo%40googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit