Re: [Emc-users] STM32 Blue Pill --> distance between pins

2019-03-13 Thread Jon Elson
On 03/12/2019 10:25 PM, Gene Heskett wrote: Here, I don't think I communicated that my problems were in the math to properly space the slots the ATS-667's were nestled in. Purely a mechanical mistake in carving the slots they hide in. I didn't grok that half a tooth spacing was actually 180

Re: [Emc-users] STM32 Blue Pill --> distance between pins

2019-03-12 Thread Gene Heskett
On Tuesday 12 March 2019 18:40:49 Chris Albertson wrote: > > > So a Pi with an external STM32 may well send step/dir signals or > > > SPI based messages to the driver but tracking that spindle encoder > > > for threading is a bit more intensive. > > The STM32 chip has hardware quadrature

Re: [Emc-users] STM32 Blue Pill --> distance between pins

2019-03-12 Thread Chris Albertson
> > So a Pi with an external STM32 may well send step/dir signals or SPI > > based messages to the driver but tracking that spindle encoder for > > threading is a bit more intensive. The STM32 chip has hardware quadrature decoders. These are a set of flip-flops and counters that exist on the

Re: [Emc-users] STM32 Blue Pill

2019-03-11 Thread Nicklas Karlsson
> About the ICE, all ARM processors have hardware debuggers built-in. > This helps a LOT with the case you described where you must > debugging in the field. Just any notebook PC and a USB cable. Debugger for ARM is good. Trace function is really good then available, printf(...) is often

Re: [Emc-users] STM32 Blue Pill --> Microchip pin configuration

2019-03-11 Thread Nicklas Karlsson
> Too true. The level of support for Microchip still exceed many of the other > systems. Having said that I'd still rather use MPLAB-8 compared to MPLAB-X > but I can see why Microchip had to go in that direction. ... I remember Microchip Micro controllers have a lot more freedom then it come

Re: [Emc-users] STM32 Blue Pill

2019-03-11 Thread Nicklas Karlsson
> ... > I upgraded the System Workbench for STM32 on my WIN-7 system and tried for > over an hour to create a simple Hello World Project. It's been years since I > touched the ST family. ... Now I think think it work really well but remember I had to struggle a while before. I prefer the new

Re: [Emc-users] STM32 Blue Pill

2019-03-11 Thread Chris Albertson
On Sun, Mar 10, 2019 at 8:30 PM John Dammeyer wrote: > > > > > -Original Message- > > From: Chris Albertson [mailto:albertson.ch...@gmail.com] > > > > What market share gives a product familty is suport for a while eco > > system. For example I think the basic Arduino is not the best or

Re: [Emc-users] STM32 Blue Pill --> boot loader

2019-03-10 Thread Kirk Wallace
On 3/10/19 6:25 PM, Kirk Wallace wrote: Thank you for the tips. I was hoping to make a webpage documenting what I have tried so far in more detail. Maybe it will get done tonight. Just in case of interest, here is what I have started: http://wallacecompany.com/STM32_Blue_Pill/ -- Kirk

Re: [Emc-users] STM32 Blue Pill

2019-03-10 Thread John Dammeyer
> -Original Message- > From: Chris Albertson [mailto:albertson.ch...@gmail.com] > > What market share gives a product familty is suport for a while eco > system. For example I think the basic Arduino is not the best or > most usfull platform but because it is so popular there is so

Re: [Emc-users] STM32 Blue Pill --> distance between pins

2019-03-10 Thread Gene Heskett
On Sunday 10 March 2019 15:45:06 John Dammeyer wrote: > > -Original Message- > > From: Nicklas Karlsson [mailto:nicklas.karlsso...@gmail.com] > > On Sun, 10 Mar 2019 11:57:53 -0500 > > > > Jon Elson wrote: > > > On 03/10/2019 05:18 AM, Nicklas Karlsson wrote: > > > >> Hey Chris, > > > >>

Re: [Emc-users] STM32 Blue Pill

2019-03-10 Thread Chris Albertson
> BUILD SUCCESSFUL (total time: 4s) > Loading code from > C:/Users/john/MPLABXProjects/HelloWorld.X/dist/default/production/HelloWorld.X.production.hex... > Loading completed > > > No errors. > > Really no reason to continue with STM32 development when the PIC32 MPL

Re: [Emc-users] STM32 Blue Pill --> boot loader

