pub(crate) fn sync_binaries() {
    let active_testprogram: TestProgram = DB
        .config_tree
        .c_get(keys::config::ACTIVE_TESTPROGRAM)
        .unwrap().expect("Failed to get active testprogram in DB. The DB needs to be initialized before this function can be called");

    let addresses = address::get_and_init_target_address_ranges();

    active_testprogram.insert_hive_defines();

    for address in addresses.arm.iter() {
        match build::assemble_and_link_arm(&active_testprogram, address) {
            Ok(_) => (),
            Err(err) => {
                log::error!("Failed to assemble and link active ARM testbinary '{}' with memory addresses: {:#?}\n Caused by: {}", active_testprogram.name, address, err);
                todo!()
            }
        }
    }

    for address in addresses.riscv.iter() {
        match build::assemble_and_link_riscv(&active_testprogram, address) {
            Ok(_) => (),
            Err(err) => {
                log::error!("Failed to assemble and link active RISCV testbinary '{}' with memory addresses: {:#?}\n Caused by: {}", active_testprogram.name, address, err);
                todo!()
            }
        }
    }
}
/// Builds binaries out of the currently available Testprograms. Automatically builds multiple binaries with different flash/ram start addresses according to the needs of the currently connected targets.
///
/// # Panics
/// If the target or testprogram configuration data in the DB has not been initialized.
Builds binaries out of the currently available Testprograms. Automatically builds multiple binaries with different flash/ram start addresses according to the needs of the currently connected targets.
Builds binaries out of the currently available Testprograms . Automatically builds multiple binaries with different flash / ram start addresses according to the needs of the currently connected targets .
pub(crate) fn sync_binaries() {
    let active_testprogram: TestProgram = DB
        .config_tree
        .c_get(keys::config::ACTIVE_TESTPROGRAM)
        .unwrap().expect("Failed to get active testprogram in DB. The DB needs to be initialized before this function can be called");
    let addresses = address::get_and_init_target_address_ranges();
    active_testprogram.insert_hive_defines();
    for address in addresses.arm.iter() {
        match build::assemble_and_link_arm(&active_testprogram, address) {
            Ok(_) => (),
            Err(err) => {
                log::error!("Failed to assemble and link active ARM testbinary '{}' with memory addresses: {:#?}\n Caused by: {}", active_testprogram.name, address, err);
                todo!()
            }
        }
    }
    for address in addresses.riscv.iter() {
        match build::assemble_and_link_riscv(&active_testprogram, address) {
            Ok(_) => (),
            Err(err) => {
                log::error!("Failed to assemble and link active RISCV testbinary '{}' with memory addresses: {:#?}\n Caused by: {}", active_testprogram.name, address, err);
                todo!()
            }
        }
    }
}
pub ( crate ) fn sync_binaries ( ) { let active_testprogram : TestProgram = DB . config_tree . c_get ( keys :: config :: ACTIVE_TESTPROGRAM ) . unwrap ( ) . expect ( " " ) ; let addresses = address :: get_and_init_target_address_ranges ( ) ; active_testprogram . insert_hive_defines ( ) ; for address in addresses . arm . iter ( ) { match build :: assemble_and_link_arm ( & active_testprogram , address ) { Ok ( _ ) => ( ) , Err ( err ) => { log :: error ! ( " \n " active_testprogram name address err ) ; todo ! ( ) } } } for address in addresses . riscv . iter ( ) { match build :: assemble_and_link_riscv ( & active_testprogram , address ) { Ok ( _ ) => ( ) , Err ( err ) => { log :: error ! ( " \n " active_testprogram name address err ) ; todo ! ( ) } } } }
Builds binaries out of the currently available Testprograms.
Builds binaries out of the currently available Testprograms .
panics
If the target or testprogram configuration data in the DB has not been initialized.
If the target or testprogram configuration data in the DB has not been initialized .