On Wed, 20 Jan 2021, Ralph Stirling wrote:
Date: Wed, 20 Jan 2021 22:06:45 +0000 From: Ralph Stirling <[email protected]> Reply-To: "Enhanced Machine Controller (EMC)" <[email protected]> To: "Enhanced Machine Controller (EMC)" <[email protected]> Subject: Re: [Emc-users] Another Mesa vhdl questionI've got the STMBL code flashed on an STM32F407G Discovery eval board, and running with the Servoterm control software (which I am very delighted to have achieved). I seem to be missing something in setting up sserial in Linuxcnc though. Axis loads without error, but shows only gpio for the pins that are supposed to be sserial. Here is what I've done: 1. Vhdl file has sserial module tag defined. (SSerialTag, x"00", ClockLowTag, x"01", SSerialCommandAddr&PadT,SSerialNumRegs, x"10", SSerialMPBitMask), 2. Vhdl file has sserial pins defined. IOPortTag & x"00" & SSerialTag & SSerialRX0Pin, -- I/O 48 IOPortTag & x"00" & SSerialTag & SSerialTX0Pin, -- I/O 49 IOPortTag & x"00" & SSerialTag & SSerialTXEn0Pin,-- I/O 50 3. HAL file has config including sserial_port_0 defined. Linuxcnc version is 2.8.1 running on Raspberry Pi 3b+ buster. loadrt hostmot2 debug_idrom=1 loadrt hm2_rpspi config="num_encoders=2 num_pwmgens=2 num_stepgens=4 sserial_port_0=0XXXXXXX" spiclk_rate=12500 4. The STMBL sserial rx pin (PA10) is connected to the 7i90 pin P3-01 and sserial tx pin (PA8) is connected to 7i90 P3-03. 5. When I run linuxcnc, those pins show up as gpio. hm2/hm2_7i90.0: Smart Serial Firmware Version 43 .... hm2/hm2_7i90.0: IO Pin 048 (P3-01): IOPort hm2/hm2_7i90.0: IO Pin 049 (P3-03): IOPort 6. A scope watching PA8/P3-03 and PA10/P3-01 shows a series of 10us active low pulses on PA8/P3-03. PA10/P3-01 has short glitches. To minimize signal integrity issues, I stacked some connectors to join the STMBL board and the 7I90. Signals were the same using 6" jumper wires though. (see photos at https://gab.wallawalla.edu/~ralph.stirling/projects/linuxcnc/stmbl) 7. On the STMBL board, I have a config of: load sserial load adc sserial0.pos_fb = adc0.cos0 I'm hoping there is just some simple step I'm missing. I don't know if the problem lies at the STMBL or 7I90 end.
Looks like you have RX connected to RX and TX to TX you need RX to TX and TX to RX Peter Wallace Mesa Electronics _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