2019-03-10 Thread Kirk Wallace
Thank you for the tips. I was hoping to make a webpage documenting what I have tried so far in more detail. Maybe it will get done tonight. (Darn I can't hear myself type -- it's raining again.) On 3/10/19 4:27 PM, Chris Albertson wrote: On Sun, Mar 10, 2019 at 3:23 AM Nicklas Karlsson

Re: [Emc-users] STM32 Blue Pill --> boot loader

2019-03-10 Thread Chris Albertson
On Sun, Mar 10, 2019 at 3:23 AM Nicklas Karlsson wrote: > > > Which boot loader? I got my ST-Link dongle to load a couple of > > bootloader files but neither seemed to work. Do you mean that the boot loader loaded but did not run, maybe have a bug or that you could not load the bootloader?

Re: [Emc-users] STM32 Blue Pill

2019-03-10 Thread John Dammeyer
orld.X.production.hex... Loading completed No errors. Really no reason to continue with STM32 development when the PIC32 MPLABX is that easy. John > -Original Message- > From: Chris Albertson [mailto:albertson.ch...@gmail.com] > Sent: March-10-19 2:40 PM > To: Enhanced Ma

Re: [Emc-users] STM32 Blue Pill --> multicore isolation

2019-03-10 Thread Chris Albertson
This is also a good reason to use Ethernet (or Ethercat). All Ethernet cables are galvanically isolated by transformers. I think this is a little known fact, Ethernet uses magnetic isolation to prevent ground loops. This is kind of a big deal in a large system. Some types of signals just

Re: [Emc-users] STM32 Blue Pill

2019-03-10 Thread Chris Albertson
Yes the PRU is unique. This is both good and bad. Bad because using it locks you to Texas Instruments "forever" Good because the PRU bandwidth is very good because of the shared memory. As for debugging. The STM32 has that, hardware breakpoint and all. The STM32 now has about 2/3 of the

Re: [Emc-users] STM32 Blue Pill --> distance between pins

2019-03-10 Thread John Dammeyer
; From: Nicklas Karlsson [mailto:nicklas.karlsso...@gmail.com] > Sent: March-10-19 1:25 PM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] STM32 Blue Pill --> distance between pins > > > > ... > > Jon, > > You make a very good point. Why bother,

Re: [Emc-users] STM32 Blue Pill --> distance between pins

2019-03-10 Thread Nicklas Karlsson
> > ... > Jon, > You make a very good point. Why bother, with the new 32 bit controllers that > do so much even bother with the antiquated idea that the LinuxCNC PC should > close the loop on positioning. Running encoders from a servo motor back into > the PC to some sort of controller board

Re: [Emc-users] STM32 Blue Pill --> distance between pins

2019-03-10 Thread Jon Elson
On 03/10/2019 01:24 PM, Nicklas Karlsson wrote: On Sun, 10 Mar 2019 11:57:53 -0500 Jon Elson wrote: Charles Steinkuehler wrote a general driver for Machinekit that uses the PRU for step generation, PWM and encoder input. But why use a PRU then this kind of hardware is usually part of the

Re: [Emc-users] STM32 Blue Pill --> distance between pins

2019-03-10 Thread John Dammeyer
> -Original Message- > From: Nicklas Karlsson [mailto:nicklas.karlsso...@gmail.com] > On Sun, 10 Mar 2019 11:57:53 -0500 > Jon Elson wrote: > > > On 03/10/2019 05:18 AM, Nicklas Karlsson wrote: > > >> Hey Chris, > > >> > > >> AFAIK, the Pi has better HDMI support compared to the

Re: [Emc-users] STM32 Blue Pill --> multicore isolation

2019-03-10 Thread Nicklas Karlsson
> > -Original Message- > > From: Nicklas Karlsson [mailto:nicklas.karlsso...@gmail.com] > > > > -Original Message- > > > > From: Chris Albertson [mailto:albertson.ch...@gmail.com] > > > > > > > > > > The STM32 has no problem with MHz level bit flipping. Reading or > > > >

Re: [Emc-users] STM32 Blue Pill --> distance between pins

2019-03-10 Thread Nicklas Karlsson
On Sun, 10 Mar 2019 11:57:53 -0500 Jon Elson wrote: > On 03/10/2019 05:18 AM, Nicklas Karlsson wrote: > >> Hey Chris, > >> > >> AFAIK, the Pi has better HDMI support compared to the Beagle but then it > >> was designed more for multimedia. The Beagle PRUs have the advantage that > >> they

