From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Arduino Due vs Mac Date: Sat, 11 Jul 2015 14:35:56 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c762050aff3a30866fa7e79999b14776"; logging-data="15759"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Xx3CxHburL0w/SZTkqZYgbj1HPUCop10=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:yw9j2byvULCIdc5pGJZm2aqE/iQ= sha1:/nVD8c2zz/+dCfH1NPF95cRy/3A= Xref: news.eternal-september.org comp.lang.ada:26771 Date: 2015-07-11T14:35:56+01:00 List-Id: Simon Wright writes: > darek writes: > >> On Monday, 6 July 2015 23:07:59 UTC+2, Simon Wright wrote: >>> Tero Koskinen writes: >>> >>> > Instead of using bossa, buy yourself a real JTAG adapter (Segger >>> > JLink, etc.). If you at some point change to a different ARM Cortex-M >>> > MCU, same JTAG adapter continues to work with it also (unless you buy >>> > some very cheap vendor-specific JTAG). >>> >>> That would be the next step. Indeed, without JTAG I don't see how >>> anyone programs the Due, because of total absence of debug >>> facilities; and it does add considerably to the price (not that I >>> can't afford it, just seems a bit much for the hobbyist >>> market). You're talking about something like 3 times the cost of an >>> STM32F4 Disco board, which has the STLINK interface on-board and a >>> straightforward and free software solution for gdb; things stop, ^C, >>> get a traceback from last_chance_handler, on to the next problem. >> >> For my hobby projects (SDR) at home I got this one (non-commercial use): >> https://www.segger.com/j-link-edu.html >> Together with the Olimex board : >> https://www.olimex.com/Products/ARM/ST/STM32-H407/open-source-hardware and >> a hobbyist version of the CrossWorks (http://www.rowley.co.uk/arm/) >> environment works very well. I know, its C but I had to start >> somewhere :). >> Again this is not Ada but it is worth checking: >> http://www.mpeforth.com/xc7.htm#versions and >> http://www.forth.com/embedded/swiftx-embedded-systems-14.html > > I'm looking at the Segger EDU version and the Olimex connector (a tenth > the cost of the Segger version!) Works just fine. I spent a lot of time looking at the 10-pin end of the Olimex connector; the red side of the cable, which I believe means pin 1 is at that end, goes to the inboard end of the JTAG connector. I run the GDB server with $ jlinkgdbserver \ -device ATSAM3X8E \ -endian little \ -if jtag \ -localhostonly \ -halt (-if swd works too).