Added rpi-pico-sdk

This commit is contained in:
AlexanderHD27
2024-09-10 15:36:38 +02:00
parent 8b97a1853d
commit 29af5335f5
25 changed files with 3354 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
cd build
make -j10

View File

@@ -0,0 +1,8 @@
#!/usr/bin/bash
if ! scripts/build.sh; then
exit
else
scripts/flash.exp main.elf
fi

View File

@@ -0,0 +1,21 @@
#!/usr/bin/expect
set timeout 30
set input_file [lindex $argv 0]
spawn telnet localhost 4444
expect "> "
send "program $input_file verify\n"
expect "** Programming Finished **"
send "reset halt\n"
expect "> "
send "rp2040.core1 arp_reset assert 0\n"
expect "> "
send "rp2040.core0 arp_reset assert 0\n"
expect "> "
send "exit\n"
exit

View File

@@ -0,0 +1,3 @@
#!/usr/bin/bash
openocd -f interface/cmsis-dap.cfg -c "adapter speed 5000" -f target/rp2040.cfg -c "program $1 verify reset exit"

View File

@@ -0,0 +1,4 @@
#!/usr/bin/bash
sudo openocd -f interface/cmsis-dap.cfg -c "adapter speed 5000" -f target/rp2040.cfg

View File

@@ -0,0 +1,2 @@
#!/usr/bin/bash
minicom -D $1

View File

@@ -0,0 +1,13 @@
#!/usr/bin/expect
set timeout 30
set input_file [lindex $argv 0]
spawn telnet localhost 4444
expect "> "
send "reset\n"
expect "> "
send "exit\n"
exit