bunnie
1b9c0c7143
gate off duart mapping when not debugging deep in the usb stack
2025-09-12 02:50:45 +08:00
bunnie
d20a1e4ed9
gate of unused functions without mass-storage
2025-09-12 02:50:24 +08:00
bunnie
5835d52815
fix default baud rate to something higher for the app uart
2025-09-12 02:50:04 +08:00
bunnie
e79f907bb7
add basic usb-serial support
...
some test code to echo characters back, needs to be improved
fix some reset edge cases, needs more work as stack still
does not enumerate on second plugin
2025-09-12 02:49:21 +08:00
bunnie
faaa1ad4b9
significant code cleanup on the usb driver
...
- endpoint allocator now handles more edge cases. likely there
are still more weird cases to be considered, but it at least
handles the CDC-ACM case of a lone interrupt endpoint that
can't be mix-and-matched with other devices
- initiate OUT to kick off reads
- remove dead code
- handle bulk and interrupt cases for both read and write
- clean up reset edge cases - still more work to do there,
the stack does not recover on second plugin
- better debug output
2025-09-12 02:46:57 +08:00
bunnie
9609a6d66e
point to forked version of usb-device, increase control buffer size
...
larger control buffer is needed for composite descriptor to
fully write and send
2025-09-12 02:46:16 +08:00
bunnie
995aa20b22
update dpendencies for baremetal
2025-09-11 01:00:52 +08:00
bunnie
ad38080484
refactor dependencies to allow for critical_section in loader
2025-09-11 00:55:01 +08:00
bunnie
6054092d40
refactor to add in usb-serial support in loader path
...
this will eventually be extended to support large file
writes but for now it just does an echo loopback
2025-09-11 00:54:25 +08:00
bunnie
659296f672
add support for USB serial in baremetal targets
2025-09-11 00:54:02 +08:00
bunnie
c2df76b59b
remove floating point print to reduce code size
2025-09-11 00:53:48 +08:00
bunnie
602b60b669
refactor baremetal
...
- remove signed bootloader code
- replace with serial console over USB
file transfer needs to be reworked to not use signatures
in baremetal, but rather just a simple hash to verify integrity.
repl needs to be reworked with an "in-place" code upload command
so that large images (> available RAM) can be burned
2025-09-11 00:52:01 +08:00
bunnie
c61a521c7d
add size on disk reporting
2025-09-10 09:16:53 +08:00
bunnie
55f1c805a0
fix EP number to 4 (8 PEI)
2025-09-09 23:57:50 +08:00
bunnie
08aa40e557
add ctap protocol testing routines
2025-09-09 23:11:30 +08:00
bunnie
4936d008b4
fixup namespace
2025-09-09 22:25:46 +08:00
bunnie
8f9b7166c2
fix usb-bao1x naming in workspace
2025-09-09 22:25:27 +08:00
bunnie
0df2cb73f7
fixup bao-video deps
2025-09-09 22:24:55 +08:00
bunnie
af465ce563
add always-update flag
...
useful for fast debug loops
2025-09-09 22:24:24 +08:00
bunnie
200f71eba8
settle on the safe config for the USB driver
...
set to 4 endpoints because that's what we know we have for sure
2025-09-09 22:23:01 +08:00
bunnie
50e3899028
make it so that double-debug alloc doesn't cause insta-failure
2025-09-09 22:22:41 +08:00
bunnie
06ad86a0fc
fix ifram allocs for usb so usb+camera can run simultaneously
2025-09-09 22:22:16 +08:00
bunnie
5ff4b6c317
turn off debug-print by default in usb
2025-09-09 22:20:02 +08:00
bunnie
1cd6a3c4d0
clean up warning
2025-09-09 18:41:25 +08:00
bunnie
19620d800f
some tweaks to accommodate a possibly larger ep_num
2025-09-09 18:40:52 +08:00
bunnie
d9bdcbcc3b
stash some test code for checking memory sizes
2025-09-09 18:40:32 +08:00
bunnie
bcd8120ea3
tighten up the USB memory usage
2025-09-09 18:17:51 +08:00
bunnie
16b3c43e31
get OUT packets working; in particular, HID/U2F seems good to go
2025-09-09 17:53:47 +08:00
bunnie
51adf0e76c
clean up interrupt handler & remove page allocation from handler
...
handler works in an interrupt context, so it can't allocate
a page to return data. this cleans up that problem, and also
removes some redundant brute-forced checks that were copypasta
from previous merging of several routines.
2025-09-09 17:52:12 +08:00
bunnie
5978de6a22
cleanup warning
2025-09-09 17:51:48 +08:00
bunnie
e0ad3e1831
match up EP requests to pending data
...
previously we had no way to correlate an incoming packet
to an actual read from the USB stack because we didn't store
the EP that originated the request
This fixes that issue and also passes on the pending EP requests
correctly to the rest of the stack
2025-09-09 17:50:45 +08:00
bunnie
365657984c
add debug info on irq failure
2025-09-09 17:50:03 +08:00
bunnie
9931daf131
fix broken links from rename
2025-09-08 17:21:49 +08:00
bunnie
6cf4757323
rename usb-cramium to usb-bao1x
2025-09-08 17:21:32 +08:00
bunnie
8e6c4161d6
add test for key presses in baremetal
2025-09-08 16:13:22 +08:00
bunnie
b4ba69bad2
ux improvements on update
...
actually use only the two buttons listed for initiating updates
2025-09-08 10:32:28 +08:00
bunnie
8739eb6bf7
cleanup test code
2025-09-08 10:29:42 +08:00
bunnie
0ed6ae30c3
fixes for disk sizing etc.
2025-09-08 09:52:53 +08:00
bunnie
00db7d108d
upgrade link to high speed
2025-09-08 09:52:20 +08:00
bunnie
9ec18eb045
fixes for USB HS in loader
2025-09-08 09:51:57 +08:00
bunnie
71815c0a1a
update PLL setting code
2025-09-08 09:51:02 +08:00
bunnie
d04202c9a9
fix antiquated hack
2025-09-08 09:50:46 +08:00
bunnie
d07f74ab99
fixes for USB HS in baremetal
2025-09-08 09:50:17 +08:00
bunnie
a4f1960e34
update lockfile for usb env
2025-09-07 15:12:07 +08:00
bunnie
f6c92a0a72
add usb disk option to baremetal environment
...
this will be used to help debug the HS issues
2025-09-07 15:11:46 +08:00
bunnie
1e00e7a496
Merge pull request #677 from betrusted-io/fix-asm
...
fix asm stub
2025-09-07 14:25:16 +08:00
bunnie
236fd4341a
fix asm stub
...
broke precursor target with some cleaning up of the asm stub
2025-09-07 14:22:40 +08:00
bunnie
7fa4bb0cc5
Merge branch 'main' into vault2
2025-09-07 11:54:17 +08:00
bunnie
cb7e1e602b
Merge pull request #675 from betrusted-io/nto-bringup
...
WIP: Nto bringup
2025-09-07 11:54:00 +08:00
bunnie
1efb49bc97
cleanup from fixing aes transitive deps
2025-09-07 11:52:16 +08:00