Data stream inside FLASH

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Data stream inside FLASH

1,030件の閲覧回数
quevedo
Contributor V

Hello,

 

I am working on a very simple project. The system simply plays a pre-recorded audio message. I would like to use a S08 microcontroller, with the audio output through PWM. 100kB will be enough for storing the message, so I thought about using the Flash program memory itself to store these 100kB of data stream.

 

Does anybody know how I can get this data (available in a HEX file) and store it inside the S08 Flash memory in compile time? Also, I need an efficient way to point to this data stream, so I can read the bytes.

 

Thanks in advance

 

Antonio Quevedo

ラベル(1)
0 件の賞賛
返信
1 返信

776件の閲覧回数
bigmac
Specialist III

Hello Antonio,

 

You will obviously be using a device of 128kB flash capacity, with paged memory.  It is likely that you would make use of the linear address pointer (LAP) to access the data.  Perhaps AN3730 may help to understand the process.

 

To directly program the data into flash, perhaps the HEX file should be adjusted for the required address offset, which would then be converted to S-records, that could be manually incorporated into the S19 file for the program.

 

One complication is that the data would need to be handled as two blocks, because of the position of the interrupt vectors, etc.  Your data read code would need to take into account the transition from the lower block to the higher block.

 

Regards,

Mac

 

0 件の賞賛
返信