From owner-freebsd-embedded@freebsd.org Mon Mar 16 22:41:46 2020 Return-Path: Delivered-To: freebsd-embedded@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CF9D7272869 for ; Mon, 16 Mar 2020 22:41:46 +0000 (UTC) (envelope-from bmelo@protonmail.com) Received: from mail-40132.protonmail.ch (mail-40132.protonmail.ch [185.70.40.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48hBB05VLqz4G11 for ; Mon, 16 Mar 2020 22:41:44 +0000 (UTC) (envelope-from bmelo@protonmail.com) Date: Mon, 16 Mar 2020 22:41:34 +0000 To: Andrew Stevenson From: bmelo Cc: "freebsd-embedded@freebsd.org" Reply-To: bmelo Subject: Re: STM32 not identified Message-ID: In-Reply-To: <637C7B9A-31E1-4481-9675-61D771B7E0B5@ugh.net.au> References: <4A28D043-960F-465F-AC1A-9B6AD839783E@ugh.net.au> <637C7B9A-31E1-4481-9675-61D771B7E0B5@ugh.net.au> Feedback-ID: qWjSYckcgWWcZ4sn33dAM-M6U8dYd-Kg7WN_cqNWul_NwneiFWMmqSheunmYdNbSmzUzMmz444KsHd71b-Gqfg==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Rspamd-Queue-Id: 48hBB05VLqz4G11 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.09 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; HAS_REPLYTO(0.00)[bmelo@protonmail.com]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; FREEMAIL_FROM(0.00)[protonmail.com]; DKIM_TRACE(0.00)[protonmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.00)[ip: (-9.72), ipnet: 185.70.40.0/24(-4.89), asn: 62371(-3.91), country: CH(0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[132.40.70.185.list.dnswl.org : 127.0.5.1]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.986,0]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=default]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[] X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2020 22:41:46 -0000 idVendor =3D 0x0483 idProduct =3D 0x3752 You mean debug stlink code? Sent from ProtonMail, Swiss-based encrypted email. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Monday, 16 de March de 2020 =C3=A0s 19:18, Andrew Stevenson wrote: > > > > On 16. Mar 2020, at 22:01, bmelo bmelo@protonmail.com wrote: > > > > > Are you sure its permission problem? Doesn=E2=80=99t st-util search v= ia the USB VID/PID? Maybe running in verbose mode might give some idea of w= here it's failing. Do you see your device when you rub usbconfig? Do the VI= D/PID match whatever st-util is expecting? > > > > Yes, usbconfig see the device: ugen0.6: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DON (300mA) > > st-util's verbose mode is useless, never returns verbosed output :P > > Looking at the source it is using libusb and searching for devices with V= ID =3D=3D 0x0483 and PID =3D=3D 0x3748 or 0x374b. Usbconfig dump_device_des= c will show you the details of your device. > > If they do match I=E2=80=99m not sure where you would go from there witho= ut debugging the code but I think the permissions of your serial devices is= a red herring. > > Andrew