Declaration: 
void LoadProgram(unsigned char file_name[], int format, int addr_space=AS_CODE, unsigned long start_addr=0); 
Description 
Downloads a program into the microcontroller memory. 
Parameters: 
   file_name - the name of the loaded file. 
   format    - the format of the loaded file. Character constants with the 
                prefix LF_ declared in the system.h header file 
                are provided for this parameter. To understand this 
                better, open the Load Program dialog  
                and see the list of formats. 
   addr_space - the microprocessor address space, where the program is downloaded 
                (the code memory by default). 
   start_addr - the load address. This parameter is used only for loading 
                a file that is the binary memory image. 
Not only programs can be loaded: you can also load data memory images that were saved, for example, with the SaveData function. 
Example 
LoadProgram("C:\\PROG\\TEST.D32", LF_UBROF); 
  
  
 |