Compiler error when casting to function pointer
- by detly
I'm writing a bootloader for the PIC32MX, using HiTech's PICC32 compiler (similar to C90). At some point I need to jump to the real main routine, so somewhere in the bootloader I have
void (*user_main) (void);
user_main = (void (*) (void)) 0x9D003000;
user_main();
(Note that in the actual code, the function signature is typedef'd and the address…