image_setup(), image_setup_2()

Updated: April 19, 2023

Copy the startup code and OS image into RAM and prepare it for execution

int image_setup (unsigned long address)
int image_setup_2 (unsigned long address)


The address of the image that is to be copied into RAM


The image_setup() function prepares an image for execution. It copies the startup code from ROM into RAM where it can execute. It takes the image's address in ROM as its parameter, and always returns 0.

This function:

Note: Use the image_setup*() and image_start*() functions that correspond to the image_scan*() function you used; for example, if you used image_scan_2(), use image_setup_2() and image_start_2().


Always return 0