The two versions of the C164 differ in that the /b8EM version has 64Kbyte of OTP but the /bLM has no ROM. Our platform is a Phytec nanomodule with a 512K of Flash and 512K of RAM and our code includes a bootloader that copies the main program into RAM from the external flash and then reebots. Changing a number of things allows the program that would otherwise freeze, to proceed: 1-Lowering the optimization level to zero. 2-changing near function calls to far function calls. 3-Using actual function names instead of #defines and MACROs. Any help will be greately appreciated.