A test suite to verify that the fun tech gcc is woking.
C Perl C++
Pull request Compare This branch is 1 commit behind jsiei97:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
error01
error02
error03
error04
error05
error06
error07
print_ring
res
scripts
src
test01
test02
test03
test04
test05
vendor/unity
.gitignore
Makefile
README
make_pc.mk
make_target.mk
run_test.bsh

README

First build the gcc that you would like to test 
see http://fun-tech.se/stm32/ for more info on this topic.

Then run this script:
source ~/stm32/bin/stm32_setup.sh
chmod 755 run_test.bsh
./run_test.bsh


Or do it by hand:
source ~/stm32/bin/stm32_setup.sh
scripts/start_server.bsh
make TEST=test03 flash 
ddd --eval-command="target remote localhost:3333" --debugger arm-none-eabi-gdb  main.elf

To test some things on a pc you can try:
make TARGET=pc TEST=test01

And then run with 
./main.elf
gdb main.elf --eval-command="break test_success" --eval-command="break test_failed" 
ddd main.elf --eval-command="break test_success" --eval-command="break test_failed" 


Ignore the rest of this file...


xterm -e "telnet localhost 4444" &

arm-none-eabi-insight --eval-command="target remote localhost:3333" main.elf
arm-none-eabi-gdbtui  --eval-command="target remote localhost:3333" main.elf
arm-none-eabi-gdb     --eval-command="target remote localhost:3333" main.elf

ddd --eval-command="target remote localhost:3333" --debugger arm-none-eabi-gdb  main.elf

Fixa adress: 
arm-none-eabi-readelf -s main.elf | grep test_success | awk '{print $2}'
arm-none-eabi-readelf -s main.elf | grep test_failed  | awk '{print $2}'

telnet:
bp 0x15 1 hw
bp 0x19 1 hw

gdb:
break test_success
break test_failed
cont
frame

arm-none-eabi-gdb --batch --command=res/commands.gdb main.elf