8-bit Knowledge Base

      • Flash Utilities Scratchpad Functions

        Silicon_Labs | 10/301/2013 | 10:04 PM


        Does the SiUtil DLL (AN117) include any functions to access the Scratchpad area of memory that is available on some devices?



        Yes, the latest version of SiUtil DLL includes two functions to access Scratchpad memory.  The prototypes for these functions are:

        extern 'C' __declspec(dllexport) HRESULT __stdcall GetScratchPadMemory(
                        BYTE * ptrMem,
                        DWORD wStartAddress,
                        unsigned int nLength)

        extern 'C' __declspec(dllexport) HRESULT __stdcall SetScratchPadMemory(
                        BYTE * ptrMem,
                        DWORD wStartAddress,
                        unsigned int nLength,
                        int nDisableDialogs)

        These parameters are similar in nature to the parameters for the GetCodeMemory() and SetCodeMemory() functions.

        The next revision of AN117 (currently Revision 3.3) will include information on these functions. The latest version of the AN117 software can be downloaded from www.silabs.com/8bit-appnotes.