Re: [Emc-users] STM32 Blue Pill --> distance between pins

2019-03-10 Thread John Dammeyer
> -Original Message- > From: Jon Elson [mailto:el...@pico-systems.com] > Sent: March-10-19 9:58 AM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] STM32 Blue Pill --> distance between pins > > On 03/10/2019 05:18 AM, Nicklas Karlss

Re: [Emc-users] STM32 Blue Pill --> distance between pins

2019-03-10 Thread Jon Elson
On 03/10/2019 05:18 AM, Nicklas Karlsson wrote: Hey Chris, AFAIK, the Pi has better HDMI support compared to the Beagle but then it was designed more for multimedia. The Beagle PRUs have the advantage that they have access to some of the Beagle Processor RAM. That gives them a bit of an

Re: [Emc-users] STM32 Blue Pill --> boot loader

2019-03-10 Thread Nicklas Karlsson
On Sat, 9 Mar 2019 14:48:28 -0800 Kirk Wallace wrote: > On 3/8/19 11:55 PM, Chris Albertson wrote: > > The easy way to program a "Blue Pill" is with the Arduino IDE. > ... > > The way you program this is to just connect them to the USB port like an > > Arduino. But the key is > > you need to

Re: [Emc-users] STM32 Blue Pill --> distance between pins

2019-03-10 Thread Nicklas Karlsson
> Hey Chris, > > AFAIK, the Pi has better HDMI support compared to the Beagle but then it was > designed more for multimedia. The Beagle PRUs have the advantage that they > have access to some of the Beagle Processor RAM. That gives them a bit of an > advantage over the PI/32 bit hybrid

Re: [Emc-users] STM32 Blue Pill --> multicore isolation

