How to Modify/Verify Global Variables?

In the script command file, the following syntax is used.

// Initialize the global variable
*((ETPU_DATA_SPACE U24 *) ASH_FUNCTION_VARIABLE_OFFSET) = 0x123456;

// Verify that the global variable has the above value
verify_mem_u24(ETPU_DATA_SPACE, ASH_FUNCTION_VARIABLE_OFFSET, 0xffffff, 0x123456);

Click here to download this example