From 5a829b1b598aef5b478aa75c69c7e51874f9ca12 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 2 May 2021 18:00:08 +0800 Subject: [PATCH] Update flash.md --- docs/flash.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/docs/flash.md b/docs/flash.md index 53e5c30d7..191a72592 100644 --- a/docs/flash.md +++ b/docs/flash.md @@ -57,7 +57,10 @@ of wear leveling, however. + 20CF_FFFF | | +-----------+----------------------------------------+ + 20D0_0000 | PDDB 'filesystem' | -+ 27FF_FFFF | | ++ 27F7_FFFF | | ++-----------+----------------------------------------+ ++ 27F8_0000 | 512k reserved space for EC image | ++ 27FF_FFFF | Split into 300k wf200 + 200k EC fw | +-----------+----------------------------------------+ ``` @@ -79,3 +82,24 @@ The csr.csv block is further structured as follows: + 2027_FFFF | 64 bytes, network order | +-----------+----------------------------------------+ ``` + +## Testing Structures + +Prior to the creation of the PDDB, some hard-coded audio data is loaded for development purposes. + +This documents their location in FLASH. The samples are shorter than the allocated regions, but the WAV headers encode their actual lenth. + +``` ++-----------+----------------------------------------+ ++ 2600_0000 | 8khz short sample (WAV/512kiB) | ++ 2607_FFFF | 16-bit stereo PCM ~16s long | ++-----------+----------------------------------------+ ++ 2608_0000 | 44.1khz short sample (WAV/2,800kiB) | ++ 2633_BFFF | 16-bit stereo PCM ~16s long | ++-----------+----------------------------------------+ ++ 2633_C000 | 8khz short sample (WAV/28,944kiB) | ++ 2607_FFFF | 16-bit stereo PCM ~330s long | ++-----------+----------------------------------------+ ++ 27F8_0000 | Start of EC region (do not use) | ++-----------+----------------------------------------+ +```