Commit graph

10340 commits

Author SHA1 Message Date
bunnie
2e086f4152 consolidate spi pin setup 2024-10-02 00:23:48 +08:00
bunnie
20dd9b2c14 consolidate spi pin setup routines 2024-10-02 00:23:17 +08:00
bunnie
0733b65ead firmware updater strategy and thoughts jotted into a file 2024-10-01 23:19:14 +08:00
bunnie
cddd971aa9 remap to the setup_pin() trait
this is an intermediate step on the way to moving these all into
a common area for board definitions
2024-10-01 23:18:31 +08:00
bunnie
482b815f44 convert to using the new setup_pin trait 2024-10-01 23:17:36 +08:00
bunnie
a66cd1c077 add modules from previous commit 2024-10-01 23:16:57 +08:00
bunnie
59b15541f3 add stubs for lifecycle management and update checking in loader
this is just a reminder to me on how i was planning to implement
this after going through a big side-quest to change other things.
2024-10-01 23:15:54 +08:00
bunnie
6eca732043 cleanup a warning 2024-10-01 23:15:22 +08:00
bunnie
76e88ebc7d absorb setup_pin trait into the cramium-hal service 2024-10-01 23:14:42 +08:00
bunnie
c0ddf5f82a add board feature placeholders 2024-10-01 23:14:20 +08:00
bunnie
81637f119b add helper to translate return values from io setup to udma clock channels
this allows us to tease out the clock setting code from the pin
setting code. probably will need to add more helpers for other
peripherals as we continue through with this exercise.
2024-10-01 23:13:08 +08:00
bunnie
45d9487c70 add board module to the project 2024-10-01 23:12:53 +08:00
bunnie
1dbfb21020 add some stand-in code for board definitions on the cramium platform 2024-10-01 23:12:30 +08:00
bunnie
c7bdc1aec5 refactor iox to have a setup_pin() trait
this lays the foundation to make code portable between std and
no-std environments for setting up pin configurations.
2024-10-01 23:11:24 +08:00
bunnie
6f0ab9ae3d add flash write test routine to mbox 2024-10-01 14:41:22 +08:00
bunnie
f7c33c9427 move a comment that was displaced 2024-10-01 14:40:59 +08:00
bunnie
19741d3615 add new flash IDs to swap routine as well 2024-10-01 14:40:36 +08:00
bunnie
cb466c24a3 recognize more flash chip types
1. System works with 1.8V VDD I/O now, needs a new chip ID for
flash

2. Add direct c-translated version of init_clock_asic() for reference
testing.
2024-10-01 14:39:40 +08:00
bunnie
66c3656d03
Merge pull request #586 from betrusted-io/biobdma-timing
Biobdma timing
2024-09-26 18:31:59 +08:00
bunnie
ab41cbc299 make aclk test allow both registered and unregistered mem configs
both are valid, which is picked in the end will depend on
timing closure
2024-09-26 18:19:27 +08:00
bunnie
0b419400c7 improve reset condition for filter & make pass criteria tighter
- filter setup can be impacted by previous engine running, make
sure engines are stopped and FIFOs flushed prior to test start
- when reading a filtered bank we can get garbage, so make the
test check for the specific value we should see.
2024-09-26 18:18:12 +08:00
bunnie
81f0523ee3 add functional multiply-accumulate test
note that multiplies must go from register to register,
they can't directly pull out of FIFO regs
2024-09-26 18:17:31 +08:00
bunnie
7b8f4d91ec add mul unit test 2024-09-26 18:17:14 +08:00
bunnie
a40aa11338
Merge pull request #585 from betrusted-io/update-format
update formatting to latest nightly rules
2024-09-24 02:03:15 +08:00
bunnie
043dfd84ae update formatting to latest nightly rules 2024-09-24 01:49:45 +08:00
bunnie
5fb60a4958
Merge pull request #584 from betrusted-io/fix-test
fix broken factory test
2024-09-24 00:15:30 +08:00
bunnie
f248be981e fix broken factory test 2024-09-24 00:14:52 +08:00
bunnie
32c5bad47c
Merge pull request #583 from betrusted-io/tts-fixup
fix up a tts bug
2024-09-23 23:03:05 +08:00
bunnie
a8f2e9da27 fix up a tts bug 2024-09-23 23:02:32 +08:00
bunnie
2658c9694c
Merge pull request #575 from betrusted-io/rkyv-0.8-migration
Rkyv 0.8 migration
2024-09-23 22:44:30 +08:00
bunnie
e68fde8e2b update to use new flat-ipc API 2024-09-23 22:42:24 +08:00
bunnie
67e0004f73
Merge branch 'main' into rkyv-0.8-migration 2024-09-23 22:32:34 +08:00
bunnie
9c2ee16175 update xous-ipc pins 2024-09-23 22:32:06 +08:00
bunnie
f494da21cc absorb new xous-ipc version 2024-09-23 22:05:50 +08:00
bunnie
0ecfa80bac change rkyv behavior in xous-ipc from panic to failure
this allows for more graceful error handling in case of
serialization failures
2024-09-23 22:01:02 +08:00
bunnie
21c494a129
Merge pull request #581 from betrusted-io/xobs/flatipc-0.1.2
flatipc: release 0.1.2
2024-09-23 22:00:08 +08:00
Sean Cross
8e27dce59c flatipc: release 0.1.2
This releases flatipc 0.1.2 with more documentation and a new
`Ipc::from_memory_message()` call to reconstitute an object from a
xous::MemoryMessage.

