File tree 5 files changed +35
-137
lines changed
5 files changed +35
-137
lines changed Original file line number Diff line number Diff line change @@ -633,7 +633,7 @@ jobs:
633
633
string : ${{ matrix.example }}
634
634
- name : build-example-stm32f429
635
635
run : |
636
- PATH="${{ runner.workspace }}/wide_integer /emu_env/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin:$PATH"
636
+ PATH="${{ runner.workspace }}/wide-integer /emu_env/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin:$PATH"
637
637
echo 'Query arm-none-eabi-g++ version'
638
638
echo
639
639
arm-none-eabi-g++ -v
@@ -645,17 +645,17 @@ jobs:
645
645
working-directory : ./
646
646
- name : emulate-target stm32f429
647
647
run : |
648
- PATH="${{ runner.workspace }}/wide_integer /emu_env/xpack-qemu-arm-8.2.6-1/bin:$PATH"
648
+ PATH="${{ runner.workspace }}/wide-integer /emu_env/xpack-qemu-arm-8.2.6-1/bin:$PATH"
649
649
qemu-system-gnuarmeclipse --verbose --mcu STM32F429ZI --nographic --gdb tcp::9999 -d unimp,guest_errors &
650
650
sleep 2
651
651
working-directory : ./
652
652
- name : run-test-on-target
653
653
run : |
654
654
sleep 2
655
- PATH="${{ runner.workspace }}/wide_integer /emu_env/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin:$PATH"
655
+ PATH="${{ runner.workspace }}/wide-integer /emu_env/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin:$PATH"
656
656
echo 'Run test on target'
657
657
echo
658
- arm-none-eabi-gdb ./bin/${{ matrix.example }}.elf -x ./target/build/test_app_benchmarks_emulator .gdb > ./${{ matrix.example }}.txt
658
+ arm-none-eabi-gdb ./bin/${{ matrix.example }}.elf -x ./target/build/test_examples_emulator .gdb > ./${{ matrix.example }}.txt
659
659
cat ./${{ matrix.example }}.txt
660
660
echo
661
661
echo 'We will now grep for the right answer...'
Original file line number Diff line number Diff line change
1
+ # ///////////////////////////////////////////////////////////////////
2
+ # // Copyright Christopher Kormanyos 2020 - 2024. //
3
+ # // Distributed under the Boost Software License, //
4
+ # // Version 1.0. (See accompanying file LICENSE_1_0.txt //
5
+ # // or copy at http://www.boost.org/LICENSE_1_0.txt) //
6
+ # ///////////////////////////////////////////////////////////////////
7
+
8
+
9
+ # Connect to the target (e.g., OpenOCD or another GDB server).
10
+ target remote localhost:9999
11
+ monitor halt
12
+
13
+ # Ensure that the program is loaded.
14
+ load
15
+
16
+ # Set a breakpoint at the specified subroutine.
17
+ break app_benchmark_get_standalone_result
18
+
19
+ # Start or continue program execution.
20
+ continue
21
+
22
+ # Format and print the value of a variable.
23
+ printf " value 0x%X\n\n " , app_benchmark_standalone_result
24
+
25
+ # Delete (all) breakpoint(s).
26
+ delete
27
+
28
+ # Perform a non-elegant quit of the GDB session.
29
+ quit
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 320
320
<None Include =" README.md" />
321
321
<None Include =" run_fuzzing.sh" />
322
322
<None Include =" sonar-project.properties" />
323
- <None Include =" target\build\test_examples_emulator.py " >
323
+ <None Include =" target\build\test_examples_emulator.gdb " >
324
324
<ExcludedFromBuild Condition =" '$(Configuration)|$(Platform)'=='Debug|Win32'" >true</ExcludedFromBuild >
325
325
<ExcludedFromBuild Condition =" '$(Configuration)|$(Platform)'=='Release|Win32'" >true</ExcludedFromBuild >
326
326
<ExcludedFromBuild Condition =" '$(Configuration)|$(Platform)'=='Debug|x64'" >true</ExcludedFromBuild >
Original file line number Diff line number Diff line change 287
287
<Filter >.github\workflows</Filter >
288
288
</None >
289
289
<None Include =" codecov.yml" />
290
- <None Include =" target\build\test_examples_emulator.py " >
290
+ <None Include =" target\build\test_examples_emulator.gdb " >
291
291
<Filter >target\build</Filter >
292
292
</None >
293
293
<None Include =" target\micros\stm32f429\make\stm32f429.ld" >
You can’t perform that action at this time.
0 commit comments