Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Once that has finished, you can build the project:

Assuming that has gone OK, you can now run the application:

$ ../run-arm
$ ../run-arm pico-hello

This should print out some messages and then exit:

Expand Down
10 changes: 5 additions & 5 deletions run-arm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ case "$cpu_arch"/"$cpu_profile" in
cpu=cortex-a7
;;
esac
;;
;;
v7/Microcontroller)
cpu=cortex-m3
;;
Expand All @@ -98,7 +98,7 @@ case "$cpu_arch"/"$cpu_profile" in
;;
esac
;;

v8-M.*/Microcontroller)
case "$fp_arch" in
FPv5/FP-D16)
Expand Down Expand Up @@ -177,7 +177,7 @@ case $cpu in
esac
memory="-m 1G"
;;

# The 'none' machine supports many non-M
# processors
ti925t|arm*|cortex-a*|cortex-r*)
Expand All @@ -189,7 +189,7 @@ esac

#
# Make sure the target machine and cpu is supported by qemu
#
#
if $qemu -machine help | grep -q "^$machine "; then
if $qemu -machine $machine -cpu help | grep -q "^ *$cpu"; then
:
Expand Down Expand Up @@ -262,7 +262,7 @@ echo "$input" > "$input_file"
-cpu "$cpu" \
-device loader,file="$elf",cpu-num=0 \
-nographic \
"$@" < $input_file
"$@" < $input_file

result=$?

Expand Down