#######################
cmake.firmware/fw_utils
#######################

.. module:: cmake.firmware/fw_utils


.. function:: disassemble(EXE)

   This function disassembles the given executable target to generate an assembly file.
   
   The function retrieves the binary directory of the target, sets the output assembly file name,
   and adds a custom command to disassemble the executable and store the result in the specified file.
   
   :param EXE: The executable target.
   :type EXE: string
   


.. function:: gen_hex_files(EXE **kwargs)

   This function generates hex files for the given executable target.
   
   The function retrieves the binary directory of the target, parses the width arguments,
   and includes a utility script to find Python. It then retrieves binary file properties
   from the target, sets the appropriate sections for the bootloader, and generates hex files
   for each specified width.
   
   :param EXE: The executable target.
   :type EXE: string
   


.. function:: set_linker_scripts(EXE **kwargs)

   This function sets linker scripts for the given executable target.
   
   The function parses the linker script arguments and sets them as link options for the target.
   It also sets a property on the target to store the list of linker scripts.
   
   :param EXE: The executable target.
   :type EXE: string