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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.21.132 with SMTP id 126mr6096134iov.134.1510496998311; Sun, 12 Nov 2017 06:29:58 -0800 (PST) X-Received: by 10.157.14.201 with SMTP id 67mr632431otj.4.1510496998192; Sun, 12 Nov 2017 06:29:58 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!l196no1793323itl.0!news-out.google.com!x87ni2951ita.0!nntp.google.com!l196no1793321itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 12 Nov 2017 06:29:57 -0800 (PST) In-Reply-To: <16ddffcb-6ee7-418e-a61a-fe8ef1c583c2@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.255.112.230; posting-account=NT38RwoAAAB4_OO_uw8yHtNaa9Hkjukk NNTP-Posting-Host: 83.255.112.230 References: <16ddffcb-6ee7-418e-a61a-fe8ef1c583c2@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <985c7393-262a-487a-bcb5-0207b307197a@googlegroups.com> Subject: Re: How to create a GPR project for ARM Cortex? From: =?UTF-8?B?Sm9oYW4gU8O2ZGVybGluZCDDhXN0csO2bQ==?= Injection-Date: Sun, 12 Nov 2017 14:29:58 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2982 X-Received-Body-CRC: 273154705 Xref: feeder.eternal-september.org comp.lang.ada:48841 Date: 2017-11-12T06:29:57-08:00 List-Id: Debugger is working to a moderate extent. package Ide is for Gnat use "arm-eabi-gnat"; for Gnatlist use "arm-eabi-gnatls"; for Debugger_Command use "arm-eabi-gdb"; --for Connection_Config_File use "stm32l0.cfg"; for Program_Host use "localhost:4242"; for Communication_Protocol use "remote"; --for Connection_Tool use "openocd"; for Connection_Tool use "st-util"; end Ide; Using openocd: crashes randomly with "JTAG failure -4" Using st-util: everything is working except I can not set breakpoints, I get following: "Could not execute "debug set line breakpoint'" Flash to board button in GNAT Programming Studio does not work. It writes to the board but the program does not execute correct. I think the load address might be wrong. I get following: gprbuild --target=arm-eabi -d -PC:\Users\Johan\Documents\B-L072Z-LRWAN1_Ada\default.gpr C:\Users\Johan\Documents\B-L072Z-LRWAN1_Ada\src\main.c -largs -Wl,-Map=map.txt Compile [c] main.c [asm] startup_stm32l072xx.s Link [archive] libdefault.a [index] libdefault.a [link] main.c Memory region Used Size Region Size %age Used RAM: 1544 B 20 KB 7.54% FLASH: 1800 B 192 KB 0.92% [2017-11-12 15:28:07] process terminated successfully, elapsed time: 00.68s Retrieving the load address. arm-eabi-objdump C:\Users\Johan\Documents\B-L072Z-LRWAN1_Ada\bin\main.elf -h Load address is: 0x080000c0 Creating the binary (flashable) image. arm-eabi-objcopy -O binary C:\Users\Johan\Documents\B-L072Z-LRWAN1_Ada\bin\main.elf C:\Users\Johan\Documents\B-L072Z-LRWAN1_Ada\bin\main.elf.bin Flashing image to board. Could not flash the executable. [workflow stopped]