On Friday 22 January 2021 12:24:14 Ralph Stirling wrote:

> I finally succeeded in getting the STMBL code on a STM32F407
> Discovery eval board talking to a Mesa 7I90 via sserial.  The
> final issue was assuming the wrong pin for sserial tx on the F407.
>
> Here is my final summary of everything necessary to replicate
> what I did, for anybody else trying this.
>
> Steps on F407 end:
> 1. Compile STMBL code following their docs.
> 2. Plug in F407 Discovery st-link usb cable.
> 3. Copy obj_boot/blboot.bin to the F407 st-link drive
> 4. Plug in F407 Discovery otg usb cable (micro-b)
> 5. Run "make all_btburn", which should give flashing progress
> 6. Connect F407 ground to 7I90 ground
> 7. Connect F407 PA0 pin to sserial rx pin on 7I90
> 8. Connect F407 PA10 pin to sserial tx pin on 7I90
> 9. Run STMBL servoterm and connect
> 10. Edit config to have these lines:
>        load sserial
>        sserial0.rt_prio = 2.0
>        sserial0.frt_prio = 2.0
> 11. Save config and type "reset"
> 12. On linuxcnc computer, run "halcmd -I"
> 13. Type:
>         loadrt hostmot2
>         loadrt hm2_xxxxx config=" sserial_port_0=0XXXXXXX"
>
> I believe this will work with a variety of STM32F4xx chips and
> boards.  It looks like the stock stmbl code is about 303K in size,
> so a 512K flash cpu is probably the minimum.  The stats given
> by servoterm seem to indicate that cpu usage is low, though,
> so a slower clock may be OK.  I wonder if it would run on the
> new RPi Pico with modest modifications?

What comparison can be made between the very limited, fixed scale A-D 
conversion of a mesa card's 1st 4 inputs on say a 7i76, and the A/D 
speed and scaling that $4 pico-pi might be able to do when running the 
STMBL code, and how fast could it do it?

Having those figures at hand would determine just how usefull the pico-pi 
might be. 

> Thanks for the help and suggestions from Andy and Peter.
> -- Ralph
>
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to