File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,14 +58,24 @@ size_t validate_payload() {
5858
5959void main ()
6060{
61+ stdio_init_all ();
62+
63+ while (!tud_cdc_connected ()) {
64+ // wait for USB
65+ }
66+
6167 adc_init ();
6268 s_board_type = hw_detect_board_type ();
6369
70+ printf ("PicoBoot (%s) by webhdx (c) 2025\n" , FW_VER_STRING );
71+ printf ("Board Type: %s\n" , hw_board_type_to_string (s_board_type ));
72+
6473 status_led_init (s_board_type );
6574 status_led_on ();
6675
6776 size_t payload_size = validate_payload ();
6877 if (payload_size == SIZE_MAX ) {
78+ printf ("PicoBoot: Invalid payload. Entering infinite loop.\n" );
6979 while (true) {
7080 sleep_ms (500 );
7181 status_led_toggle ();
@@ -142,6 +152,8 @@ void main()
142152 pio_sm_set_enabled (pio , transfer_start_sm , true);
143153 pio_sm_set_enabled (pio , clocked_output_sm , true);
144154
155+ printf ("PicoBoot: Finished injecting payload. Entering infinite loop.\n" );
156+
145157 while (true) {
146158 tight_loop_contents ();
147159 }
You can’t perform that action at this time.
0 commit comments