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