From owner-freebsd-embedded@freebsd.org Mon Mar 16 12:23:16 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 122ED26555A for ; Mon, 16 Mar 2020 12:23:16 +0000 (UTC) (envelope-from bmelo@protonmail.com) Received: from mail-40135.protonmail.ch (mail-40135.protonmail.ch [185.70.40.135]) (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 48gwSL0hmfz3KBL for ; Mon, 16 Mar 2020 12:23:13 +0000 (UTC) (envelope-from bmelo@protonmail.com) Date: Mon, 16 Mar 2020 12:23:09 +0000 To: "freebsd-embedded@freebsd.org" From: bmelo Reply-To: bmelo Subject: STM32 not identified Message-ID: Feedback-ID: qWjSYckcgWWcZ4sn33dAM-M6U8dYd-Kg7WN_cqNWul_NwneiFWMmqSheunmYdNbSmzUzMmz444KsHd71b-Gqfg==:Ext:ProtonMail MIME-Version: 1.0 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,HTML_MESSAGE 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: 48gwSL0hmfz3KBL X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.96 / 15.00]; HAS_REPLYTO(0.00)[bmelo@protonmail.com]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; FREEMAIL_FROM(0.00)[protonmail.com]; DKIM_TRACE(0.00)[protonmail.com:+]; MIME_BASE64_TEXT(0.10)[]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(0.00)[ip: (-9.83), ipnet: 185.70.40.0/24(-4.89), asn: 62371(-3.91), country: CH(0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[135.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)[]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=default]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; HAS_PHPMAILER_SIG(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_MEDIUM(-0.96)[-0.961,0]; TO_DN_EQ_ADDR_ALL(0.00)[] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 12:23:16 -0000 SGksIEkgaGF2ZSBhIFNUTTMyIE51Y2xlbyBib2FyZCBhbmQgaW5zdGFsbGVkIHN0bGluayBmcm9t IHBvcnRzIGhlcmUuIEJ1dCBhbGwgdGhlIHRpbWUgSSBydW4gc3QtdXRpbCBjb21tYW5kIEkgZ2V0 IHRoZSBtZXNzYWdlOgpXQVJOIHVzYi5jOiBDb3VsZG4ndCBmaW5kIGFueSBTVC1MaW5rL1YyIGRl dmljZXMKVGhlIE51Y2xlbyBjcmVhdGVzIGN1YVUwIGFuZCB0dHlVMCBpbiAvZGV2LiBJdCBzZWVt cyBsaWtlIGEgcGVybWlzc2lvbiBwcm9ibGVtLCBidXQgSSBoYXZlIG5vIGlkZWEgaG93IHRvIGZp eCB0aGF0LiBJIGFscmVhZHkgdHJpZWQgdG8gZWRpdCAvZXRjL2RldmZzLnJ1bGVzIGFuZCB0aGUg cHJvYmxlbSBwZXJzaXN0cy4gL2Rldi9jdWFVMCBpcyB1dWNwOmRpYWxlciBhbmQgdHR5VTAgaXMg cm9vdDp3aGVlbC4KQW55IGlkZWE/CgpTZW50IGZyb20gW1Byb3Rvbk1haWxdKGh0dHBzOi8vcHJv dG9ubWFpbC5jb20pLCBTd2lzcy1iYXNlZCBlbmNyeXB0ZWQgZW1haWwu From owner-freebsd-embedded@freebsd.org Mon Mar 16 16:23:13 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 16DF6269FAD for ; Mon, 16 Mar 2020 16:23:13 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48h1nD3cDVz3C7S for ; Mon, 16 Mar 2020 16:23:12 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1584375790; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=gKozVFiQ71jqVpIWNckKjPxuwofBeMNj+vKzp+QhmnB4z2dLGcAz6ucH5x2Urd8XG/l39Kj33jZ9j ugrEXBUKchZP/PF7MEn/SnxOC2LsMnvUzOvWmSOJrNefKhMjRpygYNa0Vg1MID0hC4SmZrL7rbVXIW FCRIWIHSS3gqwBpBkLU8WwS3rAQ9oaoSF3oqSiVaOdWpwQoCe+866AboLh5CYgJStQj8esJkKd8Wev t09mtiHpC4vUKnEFAPzxn0yzc+clf5GwDOzFu8I9AjqVhERNsHKaVW4iS424pR0KbCm56bNjnNj19J ZUCUYaNp/urrXJXukS68cyaZrOJCEcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=eilLHzGiwUBmVGZIanRqAGZGyBomwHKr++oNHXSDGXA=; b=I7Pv9zT/i7vVxmkZqfAfHb18ZAffywEZuIrk5ip8E1oOBui5VattPqVKJUaKIMpgJRLPPSxnMCzq/ Hw0mpspeScCIm0MdtxF74tOGGVhZRobYejHnRJISnypWcNO9OG+C1QUZ4/4/zHLnA/nd/7PGa9yW9g Qri8dSzmmpbttlP1P9J8ylafpAFLO99uaQUdq1lP0imCgSaanS1MGk4S1FOgj5IqWOhaxreb1xCwB2 2zv4bpHskV+O/Ig9rDPjq/qXKD6pcq5C+XhpyUBXb41yxjDmAeJvfpbYaL7IrW+dwBKCMGrHv2QaP5 bOKUFqhVWamq/jkbc6w0zN6yVL8TJKw== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=eilLHzGiwUBmVGZIanRqAGZGyBomwHKr++oNHXSDGXA=; b=Ddhg4Rfyp6n/kuCCyOLhy+88w8NnAr9CBW4hlpECwY5/uf+uvMcstwdTWW37AV+Fy6Pav7wc0fiSH MGHyuEduzh3teKPBQi9NtrePEGAmX8UfJe88t2UBBmYfirAwar0SnbZPjuEGzjXYboDG3d6sv/aU+H 9zfI/sj/NAS22wuJK5iYey9Sw5+URCFNwStaRjqXZkf2xyvNYmuosW8l/mnNnXaJRPZToRiz5Ckyzv 2RgzaFxX9qJcmXzNAxyCPiifvD4T+cBQajCZ8ky15ztER17EpeQt4EP/1Ay0NZMbpTAIs5MEmvyncV tnnFMMWzo4Z2clqg8umrOOQIzEY6Vxw== X-MHO-RoutePath: aGlwcGll X-MHO-User: 6c4e9945-67a2-11ea-b80e-052b4a66b6b2 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id 6c4e9945-67a2-11ea-b80e-052b4a66b6b2; Mon, 16 Mar 2020 16:23:09 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 02GGN88Y068680; Mon, 16 Mar 2020 10:23:08 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <2e1b00c4213037f308417c902291e0a88c06674b.camel@freebsd.org> Subject: Re: STM32 not identified From: Ian Lepore To: bmelo , "freebsd-embedded@freebsd.org" Date: Mon, 16 Mar 2020 10:23:08 -0600 In-Reply-To: References: Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48h1nD3cDVz3C7S X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.06 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_MEDIUM(0.98)[0.975,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US]; NEURAL_HAM_LONG(-0.91)[-0.911,0] 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 16:23:13 -0000 On Mon, 2020-03-16 at 12:23 +0000, bmelo via freebsd-embedded wrote: > Hi, I have a STM32 Nucleo board and installed stlink from ports here. > But all the time I run st-util command I get the message: > WARN usb.c: Couldn't find any ST-Link/V2 devices > The Nucleo creates cuaU0 and ttyU0 in /dev. It seems like a > permission problem, but I have no idea how to fix that. I already > tried to edit /etc/devfs.rules and the problem persists. /dev/cuaU0 > is uucp:dialer and ttyU0 is root:wheel. > Any idea? > > You didn't say *what* you tried with devfs.rules. This is what I use (because I am the only user of this machine, so security is not a problem; these might not be good for a shared machine): [localrules=10] add path "ttyU*" mode 0666 add path "cuaU*" mode 0666 add path "ugen*" mode 0666 add path "usb/*" mode 0666 add path "usb" mode 0755 -- Ian From owner-freebsd-embedded@freebsd.org Mon Mar 16 16:46:36 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 2596426A4D7 for ; Mon, 16 Mar 2020 16:46:36 +0000 (UTC) (envelope-from bmelo@protonmail.com) Received: from mail-40135.protonmail.ch (mail-40135.protonmail.ch [185.70.40.135]) (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 48h2J926Zmz3G3W for ; Mon, 16 Mar 2020 16:46:33 +0000 (UTC) (envelope-from bmelo@protonmail.com) Date: Mon, 16 Mar 2020 16:46:24 +0000 To: Ian Lepore From: bmelo Cc: "freebsd-embedded@freebsd.org" Reply-To: bmelo Subject: Re: STM32 not identified Message-ID: In-Reply-To: <2e1b00c4213037f308417c902291e0a88c06674b.camel@freebsd.org> References: <2e1b00c4213037f308417c902291e0a88c06674b.camel@freebsd.org> 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: 48h2J926Zmz3G3W 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.83), ipnet: 185.70.40.0/24(-4.89), asn: 62371(-3.91), country: CH(0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[135.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.987,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 16:46:36 -0000 Here is my devfs.rules: [devfsrules_common=3D7] add path 'ad[0-9]\*'=09=09mode 666 add path 'ada[0-9]\*'=09mode 666 add path 'da[0-9]\*'=09=09mode 666 add path 'acd[0-9]\*'=09mode 666 add path 'cd[0-9]\*'=09=09mode 666 add path 'cuaU[0-9]\*' mode 666 add path 'mmcsd[0-9]\*'=09mode 666 add path 'pass[0-9]\*'=09mode 666 add path 'xpt[0-9]\*'=09mode 666 add path 'ugen[0-9]\*'=09mode 666 add path 'usbctl'=09=09mode 666 add path 'usb/\*'=09=09mode 666 add path 'ttyU[0-9]\*'=09mode 666 add path 'lpt[0-9]\*'=09mode 666 add path 'ulpt[0-9]\*'=09mode 666 add path 'unlpt[0-9]\*'=09mode 666 add path 'fd[0-9]\*'=09=09mode 666 add path 'uscan[0-9]\*'=09mode 666 add path 'video[0-9]\*'=09mode 666 add path 'tuner[0-9]*' mode 666 add path 'dvb/\*'=09=09mode 666 add path 'cx88*' mode 0660 add path 'iicdev*' mode 0660 add path 'uvisor[0-9]*' mode 0660 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 13:23, Ian Lepore = wrote: > On Mon, 2020-03-16 at 12:23 +0000, bmelo via freebsd-embedded wrote: > > > Hi, I have a STM32 Nucleo board and installed stlink from ports here. > > But all the time I run st-util command I get the message: > > WARN usb.c: Couldn't find any ST-Link/V2 devices > > The Nucleo creates cuaU0 and ttyU0 in /dev. It seems like a > > permission problem, but I have no idea how to fix that. I already > > tried to edit /etc/devfs.rules and the problem persists. /dev/cuaU0 > > is uucp:dialer and ttyU0 is root:wheel. > > Any idea? > > You didn't saywhat you tried with devfs.rules. This is what I use > (because I am the only user of this machine, so security is not a > problem; these might not be good for a shared machine): > > [localrules=3D10] > add path "ttyU*" mode 0666 > add path "cuaU*" mode 0666 > add path "ugen*" mode 0666 > add path "usb/*" mode 0666 > add path "usb" mode 0755 > > -- Ian From owner-freebsd-embedded@freebsd.org Mon Mar 16 20:02:19 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 9FED926E2F4 for ; Mon, 16 Mar 2020 20:02:19 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48h6f31typz48C7 for ; Mon, 16 Mar 2020 20:02:19 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1584388938; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=nIsb9XkLUfUP0zPse5jMaCJXYmWk2huB7e/S0cVGbFRFzcoCpr+UARCk7AcirM97pjmsa+WKfHaLH XXOVkqjPehh9PR7AC5/qh2pk0N6Twdjvnb9OUBiDMRf7ntEgNHYEd71rXw5WfdwjriEfex6X+eauTz WLhYWwiEAyfIrOqjKqc3UTfgJ0pADYdpkU6fe05W/HqbzsQ5KCwQF/SRQwd0RcNDLxbviPD8ctQIdz LFq/RbhZZ0d+fDhrKX3oy8eaB3tlrD4SZ44JPWm9wRKg8tJeyVsRMpd7oq0W7r2oP1oKmE17NtADPY BaftwwV6Vexzk/l29RbEqkLNvXy1JWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=ymUUkGtxJwLuBr7xg9JOgiE5Peaezo3QZdMe/C6/0E0=; b=oPiwGNao9naelps9yTtcAa0wCcmIO8i2aukZUSJSG6nrKE9+OLwquDvivNtHNSTqGrVj4hPkvLrZU yQ/AkdHJ2Eh8GOR2+NtxKmvqT1EfcGPd/clhfWCudyin6S6Vl6kQVitStFyqZdpSlrAbaLSNLgDcMa Pwr+sECBdTKUvaMG7KgV01xKGE04PwFhAu3rdU0UScpFJE9oE18tWJp08mRaUBQfsR2EcFnYWefsmO kqLuNI09e4FeV1cwF8sWBux53R9IdD538IVafa3EGFoMrqRskCizaWVj1tK2s3F2Y4PjV0kwB2N4tv y1RqPJ+cJFGvRbERY2ZDjQVPdcht+GA== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=ymUUkGtxJwLuBr7xg9JOgiE5Peaezo3QZdMe/C6/0E0=; b=BhM2hqZw78+94nEW+A2EIqa6eGhduVUxSiMrzMkIRILvzZsWZAmVHN2n03Vt9MvlgIPwFKdwC+2ZQ abn+ptcqLDpaV6tn6vwpbxUtnglKyEigAw0g/B/6j1n6BKP2F93PBH0iUS7deqz+Iu79G0al8ueFlr xA48LMJnacCmeezNDXLGRIZoBxScRIwzEm4iygD46nzrY5XFm8yZDwwrZURRHju5ZdbXX0bP+PNGvn fPMg0JmALfFvmDanCcQRkTSVrgYXt4dgQkUbJK/dM7MMken+osIIA7rhAeWJv5M+EJR9cap3LyEP3e tJEpfgV3Q0tIHMzlfRSMoFeqqwsxhtg== X-MHO-RoutePath: aGlwcGll X-MHO-User: 08a3b031-67c1-11ea-9eb3-25e2dfa9fa8d X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 08a3b031-67c1-11ea-9eb3-25e2dfa9fa8d; Mon, 16 Mar 2020 20:02:16 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 02GK2FxS069291; Mon, 16 Mar 2020 14:02:15 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: STM32 not identified From: Ian Lepore To: bmelo Cc: "freebsd-embedded@freebsd.org" Date: Mon, 16 Mar 2020 14:02:15 -0600 In-Reply-To: References: <2e1b00c4213037f308417c902291e0a88c06674b.camel@freebsd.org> Content-Type: text/plain; charset="iso-2022-jp" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48h6f31typz48C7 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.06 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_MEDIUM(0.98)[0.975,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US]; NEURAL_HAM_LONG(-0.91)[-0.911,0] 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 20:02:19 -0000 On Mon, 2020-03-16 at 16:46 +0000, bmelo wrote: > Here is my devfs.rules: >=20 > [devfsrules_common=3D7] > add path 'ad[0-9]\*' mode 666 > add path 'ada[0-9]\*' mode 666 > add path 'da[0-9]\*' mode 666 > add path 'acd[0-9]\*' mode 666 > add path 'cd[0-9]\*' mode 666 > add path 'cuaU[0-9]\*' mode 666 > add path 'mmcsd[0-9]\*' mode 666 > add path 'pass[0-9]\*' mode 666 > add path 'xpt[0-9]\*' mode 666 > add path 'ugen[0-9]\*' mode 666 > add path 'usbctl' mode 666 > add path 'usb/\*' mode 666 > add path 'ttyU[0-9]\*' mode 666 > add path 'lpt[0-9]\*' mode 666 > add path 'ulpt[0-9]\*' mode 666 > add path 'unlpt[0-9]\*' mode 666 > add path 'fd[0-9]\*' mode 666 > add path 'uscan[0-9]\*' mode 666 > add path 'video[0-9]\*' mode 666 > add path 'tuner[0-9]*' mode 666 > add path 'dvb/\*' mode 666 > add path 'cx88*' mode 0660 > add path 'iicdev*' mode 0660 > add path 'uvisor[0-9]*' mode 0660 >=20 I suspect the escaped wildcards are causing a problem, try using "cuaU*" instead of "cuaU[0-9]\*" (and likewise for all the rules, I don't think there is any device that puts a literal * in the devfs name). -- Ian >=20 >=20 >=20 > Sent from ProtonMail, Swiss-based encrypted email. >=20 > =1B$B!>!>!>!>!>!>!>=1B(B Original Message =1B$B!>!>!>!>!>!>!>=1B(B > On Monday, 16 de March de 2020 s 13:23, Ian Lepore > wrote: >=20 > > On Mon, 2020-03-16 at 12:23 +0000, bmelo via freebsd-embedded > > wrote: > >=20 > > > Hi, I have a STM32 Nucleo board and installed stlink from ports > > > here. > > > But all the time I run st-util command I get the message: > > > WARN usb.c: Couldn't find any ST-Link/V2 devices > > > The Nucleo creates cuaU0 and ttyU0 in /dev. It seems like a > > > permission problem, but I have no idea how to fix that. I already > > > tried to edit /etc/devfs.rules and the problem persists. > > > /dev/cuaU0 > > > is uucp:dialer and ttyU0 is root:wheel. > > > Any idea? > >=20 > > You didn't saywhat you tried with devfs.rules. This is what I use > > (because I am the only user of this machine, so security is not a > > problem; these might not be good for a shared machine): > >=20 > > [localrules=3D10] > > add path "ttyU*" mode 0666 > > add path "cuaU*" mode 0666 > > add path "ugen*" mode 0666 > > add path "usb/*" mode 0666 > > add path "usb" mode 0755 > >=20 > > -- Ian >=20 >=20 >=20 From owner-freebsd-embedded@freebsd.org Mon Mar 16 20:11:14 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 7783126E7BB for ; Mon, 16 Mar 2020 20:11:14 +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 48h6rH5kQdz4NMg for ; Mon, 16 Mar 2020 20:11:11 +0000 (UTC) (envelope-from bmelo@protonmail.com) Date: Mon, 16 Mar 2020 20:11:05 +0000 To: Ian Lepore From: bmelo Cc: "freebsd-embedded@freebsd.org" Reply-To: bmelo Subject: Re: STM32 not identified Message-ID: In-Reply-To: References: <2e1b00c4213037f308417c902291e0a88c06674b.camel@freebsd.org> 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: 48h6rH5kQdz4NMg 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.987,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 20:11:14 -0000 Still not working. Do I need to edit devfs.conf? My devfs.conf actually: # Allow all USB Devices to be mounted perm /dev/da0 0666 perm /dev/da1 0666 perm /dev/da2 0666 perm /dev/da3 0666 perm /dev/da4 0666 perm /dev/da5 0666 # Misc other devices perm /dev/pass0 0666 perm /dev/xpt0 0666 perm /dev/uscanner0 0666 perm /dev/video0 0666 perm /dev/tuner0 0666 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 17:02, Ian Lepore = wrote: > On Mon, 2020-03-16 at 16:46 +0000, bmelo wrote: > > > Here is my devfs.rules: > > [devfsrules_common=3D7] > > add path 'ad[0-9]\' mode 666 > > add path 'ada[0-9]\' mode 666add path 'da[0-9]\' mode 666 > > add path 'acd[0-9]\' mode 666add path 'cd[0-9]\' mode 666 > > add path 'cuaU[0-9]\' mode 666add path 'mmcsd[0-9]\' mode 666 > > add path 'pass[0-9]\' mode 666add path 'xpt[0-9]\' mode 666 > > add path 'ugen[0-9]\' mode 666add path 'usbctl' mode 666 > > add path 'usb/\' mode 666 > > add path 'ttyU[0-9]\' mode 666add path 'lpt[0-9]\' mode 666 > > add path 'ulpt[0-9]\' mode 666add path 'unlpt[0-9]\' mode 666 > > add path 'fd[0-9]\' mode 666add path 'uscan[0-9]\' mode 666 > > add path 'video[0-9]\' mode 666add path 'tuner[0-9]' mode 666 > > add path 'dvb/\' mode 666add path 'cx88*' mode 0660 > > add path 'iicdev*' mode 0660 > > add path 'uvisor[0-9]*' mode 0660 > > I suspect the escaped wildcards are causing a problem, try using > "cuaU*" instead of "cuaU[0-9]\*" (and likewise for all the rules, I > don't think there is any device that puts a literal * in the devfs > name). > > -- Ian > > > 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 Origina= l Message =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 s 13:23, Ian Lepore ian@freebsd.org > > wrote: > > > > > On Mon, 2020-03-16 at 12:23 +0000, bmelo via freebsd-embedded > > > wrote: > > > > > > > Hi, I have a STM32 Nucleo board and installed stlink from ports > > > > here. > > > > But all the time I run st-util command I get the message: > > > > WARN usb.c: Couldn't find any ST-Link/V2 devices > > > > The Nucleo creates cuaU0 and ttyU0 in /dev. It seems like a > > > > permission problem, but I have no idea how to fix that. I already > > > > tried to edit /etc/devfs.rules and the problem persists. > > > > /dev/cuaU0 > > > > is uucp:dialer and ttyU0 is root:wheel. > > > > Any idea? > > > > > > You didn't saywhat you tried with devfs.rules. This is what I use > > > (because I am the only user of this machine, so security is not a > > > problem; these might not be good for a shared machine): > > > [localrules=3D10] > > > add path "ttyU*" mode 0666 > > > add path "cuaU*" mode 0666 > > > add path "ugen*" mode 0666 > > > add path "usb/*" mode 0666 > > > add path "usb" mode 0755 > > > -- Ian From owner-freebsd-embedded@freebsd.org Mon Mar 16 20:21:38 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 6F6B326E8D2 for ; Mon, 16 Mar 2020 20:21:38 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48h74K6vLJz3Mxb for ; Mon, 16 Mar 2020 20:21:37 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1584390095; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=IwXbKWv05lJisM7A7CfhoThhuQDxrfBKU/W0Sopf3SQD7pIK0AVNxO6Z56ipC6VGki55pItPcCNeX ygv+viGjXb4nsXmH0jL2rADrzKVYQXvGHFtzSWnzuq3Y0KurF0ylDbZae6bZ9lEjcwzKUUEPg6R+Pe evmMOPkyi3nLhghiJzeE9tutPH12csL2sHo77rdqeAPTM41Kfb6UnsdrsLNjWoIRX7N+keMwIWXmmi M1S2+0ggE2YKYM7BBtXFJ4gkdyzKmThKvCxByCfO/+NeVpQVTjWUUPraOnUuMkJyJihp5Mh/lTpmQv RNjRUx8gfm/WCOhjqehV7HfD+KvOkag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=NqjqiJpTsIg6Ql4FNFcU4JReEGfs+llp8Qf2sUhBxxw=; b=LpIWEPHKMEyBxa17QFZjnnd+35VwmR5rfWWTvRrK/HTdl6qOqVWQL3iqiIa0lV5uH3WK2r6oHTiwC 2S5nYW5qzMAtoZQbAkIIFiXwUPdKpnI3wJXpSfMgjypHmF8ZdXHNGRufvaMmTvOPud/XiAtde91Qxx +ToZsRRI5gf8oVlUdQYm1oZj7mktU7qlRyCrgTbfx8IRz2vD7UeH098xkSw0fWmuK7xf9S/BCQVzON MS+WL+jkTX4LQZK3KBHOMl8vN0K/IQPqfO1IZRx5O5GG2cyvf/AUd9XYKCBeC/THQHZSaA8vXKJpbf JDG1lWD6tST7f29rA0pkx10Lk4y33Rg== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=NqjqiJpTsIg6Ql4FNFcU4JReEGfs+llp8Qf2sUhBxxw=; b=bFPLBKEYv6i8yEQkRMRrZKgXhFoTTTWeZHoKwvgT/y5Wun18IBUG3YzsHoAU3MrutLAqMU+NXJW4c tFKlzjwafdNrSF8ckMhhE7xOKigPbA/oZk8Dk52cWPYJDpyTWh8UCuL8tM7ceF1giQAW0NXCFOlkR8 ulNXKUxpZ5uyIQxAgYasRoYDqqGUKFZskkE+6SEXetNZB4M1dAx4wL5VTY3oYLm4yM6wH6fFi4m7hM iVCUXlSla/kt8nHjgR7hbIHXFFGpclTyYJdrHv5mUDPjk5381qJkAiruC3Dfci3gS8hVBMRv3NLLpA epueYVky81/fXhxYdyC5s0+BmyRy53g== X-MHO-RoutePath: aGlwcGll X-MHO-User: ba027590-67c3-11ea-9eb3-25e2dfa9fa8d X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id ba027590-67c3-11ea-9eb3-25e2dfa9fa8d; Mon, 16 Mar 2020 20:21:34 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 02GKLWGJ069368; Mon, 16 Mar 2020 14:21:32 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <7ee5309c7ba196a23e4030dbb0883525fd38f971.camel@freebsd.org> Subject: Re: STM32 not identified From: Ian Lepore To: bmelo Cc: "freebsd-embedded@freebsd.org" Date: Mon, 16 Mar 2020 14:21:32 -0600 In-Reply-To: References: <2e1b00c4213037f308417c902291e0a88c06674b.camel@freebsd.org> Content-Type: text/plain; charset="iso-2022-jp" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48h74K6vLJz3Mxb X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.03 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_MEDIUM(0.95)[0.947,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US]; NEURAL_HAM_LONG(-0.91)[-0.914,0] 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 20:21:38 -0000 On Mon, 2020-03-16 at 20:11 +0000, bmelo wrote: > Still not working. Do I need to edit devfs.conf? My devfs.conf > actually: >=20 > # Allow all USB Devices to be mounted > perm /dev/da0 0666 > perm /dev/da1 0666 > perm /dev/da2 0666 > perm /dev/da3 0666 > perm /dev/da4 0666 > perm /dev/da5 0666 >=20 > # Misc other devices > perm /dev/pass0 0666 > perm /dev/xpt0 0666 > perm /dev/uscanner0 0666 > perm /dev/video0 0666 > perm /dev/tuner0 0666 >=20 I don't have anything in my devfs.conf at all. So do /dev/cuaU* devices have the right permissions when you plug in an adapter? Do you just need to unplug/replug it to force the permissions to change? -- Ian >=20 > Sent from ProtonMail, Swiss-based encrypted email. >=20 > =1B$B!>!>!>!>!>!>!>=1B(B Original Message =1B$B!>!>!>!>!>!>!>=1B(B > On Monday, 16 de March de 2020 s 17:02, Ian Lepore > wrote: >=20 > > On Mon, 2020-03-16 at 16:46 +0000, bmelo wrote: > >=20 > > > Here is my devfs.rules: > > > [devfsrules_common=3D7] > > > add path 'ad[0-9]\' mode 666 > > > add path 'ada[0-9]\' mode 666add path 'da[0-9]\' mode 666 > > > add path 'acd[0-9]\' mode 666add path 'cd[0-9]\' mode 666 > > > add path 'cuaU[0-9]\' mode 666add path 'mmcsd[0-9]\' mode 666 > > > add path 'pass[0-9]\' mode 666add path 'xpt[0-9]\' mode 666 > > > add path 'ugen[0-9]\' mode 666add path 'usbctl' mode 666 > > > add path 'usb/\' mode 666 > > > add path 'ttyU[0-9]\' mode 666add path 'lpt[0-9]\' mode 666 > > > add path 'ulpt[0-9]\' mode 666add path 'unlpt[0-9]\' mode 666 > > > add path 'fd[0-9]\' mode 666add path 'uscan[0-9]\' mode 666 > > > add path 'video[0-9]\' mode 666add path 'tuner[0-9]' mode 666 > > > add path 'dvb/\' mode 666add path 'cx88*' mode 0660 > > > add path 'iicdev*' mode 0660 > > > add path 'uvisor[0-9]*' mode 0660 > >=20 > > I suspect the escaped wildcards are causing a problem, try using > > "cuaU*" instead of "cuaU[0-9]\*" (and likewise for all the rules, I > > don't think there is any device that puts a literal * in the devfs > > name). > >=20 > > -- Ian > >=20 > > > Sent from ProtonMail, Swiss-based encrypted email. > > > =1B$B!>!>!>!>!>!>!>=1B(B Original Message =1B$B!>!>!>!>!>!>!>=1B(B > > > On Monday, 16 de March de 2020 s 13:23, Ian Lepore=20 > > > ian@freebsd.org > > > wrote: > > >=20 > > > > On Mon, 2020-03-16 at 12:23 +0000, bmelo via freebsd-embedded > > > > wrote: > > > >=20 > > > > > Hi, I have a STM32 Nucleo board and installed stlink from > > > > > ports > > > > > here. > > > > > But all the time I run st-util command I get the message: > > > > > WARN usb.c: Couldn't find any ST-Link/V2 devices > > > > > The Nucleo creates cuaU0 and ttyU0 in /dev. It seems like a > > > > > permission problem, but I have no idea how to fix that. I > > > > > already > > > > > tried to edit /etc/devfs.rules and the problem persists. > > > > > /dev/cuaU0 > > > > > is uucp:dialer and ttyU0 is root:wheel. > > > > > Any idea? > > > >=20 > > > > You didn't saywhat you tried with devfs.rules. This is what I > > > > use > > > > (because I am the only user of this machine, so security is not > > > > a > > > > problem; these might not be good for a shared machine): > > > > [localrules=3D10] > > > > add path "ttyU*" mode 0666 > > > > add path "cuaU*" mode 0666 > > > > add path "ugen*" mode 0666 > > > > add path "usb/*" mode 0666 > > > > add path "usb" mode 0755 > > > > -- Ian >=20 >=20 >=20 From owner-freebsd-embedded@freebsd.org Mon Mar 16 20:25:09 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 6A5D026EAA6 for ; Mon, 16 Mar 2020 20:25:09 +0000 (UTC) (envelope-from bmelo@protonmail.com) Received: from mail-40135.protonmail.ch (mail-40135.protonmail.ch [185.70.40.135]) (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 48h78M2MFmz4232 for ; Mon, 16 Mar 2020 20:25:07 +0000 (UTC) (envelope-from bmelo@protonmail.com) Date: Mon, 16 Mar 2020 20:24:56 +0000 To: Ian Lepore From: bmelo Cc: "freebsd-embedded@freebsd.org" Reply-To: bmelo Subject: Re: STM32 not identified Message-ID: <1XBw5X1NatiMuyWhr7sMj-_NVC_2uQxwdcUvYJeSkHSq8SAGXcyabJQXQoscmfjXZ_T_22qkxfCCUvq6aIV9bkpOk6ilz_I4h-qBKNm0Fw4=@protonmail.com> In-Reply-To: <7ee5309c7ba196a23e4030dbb0883525fd38f971.camel@freebsd.org> References: <2e1b00c4213037f308417c902291e0a88c06674b.camel@freebsd.org> <7ee5309c7ba196a23e4030dbb0883525fd38f971.camel@freebsd.org> 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: 48h78M2MFmz4232 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.83), ipnet: 185.70.40.0/24(-4.89), asn: 62371(-3.91), country: CH(0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[135.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 20:25:09 -0000 > I don't have anything in my devfs.conf at all. So do /dev/cuaU* > devices have the right permissions when you plug in an adapter? Do you > just need to unplug/replug it to force the permissions to change? The permmission is actually this even replugging: crw-rw-rw- 1 uucp dialer - 0x29f Mar 16 17:22 /dev/cuaU0 rw-rw-rw- 1 root wheel - 0x29c Mar 16 17:22 /dev/ttyU0 Sent from ProtonMail, Swiss-based encrypted email. > > 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 Origina= l Message =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 s 17:02, Ian Lepore ian@freebsd.org > > wrote: > > > > > On Mon, 2020-03-16 at 16:46 +0000, bmelo wrote: > > > > > > > Here is my devfs.rules: > > > > [devfsrules_common=3D7] > > > > add path 'ad[0-9]\' mode 666 > > > > add path 'ada[0-9]\' mode 666add path 'da[0-9]\' mode 666 > > > > add path 'acd[0-9]\' mode 666add path 'cd[0-9]\' mode 666 > > > > add path 'cuaU[0-9]\' mode 666add path 'mmcsd[0-9]\' mode 666 > > > > add path 'pass[0-9]\' mode 666add path 'xpt[0-9]\' mode 666 > > > > add path 'ugen[0-9]\' mode 666add path 'usbctl' mode 666 > > > > add path 'usb/\' mode 666 > > > > add path 'ttyU[0-9]\' mode 666add path 'lpt[0-9]\' mode 666 > > > > add path 'ulpt[0-9]\' mode 666add path 'unlpt[0-9]\' mode 666 > > > > add path 'fd[0-9]\' mode 666add path 'uscan[0-9]\' mode 666 > > > > add path 'video[0-9]\' mode 666add path 'tuner[0-9]' mode 666 > > > > add path 'dvb/\' mode 666add path 'cx88*' mode 0660 > > > > add path 'iicdev*' mode 0660 > > > > add path 'uvisor[0-9]*' mode 0660 > > > > > > I suspect the escaped wildcards are causing a problem, try using > > > "cuaU*" instead of "cuaU[0-9]\*" (and likewise for all the rules, I > > > don't think there is any device that puts a literal * in the devfs > > > name). > > > -- Ian > > > > > > > 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 Ori= ginal Message =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 s 13:23, Ian Lepore > > > > ian@freebsd.org > > > > wrote: > > > > > > > > > On Mon, 2020-03-16 at 12:23 +0000, bmelo via freebsd-embedded > > > > > wrote: > > > > > > > > > > > Hi, I have a STM32 Nucleo board and installed stlink from > > > > > > ports > > > > > > here. > > > > > > But all the time I run st-util command I get the message: > > > > > > WARN usb.c: Couldn't find any ST-Link/V2 devices > > > > > > The Nucleo creates cuaU0 and ttyU0 in /dev. It seems like a > > > > > > permission problem, but I have no idea how to fix that. I > > > > > > already > > > > > > tried to edit /etc/devfs.rules and the problem persists. > > > > > > /dev/cuaU0 > > > > > > is uucp:dialer and ttyU0 is root:wheel. > > > > > > Any idea? > > > > > > > > > > You didn't saywhat you tried with devfs.rules. This is what I > > > > > use > > > > > (because I am the only user of this machine, so security is not > > > > > a > > > > > problem; these might not be good for a shared machine): > > > > > [localrules=3D10] > > > > > add path "ttyU*" mode 0666 > > > > > add path "cuaU*" mode 0666 > > > > > add path "ugen*" mode 0666 > > > > > add path "usb/*" mode 0666 > > > > > add path "usb" mode 0755 > > > > > -- Ian From owner-freebsd-embedded@freebsd.org Mon Mar 16 20:37:25 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 A6C0126ED85 for ; Mon, 16 Mar 2020 20:37:25 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48h7QY05qJz4ZZ9 for ; Mon, 16 Mar 2020 20:37:24 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1584391043; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=Z0o86QjY8JGEz31ZfDsqIELXkbOJvYslwD7hYstrLsrXPqKmoj2NlNS740OFHPHClnAHaZr4ojtM5 TVjHLBJOJnSxxttMyHwFiJWImrZEdXM3VSDs0b37X6Y60mrX3qeNAw7E0VKs2PqjHqcmrRRpY/zKLg l3I4pDrDpydnPaXrzCF7H4zoQl5rYKacKEjNrz4E7p87bgfzJ0UNILFjaCe2ZR8larQBSgFk7qmGCr H6EykolDslcEVIN7Zt+jAu9xUkACkK2+j8oBcqLjACjCBmjNyD1xCMUpVfPhpHsPyz8RhIzvJUKx3I Bv15JxIp/PYBALSCwf0e+vRvlSNK+ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=5nyCKiJxCQfbQtdOEcgSUsmWM2PUgWhtyDdX33I6Ysk=; b=SfaDE8AxwW4O0SLWNIB1JwL0Yyr4z2SjEBJXalVTJzaymvvCzrV24PSncUXqI+hw7NRoN32YY/MAH fW9vMTL25f3Mle55YW0/uOj4sgW6rBFeKCVpchZ2HZaARKGFmE/AnBZCVyH4hUHQKEHWaqqjdQ5ogd DJs3B/kN4WpyMopl9+08p3r1H0m11NqGYkVrjy+tf4M14c3vUQjq5zND+YjumOb03i18LJAYRjr+Xp f/q88Oy4LGDiXoy5nB/i8ZKRPl97J5V8tAq6BInUShUa38CN1RR9aek2gVi6eYoiHnTwyM3iv2GhVn b1v66GRGba4xlJpx1DzNPDjxMkwaqmg== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=5nyCKiJxCQfbQtdOEcgSUsmWM2PUgWhtyDdX33I6Ysk=; b=clidETpmbViX0Zk6/ddVTVt5jeV2m7sxM/e4JFTZoUY2DsPtJ32vfTawZPLXflvSxk+f6GbA2Hcs0 Seq4bW6xCsvt/8TR+UoK9xGKmed8Hl/IwNDBUkGjWBVe7iBdgeZzy84+eQhv1eI3snsUuRAUG7x7CO 3a0q5LGfR9b+MZRQ4NszJl7hGa/BY4c2Na1NGAdWPDTBnqg0nsA1zW4NEA9tVlEeSu8sXYbAbFy5k9 3bhEenqP29/lBCTD0FkdnKGSO1aUqzoIi37bVpUG4rBAR6qGwgFgarK9IY57ostVxT4SzwDn37Mcsl UHT2cRsqeG7nsr5AxnwofAPc7rWRjrA== X-MHO-RoutePath: aGlwcGll X-MHO-User: ef03752e-67c5-11ea-9eb3-25e2dfa9fa8d X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id ef03752e-67c5-11ea-9eb3-25e2dfa9fa8d; Mon, 16 Mar 2020 20:37:22 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 02GKbKDh069418; Mon, 16 Mar 2020 14:37:20 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <3bfdda47d68ad3300bc12178ff9ddc939bef9d46.camel@freebsd.org> Subject: Re: STM32 not identified From: Ian Lepore To: bmelo Cc: "freebsd-embedded@freebsd.org" Date: Mon, 16 Mar 2020 14:37:20 -0600 In-Reply-To: <1XBw5X1NatiMuyWhr7sMj-_NVC_2uQxwdcUvYJeSkHSq8SAGXcyabJQXQoscmfjXZ_T_22qkxfCCUvq6aIV9bkpOk6ilz_I4h-qBKNm0Fw4=@protonmail.com> References: <2e1b00c4213037f308417c902291e0a88c06674b.camel@freebsd.org> <7ee5309c7ba196a23e4030dbb0883525fd38f971.camel@freebsd.org> <1XBw5X1NatiMuyWhr7sMj-_NVC_2uQxwdcUvYJeSkHSq8SAGXcyabJQXQoscmfjXZ_T_22qkxfCCUvq6aIV9bkpOk6ilz_I4h-qBKNm0Fw4=@protonmail.com> Content-Type: text/plain; charset="iso-2022-jp" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48h7QY05qJz4ZZ9 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.03 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_MEDIUM(0.95)[0.947,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US]; NEURAL_HAM_LONG(-0.91)[-0.914,0] 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 20:37:25 -0000 On Mon, 2020-03-16 at 20:24 +0000, bmelo wrote: > > I don't have anything in my devfs.conf at all. So do /dev/cuaU* > > devices have the right permissions when you plug in an adapter? Do > > you > > just need to unplug/replug it to force the permissions to change? > > The permmission is actually this even replugging: > crw-rw-rw- 1 uucp dialer - 0x29f Mar 16 17:22 /dev/cuaU0 > rw-rw-rw- 1 root wheel - 0x29c Mar 16 17:22 /dev/ttyU0 > Okay, then it shouldn't be a permission problem anymore, because the whole world can open that device now. I suspect the cuaU* devices are getting created because an ftdi (or similar) usb-serial adapter is involved. But it's likely your st-util program isn't accessing cuaU*, it's probably using libusb and opening the ugen device directly. That's why my rules include these two: add path "usb/*" mode 0666 add path "usb" mode 0755 Yours has this, which looks wrong: add path 'usb/\' mode 666 probably should be usb/* -- Ian > > Sent from ProtonMail, Swiss-based encrypted email. > > > > > Sent from ProtonMail, Swiss-based encrypted email. > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > > On Monday, 16 de March de 2020 s 17:02, Ian Lepore > > > ian@freebsd.org > > > wrote: > > > > > > > On Mon, 2020-03-16 at 16:46 +0000, bmelo wrote: > > > > > > > > > Here is my devfs.rules: > > > > > [devfsrules_common=7] > > > > > add path 'ad[0-9]\' mode 666 > > > > > add path 'ada[0-9]\' mode 666add path 'da[0-9]\' mode 666 > > > > > add path 'acd[0-9]\' mode 666add path 'cd[0-9]\' mode 666 > > > > > add path 'cuaU[0-9]\' mode 666add path 'mmcsd[0-9]\' mode 666 > > > > > add path 'pass[0-9]\' mode 666add path 'xpt[0-9]\' mode 666 > > > > > add path 'ugen[0-9]\' mode 666add path 'usbctl' mode 666 > > > > > add path 'usb/\' mode 666 > > > > > add path 'ttyU[0-9]\' mode 666add path 'lpt[0-9]\' mode 666 > > > > > add path 'ulpt[0-9]\' mode 666add path 'unlpt[0-9]\' mode 666 > > > > > add path 'fd[0-9]\' mode 666add path 'uscan[0-9]\' mode 666 > > > > > add path 'video[0-9]\' mode 666add path 'tuner[0-9]' mode 666 > > > > > add path 'dvb/\' mode 666add path 'cx88*' mode 0660 > > > > > add path 'iicdev*' mode 0660 > > > > > add path 'uvisor[0-9]*' mode 0660 > > > > > > > > I suspect the escaped wildcards are causing a problem, try > > > > using > > > > "cuaU*" instead of "cuaU[0-9]\*" (and likewise for all the > > > > rules, I > > > > don't think there is any device that puts a literal * in the > > > > devfs > > > > name). > > > > -- Ian > > > > > > > > > Sent from ProtonMail, Swiss-based encrypted email. > > > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > > > > On Monday, 16 de March de 2020 s 13:23, Ian Lepore > > > > > ian@freebsd.org > > > > > wrote: > > > > > > > > > > > On Mon, 2020-03-16 at 12:23 +0000, bmelo via freebsd- > > > > > > embedded > > > > > > wrote: > > > > > > > > > > > > > Hi, I have a STM32 Nucleo board and installed stlink from > > > > > > > ports > > > > > > > here. > > > > > > > But all the time I run st-util command I get the message: > > > > > > > WARN usb.c: Couldn't find any ST-Link/V2 devices > > > > > > > The Nucleo creates cuaU0 and ttyU0 in /dev. It seems like > > > > > > > a > > > > > > > permission problem, but I have no idea how to fix that. I > > > > > > > already > > > > > > > tried to edit /etc/devfs.rules and the problem persists. > > > > > > > /dev/cuaU0 > > > > > > > is uucp:dialer and ttyU0 is root:wheel. > > > > > > > Any idea? > > > > > > > > > > > > You didn't saywhat you tried with devfs.rules. This is what > > > > > > I > > > > > > use > > > > > > (because I am the only user of this machine, so security is > > > > > > not > > > > > > a > > > > > > problem; these might not be good for a shared machine): > > > > > > [localrules=10] > > > > > > add path "ttyU*" mode 0666 > > > > > > add path "cuaU*" mode 0666 > > > > > > add path "ugen*" mode 0666 > > > > > > add path "usb/*" mode 0666 > > > > > > add path "usb" mode 0755 > > > > > > -- Ian > > > From owner-freebsd-embedded@freebsd.org Mon Mar 16 20:41:37 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 53BDD26EFB3 for ; Mon, 16 Mar 2020 20:41:37 +0000 (UTC) (envelope-from bmelo@protonmail.com) Received: from mail-40135.protonmail.ch (mail-40135.protonmail.ch [185.70.40.135]) (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 48h7WM2CkRz3F3Q; Mon, 16 Mar 2020 20:41:34 +0000 (UTC) (envelope-from bmelo@protonmail.com) Date: Mon, 16 Mar 2020 20:41:27 +0000 To: Ian Lepore From: bmelo Cc: "freebsd-embedded@freebsd.org" Reply-To: bmelo Subject: Re: STM32 not identified Message-ID: In-Reply-To: <3bfdda47d68ad3300bc12178ff9ddc939bef9d46.camel@freebsd.org> References: <2e1b00c4213037f308417c902291e0a88c06674b.camel@freebsd.org> <7ee5309c7ba196a23e4030dbb0883525fd38f971.camel@freebsd.org> <1XBw5X1NatiMuyWhr7sMj-_NVC_2uQxwdcUvYJeSkHSq8SAGXcyabJQXQoscmfjXZ_T_22qkxfCCUvq6aIV9bkpOk6ilz_I4h-qBKNm0Fw4=@protonmail.com> <3bfdda47d68ad3300bc12178ff9ddc939bef9d46.camel@freebsd.org> 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: 48h7WM2CkRz3F3Q 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.83), ipnet: 185.70.40.0/24(-4.89), asn: 62371(-3.91), country: CH(0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[135.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.987,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]; TO_MATCH_ENVRCPT_ALL(0.00)[]; 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)[] 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 20:41:37 -0000 Done. Still not working =3D/ 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 17:37, Ian Lepore = wrote: > On Mon, 2020-03-16 at 20:24 +0000, bmelo wrote: > > > > I don't have anything in my devfs.conf at all. So do /dev/cuaU* > > > devices have the right permissions when you plug in an adapter? Do > > > you > > > just need to unplug/replug it to force the permissions to change? > > > > The permmission is actually this even replugging: > > crw-rw-rw- 1 uucp dialer - 0x29f Mar 16 17:22 /dev/cuaU0 > > rw-rw-rw- 1 root wheel - 0x29c Mar 16 17:22 /dev/ttyU0 > > Okay, then it shouldn't be a permission problem anymore, because the > whole world can open that device now. > > I suspect the cuaU* devices are getting created because an ftdi (or > similar) usb-serial adapter is involved. But it's likely your st-util > program isn't accessing cuaU*, it's probably using libusb and opening > the ugen device directly. That's why my rules include these two: > > add path "usb/" mode 0666 > add path "usb" mode 0755 > Yours has this, which looks wrong: > add path 'usb/\' mode 666 > probably should be usb/ > > -- Ian > > > Sent from ProtonMail, Swiss-based encrypted email. > > > > > > 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 Ori= ginal Message =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 s 17:02, Ian Lepore > > > > ian@freebsd.org > > > > wrote: > > > > > > > > > On Mon, 2020-03-16 at 16:46 +0000, bmelo wrote: > > > > > > > > > > > Here is my devfs.rules: > > > > > > [devfsrules_common=3D7] > > > > > > add path 'ad[0-9]\' mode 666 > > > > > > add path 'ada[0-9]\' mode 666add path 'da[0-9]\' mode 666 > > > > > > add path 'acd[0-9]\' mode 666add path 'cd[0-9]\' mode 666 > > > > > > add path 'cuaU[0-9]\' mode 666add path 'mmcsd[0-9]\' mode 666 > > > > > > add path 'pass[0-9]\' mode 666add path 'xpt[0-9]\' mode 666 > > > > > > add path 'ugen[0-9]\' mode 666add path 'usbctl' mode 666 > > > > > > add path 'usb/\' mode 666 > > > > > > add path 'ttyU[0-9]\' mode 666add path 'lpt[0-9]\' mode 666 > > > > > > add path 'ulpt[0-9]\' mode 666add path 'unlpt[0-9]\' mode 666 > > > > > > add path 'fd[0-9]\' mode 666add path 'uscan[0-9]\' mode 666 > > > > > > add path 'video[0-9]\' mode 666add path 'tuner[0-9]' mode 666 > > > > > > add path 'dvb/\' mode 666add path 'cx88*' mode 0660 > > > > > > add path 'iicdev*' mode 0660 > > > > > > add path 'uvisor[0-9]*' mode 0660 > > > > > > > > > > I suspect the escaped wildcards are causing a problem, try > > > > > using > > > > > "cuaU*" instead of "cuaU[0-9]\*" (and likewise for all the > > > > > rules, I > > > > > don't think there is any device that puts a literal * in the > > > > > devfs > > > > > name). > > > > > -- Ian > > > > > > > > > > > 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 Message =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 s 13:23, Ian Lepore > > > > > > ian@freebsd.org > > > > > > wrote: > > > > > > > > > > > > > On Mon, 2020-03-16 at 12:23 +0000, bmelo via freebsd- > > > > > > > embedded > > > > > > > wrote: > > > > > > > > > > > > > > > Hi, I have a STM32 Nucleo board and installed stlink from > > > > > > > > ports > > > > > > > > here. > > > > > > > > But all the time I run st-util command I get the message: > > > > > > > > WARN usb.c: Couldn't find any ST-Link/V2 devices > > > > > > > > The Nucleo creates cuaU0 and ttyU0 in /dev. It seems like > > > > > > > > a > > > > > > > > permission problem, but I have no idea how to fix that. I > > > > > > > > already > > > > > > > > tried to edit /etc/devfs.rules and the problem persists. > > > > > > > > /dev/cuaU0 > > > > > > > > is uucp:dialer and ttyU0 is root:wheel. > > > > > > > > Any idea? > > > > > > > > > > > > > > You didn't saywhat you tried with devfs.rules. This is what > > > > > > > I > > > > > > > use > > > > > > > (because I am the only user of this machine, so security is > > > > > > > not > > > > > > > a > > > > > > > problem; these might not be good for a shared machine): > > > > > > > [localrules=3D10] > > > > > > > add path "ttyU*" mode 0666 > > > > > > > add path "cuaU*" mode 0666 > > > > > > > add path "ugen*" mode 0666 > > > > > > > add path "usb/*" mode 0666 > > > > > > > add path "usb" mode 0755 > > > > > > > -- Ian From owner-freebsd-embedded@freebsd.org Mon Mar 16 20:43:54 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 567EA26F1F4 for ; Mon, 16 Mar 2020 20:43:54 +0000 (UTC) (envelope-from andrew@ugh.net.au) Received: from kaija.ugh.net.au (kaija.ugh.net.au [5.79.7.178]) by mx1.freebsd.org (Postfix) with ESMTP id 48h7Z00sBhz3K0V for ; Mon, 16 Mar 2020 20:43:51 +0000 (UTC) (envelope-from andrew@ugh.net.au) Received: from [10.0.0.33] (unknown [5.28.84.195]) by kaija.ugh.net.au (Postfix) with ESMTPSA id DCC40BE29; Mon, 16 Mar 2020 20:43:30 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: STM32 not identified From: Andrew Stevenson In-Reply-To: Date: Mon, 16 Mar 2020 21:43:29 +0100 Cc: "freebsd-embedded@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <4A28D043-960F-465F-AC1A-9B6AD839783E@ugh.net.au> References: To: bmelo X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48h7Z00sBhz3K0V X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of andrew@ugh.net.au has no SPF policy when checking 5.79.7.178) smtp.mailfrom=andrew@ugh.net.au X-Spamd-Result: default: False [3.12 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[ugh.net.au]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.99)[0.994,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[178.7.79.5.list.dnswl.org : 127.0.6.2]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.79)[0.789,0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[protonmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15395, ipnet:5.79.0.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.03)[asn: 15395(0.24), country: GB(-0.07)]; RCVD_COUNT_TWO(0.00)[2] 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 20:43:54 -0000 > On 16. Mar 2020, at 13:23, bmelo via freebsd-embedded = wrote: >=20 > Hi, I have a STM32 Nucleo board and installed stlink from ports here. = But all the time I run st-util command I get the message: > WARN usb.c: Couldn't find any ST-Link/V2 devices > The Nucleo creates cuaU0 and ttyU0 in /dev. It seems like a permission = problem, but I have no idea how to fix that. I already tried to edit = /etc/devfs.rules and the problem persists. /dev/cuaU0 is uucp:dialer and = ttyU0 is root:wheel. > Any idea? Are you sure its permission problem? Doesn=E2=80=99t st-util search via = the USB VID/PID? Maybe running in verbose mode might give some idea of = where it's failing. Do you see your device when you rub usbconfig? Do = the VID/PID match whatever st-util is expecting? HTH, Andrew From owner-freebsd-embedded@freebsd.org Mon Mar 16 21:02:03 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 CDB6F26F7C3 for ; Mon, 16 Mar 2020 21:02:03 +0000 (UTC) (envelope-from bmelo@protonmail.com) Received: from mail4.protonmail.ch (mail4.protonmail.ch [185.70.40.27]) (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 48h7yy1QMDz4VjJ for ; Mon, 16 Mar 2020 21:02:01 +0000 (UTC) (envelope-from bmelo@protonmail.com) Date: Mon, 16 Mar 2020 21:01:47 +0000 To: Andrew Stevenson From: bmelo Cc: "freebsd-embedded@freebsd.org" Reply-To: bmelo Subject: Re: STM32 not identified Message-ID: In-Reply-To: <4A28D043-960F-465F-AC1A-9B6AD839783E@ugh.net.au> References: <4A28D043-960F-465F-AC1A-9B6AD839783E@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: 48h7yy1QMDz4VjJ 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.81), ipnet: 185.70.40.0/24(-4.89), asn: 62371(-3.91), country: CH(0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[27.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 21:02:03 -0000 > Are you sure its permission problem? Doesn=E2=80=99t st-util search via t= he USB VID/PID? Maybe running in verbose mode might give some idea of where= it's failing. Do you see your device when you rub usbconfig? Do the VID/PI= D match whatever st-util is expecting? Yes, usbconfig see the device: ugen0.6: a= t usbus0, cfg=3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DON (300mA) st-util's verbose mode is useless, never returns verbosed output :P From owner-freebsd-embedded@freebsd.org Mon Mar 16 22:19:02 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 556D92717DA for ; Mon, 16 Mar 2020 22:19:02 +0000 (UTC) (envelope-from andrew@ugh.net.au) Received: from kaija.ugh.net.au (kaija.ugh.net.au [5.79.7.178]) by mx1.freebsd.org (Postfix) with ESMTP id 48h9gn3M8Yz4FsR for ; Mon, 16 Mar 2020 22:19:01 +0000 (UTC) (envelope-from andrew@ugh.net.au) Received: from [10.0.0.33] (unknown [5.28.84.195]) by kaija.ugh.net.au (Postfix) with ESMTPSA id 37F28BE85; Mon, 16 Mar 2020 22:18:59 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: STM32 not identified From: Andrew Stevenson In-Reply-To: Date: Mon, 16 Mar 2020 23:18:58 +0100 Cc: "freebsd-embedded@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <637C7B9A-31E1-4481-9675-61D771B7E0B5@ugh.net.au> References: <4A28D043-960F-465F-AC1A-9B6AD839783E@ugh.net.au> To: bmelo X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48h9gn3M8Yz4FsR X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of andrew@ugh.net.au has no SPF policy when checking 5.79.7.178) smtp.mailfrom=andrew@ugh.net.au X-Spamd-Result: default: False [3.15 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[ugh.net.au]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.99)[0.994,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[178.7.79.5.list.dnswl.org : 127.0.6.2]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.82)[0.823,0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[protonmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15395, ipnet:5.79.0.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.03)[asn: 15395(0.24), country: GB(-0.07)]; RCVD_COUNT_TWO(0.00)[2] 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:19:02 -0000 > On 16. Mar 2020, at 22:01, bmelo wrote: >=20 >> Are you sure its permission problem? Doesn=E2=80=99t st-util search = via the USB VID/PID? Maybe running in verbose mode might give some idea = of where it's failing. Do you see your device when you rub usbconfig? Do = the VID/PID match whatever st-util is expecting? >=20 > 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 = VID =3D=3D 0x0483 and PID =3D=3D 0x3748 or 0x374b. Usbconfig = dump_device_desc will show you the details of your device. If they do match I=E2=80=99m not sure where you would go from there = without debugging the code but I think the permissions of your serial = devices is a red herring. Andrew=20= 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 From owner-freebsd-embedded@freebsd.org Tue Mar 17 06:22:25 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 2B08F25C288 for ; Tue, 17 Mar 2020 06:22:25 +0000 (UTC) (envelope-from andrew@ugh.net.au) Received: from kaija.ugh.net.au (kaija.ugh.net.au [IPv6:2a00:1a48:7803:107:65bc:4bde:ff08:1f7f]) by mx1.freebsd.org (Postfix) with ESMTP id 48hNPX4vfxz3y3t for ; Tue, 17 Mar 2020 06:22:24 +0000 (UTC) (envelope-from andrew@ugh.net.au) Received: from [IPv6:2a02:2450:102b:40e:5c0a:62fc:2ed9:7949] (unknown [IPv6:2a02:2450:102b:40e:5c0a:62fc:2ed9:7949]) by kaija.ugh.net.au (Postfix) with ESMTPSA id 548EBBF22; Tue, 17 Mar 2020 06:22:23 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andrew Stevenson Mime-Version: 1.0 (1.0) Subject: Re: STM32 not identified Date: Tue, 17 Mar 2020 07:22:21 +0100 Message-Id: <48199592-44DA-424E-A181-6E8761485598@ugh.net.au> References: Cc: "freebsd-embedded@freebsd.org" In-Reply-To: To: bmelo X-Mailer: iPhone Mail (17D50) X-Rspamd-Queue-Id: 48hNPX4vfxz3y3t X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of andrew@ugh.net.au has no SPF policy when checking 2a00:1a48:7803:107:65bc:4bde:ff08:1f7f) smtp.mailfrom=andrew@ugh.net.au X-Spamd-Result: default: False [3.11 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[ugh.net.au]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.99)[0.994,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[f.7.f.1.8.0.f.f.e.d.b.4.c.b.5.6.7.0.1.0.3.0.8.7.8.4.a.1.0.0.a.2.list.dnswl.org : 127.0.6.2]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.78)[0.778,0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[protonmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15395, ipnet:2a00:1a48::/32, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.03)[asn: 15395(0.24), country: GB(-0.07)]; RCVD_COUNT_TWO(0.00)[2] 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: Tue, 17 Mar 2020 06:22:25 -0000 > On 16. Mar 2020, at 23:42, bmelo wrote: >=20 > =EF=BB=BFidVendor =3D 0x0483 > idProduct =3D 0x3752 >=20 > You mean debug stlink code? I do but as your PID doesn=E2=80=99t match I theorise you might have a new d= evice that the code isn=E2=80=99t been updated for yet? You could check ther= e is no newer version upstream or just hack in another =E2=80=99|| pid =3D=3D= 0x3752=E2=80=99 and see if it magically works.=20 HTH Andrew=