??? 01/10/10 01:31 Read: times |
#172302 - Yup, movx doesn't do it as far as i can tell.... Responding to: ???'s previous message |
> - You tryed accessing dataflash ? Can You show piececode with results?
Yes, I tried all forms of movx to access "data flash". The data sheet says that movx is used, but does not give details. > - That "memory map" is not very clear, yes, and probably is wrong (or semi-wrong ;-)) , but > can be interpreted as follow: > a) mov a,@r0 ; r0=1..255 - internal RAM Correct. > movx a,@dptr ; dptr=256..65535 in total 64kB SRAM > b) movx a,@r0 ; r0= 0..255 - dataflash. movx a, @dptr accesses ram no matter what I can find. I asked wiznet to provide the necessary ASM instructions, and this is what I got: > We cannot open the assembler instructions because of some reasons. > And the Boot Code has no function about hardware inspection yet. > Thanks. I'm guessing there's a license issue with the core or something. Wiznet's sample code for reading/writing the data flash writes to the ISP registers, then jumps into the bootloader code. It's really ugly, and requires linker features only supported in the "professional" version of Keil. I think the DoCD thing is a good lead. I'm going to pursue finding some other chips that might have a similar memory map. --buddy |
Topic | Author | Date |
Wiznet W7100 questions.... accessing data flash? | 01/01/70 00:00 | |
datasheet | 01/01/70 00:00 | |
Nope, both start at zero.... | 01/01/70 00:00 | |
? | 01/01/70 00:00 | |
Yup, movx doesn't do it as far as i can tell.... | 01/01/70 00:00 | |
Writing to flash - in general | 01/01/70 00:00 | |
We cannot open the assembler instructions | 01/01/70 00:00 | |
data flash API is through IAP | 01/01/70 00:00 | |
documented quite concisely - but also contradictorily (!) | 01/01/70 00:00 | |
but how does it matter? | 01/01/70 00:00 | |
But it's not an omission! | 01/01/70 00:00 | |
potentiality of users | 01/01/70 00:00 | |
Sad, but true - but WIZnet beware!![]() | 01/01/70 00:00 | |
So they do! | 01/01/70 00:00 | |
core by DCD | 01/01/70 00:00 | |
Why do you believe that, Jan? | 01/01/70 00:00 | |
hint is the debugging tool... | 01/01/70 00:00 | |
Now I've not read THIS datasheet ... but ... | 01/01/70 00:00 |