??? 03/02/07 01:56 Read: times |
#134069 - seen this app note? Responding to: ???'s previous message |
Have you looked at this application note from silabs? http://www.silabs.com/public/do.../an201.pdf Look at page 6 & 70 in particular.
Looking at their code and yours, it looks like you don't set the PSEE bit in PSCTL. (assuming 0x8F is the PSCTL SFR) In the F120, setting PSEE enables flash erases, and setting PSWE redirects MOVX writes to Flash. Your code only sets the PSEE bit (even though it's commented to set both. If that doesn't make it work.. I'm not sure what the problem is. -Dave ps, Oleg, I'm pretty certain that's a problem with the silabs driver for Keil. The OP didn't specify which IDE he was using, so I thought I'd throw that thought on the table. It's since turned out to not be the issue :) |
Topic | Author | Date |
Writing to flash from firmware | 01/01/70 00:00 | |
pretty sure the problem is in the erase section... | 01/01/70 00:00 | |
that's another thing ... | 01/01/70 00:00 | |
this is the case when the comment IS harmful.. :-) | 01/01/70 00:00 | |
need some sleep? | 01/01/70 00:00 | |
haha, yes | 01/01/70 00:00 | |
Key sequence | 01/01/70 00:00 | |
Thanks rob | 01/01/70 00:00 | |
"hung up"? | 01/01/70 00:00 | |
14 bytes or 15? | 01/01/70 00:00 | |
Another case where the comment is harmful :-( | 01/01/70 00:00 | |
More suggestions | 01/01/70 00:00 | |
random thought | 01/01/70 00:00 | |
RE: random thought | 01/01/70 00:00 | |
What I mean by hung up | 01/01/70 00:00 | |
since I do not use this deviate | 01/01/70 00:00 | |
the vdd monitor? | 01/01/70 00:00 | |
how you determine? | 01/01/70 00:00 | |
In response to Oleg's question | 01/01/70 00:00 | |
seen this app note? | 01/01/70 00:00 | |
problem solved... | 01/01/70 00:00 | |
are you using LARGE? | 01/01/70 00:00 | |
no large or xdata var![]() | 01/01/70 00:00 |