├── img1.jpg ├── img2.jpg ├── hardware ├── schematic.pdf ├── README.md └── usbuc.brd ├── firmware └── README.md └── README.md /img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atlas44/usbuc/HEAD/img1.jpg -------------------------------------------------------------------------------- /img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atlas44/usbuc/HEAD/img2.jpg -------------------------------------------------------------------------------- /hardware/schematic.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atlas44/usbuc/HEAD/hardware/schematic.pdf -------------------------------------------------------------------------------- /firmware/README.md: -------------------------------------------------------------------------------- 1 | # Firmware 2 | Real firmware TODO 3 | 4 | In the meantime, [here](https://gist.github.com/atlas44/32b960b8192ba0ad9794e207411b13dc) is some proof of concept code to launch a payload. 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # usbuc 2 | A PIC32 based modchip for the Nintendo Switch. 3 | 4 | ## Description 5 | This is an experimental WIP modchip designed to fit inside of the Switch that will trigger [Fusee Gelee](https://github.com/reswitched/fusee-launcher) automatically on boot to launch an arbitrary payload. Installing it requires soldering 5 wires. 6 | 7 | ## Pictures 8 | ![img1](img1.jpg) 9 | 10 | 11 | ![img2](img2.jpg) 12 | 13 | ## Disclaimer 14 | This is a work-in-process, extremely experimental, and has only had limited testing! If you are not comfortable with small soldering and both software and hardware debugging you should not use this! Mistakes can easily result in a permanently damaged Switch! 15 | 16 | ## Installation Instructions 17 | TODO 18 | -------------------------------------------------------------------------------- /hardware/README.md: -------------------------------------------------------------------------------- 1 | # Hardware 2 | 3 | ## Parts List 4 | 5 | ### Somewhat Specific parts 6 | | Quantity | Part | Description | Cost for 1 | Link 7 | | -------- | ----- | ----------- | ---------- | ---- 8 | | 1 | PIC32MX270F256B-I/ML | Microcontroller | $3.99 | [DigiKey](https://www.digikey.com/product-detail/en/microchip-technology/PIC32MX270F256B-I-ML/PIC32MX270F256B-I-ML-ND/4902628) 9 | | 1 | NCP551SN | Voltage Regulator | $0.57 | [DigiKey](https://www.digikey.com/product-detail/en/on-semiconductor/NCP551SN33T1G/NCP551SN33T1GOSCT-ND) 10 | | 1 | AT25SF081-XMHD-T | Flash Storage (OPTIONAL! Gives extra space for more payloads) | $0.71 | [DigiKey](https://www.digikey.com/product-detail/en/adesto-technologies/AT25SF081-XMHD-T/1265-1277-1-ND/6827525) 11 | 12 | ### Easily Substitutable parts 13 | | Quantity | Part | Description | Cost for 1 | Link 14 | | -------- | ----- | ----------- | ---------- | ---- 15 | | 1 | 8.000 MHz Crystal, 5x3.2 | Crystal Oscillator | $0.69 | [DigiKey](https://www.digikey.com/product-detail/en/abracon-llc/ABM3B-8.000MHZ-10-1-U-T/535-9721-1-ND/1873255) 16 | | 2 | 18pF Capacitor 0603 | Capacitors for crystal | $0.10 | [DigiKey](https://www.digikey.com/product-detail/en/yageo/CC0603GRNPO9BN180/311-3922-1-ND/8025011) 17 | | 2 | 1uF Capacitor 0603 | Decoupling capacitors | $0.10 | [DigiKey](https://www.digikey.com/product-detail/en/samsung-electro-mechanics/CL10A105KQ8NNNC/1276-1036-1-ND/3889122) 18 | | 1 | 10uF Capacitor 0603 | Capacitor for microcontroller's internal regulator | $0.21 | [DigiKey](https://www.digikey.com/product-detail/en/tdk-corporation/C1608X5R0J106M080AB/445-4112-1-ND/1975462) 19 | | 1 | 10K Resistor 0603 | Reset pull-up | $0.10 | [DigiKey](https://www.digikey.com/product-detail/en/stackpole-electronics-inc/RMCF0603JG10K0/RMCF0603JG10K0CT-ND/4425128) 20 | | 1 | Green LED 0603 | Indicator LED (OPTIONAL) | $0.27 | [DigiKey](https://www.digikey.com/product-detail/en/lite-on-inc/LTST-S270KGKT/160-1478-1-ND/386892) 21 | | 1 | 330 Resistor 0603 | Resistor for LED (OPTIONAL) | $0.10 | [DigiKey](https://www.digikey.com/product-detail/en/stackpole-electronics-inc/RMCF0603JT330R/RMCF0603JT330RCT-ND/1943164) 22 | 23 | 24 | Cost per unit with all optional parts, excluding PCB, @1: $7.04 25 | 26 | Cost per unit with all optional parts, excluding PCB, @100: $5.6213 27 | -------------------------------------------------------------------------------- /hardware/usbuc.brd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | REV 2 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | >NAME 188 | >VALUE 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | >NAME 205 | >VALUE 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | * 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | * 292 | >Name 293 | 294 | 295 | 296 | 297 | <h3>SparkFun Clocks, Oscillators and Resonators</h3> 298 | This library contains the real-time clocks, oscillators, resonators, and crystals we use. 299 | <br> 300 | <br> 301 | We've spent an enormous amount of time creating and checking these footprints and parts, but it is <b> the end user's responsibility</b> to ensure correctness and suitablity for a given componet or application. 302 | <br> 303 | <br>If you enjoy using this library, please buy one of our products at <a href=" www.sparkfun.com">SparkFun.com</a>. 304 | <br> 305 | <br> 306 | <b>Licensing:</b> Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 307 | <br> 308 | <br> 309 | You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage. 310 | 311 | 312 | <h3>5x3.2mm SMD Crystal</h3> 313 | <p>Example: <a href="https://www.sparkfun.com/products/94">16MHz SMD Crystal</a> (<a href="https://www.sparkfun.com/datasheets/Components/SPK-5032-16MHZ.pdf">Datasheet</a>)</p> 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | >NAME 323 | >VALUE 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | <h3>SparkFun Capacitors</h3> 357 | This library contains capacitors. 358 | <br> 359 | <br> 360 | We've spent an enormous amount of time creating and checking these footprints and parts, but it is <b> the end user's responsibility</b> to ensure correctness and suitablity for a given componet or application. 361 | <br> 362 | <br>If you enjoy using this library, please buy one of our products at <a href=" www.sparkfun.com">SparkFun.com</a>. 363 | <br> 364 | <br> 365 | <b>Licensing:</b> Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 366 | <br> 367 | <br> 368 | You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage. 369 | 370 | 371 | <p><b>Generic 1608 (0603) package</b></p> 372 | <p>0.2mm courtyard excess rounded to nearest 0.05mm.</p> 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | >NAME 382 | >VALUE 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | <h3>SparkFun Connectors</h3> 391 | This library contains electrically-functional connectors. 392 | <br> 393 | <br> 394 | We've spent an enormous amount of time creating and checking these footprints and parts, but it is <b> the end user's responsibility</b> to ensure correctness and suitablity for a given componet or application. 395 | <br> 396 | <br>If you enjoy using this library, please buy one of our products at <a href=" www.sparkfun.com">SparkFun.com</a>. 397 | <br> 398 | <br> 399 | <b>Licensing:</b> Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 400 | <br> 401 | <br> 402 | You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage. 403 | 404 | 405 | <h3>Plated Through Hole - 6 Pin Locking Header</h3> 406 | Includes silk outline for 6 pin female header 407 | <p>Specifications: 408 | <ul><li>Pin count:6</li> 409 | <li>Pin pitch:0.1"</li> 410 | </ul></p> 411 | <p><a href=”https://cdn.sparkfun.com/datasheets/Prototyping/SP-140520-XX-001.pdf”>Datasheet referenced for footprint:</a></p> 412 | <p>Example device(s): 413 | <ul><li>CONN_06</li> 414 | </ul></p> 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | >NAME 432 | >VALUE 433 | 434 | 435 | <h3>Plated Through Hole - 6 Pin with Long Pads</h3> 436 | <p>Specifications: 437 | <ul><li>Pin count:6</li> 438 | <li>Pin pitch:0.1"</li> 439 | </ul></p> 440 | <p>Example device(s): 441 | <ul><li>CONN_06</li> 442 | </ul></p> 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | >NAME 452 | >VALUE 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | <h3>SparkFun Resistors</h3> 464 | This library contains resistors. Reference designator:R. 465 | <br> 466 | <br> 467 | We've spent an enormous amount of time creating and checking these footprints and parts, but it is <b> the end user's responsibility</b> to ensure correctness and suitablity for a given componet or application. 468 | <br> 469 | <br>If you enjoy using this library, please buy one of our products at <a href=" www.sparkfun.com">SparkFun.com</a>. 470 | <br> 471 | <br> 472 | <b>Licensing:</b> Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 473 | <br> 474 | <br> 475 | You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage. 476 | 477 | 478 | <p><b>Generic 1608 (0603) package</b></p> 479 | <p>0.2mm courtyard excess rounded to nearest 0.05mm.</p> 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | >NAME 489 | >VALUE 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | <h3>SparkFun LEDs</h3> 498 | This library contains discrete LEDs for illumination or indication, but no displays. 499 | <br> 500 | <br> 501 | We've spent an enormous amount of time creating and checking these footprints and parts, but it is <b> the end user's responsibility</b> to ensure correctness and suitablity for a given componet or application. 502 | <br> 503 | <br>If you enjoy using this library, please buy one of our products at <a href=" www.sparkfun.com">SparkFun.com</a>. 504 | <br> 505 | <br> 506 | <b>Licensing:</b> Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 507 | <br> 508 | <br> 509 | You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage. 510 | 511 | 512 | <B>LED 0603 SMT</B><p> 513 | 0603, surface mount. 514 | <p>Specifications: 515 | <ul><li>Pin count: 2</li> 516 | <li>Pin pitch:0.075inch </li> 517 | <li>Area: 0.06" x 0.03"</li> 518 | </ul></p> 519 | <p>Example device(s): 520 | <ul><li>LED - BLUE</li> 521 | 522 | 523 | >NAME 524 | >VALUE 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | <h3>SparkFun Aesthetics</h3> 535 | This library contiains non-functional items such as logos, build/ordering notes, frame blocks, etc. 536 | <br> 537 | <br> 538 | We've spent an enormous amount of time creating and checking these footprints and parts, but it is <b> the end user's responsibility</b> to ensure correctness and suitablity for a given componet or application. 539 | <br> 540 | <br>If you enjoy using this library, please buy one of our products at <a href=" www.sparkfun.com">SparkFun.com</a>. 541 | <br> 542 | <br> 543 | <b>Licensing:</b> Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 544 | <br> 545 | <br> 546 | You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage. 547 | 548 | 549 | <h3>Dummy Footprint</h3> 550 | <p>NOTHING HERE!!! For when you want a symbol with no package as an option against symbols with a package.</p> 551 | 552 | <p>Devices using: 553 | <ul><li>BADGERHACK_LOGO</li> 554 | <li>FRAME-LETTER</li></ul></p> 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | <b>EAGLE Design Rules</b> 569 | <p> 570 | Die Standard-Design-Rules sind so gewählt, dass sie für 571 | die meisten Anwendungen passen. Sollte ihre Platine 572 | besondere Anforderungen haben, treffen Sie die erforderlichen 573 | Einstellungen hier und speichern die Design Rules unter 574 | einem neuen Namen ab. 575 | <b>EAGLE Design Rules</b> 576 | <p> 577 | The default Design Rules have been set to cover 578 | a wide range of applications. Your particular design 579 | may have different requirements, so please make the 580 | necessary adjustments and save your customized 581 | design rules under a new name. 582 | <b>Seeed Studio EAGLE Design Rules</b> 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 832 | 833 | 834 | 835 | 836 | 837 | 838 | 839 | 840 | 841 | 842 | 843 | 844 | 845 | 846 | 847 | 848 | 849 | 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860 | 861 | 862 | 863 | 864 | 865 | 866 | 867 | 868 | 869 | 870 | 871 | 872 | 873 | 874 | 875 | 876 | 877 | 878 | 879 | 880 | 881 | 882 | 883 | 884 | 885 | 886 | 887 | 888 | 889 | 890 | 891 | 892 | 893 | 894 | 895 | 896 | 897 | 898 | 899 | 900 | 901 | 902 | 903 | 904 | 905 | 906 | 907 | 908 | 909 | 910 | 911 | 912 | 913 | 914 | 915 | 916 | 917 | 918 | 919 | 920 | 921 | 922 | 923 | 924 | 925 | 926 | 927 | 928 | 929 | 930 | 931 | 932 | 933 | 934 | 935 | 936 | 937 | 938 | 939 | 940 | 941 | 942 | 943 | 944 | 945 | 946 | 947 | 948 | 949 | 950 | 951 | 952 | 953 | 954 | 955 | 956 | 957 | 958 | 959 | 960 | 961 | 962 | 963 | 964 | 965 | 966 | 967 | 968 | 969 | 970 | 971 | 972 | 973 | 974 | 975 | 976 | 977 | 978 | 979 | 980 | 981 | 982 | 983 | 984 | 985 | 986 | 987 | 988 | 989 | 990 | 991 | 992 | 993 | 994 | 995 | 996 | 997 | 998 | 999 | 1000 | 1001 | 1002 | 1003 | 1004 | 1005 | 1006 | 1007 | 1008 | 1009 | 1010 | 1011 | 1012 | 1013 | 1014 | 1015 | 1016 | 1017 | 1018 | 1019 | 1020 | 1021 | 1022 | 1023 | 1024 | 1025 | 1026 | 1027 | 1028 | 1029 | 1030 | 1031 | 1032 | 1033 | 1034 | 1035 | 1036 | 1037 | 1038 | 1039 | 1040 | 1041 | 1042 | 1043 | 1044 | 1045 | 1046 | 1047 | 1048 | 1049 | 1050 | 1051 | 1052 | 1053 | 1054 | 1055 | 1056 | 1057 | 1058 | 1059 | 1060 | 1061 | 1062 | 1063 | 1064 | 1065 | 1066 | 1067 | 1068 | 1069 | 1070 | 1071 | 1072 | 1073 | 1074 | 1075 | 1076 | 1077 | 1078 | 1079 | 1080 | 1081 | 1082 | 1083 | 1084 | 1085 | 1086 | --------------------------------------------------------------------------------