Commit graph

10340 commits

Author SHA1 Message Date
bunnie
75a9373fea fix AES dependencies so that the correct acceleration is enabled
This relies on a trick I was not aware of previously, which is
that transitive dependencies absorb the additive set of features
enabled within a crate.

see

https://doc.rust-lang.org/cargo/reference/features.html#feature-unification

for the full description. but basically by referring to the feature
required in "aes" despite not being used in the crate but pulled
in by aes-gcm-siv, i can ensure that the transitive dependency
is in fact used.

I think this was always there but previously I just didn't understand
it correctly or didn't use it right when I tried to deploy it, but
this time I think I got it right.
2025-09-07 11:50:12 +08:00
bunnie
9da1d1e17e pull in rqrr ref 2025-09-06 22:48:01 +08:00
bunnie
1c8a3a3ee9 migrate to using the latest rqrr with perfromance enhancements 2025-09-06 22:47:48 +08:00
bunnie
ac458c4b07 reduce pixel math (do mirroring in camera module)
also add some more analytics output
2025-08-20 03:07:12 +08:00
bunnie
1c4ed2944c fix mirror/flip of camera 2025-08-20 03:06:45 +08:00
bunnie
a403f0c5f9 fix rust warinings 2025-08-20 03:06:24 +08:00
bunnie
43de6d67ec set uart baud to 1Mbaud and also make it a top-level constant 2025-08-20 02:24:54 +08:00
bunnie
4cd5f2d2c8 add a soft reset routine and also the ability to run a test command on reset 2025-08-20 02:19:03 +08:00
bunnie
11fb1452c9 cleanup the initialization code some more
move the full mem initailization above the memory load/store
pipe cleaner, and have the memory load/store actually do a load
and not just stores.
2025-08-20 01:49:48 +08:00
bunnie
5fb01c5332 fix broken bio test
the fifo_basic() test case - if not allowed to run for a while -
can lead to some strange lockups in the system fifos. it's
an interesting question as to why the fifo's can't be "cleaned up"
in a sane fashion when it gets scrambled, but for now, the answer
is I think "don't do that".
2025-08-20 01:47:41 +08:00
bunnie
74e3120ba2 move console over to UART2 and set speed to 1Mbps
this makes on the go debugging a bit easier.

the memory initialiazation also has to be moved earlier because
the static initialization of the bool that determines which
console mode to use has to be clean early on. It may even
need to move into the asm stub, but would prefer to avoid that
if I can.
2025-08-20 01:46:18 +08:00
bunnie
59fa8ad2df add bio module to cramium test set 2025-08-20 01:45:46 +08:00
bunnie
4f72492a73 update lockfile for b64 integration 2025-08-19 22:44:31 +08:00
bunnie
1d950033af add base64 dumping of captured images for off-line optimization 2025-08-19 22:44:15 +08:00
bunnie
2211cd7e1b change baud rate on serial port to a higher speed 2025-08-19 22:23:56 +08:00
bunnie
ffc226b9a8
Merge branch 'main' into nto-bringup 2025-08-19 19:51:16 +08:00
bunnie
9a8aa2dc06
Merge pull request #676 from betrusted-io/fix-rustc-1.89
Fix rustc 1.89
2025-08-19 19:51:00 +08:00
bunnie
54648161ab fix more rustc warnings 2025-08-19 19:48:16 +08:00
bunnie
53c4485387 more warnings 2025-08-19 19:46:23 +08:00
bunnie
ecbac27e76 fix rustc-1.89 warnings 2025-08-19 19:45:29 +08:00
bunnie
baa9380123 add 25MHz pwm output generator to the boot sequence 2025-08-19 19:01:53 +08:00
bunnie
49484bb93d add power management pins to board description 2025-08-19 19:01:26 +08:00
bunnie
bdd8b727a7 add get dcdc routine to axp2101 api 2025-08-19 19:01:03 +08:00
bunnie
29b524375b add wfi & ldo settings to repl
unit can now enter deep powerdown mode and wake up demonstrating
that the system can achieve the power numbers needed for the
product spec
2025-08-19 19:00:11 +08:00
bunnie
13b048089b improve clock divider setting to handle a wide range of clocks 2025-08-14 14:10:51 +08:00
bunnie
cd58323541 fix uart divider commit
needs to disable uart before the new values can take
2025-08-14 14:10:26 +08:00
bunnie
b4ffcfe11a add stack dump as a macro in the lib for cramium-hal
I have a feeling this won't be the last time I want to use a
utility like this during bringup...
2025-08-14 03:28:48 +08:00
bunnie
891489f789 cleanup stack tracing code 2025-08-14 03:28:27 +08:00
bunnie
0cbdf1e9f1 fix "mysterious" BIO errors
turns out...the memory test was subtly smashing stack. It made
sense during early bring up to do this quick test but I should
have retired it sooner.

