cancel
Showing results for 
Search instead for 
Did you mean: 

Run from Main

jliu
Associate II
Posted on June 22, 2004 at 15:22

Run from Main

3 REPLIES 3
jliu
Associate II
Posted on May 17, 2011 at 12:01

I've solved the problem by including _psen in the equation for psel0

jliu
Associate II
Posted on May 17, 2011 at 12:01

Sorry! the previous message has been posted by mistake. I actually got a problem with reading Main Flash. At 0xFFFB I store a number to indicate a valid firmware copy, and boot program read from there during power-up. I've found it's not doing very well in this way. Sometimes, in a chance of 1/4-1/5, my program doesn't get right value. It must be something wrong. Does any body here konw why?

joseph2399
Associate II
Posted on May 17, 2011 at 12:01

The 32xx devices have DDC memory mapped in XDATA space from 0xFF00 to 0xFFFF. If you haven't disabled the DDC RAM, it may be the cause for the problem.

Put the following in your startup file:

MOV A, #0 ;Disable DDC and DDC XRAM out of addr space

MOV DDCCON, A