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.236.26.105 with SMTP id b69mr3488261yha.55.1407294788916; Tue, 05 Aug 2014 20:13:08 -0700 (PDT) X-Received: by 10.182.128.131 with SMTP id no3mr64869obb.9.1407294788673; Tue, 05 Aug 2014 20:13:08 -0700 (PDT) Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!j15no4727557qaq.0!news-out.google.com!px9ni584igc.0!nntp.google.com!h18no14782485igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 5 Aug 2014 20:13:08 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=99.224.184.56; posting-account=1sGSewoAAAABLExeWf8EQfa8tzBBdK-D NNTP-Posting-Host: 99.224.184.56 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: GNAT SPARK:Embedded ARM Ada Project doesn't run in STM32F429 Discovery Board From: alexander.ribero.ovalle@gmail.com Injection-Date: Wed, 06 Aug 2014 03:13:08 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.dca.giganews.com comp.lang.ada:188178 Date: 2014-08-05T20:13:08-07:00 List-Id: Hi: I downloaded and installed gnat-gpl-2014-arm-elf-windows-bin.exe 123 MB Ma= y 23, 2014, and followed the tutorial instructions. The application compiles and the debugger is called, and it seems that it g= ets programmed on the STM32F4 Discovery board (I have STM32F4 discovery boa= rd for the STM32F429 target). Because it is a different board than the one = for the F401, the LEDs are connected on Port G and not Port D, so I replace= d the references to Port D with references to Port G. I added the GPIO base= addresses for Port G as well. However, after initializing the debugger and starting the program, the LEDs= don't turn on, and the debugger doesn't stop at the breakpoint suggested i= n the tutorial. It seems that it doesn't do anything. The St-Link COM LEDs = blink, indicating the the debugger is running, but GPS doesn't show any act= ivity. This is what GPS shows: file C:/GNAT/2014/share/examples/gnat-cross/demo_leds-stm32f4/obj/demo Reading symbols from C:/GNAT/2014/share/examples/gnat-cross/demo_leds-stm32= f4/obj/demo...done. Remote debugging using localhost:4242 0x08000cb0 in _start_rom () load C:/GNAT/2014/share/examples/gnat-cross/demo_leds-stm32f4/obj/demo Loading section .text, size 0x3fc0 lma 0x8000000 Loading section .rodata, size 0x538 lma 0x8003fc0 Loading section .data, size 0x4ac lma 0x80044f8 Start address 0x8000cb0, load size 18852 Transfer rate: 7 KB/sec, 4713 bytes/write. (gdb) continue Continuing. This is what st-util shows: C:\Users\admin>st-util 2014-08-04T14:09:28 INFO ../src/src/stlink-common.c: Loading device paramet= ers.. .. 2014-08-04T14:09:28 INFO ../src/src/stlink-common.c: Device connected is: F= 42x and F43x device, id 0x10036419 2014-08-04T14:09:28 INFO ../src/src/stlink-common.c: SRAM size: 0x30000 byt= es (192 KiB), Flash: 0x200000 bytes (2048 KiB) in pages of 16384 bytes Chip ID is 00000419, Core ID is 2ba01477. Target voltage is 2891 mV. Listening at *:4242... KARL - should read back as 0x03, not 60 02 00 00 GDB connected. 2014-08-04T14:09:36 INFO ../src/src/stlink-common.c: Attempting to write 16= 384 ( 0x4000) bytes to stm32 address: 134217728 (0x8000000) EraseFlash - Sector:0x0 Size:0x4000 Flash page at addr: 0x08000000 erased 2014-08-04T14:09:37 INFO ../src/src/stlink-common.c: Finished erasing 1 pag= es of 16384 (0x4000) bytes 2014-08-04T14:09:37 INFO ../src/src/stlink-common.c: Starting Flash write f= or F2/F4 2014-08-04T14:09:37 INFO ../src/src/stlink-common.c: Successfully loaded fl= ash loader in sram size: 16384 2014-08-04T14:09:37 INFO ../src/src/stlink-common.c: Starting verification = of write complete 2014-08-04T14:09:37 INFO ../src/src/stlink-common.c: Flash written and veri= fied! jolly good! 2014-08-04T14:09:37 INFO ../src/src/stlink-common.c: Attempting to write 16= 384 (0x4000) bytes to stm32 address: 134234112 (0x8004000) EraseFlash - Sector:0x1 Size:0x4000 Flash page at addr: 0x08004000 erased 2014-08-04T14:09:38 INFO ../src/src/stlink-common.c: Finished erasing 1 pag= es of 16384 (0x4000) bytes 2014-08-04T14:09:38 INFO ../src/src/stlink-common.c: Starting Flash write f= or F2/F4 2014-08-04T14:09:38 INFO ../src/src/stlink-common.c: Successfully loaded fl= ash loader in sram size: 16384 2014-08-04T14:09:38 INFO ../src/src/stlink-common.c: Starting verification = of write complete 2014-08-04T14:09:39 INFO ../src/src/stlink-common.c: Flash written and veri= fied! jolly good! I have the following questions: 1. Have anyone been able to get the examples running on either F401 or F429= ST Discovery Boards? 2. Do you have a description of the additional runtime libraries, code, tha= t gets loaded prior to running the actual application. The application seem= s to be stuck somewhere during the initialization? 3. How is the cpu clock gets initialized? 4. If you have any recommendation to get this example running, please let m= e know. I am very interested in running Ada projects in embedded ARM microc= ontrollers. Regards, Alex