Extra set of hands you never knew existed…
Archive for April, 2010
Took me some time, but now I got it. Writing an array of 256 bytes to the W7100 dataflash. The bootrom of the W7100 is used, but now I am checking if I can put this code into a 8051-library. Now I have fully ‘cracked’ the W7100. Can do all with Bascom-8051. The only thing that is not working are strings in XRAM.
Reading and writing the Data Flash of the W7100 is still a complete mistery to me. Jumps to routines in a Bootrom-section, well I want to know what is going on. Bascom-8051 has the option to have the ROM start at &H0800. So a $ROMSTART = &H0800 in my program did the trick, when in the WCONF-register, bit 6 is put to a 0, the bootrom is put from &H0000-&07FF and with a CPEEK from the Bascom-8051-program I can have a look in this bootloader. You also can put WCONF.7 to 0 and your board wouldn’t reboot after this operation.
Used some shareware utilties to get some readable assembly-code.
First of all XVI32 to load the info from the W7100-output to get a real BIN-file. Second used BIN2HEX to convert the BIN-file to a HEX-file. And at last load this HEX-file in Edsim51, a 8051 simulator. In the pictures the output from Bascom-8051 to a Hyperterminal screen. And the other picture is the output from EDSIM51, a 8051 simulator.