2019-03-10 Thread Nicklas Karlsson
> > -Original Message- > > From: Chris Albertson [mailto:albertson.ch...@gmail.com] > > > > The STM32 has no problem with MHz level bit flipping. Reading or > > creating is MHz level is not hard. > > And the Pi3 has to be about the most well understood and documented > > machines on

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread Gene Heskett
On Saturday 09 March 2019 16:49:34 Chris Albertson wrote: > On Sat, Mar 9, 2019 at 12:39 PM Gene Heskett wrote: > > Thats doing pretty good, but you're in the realm of on-offs no one > > else can fix too. I find thats the major objection to the pi, no one > > knows how it works but me. > >

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread Kirk Wallace
On 3/8/19 11:55 PM, Chris Albertson wrote: The easy way to program a "Blue Pill" is with the Arduino IDE. ... The way you program this is to just connect them to the USB port like an Arduino. But the key is you need to first load a boot loader into the chip. ... Which boot loader? I got my

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread John Dammeyer
> -Original Message- > From: Chris Albertson [mailto:albertson.ch...@gmail.com] > The STM32 has no problem with MHz level bit flipping. Reading or > creating is MHz level is not hard. > And the Pi3 has to be about the most well understood and documented > machines on Earth. they >

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread John Dammeyer
Hey Chris, AFAIK, the Pi has better HDMI support compared to the Beagle but then it was designed more for multimedia. The Beagle PRUs have the advantage that they have access to some of the Beagle Processor RAM. That gives them a bit of an advantage over the PI/32 bit hybrid using SPI. > >

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread Chris Albertson
On Sat, Mar 9, 2019 at 12:39 PM Gene Heskett wrote: > > Thats doing pretty good, but you're in the realm of on-offs no one else > can fix too. I find thats the major objection to the pi, no one knows > how it works but me. > Sorry, but I completely missed this comment? "the realm of on-offs

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread Gene Heskett
On Saturday 09 March 2019 14:12:43 Chris Albertson wrote: > Gene, > > Yes, the Pi has slow I/O but this thread is about the "Blue Pill" > board that costs $2.60 with free shipping. > > SO what I do is build a hybrid. The cheap little STM32F103 has many > I/O pins that are robust and even 5

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread Nicklas Karlsson
> ... The PID loops work fine even > using low-end STM32 chips Yes these chips are really good. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread Chris Albertson
Gene, Yes, the Pi has slow I/O but this thread is about the "Blue Pill" board that costs $2.60 with free shipping. SO what I do is build a hybrid. The cheap little STM32F103 has many I/O pins that are robust and even 5 volt tolerent. I use the STM32 to connet to the world and then SPI to

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread Chris Albertson
THat is the neat thing about the STM32 range. There is the take $2 chip on the "bluepill" and also the M4 chips with 5X faster clocks and FPUs Here is a nice chart showing STM32 products sorted be speed, power and size. None of these cost much mover $20.The larger ones are Arduino Ono pin

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread Gene Heskett
On Saturday 09 March 2019 08:50:19 grumpy--- via Emc-users wrote: > On Sat, 9 Mar 2019, Gene Heskett wrote: > > On Saturday 09 March 2019 07:53:05 Nicklas Karlsson wrote: > >>> On Sat, 9 Mar 2019 at 11:59, Nicklas Karlsson > >>> > >>> wrote: > I think CPU Cortex-M4 is a lot slower than

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread grumpy--- via Emc-users
On Sat, 9 Mar 2019, Gene Heskett wrote: On Saturday 09 March 2019 07:53:05 Nicklas Karlsson wrote: On Sat, 9 Mar 2019 at 11:59, Nicklas Karlsson wrote: I think CPU Cortex-M4 is a lot slower than arduino Really? That isn't my experience. Given that the M4 is running at 120MHz and the

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread Gene Heskett
On Saturday 09 March 2019 07:53:05 Nicklas Karlsson wrote: > > On Sat, 9 Mar 2019 at 11:59, Nicklas Karlsson > > > > wrote: > > > I think CPU Cortex-M4 is a lot slower than arduino > > > > Really? That isn't my experience. Given that the M4 is running at > > 120MHz and the Arduino is 8MHz and

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread andy pugh
On Sat, 9 Mar 2019 at 12:55, Nicklas Karlsson wrote: > > Really? That isn't my experience. Given that the M4 is running at > > 120MHz and the Arduino is 8MHz and both are running the same code? > > No I got it wrong and mixed it with raspberry, I think. Ah, right. I agree that it might be a but

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread Nicklas Karlsson
> On Sat, 9 Mar 2019 at 11:59, Nicklas Karlsson > wrote: > > > I think CPU Cortex-M4 is a lot slower than arduino > > Really? That isn't my experience. Given that the M4 is running at > 120MHz and the Arduino is 8MHz and both are running the same code? No I got it wrong and mixed it with

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread andy pugh
On Sat, 9 Mar 2019 at 11:59, Nicklas Karlsson wrote: > I think CPU Cortex-M4 is a lot slower than arduino Really? That isn't my experience. Given that the M4 is running at 120MHz and the Arduino is 8MHz and both are running the same code? -- atp "A motorcycle is a bicycle with a pandemonium

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread Nicklas Karlsson
> On Sat, 9 Mar 2019 at 05:48, Kirk Wallace wrote: > > > > I have used AVR chips to add features to LinuxCNC that where not easy to > > do with a parallel port alone. Now I would like to take a try at using > > one of these Blue Pills: > > > https://www.ebay.com/itm/222676944274 > > When I found

Re: [Emc-users] STM32 Blue Pill

2019-03-09 Thread andy pugh
On Sat, 9 Mar 2019 at 05:48, Kirk Wallace wrote: > > I have used AVR chips to add features to LinuxCNC that where not easy to > do with a parallel port alone. Now I would like to take a try at using > one of these Blue Pills: > > https://www.ebay.com/itm/222676944274 When I found that an actual

Re: [Emc-users] STM32 Blue Pill

2019-03-08 Thread Chris Albertson
The easy way to program a "Blue Pill" is with the Arduino IDE. Arduino is VERY well documented but for more complex work mBed is just as well documented is not so limiting as Arduino. The little $3 board can completely replace an Arduino. Most pins are 5 volt So it plays well with ether 5V or

Re: [Emc-users] STM32 Blue Pill

2019-03-08 Thread Kirk Wallace
I wish I had found this earlier: https://www.youtube.com/watch?v=K-jYSysmw9w This seems to be the shortest path to getting a blink program working. The steps in this video seem to work so far. I just need to dig up a USB to serial adapter from my breadboarding stash rather than use the

[Emc-users] STM32 Blue Pill

2019-03-08 Thread Kirk Wallace
I have used AVR chips to add features to LinuxCNC that where not easy to do with a parallel port alone. Now I would like to take a try at using one of these Blue Pills: https://www.ebay.com/itm/222676944274 So far I have used this link: