revampedcomplex
02-10-07, 10:49 AM
I'm a little confused on the memory modes that I should be using, this is with smallC and the USB servopod (DSP56F807). I have a few questions that I hope some kind soul can help me out with...
1) What memory mode should I be using?
2) Is memory mode completely determined by the jumper settings, or also effected by the cfg file (see question 3)?
Currently I am using Mode A&B (internal & external combine) which features the following:
* 32K x 16 Program Flash (internal)
* 2K x 16 Boot Flash (internal)
* 8K x 16 Data Flash (internal)
* 2K x 16 Program ram (internal)
* 32K x 16 Program ram (external)
* 4K x 16 Data Ram (internal)
* 48K x 16 Data Ram (external)
That means my jumpers are:
Jumper State Description
J13 Pins 1 and 2 powers board via USB instead of external power
J14 Closed enables external memory
J15 Pins 2 and 3 allows use of USB instead of RS-232
J16 Closed USB powered by its own bus
J20 Open Boot from internal flash program memory
3) What is the different between internal memory and external memory?
4) Does my memory mode and jumpers need to be coordinated with the data in flash807.cfg? This file seems to be allocating 5 sections in memory... is this correct, and should this match the above breakdown in some way? If you change the jumpers, do you have to change this CFG file? I am trying to match the contents of this file with one of the memory modes to figure out which mode i need to be in...
* 0x0000 0x0003 (4 bytes)
* 0x0004 0x7fff (32.7K) (program int/ext?)
* 0x8000 0xefff (28.6K) (program int/ext?)
* 0xf800 0xffff (2.048K) (program ram int/boot flash ext?)
* 0x2000 0x3fff (8.192K) (data flash?)
Thank you for any help you can provide, I'm writing and loading smallC apps just fine and I am not running out of memory yet, but right now the memory allocation on the board is a bit of a black box to me.
Thanks!
1) What memory mode should I be using?
2) Is memory mode completely determined by the jumper settings, or also effected by the cfg file (see question 3)?
Currently I am using Mode A&B (internal & external combine) which features the following:
* 32K x 16 Program Flash (internal)
* 2K x 16 Boot Flash (internal)
* 8K x 16 Data Flash (internal)
* 2K x 16 Program ram (internal)
* 32K x 16 Program ram (external)
* 4K x 16 Data Ram (internal)
* 48K x 16 Data Ram (external)
That means my jumpers are:
Jumper State Description
J13 Pins 1 and 2 powers board via USB instead of external power
J14 Closed enables external memory
J15 Pins 2 and 3 allows use of USB instead of RS-232
J16 Closed USB powered by its own bus
J20 Open Boot from internal flash program memory
3) What is the different between internal memory and external memory?
4) Does my memory mode and jumpers need to be coordinated with the data in flash807.cfg? This file seems to be allocating 5 sections in memory... is this correct, and should this match the above breakdown in some way? If you change the jumpers, do you have to change this CFG file? I am trying to match the contents of this file with one of the memory modes to figure out which mode i need to be in...
* 0x0000 0x0003 (4 bytes)
* 0x0004 0x7fff (32.7K) (program int/ext?)
* 0x8000 0xefff (28.6K) (program int/ext?)
* 0xf800 0xffff (2.048K) (program ram int/boot flash ext?)
* 0x2000 0x3fff (8.192K) (data flash?)
Thank you for any help you can provide, I'm writing and loading smallC apps just fine and I am not running out of memory yet, but right now the memory allocation on the board is a bit of a black box to me.
Thanks!