This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Hardware reset

lpc1768 board or the MCB1700

does anybody know how to switch bins files using the hardware reset route, so when I press the reset button it will switch bins.

I know for software it could be something like this perharps

<

>
int main (void)
{
for (;;)
If

extern "C" void lpc1768_reset();

flash.write = binfile1

else

flash.write = binfile2

endif


}

<

>

thanks,

thomas

Parents
  • It is a magic chip that looks for the time stamps which I don't have access at the moment to the code, they are store on the flash memory but not programed into it yet.

    If my code is like this for rename

    
    62
    63          /* Function rename
    64           *  Rename a file in the filesystem.
    65           *
    66           * Variables
    67           *  oldname - the name of the file to rename.
    68           *  newname - the name to rename it to.
    69           *  returns - 0 on success, -1 on failure
    virtual int rename(const char *oldname, const char *newname) { return -1; };
    

    How do I rename files in ARM style

    I have tried

    rename *out.txt AS *yes.txt;

    but it does not work

Reply
  • It is a magic chip that looks for the time stamps which I don't have access at the moment to the code, they are store on the flash memory but not programed into it yet.

    If my code is like this for rename

    
    62
    63          /* Function rename
    64           *  Rename a file in the filesystem.
    65           *
    66           * Variables
    67           *  oldname - the name of the file to rename.
    68           *  newname - the name to rename it to.
    69           *  returns - 0 on success, -1 on failure
    virtual int rename(const char *oldname, const char *newname) { return -1; };
    

    How do I rename files in ARM style

    I have tried

    rename *out.txt AS *yes.txt;

    but it does not work

Children