Maarten van der Schrieck
5ab801799f
CMakeLists.txt: drop the hard-coded entry address in favor of a lookup of the .app_bin section in the map file
il y a 1 an
Maarten van der Schrieck
ef4c7b1614
gen_imghdr.py: add feature to lookup section address in mapfile
This allows to drop the nasty hardcoded address in CMakeLists.txt.
il y a 1 an
Brian Starkey
e91aa0b747
Fix debug build
Reported by ghubcoder in #2 , debug builds were broken due to
incorrect MAX_NARG macro - it should be COMM_MAX_NARG.
il y a 2 ans
Brian Starkey
42fdcd358b
Merge pull request #1 from vajr8/main
Add WiFi AP mode
il y a 2 ans
Tomi
7c024524f4
Update the documentation to consider the AP mode
il y a 2 ans
Tomi
aa6093b094
Allow defining PICOWOTA_WIFI_AP in the environment
This aligns the behavior of the build variables, providing a helper function to do the job.
il y a 2 ans
Tomi
d39bd485ad
Add WiFi AP mode
This allows to choose, when running cmake, whether the bootloader will connect to an existing AP (default behavior)
or fire up its own (by passing -DPICOWOTA_WIFI_AP=1) by using the same provided credentials.
DHCP requests are handled, with these settings the subnet is 192.168.4.1/24.
il y a 2 ans
Brian Starkey
f4bff93f4d
Fix typo in README
il y a 2 ans
Brian Starkey
de33fac142
Add https://github.com/raspberrypi/pico-sdk/issues/928 to README
il y a 2 ans
Brian Starkey
6efe1383ea
Add LICENSE and README
il y a 2 ans
Brian Starkey
321c246425
Move WiFi credentials to variables
No more creds.c
Set PICOWOTA_WIFI_SSID/PICOWOTA_WIFI_PASS environment variables or
CMake variables.
il y a 2 ans
Brian Starkey
dcda2194f2
picowota_reboot: Add missing cmsis_core dependency
il y a 2 ans
Brian Starkey
8fd36b7096
Add ability to build combined images
il y a 2 ans
Brian Starkey
9655426b1c
Check in the creds file
May regret this!
il y a 2 ans
Brian Starkey
ac21d218d6
Move reboot functionality to a separate library
This will be required for including into apps, so break it out.
il y a 2 ans
Brian Starkey
6347c8e02c
Jump to app if bootloader entry not requested
il y a 2 ans
Brian Starkey
a089d5d452
Move the disjoint operations to a queue
il y a 2 ans
Brian Starkey
9bdc2fded0
Fix some warnings and optimise for size
Looks like removing printf drops about 10kB.
il y a 2 ans
Brian Starkey
f0c0f516f5
main: Wrap flash commands in critical section and enable them
It works! Unceremoniously bailing out on the WiFi driver without
shutting it down might not be great - handling the "GO" and "REBOOT"
commands gracefully in the main loop would probably be better.
But hey, it works!
il y a 2 ans
Brian Starkey
8a71b096b9
tcp_comm: Rework receive handling
Now whatever arrives will get stored, and then used up by as many stages
as possible.
il y a 2 ans
Brian Starkey
a57cac28f1
Port over all the other commands
...but not it's obvious - we can't assume each packet nicely
encapsulates a single stage, it might all arrive in one go.
So the current "recv" implementation can't work. d'oh!
il y a 2 ans
Brian Starkey
fc55e221d3
tcp_comm: Make RX length checking more strict
Don't allow data which is too long.
il y a 2 ans
Brian Starkey
e0da727e96
Factor out the TCP code
Now isolated for easy re-use. Should split it into a separate library.
il y a 2 ans
Brian Starkey
3bdad9eb2b
Implement "comm", a fairly close port of M0o+'s version
il y a 2 ans
Brian Starkey
f62b584605
Refactor the example a little
il y a 2 ans
Brian Starkey
04bd83cae5
Initial basic TCP server
Based on the Pi example
il y a 2 ans
Brian Starkey
0166ad5f0c
Initial empty commit
il y a 2 ans