Keeping it around for a little bit longer because chips aren't
fully brought-up and I could see this being a useful stub in
case we find an outlier that actually has memory access problems.
2025-08-14 02:04:39 +08:00
bunnie
6cd5a23893 this change to main.rs is needed to support the error handler 2025-08-14 02:04:04 +08:00
bunnie
0bb5ae95b9 convert repl to use error-type returns
The main benefit of this is we don't have to remember to call
the "abort" function post-amble in case of an error: you can
just return an error type.

I took a pass at trying to convert all the argument parsing
using "idiomatic" rust. In some cases, it's nice. But in
some cases it's pretty clunky and hard to follow. I think
the clunkiness is outweighed by never having to forget to
call the abort function, and one can avoid the whole...
map_err().and_then() madness by just using more traditional
if/else with returns. I think that's a fine choice to make.
2025-08-14 02:01:39 +08:00
bunnie
38193077c5 Merge branch 'nto-bringup' of github.com:betrusted-io/xous-core into nto-bringup 2025-08-14 00:38:41 +08:00
bunnie
7c232626d6 add clock adjustment code (wip) 2025-08-14 00:38:01 +08:00
bunnie
6f46a51c5b
Merge pull request #674 from betrusted-io/sam.captouch
add some library functions to bio
2025-08-14 00:36:01 +08:00
Sam Chin
bd8a3c7f88 cleaning up code 2025-08-13 19:15:46 +08:00
Sam Chin
d02970c264 now with read 2025-08-13 18:53:33 +08:00
Sam Chin
e020a45913 refactoring so that pin is a nice coherent function 2025-08-13 15:40:04 +08:00
Sam Chin
7af77a1d10 can now set multiple clocks on multiple fifos 2025-08-13 15:34:39 +08:00
Sam Chin
f9cbf14d19 now the pins can toggle without impacting capsense since I removed reset 2025-08-13 14:52:50 +08:00
Sam Chin
a6643a3314 moving square wave generator over - it does not play nice with other things right now 2025-08-12 21:19:29 +08:00
Sam Chin
ba997be92f working modular gpio with all bio cores 2025-08-12 20:35:02 +08:00
Sam Chin
a5e95c9c6d pin up works for core 0 via lib 2025-08-12 19:39:56 +08:00
Sam Chin
db7690210a pin up in library 2025-08-12 17:06:42 +08:00
Sam Chin
e954ca60e2 without other changes 2025-08-11 17:53:47 +08:00
Sam Chin
b32fa12da8 working square wave and pinup with nto bgas 2025-08-11 17:52:25 +08:00
bunnie
ca9e4e65bb add new dependencies 2025-08-11 15:02:14 +08:00
bunnie
cb1f82ecc8 add changes to work around BIO code issue
there is either a code bug or a compiler issue that is causing
something on stack to be smashed that is causing trouble for
the code base as a whole. Or it could be improperly initialized
statics? unclear. this needs to be worked through.

however, a series of changes were made that make the code
work. The biggest tell is that the code generally works perfectly
when optimizations are off, but when optimizations are on some
shenanigans have to happen to convince the compiler to not split
constant values across the entire arc of the function. More
diagnostics to follow.
2025-08-11 15:00:09 +08:00
bunnie
7cf23c41e7 add working state for bio tests 2025-08-11 14:58:55 +08:00
bunnie
c9f1e29907 commit a "magic state" that seems to be able to get BIO core 3
unwedged
2025-08-10 22:32:13 +08:00
bunnie
f2c61e44cc add aes test options to command environment 2025-08-10 22:28:32 +08:00