Does anyone have a suitable configuration for the Wiznet W7100 chip for SDCC? My current problem appears to be in initialization (and/or a lack of knowledge of appropriate config settings, although a search on Wiznet and W7100 in the archives didn't find anything). The chip has dual DPTRs but no P2 nor XPAGE. As a result I set DUAL_DPTR = 1 in sdcc/device/lib/mcs51/crtxinit.asm and rebuilt from source, but there is still a problem in that crtxclear.asm is referring to XPAGE which ends up being defined as one of the gpio ports (but doesn't do anything for memory) and sometimes the code doesn't appear to initialize correctly (and other times it seems to work fine :-)) presumably because it isn't clearing the memory it thinks it is. As well setting DUAL_DPTR in a startup assembler routine seems to not be enough as I'd expect other places in code generation to need to know that there isn't a P2 or XPAGE sfr present which may mean that I have missed some higher level setting.
Peter Van Epp ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user