From owner-freebsd-hackers@freebsd.org Sun Mar 6 07:58:27 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CE796AB69A3 for ; Sun, 6 Mar 2016 07:58:27 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [188.252.31.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "puchar.net", Issuer "puchar.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 36D2CB0A for ; Sun, 6 Mar 2016 07:58:26 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.14.9) with ESMTPS id u267TE7r044633 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 6 Mar 2016 08:29:14 +0100 (CET) (envelope-from wojtek@puchar.net) Received: from laptop.wojtek.intra (localhost [127.0.0.1]) by laptop.wojtek.intra (8.14.9/8.14.9) with ESMTP id u267TAfY004738; Sun, 6 Mar 2016 08:29:10 +0100 (CET) (envelope-from wojtek@puchar.net) Received: from localhost (wojtek@localhost) by laptop.wojtek.intra (8.14.9/8.14.9/Submit) with ESMTP id u267T55h004735; Sun, 6 Mar 2016 08:29:05 +0100 (CET) (envelope-from wojtek@puchar.net) X-Authentication-Warning: laptop.wojtek.intra: wojtek owned process doing -bs Date: Sun, 6 Mar 2016 08:29:05 +0100 (CET) From: Wojciech Puchar X-X-Sender: wojtek@laptop.wojtek.intra To: Tom Sparks cc: freebsd-hackers@freebsd.org Subject: Re: Pic32 toolchain support In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (puchar.net [10.0.1.1]); Sun, 06 Mar 2016 08:29:14 +0100 (CET) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2016 07:58:27 -0000 > Has anyone looked at using FreeBSD for working with PIC32 based devices? I don't program pic32 (but STM32) but for toolchain just download gcc and build mips-none-eabi target. building is quite messy but after this it works. Personally i DO NOT use any libraries and other manufacturer supplied shit, instruction consist of all addresses so it's better to just write and read data from peripherals directly. For STM32 i have my own "crt0" (actually 192 bytes of interrupt tables and 20 bytes of startup assembly). For PIC32 make your own. As for programming - there are free software but for linux. you may have to modify sources a bit but it should not be a problem.