Signed-off-by: Sean Cross <sean@xobs.io>
2024-09-23 19:32:54 +08:00
bunnie
047ffe31e9 add release notes 2024-09-23 19:02:49 +08:00
bunnie
2e9b19d62d fail, don't panic on serialization failure
this allows us to handle the error. probably should propagate
on to xous-ipc
2024-09-23 19:02:19 +08:00
bunnie
8cd1cef679 cleanup bulk read on PDDB
we don't have to pass a "size" field anymore; since we're end-offset
from pos, just pass pos and use that to chain records.
2024-09-23 18:07:50 +08:00
bunnie
921be1cf8b add bounds checking to a TextView string length
Before xous-ipc's fixed-length string guaranteed this thing
fit into a single page. Now, we can send potentially unbounded
amounts of text between servers.

I don't think it makes sense to send more than a few k of text to
render on the screen at once, given our screen sizes, so I've added
a patch that truncates the text to the previous length that things
would truncate to.

The behavior is the same as before, except that you will
over-allocate memory on the heap in the sending process
as you shove more string data into a TextView than can be rendered.
Previously, the TextView would just truncate the data and discard
the data.

The truncation happens at the point where you try to hand the
record off to another process, so, one could in theory try
to make this recoverable by adding a layer that splits the
textview into more manageable chunks or pages the data, but that
is an exercise for another day.
2024-09-23 17:35:27 +08:00
bunnie
e61a2e3238 reformat shellchat with the latest alphabetization rules 2024-09-23 17:22:47 +08:00
bunnie
3a9a7ebf02 length of a record stored is the pos field for rkyv-to-pddb
prior use of `rkyv` reserves two bytes to record `pos` pre-pended
to the rkyv record

the new rkyv works without having to do that because it indexes
the rkyv data off the end of the stored records. Thus, all you
need to know is the total length of the byte slice that stores
the serialized data. This is available as the return argument
when you read a PDDB key, so we don't have to explicitly store it
anymore.
2024-09-23 17:01:13 +08:00
bunnie
048e8d8373 mtxchat port to xous-ipc 0.10 2024-09-23 17:00:53 +08:00
bunnie
c699e06c5a port rkyv ser/de usage in mtxchat 2024-09-23 17:00:16 +08:00
bunnie
3ce6baa202 cleanup chat-test 2024-09-23 16:41:43 +08:00
bunnie
1ec66137be port cramium target to xous-ipc 0.10 2024-09-23 14:35:51 +08:00
bunnie
7ea1400843 fixup cram-console for xous-ipc 0.10 2024-09-23 14:31:00 +08:00
bunnie
553f98f7f2 port apps/mtxcli to xous-ipc 0.10 2024-09-23 14:30:46 +08:00
bunnie
4239176bec cleanup warning 2024-09-23 14:25:59 +08:00