diff --git a/Fertirrega_v6/Core/Inc/ad5934_driver.h b/Fertirrega_v6/Core/Inc/ad5934_driver.h index 3eba673..c51a387 100644 --- a/Fertirrega_v6/Core/Inc/ad5934_driver.h +++ b/Fertirrega_v6/Core/Inc/ad5934_driver.h @@ -87,10 +87,14 @@ extern "C" { // Values for frequency counts = (freq*2^27)/(1MHz/16) +#define AD5934_FREQ_4K882HZ 0x009FF92F // 4.882kHz +#define AD5934_FREQ_2K5HZ 0x0051EB86 // 2.5kHz +#define AD5934_FREQ_1K953HZ 0x003FFEF3 // 1.953kHz #define AD5934_FREQ_1K590HZ 0x003419E3 // 1.59kHz #define AD5934_FREQ_0HZ 0x00000000 // 0Hz #define AD5934_STEP_FREQ_0 0x0000 // 0 passos -#define AD5934_SETTLING_TIME_0S01 0x000C // 0,01s +//#define AD5934_SETTLING_TIME_0S01 0x000C // 0,01s +#define AD5934_SETTLING_TIME_0S01 0x0080 /*****************************************************************************/ /**************************** Command Codes **********************************/ @@ -122,7 +126,7 @@ extern "C" { #define AD5934_CH_EC_10MS 0x21 #define AD5934_CH_EC_5MS 0x22 */ - +/* #define AD5934_CH_REF100R_LOW_GAIN 0x09 #define AD5934_CH_REF100R_MID_GAIN 0x0A #define AD5934_CH_REF100R_HIGH_GAIN 0x0C @@ -138,7 +142,7 @@ extern "C" { #define AD5934_CH_EC_LOW_GAIN 0x81 #define AD5934_CH_EC_MID_GAIN 0x82 #define AD5934_CH_EC_HIGH_GAIN 0x84 - +*/ #define AD5934_LOW_GAIN_BASE 0x01 #define AD5934_MID_GAIN_BASE 0x02 #define AD5934_HIGH_GAIN_BASE 0x04 @@ -161,9 +165,11 @@ extern "C" { #define AD5934_RTD_A 3.9083e-3f #define AD5934_RTD_B (-5.775e-7f) -#define AD5934_TEMP_AVERAGES 8 -#define AD5934_EC_AVERAGES 8 +#define AD5934_TEMP_AVERAGES 16 +#define AD5934_EC_AVERAGES 16 +#define AD5934_EC_ALPHA_PER_C 0.02f +#define AD5934_EC_TEMP_REF_C 25.0f union Bytes2Int { @@ -183,13 +189,59 @@ union Short2Long uint32_t number; }; -extern int16_t temperature_dut_samples[AD5934_TEMP_AVERAGES][2]; -extern int16_t temperature_ref_samples[AD5934_TEMP_AVERAGES][2]; +typedef enum { + AD5934_CH_REF100R_LOW_GAIN = 0, + AD5934_CH_REF100R_MID_GAIN, + AD5934_CH_REF100R_HIGH_GAIN, + + AD5934_CH_REF1K_LOW_GAIN, + AD5934_CH_REF1K_MID_GAIN, + AD5934_CH_REF1K_HIGH_GAIN, + + AD5934_CH_REF10K_LOW_GAIN, + AD5934_CH_REF10K_MID_GAIN, + AD5934_CH_REF10K_HIGH_GAIN, + + AD5934_CH_RTD_LOW_GAIN, + AD5934_CH_RTD_MID_GAIN, + AD5934_CH_RTD_HIGH_GAIN, + + AD5934_CH_EC_LOW_GAIN, + AD5934_CH_EC_MID_GAIN, + AD5934_CH_EC_HIGH_GAIN, + + AD5934_CH_MAX // Guarda automaticamente o número total de canais (15) +} AD5934_Channel_t; + +static const uint8_t ADG715_Channel_Map[AD5934_CH_MAX] = { + [AD5934_CH_REF100R_LOW_GAIN] = (ADG715_SW1 | ADG715_SW4), + [AD5934_CH_REF100R_MID_GAIN] = (ADG715_SW2 | ADG715_SW4), + [AD5934_CH_REF100R_HIGH_GAIN] = (ADG715_SW3 | ADG715_SW4), + + [AD5934_CH_REF1K_LOW_GAIN] = (ADG715_SW1 | ADG715_SW5), + [AD5934_CH_REF1K_MID_GAIN] = (ADG715_SW2 | ADG715_SW5), + [AD5934_CH_REF1K_HIGH_GAIN] = (ADG715_SW3 | ADG715_SW5), + + [AD5934_CH_REF10K_LOW_GAIN] = (ADG715_SW1 | ADG715_SW6), + [AD5934_CH_REF10K_MID_GAIN] = (ADG715_SW2 | ADG715_SW6), + [AD5934_CH_REF10K_HIGH_GAIN] = (ADG715_SW3 | ADG715_SW6), + + [AD5934_CH_RTD_LOW_GAIN] = (ADG715_SW1 | ADG715_SW7), + [AD5934_CH_RTD_MID_GAIN] = (ADG715_SW2 | ADG715_SW7), + [AD5934_CH_RTD_HIGH_GAIN] = (ADG715_SW3 | ADG715_SW7), + + [AD5934_CH_EC_LOW_GAIN] = (ADG715_SW1 | ADG715_SW8), + [AD5934_CH_EC_MID_GAIN] = (ADG715_SW2 | ADG715_SW8), + [AD5934_CH_EC_HIGH_GAIN] = (ADG715_SW3 | ADG715_SW8) +}; + +extern int16_t temperature_dut_samples[2][AD5934_TEMP_AVERAGES]; +extern int16_t temperature_ref_samples[2][AD5934_TEMP_AVERAGES]; extern float temperature_display[AD5934_TEMP_AVERAGES]; -extern int16_t ec_dut_samples[AD5934_EC_AVERAGES][2]; -extern int16_t ec_ref1_samples[AD5934_EC_AVERAGES][2]; -extern int16_t ec_ref2_samples[AD5934_EC_AVERAGES][2]; +extern int16_t ec_dut_samples[2][AD5934_EC_AVERAGES]; +extern int16_t ec_ref1_samples[2][AD5934_EC_AVERAGES]; +extern int16_t ec_ref2_samples[2][AD5934_EC_AVERAGES]; extern float ec_display[AD5934_EC_AVERAGES]; extern float ec_temp_dut[AD5934_EC_AVERAGES]; @@ -211,7 +263,9 @@ uint32_t AD5934_Sweep(void); void AD5934_RestartSweep(void); -float AD5934_GetTemperature(void); +float AD5934_Get_Ref_Resistance(void); + +float AD5934_GetTemperature(float mag_ref); float AD5934_GetImpedance(float temperature_dut); @@ -221,7 +275,9 @@ float AD5934_Round_Float_Precision(float value, uint8_t number_of_decimals); float AD5934_Linear_Correction(float raw_value); -float AD5934_Get_Target_Conductivity(float temp); +float AD5934_EC_Compensate_To_25C(float ec_raw_uScm, float temp_C); + +float AD5934_EC_Calibrate_Temperature(float temp_C); void ADG715_SetRegisterValue(char value); diff --git a/Fertirrega_v6/Core/Inc/ads1015_driver.h b/Fertirrega_v6/Core/Inc/ads1015_driver.h index 1968b2f..379bc15 100644 --- a/Fertirrega_v6/Core/Inc/ads1015_driver.h +++ b/Fertirrega_v6/Core/Inc/ads1015_driver.h @@ -13,6 +13,7 @@ #define INC_ADS1015_DRIVER_H_ #include +#include #include "main.h" // Assuming HAL is included via main.h #include "stm32f1xx_hal.h" #include "flash_manager.h" @@ -125,9 +126,9 @@ extern "C" { #define ADS1015_KELVIN_OFFSET 273.15f // Constante de conversão Kelvin #define ADS1015_ADC_MAX 4095.0f -#define ADS1015_ADC_VREF 3.3f +#define ADS1015_ADC_VREF 1024.0f //1.024V in mV #define PH_DELTA_CALIB 3.0f // Difference between pH 7 and pH 4 used in calibration -#define ADS1015_PH_AVERAGES 8 +#define ADS1015_PH_AVERAGES 16 #define ADS1015_TEMPERATURE_ROW 0 #define ADS1015_PH_4_BUFFER_ROW 1 @@ -149,7 +150,7 @@ typedef enum { -extern float ph_averages[ADS1015_PH_AVERAGES]; +extern float ph_dut_samples[ADS1015_PH_AVERAGES]; @@ -171,9 +172,10 @@ void ADSstartComparator_SingleEnded(ADS1015_I2C* i2c, uint8_t channel, int16_t int16_t ADSgetLastConversionResults(); void ADSsetGain(ADS1015_I2C* i2c, adsGain_t gain); adsGain_t ADSgetGain(ADS1015_I2C* i2c); -float ADSCalculate_ph_Volts(void); +float ADSCalculate_ph_mV(void); float ADSCalculate_ph_Compensated(float temp_dut); float ADSCalculate_ph_Uncompensated(void); float ADSinterpolate_ph(float temp_dut, uint8_t row_index); +float ADSRound_Float_Precision(float value, uint8_t number_of_decimals); #endif /* INC_ADS1015_DRIVER_H_ */ diff --git a/Fertirrega_v6/Core/Inc/flash_manager.h b/Fertirrega_v6/Core/Inc/flash_manager.h index 13ee412..8079391 100644 --- a/Fertirrega_v6/Core/Inc/flash_manager.h +++ b/Fertirrega_v6/Core/Inc/flash_manager.h @@ -27,14 +27,17 @@ typedef struct __attribute__((packed, aligned(4))) { uint32_t magic_number; // 4 bytes (Validação) - float ph4_volts; // 4 bytes - float ph7_volts; // 4 bytes + float ph4_mV; // 4 bytes + float ph7_mV; // 4 bytes + float ph_temperature; // 4 bytes + float ph_slope_mV; // 4 bytes + float ph7_real; // 4 bytes float ec1413_mag; // 4 bytes float ec0_mag; // 4 bytes - float temperature_value; // 4 bytes + float ec_factor; // 4 bytes uint8_t PT100_PT1000_switch; // 1 byte uint8_t EC10mS_EC5mS_switch; // 1 byte - uint8_t reserved[998]; // Preenchimento para completar 1024 bytes (1KB) + uint8_t reserved[986]; // Preenchimento para completar 1024 bytes (1KB) } FlashPage_t; extern FlashPage_t flash_data; diff --git a/Fertirrega_v6/Core/Inc/main.h b/Fertirrega_v6/Core/Inc/main.h index b6a7c4a..2ac2747 100644 --- a/Fertirrega_v6/Core/Inc/main.h +++ b/Fertirrega_v6/Core/Inc/main.h @@ -127,12 +127,13 @@ void Error_Handler(void); /* USER CODE BEGIN Private defines */ #define STATE_RUNNING_OK 0x00 -#define STATE_SETUP_CALIBRATION 0x01 -#define STATE_RS485_SUPPLY_FAULT 0x02 -#define STATE_PH_SUPPLY_FAULT 0x03 -#define STATE_EC_RTD_SUPPLY_FAULT 0x04 -#define STATE_NO_SETUP_CALIBRATION 0x05 -#define STATE_HIGH_AMBIENT_TEMPERATURE 0x06 +#define STATE_NO_SETUP_CALIBRATION 0x01 +#define STATE_PH4_DRY_EC_CALIBRATION 0x02 +#define STATE_PH7_WET_EC_CALIBRATION 0x03 +#define STATE_RS485_SUPPLY_FAULT 0x04 +#define STATE_PH_SUPPLY_FAULT 0x05 +#define STATE_EC_RTD_SUPPLY_FAULT 0x06 +#define STATE_HIGH_AMBIENT_TEMPERATURE 0x07 extern uint8_t main_state; /* USER CODE END Private defines */ diff --git a/Fertirrega_v6/Core/Src/ad5934_driver.c b/Fertirrega_v6/Core/Src/ad5934_driver.c index 2894fe1..3ff9d04 100644 --- a/Fertirrega_v6/Core/Src/ad5934_driver.c +++ b/Fertirrega_v6/Core/Src/ad5934_driver.c @@ -11,12 +11,12 @@ #include "ad5934_driver.h" -int16_t temperature_dut_samples[AD5934_TEMP_AVERAGES][2]={{0},{0}}; -int16_t temperature_ref_samples[AD5934_TEMP_AVERAGES][2]={{0},{0}}; +int16_t temperature_dut_samples[2][AD5934_TEMP_AVERAGES]={{0},{0}}; +int16_t temperature_ref_samples[2][AD5934_TEMP_AVERAGES]={{0},{0}}; float temperature_display[AD5934_TEMP_AVERAGES] = {0}; -int16_t ec_dut_samples[AD5934_EC_AVERAGES][2]={{0},{0}}; +int16_t ec_dut_samples[2][AD5934_EC_AVERAGES]={{0},{0}}; float ec_display[AD5934_EC_AVERAGES] = {0}; /****************************************************************************** @@ -142,7 +142,7 @@ void AD5934_Init(void) AD5934_SetRegisterValue(AD5934_CONTROL_REG_LB, (AD5934_CONTROL_FUNCTION(AD5934_RESET)), 1); // Configure starting frequency - AD5934_SetRegisterValue(AD5934_START_FREQ_REG_LB, AD5934_FREQ_1K590HZ, 3); + AD5934_SetRegisterValue(AD5934_START_FREQ_REG_LB, AD5934_FREQ_2K5HZ, 3); // Configure frequency increment step AD5934_SetRegisterValue(AD5934_FREQ_INCR_REG_LB, AD5934_FREQ_0HZ, 3); @@ -165,22 +165,22 @@ void AD5934_Init(void) void AD5934_RestartSweep(void) { // Place AD5934 in standby - AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, (AD5934_CONTROL_FUNCTION(AD5934_STANDBY) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X5)), 1); + AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, (AD5934_CONTROL_FUNCTION(AD5934_STANDBY) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X1)), 1); // Initialize starting frequency, Start frequency sweep, standby - AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, ((AD5934_CONTROL_FUNCTION(AD5934_INIT_START_FREQ)) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X5)), 1); + AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, ((AD5934_CONTROL_FUNCTION(AD5934_INIT_START_FREQ)) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X1)), 1); // Disable Internal Reset State AD5934_SetRegisterValue(AD5934_CONTROL_REG_LB, AD5934_CONTROL_FUNCTION(AD5934_RESERVED), 1); // Configure Range Output, PGA gain andPlace AD5934 in sweep - AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, (AD5934_CONTROL_FUNCTION(AD5934_START_FREQ_SWEEP) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X5)), 1); + AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, (AD5934_CONTROL_FUNCTION(AD5934_START_FREQ_SWEEP) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X1)), 1); // Wait for data to be valid AD5934_Wait_For_Data_Valid(); // Power Down - AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, (AD5934_CONTROL_FUNCTION(AD5934_POWER_DOWN) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X5)), 1); + AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, (AD5934_CONTROL_FUNCTION(AD5934_POWER_DOWN) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X1)), 1); } @@ -212,54 +212,44 @@ uint32_t AD5934_Sweep(void) /****************************************************************************** -* @brief Calculate Temperature. +* @brief Get Reference Resistance on Board. * * @param channel - AD5934_CH_PT100 or AD5934_CH_PT1000. * * @return impedance. ******************************************************************************/ -float AD5934_GetTemperature(void) +float AD5934_Get_Ref_Resistance(void) { - uint8_t i, ch_dut, ch_ref; + uint8_t i; uint32_t sample; - int32_t ref_sum[2], dut_sum[2]; - float real_ref,imag_ref, real_dut, imag_dut, ratio, discriminant, mag_dut, mag_ref, ratio_mag, impedance_dut, temperature_sum, gain_factor; + int32_t ref_sum[2]; + float real_ref,imag_ref, real_dut, mag_ref; if(HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_7) == GPIO_PIN_SET) // OFF = PT1000, ON = PT100, PA7 has internal pull-up and switch connects to GND - { - ch_ref = AD5934_CH_REF100R_LOW_GAIN; - ch_dut = AD5934_CH_RTD_LOW_GAIN; //PT100 - gain_factor = 100.0f; - } + ADG715_Update(AD5934_CH_REF100R_LOW_GAIN); // Set the Reference Resistor on board in the Analog Mux else - { - ch_ref = AD5934_CH_REF1K_MID_GAIN; - ch_dut = AD5934_CH_RTD_MID_GAIN; //PT1000 - gain_factor = 1000.0f; - } + ADG715_Update(AD5934_CH_REF1K_MID_GAIN); // Set the Reference Resistor on board in the Analog Mux - ADG715_Update(ch_ref); // Set the Reference Resistor on board in the Analog Mux - HAL_Delay(2); //Wait a little sample = AD5934_Sweep(); // Get Reference Resistor Values from ADC // Move values in the vectors for (i = (AD5934_TEMP_AVERAGES-1); i > 0; i--) { - temperature_ref_samples[i][0] = temperature_ref_samples[i-1][0]; //real - temperature_ref_samples[i][1] = temperature_ref_samples[i-1][1]; //imag + temperature_ref_samples[0][i] = temperature_ref_samples[0][i-1]; //real + temperature_ref_samples[1][i] = temperature_ref_samples[1][i-1]; //imag } // Read real and imaginary data temperature_ref_samples[0][0] = (int16_t)(sample & 0x0000FFFF); //real - //temperature_ref_samples[0][1] = 0xFFFF-(((sample & 0xFFFF0000)>>16)); //imag - temperature_ref_samples[0][1] = (int16_t)((sample & 0xFFFF0000)>>16); //imag + //temperature_ref_samples[1][0] = 0xFFFF-(((sample & 0xFFFF0000)>>16)); //imag + temperature_ref_samples[1][0] = (int16_t)((sample & 0xFFFF0000)>>16); //imag // Sum values in the vectors for (i = 0, ref_sum[0]=0, ref_sum[1]=0; i < AD5934_TEMP_AVERAGES; i++) { - ref_sum[0] += (int32_t)temperature_ref_samples[i][0]; //real - ref_sum[1] += (int32_t)temperature_ref_samples[i][1]; //imag + ref_sum[0] += (int32_t)temperature_ref_samples[0][i]; //real + ref_sum[1] += (int32_t)temperature_ref_samples[1][i]; //imag } real_ref = ((float)ref_sum[0])/((float)AD5934_TEMP_AVERAGES); @@ -268,27 +258,54 @@ float AD5934_GetTemperature(void) // Calculate gain factor impedance mag_ref = sqrtf((real_ref * real_ref) + (imag_ref * imag_ref)); - ADG715_Update(ch_dut); - HAL_Delay(2); + return mag_ref; +} + + +/****************************************************************************** +* @brief Calculate Temperature. +* +* @param channel - Magnitude of the Reference Resistor. +* +* @return impedance. +******************************************************************************/ +float AD5934_GetTemperature(float mag_ref) +{ + uint8_t i, ch_ref; + uint32_t sample; + int32_t dut_sum[2]; + float real_dut, imag_dut, ratio, discriminant, mag_dut, ratio_mag, impedance_dut, temperature_sum, gain_factor, temp_result; + + if(HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_7) == GPIO_PIN_SET) // OFF = PT1000, ON = PT100, PA7 has internal pull-up and switch connects to GND + { + ch_ref = AD5934_CH_RTD_LOW_GAIN; //PT100 + gain_factor = AD5934_GAIN_FACTOR_100R; + } + else + { + ch_ref = AD5934_CH_RTD_MID_GAIN; //PT1000 + gain_factor = AD5934_GAIN_FACTOR_1K; + } + + ADG715_Update(ch_ref); sample = AD5934_Sweep(); // Get PT100/PT1000 Values from ADC - for (i = (AD5934_TEMP_AVERAGES-1); i > 0; i--) { - temperature_dut_samples[i][0] = temperature_dut_samples[i-1][0]; //real - temperature_dut_samples[i][1] = temperature_dut_samples[i-1][1]; //imag + temperature_dut_samples[0][i] = temperature_dut_samples[0][i-1]; //real + temperature_dut_samples[1][i] = temperature_dut_samples[1][i-1]; //imag } // Read real and imaginary data temperature_dut_samples[0][0] = (int16_t)(sample & 0x0000FFFF); //real //temperature_dut_samples[0][1] = 0xFFFF-(((sample & 0xFFFF0000)>>16)); //imag - temperature_dut_samples[0][1] = (int16_t)((sample & 0xFFFF0000)>>16); //imag + temperature_dut_samples[1][0] = (int16_t)((sample & 0xFFFF0000)>>16); //imag for (i = 0, dut_sum[0]=0, dut_sum[1]=0; i < AD5934_TEMP_AVERAGES; i++) { - dut_sum[0] += (int32_t)temperature_dut_samples[i][0]; //real - dut_sum[1] += (int32_t)temperature_dut_samples[i][1]; //imag + dut_sum[0] += (int32_t)temperature_dut_samples[0][i]; //real + dut_sum[1] += (int32_t)temperature_dut_samples[1][i]; //imag } real_dut = ((float)dut_sum[0])/((float)AD5934_TEMP_AVERAGES); @@ -297,8 +314,8 @@ float AD5934_GetTemperature(void) // Calculate magnitude mag_dut = sqrtf((real_dut * real_dut) + (imag_dut * imag_dut)); - for (i = (AD5934_TEMP_AVERAGES-1); i > 0; i--) - temperature_display[i] = temperature_display[i-1]; + //for (i = (AD5934_TEMP_AVERAGES-1); i > 0; i--) + //temperature_display[i] = temperature_display[i-1]; ratio_mag = mag_ref / mag_dut; @@ -313,18 +330,23 @@ float AD5934_GetTemperature(void) // Calculate impedance discriminant with the ratio discriminant = (AD5934_RTD_A*AD5934_RTD_A)-(4.0f * AD5934_RTD_B * (1.0f - ratio)); + //temp_result = (-AD5934_RTD_A + sqrtf(discriminant)/(2.0f * AD5934_RTD_B)); + + return (AD5934_Round_Float_Precision(((-AD5934_RTD_A + sqrtf(discriminant))/(2.0f * AD5934_RTD_B)),2)); + //return (AD5934_Round_Float_Precision(temp_result,1)); + // Calculate new temperature with the discriminant - temperature_display[0] = (-AD5934_RTD_A + sqrtf(discriminant))/(2.0f * AD5934_RTD_B); + //temperature_display[0] = (-AD5934_RTD_A + sqrtf(discriminant))/(2.0f * AD5934_RTD_B); // Sum of all temperatures - for (i = 0, temperature_sum=0.0f; i < AD5934_TEMP_AVERAGES; i++) - temperature_sum += temperature_display[i]; + // for (i = 0, temperature_sum=0.0f; i < AD5934_TEMP_AVERAGES; i++) + // temperature_sum += temperature_display[i]; // Is the temperature stable? - if(temperature_display[0]>0.0f && (abs(temperature_display[0]-temperature_display[AD5934_TEMP_AVERAGES-1])/temperature_display[0])<0.1f) - return(AD5934_Round_Float_Precision(temperature_sum/((float)AD5934_TEMP_AVERAGES),1)); // Sum / number of averages - else - return 0.0f; //instable values return always 0 + //if(temperature_display[0]>0.0f && (abs(temperature_display[0]-temperature_display[AD5934_TEMP_AVERAGES-1])/temperature_display[0])<0.1f) + //return(AD5934_Round_Float_Precision(temperature_sum/((float)AD5934_TEMP_AVERAGES),1)); // Sum / number of averages + //else + //return 0.0f; //instable values return always 0 } @@ -348,11 +370,11 @@ float AD5934_GetImpedance(float temperature_dut) else ec_gain = AD5934_CH_EC_MID_GAIN; - if((ec_gain != flash_data.EC10mS_EC5mS_switch) && (main_state != STATE_SETUP_CALIBRATION)) + if((ec_gain != flash_data.EC10mS_EC5mS_switch) && (main_state != STATE_PH4_DRY_EC_CALIBRATION || main_state != STATE_PH7_WET_EC_CALIBRATION)) return -1.0f; // Fatal error because the gain used in calibration is different ADG715_Update(ec_gain); - HAL_Delay(2); + //HAL_Delay(5); /* 2. Data Acquisition */ sample_dut = AD5934_Sweep(); @@ -360,19 +382,21 @@ float AD5934_GetImpedance(float temperature_dut) // Shift buffer for moving average for (i = (AD5934_EC_AVERAGES - 1); i > 0; i--) { - ec_dut_samples[i][0] = ec_dut_samples[i-1][0]; - ec_dut_samples[i][1] = ec_dut_samples[i-1][1]; + ec_dut_samples[0][i] = ec_dut_samples[0][i-1]; + ec_dut_samples[1][i] = ec_dut_samples[1][i-1]; } + // Deconstruct 32-bit sample into Real and Imaginary components ec_dut_samples[0][0] = (float)(int16_t)(sample_dut & 0xFFFF); - ec_dut_samples[0][1] = (float)(int16_t)((sample_dut >> 16) & 0xFFFF); + ec_dut_samples[1][0] = (float)(int16_t)((sample_dut >> 16) & 0xFFFF); + /* 3. Compute Averages */ for (i = 0; i < AD5934_EC_AVERAGES; i++) { - dut_sum[0] += (int32_t)ec_dut_samples[i][0]; - dut_sum[1] += (int32_t)ec_dut_samples[i][1]; + dut_sum[0] += (int32_t)ec_dut_samples[0][i]; + dut_sum[1] += (int32_t)ec_dut_samples[1][i]; } real_avg = (float)dut_sum[0] / (float)AD5934_EC_AVERAGES; @@ -384,7 +408,7 @@ float AD5934_GetImpedance(float temperature_dut) /* 5. Calibration Logic Implementation */ // Mode: CALIBRATION SETUP (User is defining the reference magnitude) - if(main_state == STATE_SETUP_CALIBRATION) + if(main_state == STATE_PH4_DRY_EC_CALIBRATION || main_state == STATE_PH7_WET_EC_CALIBRATION) { return mag_dut; } @@ -393,7 +417,7 @@ float AD5934_GetImpedance(float temperature_dut) { slope = (AD5934_GAIN_FACTOR_1413US/(flash_data.ec1413_mag-flash_data.ec0_mag)); - return(AD5934_GAIN_FACTOR_1413US + (mag_dut - flash_data.ec1413_mag) * slope); + return(AD5934_GAIN_FACTOR_1413US + (AD5934_EC_Compensate_To_25C(mag_dut,temperature_dut) - flash_data.ec1413_mag) * slope); } else return 0.0f; // Calibration error fallback @@ -476,52 +500,97 @@ float AD5934_Linear_Correction(float raw_value) /** - * @brief Internal helper to interpolate conductivity from the temperature matrix. - * @param temp The current temperature in Celsius. - * @return Interpolated conductivity value in uS/cm. + * @brief Temperature compensation with drift equal to 2% + * @param admittance raw in uS/cm + * @param temperature_celsius Temperature in degrees Celsius + * @return admittance compensated */ -float AD5934_Get_Target_Conductivity(float temp) +float AD5934_EC_Compensate_To_25C(float ec_raw_uScm, float temp_C) { - /* Matrix: Row 0 = Temperature (ºC), Row 1 = Conductivity (uS/cm) */ - const float matrix[2][12] = { - {5, 10, 15, 18, 20, 22, 25, 30, 35, 40, 45, 50}, - {893, 1018, 1149, 1225, 1278, 1329, 1413, 1552, 1691, 1843, 1988, 2145} - }; - // Boundary Check: Lower - if (temp <= matrix[0][0]) - temp = 5; + float factor = 1.0f + AD5934_EC_ALPHA_PER_C * (temp_C - AD5934_EC_TEMP_REF_C); - // Boundary Check: Upper - if (temp >= matrix[0][11]) - temp = 50; + if (factor < 0.1f) + factor = 0.1f; - // Linear Interpolation logic - for (int i = 0; i < 11; i++) - { - if (temp >= matrix[0][i] && temp <= matrix[0][i+1]) - { - float t0 = matrix[0][i]; - float t1 = matrix[0][i+1]; - float c0 = matrix[1][i]; - float c1 = matrix[1][i+1]; - - // Formula: y = y0 + (x - x0) * ((y1 - y0) / (x1 - x0)) - return c0 + (temp - t0) * ((c1 - c0) / (t1 - t0)); - } - } - return (matrix[1][6]); // Mid point Fallback + return (ec_raw_uScm / factor); } +/** + * @brief Calibrates EC sensor reading to 25°C reference point + * @param temp_C Temperature of the liquid in Celsius + * @return Temperature-compensated Correction factor value at 25°C reference + */ +float AD5934_EC_Calibrate_Temperature(float temp_C) +{ + // Calibration data points for standard solution (1413 uS/cm) + const float temps[] = {5, 10, 15, 18, 20, 22, 25, 30, 35, 40, 45, 50}; + const float conductivities[] = {893, 1018, 1149, 1225, 1278, 1329, 1413, 1552, 1691, 1843, 1988, 2145}; + + // Find the two nearest temperature points for interpolation + int32_t temp_index = -1; + for (int i = 0; i < 12; i++) + { + if (temps[i] >= temp_C) + { + temp_index = i; + break; + } + } + + // Handle boundary cases + if (temp_index == -1) { + // Temperature higher than max point (50°C) + temp_index = 10; + } else if (temp_index == 0) { + // Temperature lower than min point (5°C) + temp_index = 0; + } + + // Interpolate conductivity at measured temperature + float temp1 = temps[temp_index - 1]; + float temp2 = temps[temp_index]; + float cond1 = conductivities[temp_index - 1]; + float cond2 = conductivities[temp_index]; + + // Linear interpolation to get conductivity at measured temperature + float interpolated_cond = cond1 + (cond2 - cond1) * (temp_C - temp1) / (temp2 - temp1); + + // Return real conductivity at the temperature + return(interpolated_cond/1413.0f); +} + + +/** + * @brief Calibrate AD5934 using dry probe and standard solution + * + * @param dry_probe_real Raw real value from dry probe measurement + * @param dry_probe_imag Raw imaginary value from dry probe measurement + * @param standard_real Raw real value from 1413 uS/cm standard solution + * @param standard_imag Raw imaginary value from 1413 uS/cm standard solution + * @return float Calibration factor for converting raw readings to admittance + */ +float AD5934_Calibrate(float dry_probe_real, float dry_probe_imag, float standard_real, float standard_imag) +{ + // Calculate magnitude of dry probe reading + float dry_magnitude = sqrtf(dry_probe_real * dry_probe_real + dry_probe_imag * dry_probe_imag); + + // Calculate magnitude of standard solution reading + float standard_magnitude = sqrtf(standard_real * standard_real + standard_imag * standard_imag); + + // Calculate calibration factor based on known standard (1413 uS/cm) + // This assumes the standard provides a known conductance value + float calibration_factor = 1413.0f / standard_magnitude; + + return calibration_factor; +} /***************************************************************************** * ADG715 ***************************************************************************** * @brief Writes data into a register. * - * @param registerAddress - Address of the register. - * @param registerValue - Data value to write. - * @param bytesNumber - Number of bytes. + * @param value - Data value to write. * * @return None. *******************************************************************************/ @@ -549,78 +618,24 @@ void ADG715_ResetChannels(void) /****************************************************************************** * @brief Update Channels on the ADG715 and stop-start AD5934. * -* @param: channel = AD5934_CH_REF_100R, AD5934_CH_REF_1K, AD5934_CH_REF_10K, AD5934_CH_PT100, AD5934_CH_PT1000 or AD5934_CH_EC +* @param: channel = AD5934_CH_REF_100R, AD5934_CH_REF_1K, AD5934_CH_REF_10K, AD5934_CH_PT100, AD5934_CH_PT1000, AD5934_CH_EC, ... * * @return none. ******************************************************************************/ -void ADG715_Update(uint8_t channel) +void ADG715_Update(AD5934_Channel_t channel) { - HAL_StatusTypeDef status; + // Garante que o índice recebido não ultrapassa os limites do vetor + if (channel >= AD5934_CH_MAX) + return; - // Disconnect all Analog Switches - ADG715_ResetChannels(); + // Envia o byte combinado via I2C (Make-before-break nativo por barramento) + ADG715_SetRegisterValue(ADG715_Channel_Map[channel]); - // Set the pair of connections - if(channel == AD5934_CH_REF100R_LOW_GAIN) - { - ADG715_SetChannels(ADG715_SW1, ADG715_SW4); // Rf = 150R, Ch = Ref_100R - } - else if(channel == AD5934_CH_REF100R_MID_GAIN) - { - ADG715_SetChannels(ADG715_SW2, ADG715_SW4); // Rf = 1k5, Ch = Ref_100R - } - else if(channel == AD5934_CH_REF100R_HIGH_GAIN) - { - ADG715_SetChannels(ADG715_SW3, ADG715_SW4); // Rf = 6k2, Ch = Ref_100R - } - else if(channel == AD5934_CH_REF1K_LOW_GAIN) - { - ADG715_SetChannels(ADG715_SW1, ADG715_SW5); // Rf = 150R, Ch = Ref_1k - } - else if(channel == AD5934_CH_REF1K_MID_GAIN) - { - ADG715_SetChannels(ADG715_SW2, ADG715_SW5); // Rf = 1k5, Ch = Ref_1k - } - else if(channel == AD5934_CH_REF1K_HIGH_GAIN) - { - ADG715_SetChannels(ADG715_SW3, ADG715_SW5); // Rf = 6k2, Ch = Ref_1k - } - else if(channel == AD5934_CH_REF10K_LOW_GAIN) - { - ADG715_SetChannels(ADG715_SW1, ADG715_SW6); // Rf = 150R, Ch = Ref_10k - } - else if(channel == AD5934_CH_REF10K_MID_GAIN) - { - ADG715_SetChannels(ADG715_SW2, ADG715_SW6); // Rf = 1k5, Ch = Ref_10k - } - else if(channel == AD5934_CH_REF10K_HIGH_GAIN) - { - ADG715_SetChannels(ADG715_SW3, ADG715_SW6); // Rf = 6k2, Ch = Ref_10k - } - else if(channel == AD5934_CH_RTD_LOW_GAIN) - { - ADG715_SetChannels(ADG715_SW1, ADG715_SW7); // Rf = 150R, Ch = RTD - } - else if(channel == AD5934_CH_RTD_MID_GAIN) - { - ADG715_SetChannels(ADG715_SW2, ADG715_SW7); // Rf = 1k5, Ch = RTD - } - else if(channel == AD5934_CH_RTD_HIGH_GAIN) - { - ADG715_SetChannels(ADG715_SW3, ADG715_SW7); // Rf = 6k2, Ch = RTD - } - else if(channel == AD5934_CH_EC_LOW_GAIN) - { - ADG715_SetChannels(ADG715_SW1, ADG715_SW8); // Rf = 150R, Ch = EC - } - else if(channel == AD5934_CH_EC_MID_GAIN) - { - ADG715_SetChannels(ADG715_SW2, ADG715_SW8); // Rf = 1k5, Ch = EC - } - else if(channel == AD5934_CH_EC_HIGH_GAIN) - { - ADG715_SetChannels(ADG715_SW3, ADG715_SW8); // Rf = 6k2, Ch = EC - } + // Gestão inteligente do delay de acomodação + if (channel >= AD5934_CH_EC_LOW_GAIN) + HAL_Delay(20); // Canais de Condutividade Elétrica (CE) necessitam de maior estabilização química + else + HAL_Delay(10); // Resistores puros e RTD estabilizam mais rapidamente } diff --git a/Fertirrega_v6/Core/Src/ads1015_driver.c b/Fertirrega_v6/Core/Src/ads1015_driver.c index b0ad989..03305f5 100644 --- a/Fertirrega_v6/Core/Src/ads1015_driver.c +++ b/Fertirrega_v6/Core/Src/ads1015_driver.c @@ -271,7 +271,7 @@ int16_t ADSgetLastConversionResults(ADS1015_I2C *i2c) { } } -float ADSCalculate_ph_Volts(void) +float ADSCalculate_ph_mV(void) // pH in mV { float ph_dut_sum; uint8_t i; @@ -279,14 +279,12 @@ float ADSCalculate_ph_Volts(void) for (i = (ADS1015_PH_AVERAGES-1); i > 0; i--) ph_dut_samples[i] = ph_dut_samples[i-1]; - ph_dut_samples[0] = (((float)(2048 - ADSreadADC_Differential_0_1(&i2c)) * ADS1015_ADC_VREF) / ADS1015_ADC_MAX); // 1. Converter leitura bruta do ADC para tensão real (Volts) + ph_dut_samples[0] = (((float)(ADSreadADC_Differential_0_1(&i2c)) * ADS1015_ADC_VREF) / ADS1015_ADC_MAX); // 1. Converter leitura bruta do ADC para tensão real (mV) for (i = 0, ph_dut_sum=0; i < ADS1015_PH_AVERAGES; i++) ph_dut_sum += ph_dut_samples[i]; - ph_dut_sum /= ADS1015_PH_AVERAGES; - - return (ph_dut_sum); + return (ADSRound_Float_Precision((ph_dut_sum/ADS1015_PH_AVERAGES),2)); } @@ -301,43 +299,24 @@ float ADSCalculate_ph_Volts(void) * * @return float Valor de pH calculado (0.0 a 14.0). */ + float ADSCalculate_ph_Compensated(float temp_dut) { - // 1. Converter leitura bruta do ADC para tensão real (Volts) - float v_measured = ((float)(2048 - ADSreadADC_Differential_0_1(&i2c)) * ADS1015_ADC_VREF) / ADS1015_ADC_MAX; - // 2. Calcular o Slope original (medido na temperatura da calibração) - // Delta pH é fixo em 3.0 (de pH 7 para pH 4) - float delta_v_calib = flash_data.ph7_volts - flash_data.ph4_volts; + float dut_mV = ADSCalculate_ph_mV(); - if (delta_v_calib == 0.0f) - { - return 0.0f; // Proteção contra erro de calibração/divisão por zero - } + float t_cal_k = flash_data.ph_temperature + 273.15f; + float t_dut_k = temp_dut + 273.15f; - float slope_at_calib = PH_DELTA_CALIB / delta_v_calib; + float slope_dut = flash_data.ph_slope_mV * (t_dut_k / t_cal_k); - // 3. Calcular o Fator de Correção Térmica (Equação de Nernst) - float temp_k_now = temp_dut + ADS1015_KELVIN_OFFSET; - float temp_k_ref = flash_data.temperature_value + ADS1015_KELVIN_OFFSET; + float ph_result = (flash_data.ph7_real + ((dut_mV - flash_data.ph7_mV) / slope_dut)); - // Fator: (T_atual / T_referencia) - float thermal_factor = temp_k_now / temp_k_ref; + return (ADSRound_Float_Precision(ph_result,2)); - /* - * 4. Cálculo Final do pH - * O Slope ajustado para a temperatura atual é: slope_at_calib / thermal_factor - * Fórmula: pH = pH_ref + (V_medido - V_ref_7) * Slope_ajustado - */ - float ph_result = 7.0f + ((v_measured - flash_data.ph7_volts) * (slope_at_calib / thermal_factor)); - - // 5. Clamping (Garantir limites físicos) - if (ph_result < 0.0f) ph_result = 0.0f; - if (ph_result > 14.0f) ph_result = 14.0f; - - return ph_result; } + /** * @brief Calculates the pH value without temperature compensation. * @@ -361,7 +340,7 @@ float ADSCalculate_ph_Uncompensated(void) * PH_DELTA_CALIB is a constant representing the pH difference between * calibration points (e.g., |7.0 - 4.0| = 3.0). */ - float delta_v_calib = flash_data.ph7_volts - flash_data.ph4_volts; + float delta_v_calib = flash_data.ph7_mV - flash_data.ph4_mV; /* Safety check: Prevent division by zero if calibration data is invalid */ if (delta_v_calib == 0.0f) @@ -377,7 +356,7 @@ float ADSCalculate_ph_Uncompensated(void) * Formula: pH = pH_ref + (V_measured - V_ref_7) * Slope * Where pH_ref is 7.0. */ - float ph_result = 7.0f + ((v_measured - flash_data.ph7_volts) * slope_at_calib); + float ph_result = 7.0f + ((v_measured - flash_data.ph7_mV) * slope_at_calib); /* 4. Clamping (Ensure physical limits of the pH scale) */ if (ph_result < 0.0f) @@ -410,8 +389,10 @@ float ADSinterpolate_ph(float temp_target, uint8_t row_index) uint8_t i = 0; /* Boundary Check: Clamp to first or last index if out of range */ - if (temp_target <= lut_matrix_buffer_ph[0][0]) return lut_matrix_buffer_ph[row_index][0]; - if (temp_target >= lut_matrix_buffer_ph[0][ADS1015_PH_TEMP_INTER_POINTS-1]) return lut_matrix_buffer_ph[row_index][ADS1015_PH_TEMP_INTER_POINTS-1]; + if (temp_target <= lut_matrix_buffer_ph[0][0]) + return lut_matrix_buffer_ph[row_index][0]; + if (temp_target >= lut_matrix_buffer_ph[0][ADS1015_PH_TEMP_INTER_POINTS-1]) + return lut_matrix_buffer_ph[row_index][ADS1015_PH_TEMP_INTER_POINTS-1]; /* Find interpolation interval */ while (i < (ADS1015_PH_TEMP_INTER_POINTS-1) && lut_matrix_buffer_ph[0][i+1] < temp_target) @@ -428,4 +409,21 @@ float ADSinterpolate_ph(float temp_target, uint8_t row_index) return y0 + (temp_target - x0) * ((y1 - y0) / (x1 - x0)); } +/** + * @brief Reduz a precisão decimal de um float através de truncamento. + * + * @param valor O valor float original. + * @param casas_decimais Quantidade de casas que devem permanecer após a vírgula. + * @return float O valor com as casas decimais excedentes removidas. + */ +float ADSRound_Float_Precision(float value, uint8_t number_of_decimals) +{ + float multiply = 1.0f; + + for (uint8_t i = 0; i < number_of_decimals; i++) + multiply *= 10.0f; + + return roundf(value * multiply) / multiply; +} + diff --git a/Fertirrega_v6/Core/Src/main.c b/Fertirrega_v6/Core/Src/main.c index 693ed52..2b0464b 100644 --- a/Fertirrega_v6/Core/Src/main.c +++ b/Fertirrega_v6/Core/Src/main.c @@ -67,14 +67,16 @@ uint8_t rs485_text[6]; uint8_t newline[]={'\n','\0'}; -uint8_t doubleSpace[]={'_','_'}; +uint8_t doubleSpace[]={'_','_','\0'}; uint8_t newline_ph[]={'_','p','H','\n','\0'}; uint8_t newline_admi[]={'_','u','S','\n','\0'}; uint8_t newline_temp[]={' ','°','C','\n','\0'}; uint8_t newline_imag[]={'_','O','h','m','\n','\0'}; uint8_t newline_485[]={'_','a','d','\n','\0'}; uint8_t minus[]={'-',' '}; - +uint8_t ad_t[]={'A','d',':',' ','\0'}; +uint8_t ph_t[]={'p','H',':',' ','\0'}; +uint8_t tm_t[]={'T','M',':',' ','\0'}; uint8_t main_state = STATE_RUNNING_OK; uint8_t rs485_address=0; @@ -121,7 +123,7 @@ int main(void) uint32_t previous_millis_red = 0; uint32_t current_millis; - float temperature_RTD, admittance_EC, ph_compensated; + float temperature_RTD, admittance_EC, refResistance, update_value, ph7_interp, ph4_interp, ph_compensated; @@ -173,9 +175,11 @@ int main(void) // Initialize RS-485 driver rs485_init(); - ADS1015(&i2c, &hi2c1, ADS_ADDR_GND); - ADSsetGain(&i2c, GAIN_SIXTEEN); + ADS1015(&i2c, &hi2c1, ADS_ADDR_GND); + ADSsetGain(&i2c, GAIN_FOUR); + + ADG715_ResetChannels(); // Start CE and RTD Measurement AD5934_Init(); @@ -186,19 +190,28 @@ int main(void) /* Infinite loop */ /* USER CODE BEGIN WHILE */ + for(i=0;i: 8000130: b508 push {r3, lr} @@ -75,8 +75,8 @@ Disassembly of section .text: 800013a: f3af 8000 nop.w 800013e: bd08 pop {r3, pc} 8000140: 00000000 .word 0x00000000 - 8000144: 2000007c .word 0x2000007c - 8000148: 08006410 .word 0x08006410 + 8000144: 20000094 .word 0x20000094 + 8000148: 0800668c .word 0x0800668c 0800014c : 800014c: 4603 mov r3, r0 @@ -1327,7 +1327,7 @@ void AD5934_SetRegisterValue(uint8_t registerAddress, uint32_t registerValue, ui 8000ee4: 2302 movs r3, #2 8000ee6: 211a movs r1, #26 8000ee8: 4807 ldr r0, [pc, #28] @ (8000f08 ) - 8000eea: f002 ffcf bl 8003e8c + 8000eea: f003 f90d bl 8004108 8000eee: 4603 mov r3, r0 8000ef0: 73bb strb r3, [r7, #14] for (uint8_t i = 0; i < numberOfBytes; i++) @@ -1347,7 +1347,7 @@ void AD5934_SetRegisterValue(uint8_t registerAddress, uint32_t registerValue, ui 8000f02: 3710 adds r7, #16 8000f04: 46bd mov sp, r7 8000f06: bd80 pop {r7, pc} - 8000f08: 20000600 .word 0x20000600 + 8000f08: 20000678 .word 0x20000678 08000f0c : * @param numberOfBytes - Number of bytes to be read from the register. @@ -1403,7 +1403,7 @@ uint32_t AD5934_GetRegisterValue(uint8_t registerAddress, uint8_t numberOfBytes) 8000f4c: 2302 movs r3, #2 8000f4e: 211a movs r1, #26 8000f50: 4811 ldr r0, [pc, #68] @ (8000f98 ) - 8000f52: f002 ff9b bl 8003e8c + 8000f52: f003 f8d9 bl 8004108 8000f56: 4603 mov r3, r0 8000f58: 75bb strb r3, [r7, #22] @@ -1418,7 +1418,7 @@ uint32_t AD5934_GetRegisterValue(uint8_t registerAddress, uint8_t numberOfBytes) 8000f66: 2301 movs r3, #1 8000f68: 211a movs r1, #26 8000f6a: 480b ldr r0, [pc, #44] @ (8000f98 ) - 8000f6c: f003 f88c bl 8004088 + 8000f6c: f003 f9ca bl 8004304 8000f70: 4603 mov r3, r0 8000f72: 75bb strb r3, [r7, #22] AD5934_reg.bytes[i]=readData[0]; @@ -1447,7 +1447,7 @@ uint32_t AD5934_GetRegisterValue(uint8_t registerAddress, uint8_t numberOfBytes) 8000f92: 3718 adds r7, #24 8000f94: 46bd mov sp, r7 8000f96: bd80 pop {r7, pc} - 8000f98: 20000600 .word 0x20000600 + 8000f98: 20000678 .word 0x20000678 08000f9c : * @param None. @@ -1468,7 +1468,7 @@ void AD5934_Init(void) 8000fa8: f7ff ff7e bl 8000ea8 // Configure starting frequency - AD5934_SetRegisterValue(AD5934_START_FREQ_REG_LB, AD5934_FREQ_1K590HZ, 3); + AD5934_SetRegisterValue(AD5934_START_FREQ_REG_LB, AD5934_FREQ_2K5HZ, 3); 8000fac: 2203 movs r2, #3 8000fae: 490a ldr r1, [pc, #40] @ (8000fd8 ) 8000fb0: 2084 movs r0, #132 @ 0x84 @@ -1491,14 +1491,14 @@ void AD5934_Init(void) // Set 128 Settling Time AD5934_SetRegisterValue(AD5934_NR_SETTLE_REG_LB, AD5934_SETTLING_TIME_0S01, 2); 8000fca: 2202 movs r2, #2 - 8000fcc: 210c movs r1, #12 + 8000fcc: 2180 movs r1, #128 @ 0x80 8000fce: 208b movs r0, #139 @ 0x8b 8000fd0: f7ff ff6a bl 8000ea8 } 8000fd4: bf00 nop 8000fd6: bd80 pop {r7, pc} - 8000fd8: 003419e3 .word 0x003419e3 + 8000fd8: 0051eb86 .word 0x0051eb86 08000fdc : * @param None. @@ -1510,16 +1510,16 @@ void AD5934_RestartSweep(void) 8000fdc: b580 push {r7, lr} 8000fde: af00 add r7, sp, #0 // Place AD5934 in standby - AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, (AD5934_CONTROL_FUNCTION(AD5934_STANDBY) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X5)), 1); + AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, (AD5934_CONTROL_FUNCTION(AD5934_STANDBY) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X1)), 1); 8000fe0: 2201 movs r2, #1 - 8000fe2: 21b4 movs r1, #180 @ 0xb4 + 8000fe2: 21b5 movs r1, #181 @ 0xb5 8000fe4: 2080 movs r0, #128 @ 0x80 8000fe6: f7ff ff5f bl 8000ea8 // Initialize starting frequency, Start frequency sweep, standby - AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, ((AD5934_CONTROL_FUNCTION(AD5934_INIT_START_FREQ)) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X5)), 1); + AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, ((AD5934_CONTROL_FUNCTION(AD5934_INIT_START_FREQ)) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X1)), 1); 8000fea: 2201 movs r2, #1 - 8000fec: 2114 movs r1, #20 + 8000fec: 2115 movs r1, #21 8000fee: 2080 movs r0, #128 @ 0x80 8000ff0: f7ff ff5a bl 8000ea8 @@ -1531,20 +1531,20 @@ void AD5934_RestartSweep(void) 8000ffa: f7ff ff55 bl 8000ea8 // Configure Range Output, PGA gain andPlace AD5934 in sweep - AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, (AD5934_CONTROL_FUNCTION(AD5934_START_FREQ_SWEEP) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X5)), 1); + AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, (AD5934_CONTROL_FUNCTION(AD5934_START_FREQ_SWEEP) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X1)), 1); 8000ffe: 2201 movs r2, #1 - 8001000: 2124 movs r1, #36 @ 0x24 + 8001000: 2125 movs r1, #37 @ 0x25 8001002: 2080 movs r0, #128 @ 0x80 8001004: f7ff ff50 bl 8000ea8 // Wait for data to be valid AD5934_Wait_For_Data_Valid(); - 8001008: f000 fb1e bl 8001648 + 8001008: f000 faa8 bl 800155c // Power Down - AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, (AD5934_CONTROL_FUNCTION(AD5934_POWER_DOWN) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X5)), 1); + AD5934_SetRegisterValue(AD5934_CONTROL_REG_HB, (AD5934_CONTROL_FUNCTION(AD5934_POWER_DOWN) | AD5934_CONTROL_RANGE(AD5934_400mVpp_RANGE) | AD5934_PGA_GAIN(AD5934_PGA_GAIN_X1)), 1); 800100c: 2201 movs r2, #1 - 800100e: 21a4 movs r1, #164 @ 0xa4 + 800100e: 21a5 movs r1, #165 @ 0xa5 8001010: 2080 movs r0, #128 @ 0x80 8001012: f7ff ff49 bl 8000ea8 @@ -1600,6915 +1600,6763 @@ uint32_t AD5934_Sweep(void) 8001050: 46bd mov sp, r7 8001052: bd80 pop {r7, pc} -08001054 : +08001054 : * @param channel - AD5934_CH_PT100 or AD5934_CH_PT1000. * * @return impedance. ******************************************************************************/ -float AD5934_GetTemperature(void) +float AD5934_Get_Ref_Resistance(void) { 8001054: b590 push {r4, r7, lr} - 8001056: b093 sub sp, #76 @ 0x4c + 8001056: b089 sub sp, #36 @ 0x24 8001058: af00 add r7, sp, #0 - uint8_t i, ch_dut, ch_ref; + uint8_t i; uint32_t sample; - int32_t ref_sum[2], dut_sum[2]; - float real_ref,imag_ref, real_dut, imag_dut, ratio, discriminant, mag_dut, mag_ref, ratio_mag, impedance_dut, temperature_sum, gain_factor; + int32_t ref_sum[2]; + float real_ref,imag_ref, real_dut, mag_ref; if(HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_7) == GPIO_PIN_SET) // OFF = PT1000, ON = PT100, PA7 has internal pull-up and switch connects to GND 800105a: 2180 movs r1, #128 @ 0x80 - 800105c: 48ab ldr r0, [pc, #684] @ (800130c ) - 800105e: f002 fd89 bl 8003b74 + 800105c: 4841 ldr r0, [pc, #260] @ (8001164 ) + 800105e: f002 fec7 bl 8003df0 8001062: 4603 mov r3, r0 8001064: 2b01 cmp r3, #1 - 8001066: d108 bne.n 800107a - { - ch_ref = AD5934_CH_REF100R_LOW_GAIN; - 8001068: 2309 movs r3, #9 - 800106a: f887 3045 strb.w r3, [r7, #69] @ 0x45 - ch_dut = AD5934_CH_RTD_LOW_GAIN; //PT100 - 800106e: 2341 movs r3, #65 @ 0x41 - 8001070: f887 3046 strb.w r3, [r7, #70] @ 0x46 - gain_factor = 100.0f; - 8001074: 4ba6 ldr r3, [pc, #664] @ (8001310 ) - 8001076: 63bb str r3, [r7, #56] @ 0x38 - 8001078: e007 b.n 800108a - } + 8001066: d103 bne.n 8001070 + ADG715_Update(AD5934_CH_REF100R_LOW_GAIN); // Set the Reference Resistor on board in the Analog Mux + 8001068: 2000 movs r0, #0 + 800106a: f000 fbd5 bl 8001818 + 800106e: e002 b.n 8001076 else - { - ch_ref = AD5934_CH_REF1K_MID_GAIN; - 800107a: 2312 movs r3, #18 - 800107c: f887 3045 strb.w r3, [r7, #69] @ 0x45 - ch_dut = AD5934_CH_RTD_MID_GAIN; //PT1000 - 8001080: 2342 movs r3, #66 @ 0x42 - 8001082: f887 3046 strb.w r3, [r7, #70] @ 0x46 - gain_factor = 1000.0f; - 8001086: 4ba3 ldr r3, [pc, #652] @ (8001314 ) - 8001088: 63bb str r3, [r7, #56] @ 0x38 - } + ADG715_Update(AD5934_CH_REF1K_MID_GAIN); // Set the Reference Resistor on board in the Analog Mux + 8001070: 2004 movs r0, #4 + 8001072: f000 fbd1 bl 8001818 - ADG715_Update(ch_ref); // Set the Reference Resistor on board in the Analog Mux - 800108a: f897 3045 ldrb.w r3, [r7, #69] @ 0x45 - 800108e: 4618 mov r0, r3 - 8001090: f000 fb7a bl 8001788 - HAL_Delay(2); //Wait a little - 8001094: 2002 movs r0, #2 - 8001096: f001 fdf3 bl 8002c80 sample = AD5934_Sweep(); // Get Reference Resistor Values from ADC - 800109a: f7ff ffbe bl 800101a - 800109e: 6378 str r0, [r7, #52] @ 0x34 + 8001076: f7ff ffd0 bl 800101a + 800107a: 61b8 str r0, [r7, #24] // Move values in the vectors for (i = (AD5934_TEMP_AVERAGES-1); i > 0; i--) - 80010a0: 2307 movs r3, #7 - 80010a2: f887 3047 strb.w r3, [r7, #71] @ 0x47 - 80010a6: e01e b.n 80010e6 + 800107c: 230f movs r3, #15 + 800107e: 77fb strb r3, [r7, #31] + 8001080: e016 b.n 80010b0 { - temperature_ref_samples[i][0] = temperature_ref_samples[i-1][0]; //real - 80010a8: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80010ac: 1e5a subs r2, r3, #1 - 80010ae: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80010b2: 4999 ldr r1, [pc, #612] @ (8001318 ) - 80010b4: f931 1022 ldrsh.w r1, [r1, r2, lsl #2] - 80010b8: 4a97 ldr r2, [pc, #604] @ (8001318 ) - 80010ba: f822 1023 strh.w r1, [r2, r3, lsl #2] - temperature_ref_samples[i][1] = temperature_ref_samples[i-1][1]; //imag - 80010be: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80010c2: 3b01 subs r3, #1 - 80010c4: f897 2047 ldrb.w r2, [r7, #71] @ 0x47 - 80010c8: 4993 ldr r1, [pc, #588] @ (8001318 ) - 80010ca: 009b lsls r3, r3, #2 - 80010cc: 440b add r3, r1 - 80010ce: f9b3 0002 ldrsh.w r0, [r3, #2] - 80010d2: 4991 ldr r1, [pc, #580] @ (8001318 ) - 80010d4: 0093 lsls r3, r2, #2 - 80010d6: 440b add r3, r1 - 80010d8: 4602 mov r2, r0 - 80010da: 805a strh r2, [r3, #2] + temperature_ref_samples[0][i] = temperature_ref_samples[0][i-1]; //real + 8001082: 7ffb ldrb r3, [r7, #31] + 8001084: 1e5a subs r2, r3, #1 + 8001086: 7ffb ldrb r3, [r7, #31] + 8001088: 4937 ldr r1, [pc, #220] @ (8001168 ) + 800108a: f931 1012 ldrsh.w r1, [r1, r2, lsl #1] + 800108e: 4a36 ldr r2, [pc, #216] @ (8001168 ) + 8001090: f822 1013 strh.w r1, [r2, r3, lsl #1] + temperature_ref_samples[1][i] = temperature_ref_samples[1][i-1]; //imag + 8001094: 7ffb ldrb r3, [r7, #31] + 8001096: 1e5a subs r2, r3, #1 + 8001098: 7ffb ldrb r3, [r7, #31] + 800109a: 4933 ldr r1, [pc, #204] @ (8001168 ) + 800109c: 3210 adds r2, #16 + 800109e: f931 1012 ldrsh.w r1, [r1, r2, lsl #1] + 80010a2: 4a31 ldr r2, [pc, #196] @ (8001168 ) + 80010a4: 3310 adds r3, #16 + 80010a6: f822 1013 strh.w r1, [r2, r3, lsl #1] for (i = (AD5934_TEMP_AVERAGES-1); i > 0; i--) - 80010dc: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80010e0: 3b01 subs r3, #1 - 80010e2: f887 3047 strb.w r3, [r7, #71] @ 0x47 - 80010e6: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80010ea: 2b00 cmp r3, #0 - 80010ec: d1dc bne.n 80010a8 + 80010aa: 7ffb ldrb r3, [r7, #31] + 80010ac: 3b01 subs r3, #1 + 80010ae: 77fb strb r3, [r7, #31] + 80010b0: 7ffb ldrb r3, [r7, #31] + 80010b2: 2b00 cmp r3, #0 + 80010b4: d1e5 bne.n 8001082 } // Read real and imaginary data temperature_ref_samples[0][0] = (int16_t)(sample & 0x0000FFFF); //real - 80010ee: 6b7b ldr r3, [r7, #52] @ 0x34 - 80010f0: b21a sxth r2, r3 - 80010f2: 4b89 ldr r3, [pc, #548] @ (8001318 ) - 80010f4: 801a strh r2, [r3, #0] - //temperature_ref_samples[0][1] = 0xFFFF-(((sample & 0xFFFF0000)>>16)); //imag - temperature_ref_samples[0][1] = (int16_t)((sample & 0xFFFF0000)>>16); //imag - 80010f6: 6b7b ldr r3, [r7, #52] @ 0x34 - 80010f8: 0c1b lsrs r3, r3, #16 - 80010fa: b21a sxth r2, r3 - 80010fc: 4b86 ldr r3, [pc, #536] @ (8001318 ) - 80010fe: 805a strh r2, [r3, #2] + 80010b6: 69bb ldr r3, [r7, #24] + 80010b8: b21a sxth r2, r3 + 80010ba: 4b2b ldr r3, [pc, #172] @ (8001168 ) + 80010bc: 801a strh r2, [r3, #0] + //temperature_ref_samples[1][0] = 0xFFFF-(((sample & 0xFFFF0000)>>16)); //imag + temperature_ref_samples[1][0] = (int16_t)((sample & 0xFFFF0000)>>16); //imag + 80010be: 69bb ldr r3, [r7, #24] + 80010c0: 0c1b lsrs r3, r3, #16 + 80010c2: b21a sxth r2, r3 + 80010c4: 4b28 ldr r3, [pc, #160] @ (8001168 ) + 80010c6: 841a strh r2, [r3, #32] // Sum values in the vectors for (i = 0, ref_sum[0]=0, ref_sum[1]=0; i < AD5934_TEMP_AVERAGES; i++) - 8001100: 2300 movs r3, #0 - 8001102: f887 3047 strb.w r3, [r7, #71] @ 0x47 - 8001106: 2300 movs r3, #0 - 8001108: 60bb str r3, [r7, #8] - 800110a: 2300 movs r3, #0 - 800110c: 60fb str r3, [r7, #12] - 800110e: e016 b.n 800113e + 80010c8: 2300 movs r3, #0 + 80010ca: 77fb strb r3, [r7, #31] + 80010cc: 2300 movs r3, #0 + 80010ce: 607b str r3, [r7, #4] + 80010d0: 2300 movs r3, #0 + 80010d2: 60bb str r3, [r7, #8] + 80010d4: e011 b.n 80010fa { - ref_sum[0] += (int32_t)temperature_ref_samples[i][0]; //real - 8001110: 68bb ldr r3, [r7, #8] - 8001112: f897 2047 ldrb.w r2, [r7, #71] @ 0x47 - 8001116: 4980 ldr r1, [pc, #512] @ (8001318 ) - 8001118: f931 2022 ldrsh.w r2, [r1, r2, lsl #2] - 800111c: 4413 add r3, r2 - 800111e: 60bb str r3, [r7, #8] - ref_sum[1] += (int32_t)temperature_ref_samples[i][1]; //imag - 8001120: 68fa ldr r2, [r7, #12] - 8001122: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 8001126: 497c ldr r1, [pc, #496] @ (8001318 ) - 8001128: 009b lsls r3, r3, #2 - 800112a: 440b add r3, r1 - 800112c: f9b3 3002 ldrsh.w r3, [r3, #2] - 8001130: 4413 add r3, r2 - 8001132: 60fb str r3, [r7, #12] + ref_sum[0] += (int32_t)temperature_ref_samples[0][i]; //real + 80010d6: 687b ldr r3, [r7, #4] + 80010d8: 7ffa ldrb r2, [r7, #31] + 80010da: 4923 ldr r1, [pc, #140] @ (8001168 ) + 80010dc: f931 2012 ldrsh.w r2, [r1, r2, lsl #1] + 80010e0: 4413 add r3, r2 + 80010e2: 607b str r3, [r7, #4] + ref_sum[1] += (int32_t)temperature_ref_samples[1][i]; //imag + 80010e4: 68bb ldr r3, [r7, #8] + 80010e6: 7ffa ldrb r2, [r7, #31] + 80010e8: 491f ldr r1, [pc, #124] @ (8001168 ) + 80010ea: 3210 adds r2, #16 + 80010ec: f931 2012 ldrsh.w r2, [r1, r2, lsl #1] + 80010f0: 4413 add r3, r2 + 80010f2: 60bb str r3, [r7, #8] for (i = 0, ref_sum[0]=0, ref_sum[1]=0; i < AD5934_TEMP_AVERAGES; i++) - 8001134: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 8001138: 3301 adds r3, #1 - 800113a: f887 3047 strb.w r3, [r7, #71] @ 0x47 - 800113e: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 8001142: 2b07 cmp r3, #7 - 8001144: d9e4 bls.n 8001110 + 80010f4: 7ffb ldrb r3, [r7, #31] + 80010f6: 3301 adds r3, #1 + 80010f8: 77fb strb r3, [r7, #31] + 80010fa: 7ffb ldrb r3, [r7, #31] + 80010fc: 2b0f cmp r3, #15 + 80010fe: d9ea bls.n 80010d6 } real_ref = ((float)ref_sum[0])/((float)AD5934_TEMP_AVERAGES); - 8001146: 68bb ldr r3, [r7, #8] - 8001148: 4618 mov r0, r3 - 800114a: f7ff fc57 bl 80009fc <__aeabi_i2f> - 800114e: 4603 mov r3, r0 - 8001150: f04f 4182 mov.w r1, #1090519040 @ 0x41000000 - 8001154: 4618 mov r0, r3 - 8001156: f7ff fd59 bl 8000c0c <__aeabi_fdiv> - 800115a: 4603 mov r3, r0 - 800115c: 633b str r3, [r7, #48] @ 0x30 + 8001100: 687b ldr r3, [r7, #4] + 8001102: 4618 mov r0, r3 + 8001104: f7ff fc7a bl 80009fc <__aeabi_i2f> + 8001108: 4603 mov r3, r0 + 800110a: f04f 4183 mov.w r1, #1098907648 @ 0x41800000 + 800110e: 4618 mov r0, r3 + 8001110: f7ff fd7c bl 8000c0c <__aeabi_fdiv> + 8001114: 4603 mov r3, r0 + 8001116: 617b str r3, [r7, #20] imag_ref = ((float)ref_sum[1])/((float)AD5934_TEMP_AVERAGES); - 800115e: 68fb ldr r3, [r7, #12] - 8001160: 4618 mov r0, r3 - 8001162: f7ff fc4b bl 80009fc <__aeabi_i2f> - 8001166: 4603 mov r3, r0 - 8001168: f04f 4182 mov.w r1, #1090519040 @ 0x41000000 - 800116c: 4618 mov r0, r3 - 800116e: f7ff fd4d bl 8000c0c <__aeabi_fdiv> - 8001172: 4603 mov r3, r0 - 8001174: 62fb str r3, [r7, #44] @ 0x2c + 8001118: 68bb ldr r3, [r7, #8] + 800111a: 4618 mov r0, r3 + 800111c: f7ff fc6e bl 80009fc <__aeabi_i2f> + 8001120: 4603 mov r3, r0 + 8001122: f04f 4183 mov.w r1, #1098907648 @ 0x41800000 + 8001126: 4618 mov r0, r3 + 8001128: f7ff fd70 bl 8000c0c <__aeabi_fdiv> + 800112c: 4603 mov r3, r0 + 800112e: 613b str r3, [r7, #16] // Calculate gain factor impedance mag_ref = sqrtf((real_ref * real_ref) + (imag_ref * imag_ref)); - 8001176: 6b39 ldr r1, [r7, #48] @ 0x30 - 8001178: 6b38 ldr r0, [r7, #48] @ 0x30 - 800117a: f7ff fc93 bl 8000aa4 <__aeabi_fmul> - 800117e: 4603 mov r3, r0 - 8001180: 461c mov r4, r3 - 8001182: 6af9 ldr r1, [r7, #44] @ 0x2c - 8001184: 6af8 ldr r0, [r7, #44] @ 0x2c - 8001186: f7ff fc8d bl 8000aa4 <__aeabi_fmul> - 800118a: 4603 mov r3, r0 - 800118c: 4619 mov r1, r3 - 800118e: 4620 mov r0, r4 - 8001190: f7ff fb80 bl 8000894 <__addsf3> - 8001194: 4603 mov r3, r0 - 8001196: 4618 mov r0, r3 - 8001198: f005 f886 bl 80062a8 - 800119c: 62b8 str r0, [r7, #40] @ 0x28 + 8001130: 6979 ldr r1, [r7, #20] + 8001132: 6978 ldr r0, [r7, #20] + 8001134: f7ff fcb6 bl 8000aa4 <__aeabi_fmul> + 8001138: 4603 mov r3, r0 + 800113a: 461c mov r4, r3 + 800113c: 6939 ldr r1, [r7, #16] + 800113e: 6938 ldr r0, [r7, #16] + 8001140: f7ff fcb0 bl 8000aa4 <__aeabi_fmul> + 8001144: 4603 mov r3, r0 + 8001146: 4619 mov r1, r3 + 8001148: 4620 mov r0, r4 + 800114a: f7ff fba3 bl 8000894 <__addsf3> + 800114e: 4603 mov r3, r0 + 8001150: 4618 mov r0, r3 + 8001152: f005 f9e7 bl 8006524 + 8001156: 60f8 str r0, [r7, #12] - ADG715_Update(ch_dut); - 800119e: f897 3046 ldrb.w r3, [r7, #70] @ 0x46 - 80011a2: 4618 mov r0, r3 - 80011a4: f000 faf0 bl 8001788 - HAL_Delay(2); - 80011a8: 2002 movs r0, #2 - 80011aa: f001 fd69 bl 8002c80 + return mag_ref; + 8001158: 68fb ldr r3, [r7, #12] +} + 800115a: 4618 mov r0, r3 + 800115c: 3724 adds r7, #36 @ 0x24 + 800115e: 46bd mov sp, r7 + 8001160: bd90 pop {r4, r7, pc} + 8001162: bf00 nop + 8001164: 40010800 .word 0x40010800 + 8001168: 200000ec .word 0x200000ec + +0800116c : +* @param channel - Magnitude of the Reference Resistor. +* +* @return impedance. +******************************************************************************/ +float AD5934_GetTemperature(float mag_ref) +{ + 800116c: b590 push {r4, r7, lr} + 800116e: b08f sub sp, #60 @ 0x3c + 8001170: af00 add r7, sp, #0 + 8001172: 6078 str r0, [r7, #4] + uint8_t i, ch_ref; + uint32_t sample; + int32_t dut_sum[2]; + float real_dut, imag_dut, ratio, discriminant, mag_dut, ratio_mag, impedance_dut, temperature_sum, gain_factor, temp_result; + + if(HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_7) == GPIO_PIN_SET) // OFF = PT1000, ON = PT100, PA7 has internal pull-up and switch connects to GND + 8001174: 2180 movs r1, #128 @ 0x80 + 8001176: 486e ldr r0, [pc, #440] @ (8001330 ) + 8001178: f002 fe3a bl 8003df0 + 800117c: 4603 mov r3, r0 + 800117e: 2b01 cmp r3, #1 + 8001180: d105 bne.n 800118e + { + ch_ref = AD5934_CH_RTD_LOW_GAIN; //PT100 + 8001182: 2309 movs r3, #9 + 8001184: f887 3036 strb.w r3, [r7, #54] @ 0x36 + gain_factor = AD5934_GAIN_FACTOR_100R; + 8001188: 4b6a ldr r3, [pc, #424] @ (8001334 ) + 800118a: 62fb str r3, [r7, #44] @ 0x2c + 800118c: e004 b.n 8001198 + } + else + { + ch_ref = AD5934_CH_RTD_MID_GAIN; //PT1000 + 800118e: 230a movs r3, #10 + 8001190: f887 3036 strb.w r3, [r7, #54] @ 0x36 + gain_factor = AD5934_GAIN_FACTOR_1K; + 8001194: 4b68 ldr r3, [pc, #416] @ (8001338 ) + 8001196: 62fb str r3, [r7, #44] @ 0x2c + } + + ADG715_Update(ch_ref); + 8001198: f897 3036 ldrb.w r3, [r7, #54] @ 0x36 + 800119c: 4618 mov r0, r3 + 800119e: f000 fb3b bl 8001818 sample = AD5934_Sweep(); // Get PT100/PT1000 Values from ADC - 80011ae: f7ff ff34 bl 800101a - 80011b2: 6378 str r0, [r7, #52] @ 0x34 - + 80011a2: f7ff ff3a bl 800101a + 80011a6: 62b8 str r0, [r7, #40] @ 0x28 for (i = (AD5934_TEMP_AVERAGES-1); i > 0; i--) - 80011b4: 2307 movs r3, #7 - 80011b6: f887 3047 strb.w r3, [r7, #71] @ 0x47 - 80011ba: e01e b.n 80011fa + 80011a8: 230f movs r3, #15 + 80011aa: f887 3037 strb.w r3, [r7, #55] @ 0x37 + 80011ae: e01c b.n 80011ea { - temperature_dut_samples[i][0] = temperature_dut_samples[i-1][0]; //real - 80011bc: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80011c0: 1e5a subs r2, r3, #1 - 80011c2: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80011c6: 4955 ldr r1, [pc, #340] @ (800131c ) - 80011c8: f931 1022 ldrsh.w r1, [r1, r2, lsl #2] - 80011cc: 4a53 ldr r2, [pc, #332] @ (800131c ) - 80011ce: f822 1023 strh.w r1, [r2, r3, lsl #2] - temperature_dut_samples[i][1] = temperature_dut_samples[i-1][1]; //imag - 80011d2: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80011d6: 3b01 subs r3, #1 - 80011d8: f897 2047 ldrb.w r2, [r7, #71] @ 0x47 - 80011dc: 494f ldr r1, [pc, #316] @ (800131c ) - 80011de: 009b lsls r3, r3, #2 - 80011e0: 440b add r3, r1 - 80011e2: f9b3 0002 ldrsh.w r0, [r3, #2] - 80011e6: 494d ldr r1, [pc, #308] @ (800131c ) - 80011e8: 0093 lsls r3, r2, #2 - 80011ea: 440b add r3, r1 - 80011ec: 4602 mov r2, r0 - 80011ee: 805a strh r2, [r3, #2] + temperature_dut_samples[0][i] = temperature_dut_samples[0][i-1]; //real + 80011b0: f897 3037 ldrb.w r3, [r7, #55] @ 0x37 + 80011b4: 1e5a subs r2, r3, #1 + 80011b6: f897 3037 ldrb.w r3, [r7, #55] @ 0x37 + 80011ba: 4960 ldr r1, [pc, #384] @ (800133c ) + 80011bc: f931 1012 ldrsh.w r1, [r1, r2, lsl #1] + 80011c0: 4a5e ldr r2, [pc, #376] @ (800133c ) + 80011c2: f822 1013 strh.w r1, [r2, r3, lsl #1] + temperature_dut_samples[1][i] = temperature_dut_samples[1][i-1]; //imag + 80011c6: f897 3037 ldrb.w r3, [r7, #55] @ 0x37 + 80011ca: 1e5a subs r2, r3, #1 + 80011cc: f897 3037 ldrb.w r3, [r7, #55] @ 0x37 + 80011d0: 495a ldr r1, [pc, #360] @ (800133c ) + 80011d2: 3210 adds r2, #16 + 80011d4: f931 1012 ldrsh.w r1, [r1, r2, lsl #1] + 80011d8: 4a58 ldr r2, [pc, #352] @ (800133c ) + 80011da: 3310 adds r3, #16 + 80011dc: f822 1013 strh.w r1, [r2, r3, lsl #1] for (i = (AD5934_TEMP_AVERAGES-1); i > 0; i--) - 80011f0: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80011f4: 3b01 subs r3, #1 - 80011f6: f887 3047 strb.w r3, [r7, #71] @ 0x47 - 80011fa: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80011fe: 2b00 cmp r3, #0 - 8001200: d1dc bne.n 80011bc + 80011e0: f897 3037 ldrb.w r3, [r7, #55] @ 0x37 + 80011e4: 3b01 subs r3, #1 + 80011e6: f887 3037 strb.w r3, [r7, #55] @ 0x37 + 80011ea: f897 3037 ldrb.w r3, [r7, #55] @ 0x37 + 80011ee: 2b00 cmp r3, #0 + 80011f0: d1de bne.n 80011b0 } // Read real and imaginary data temperature_dut_samples[0][0] = (int16_t)(sample & 0x0000FFFF); //real - 8001202: 6b7b ldr r3, [r7, #52] @ 0x34 - 8001204: b21a sxth r2, r3 - 8001206: 4b45 ldr r3, [pc, #276] @ (800131c ) - 8001208: 801a strh r2, [r3, #0] + 80011f2: 6abb ldr r3, [r7, #40] @ 0x28 + 80011f4: b21a sxth r2, r3 + 80011f6: 4b51 ldr r3, [pc, #324] @ (800133c ) + 80011f8: 801a strh r2, [r3, #0] //temperature_dut_samples[0][1] = 0xFFFF-(((sample & 0xFFFF0000)>>16)); //imag - temperature_dut_samples[0][1] = (int16_t)((sample & 0xFFFF0000)>>16); //imag - 800120a: 6b7b ldr r3, [r7, #52] @ 0x34 - 800120c: 0c1b lsrs r3, r3, #16 - 800120e: b21a sxth r2, r3 - 8001210: 4b42 ldr r3, [pc, #264] @ (800131c ) - 8001212: 805a strh r2, [r3, #2] + temperature_dut_samples[1][0] = (int16_t)((sample & 0xFFFF0000)>>16); //imag + 80011fa: 6abb ldr r3, [r7, #40] @ 0x28 + 80011fc: 0c1b lsrs r3, r3, #16 + 80011fe: b21a sxth r2, r3 + 8001200: 4b4e ldr r3, [pc, #312] @ (800133c ) + 8001202: 841a strh r2, [r3, #32] for (i = 0, dut_sum[0]=0, dut_sum[1]=0; i < AD5934_TEMP_AVERAGES; i++) - 8001214: 2300 movs r3, #0 - 8001216: f887 3047 strb.w r3, [r7, #71] @ 0x47 - 800121a: 2300 movs r3, #0 - 800121c: 603b str r3, [r7, #0] - 800121e: 2300 movs r3, #0 - 8001220: 607b str r3, [r7, #4] - 8001222: e016 b.n 8001252 + 8001204: 2300 movs r3, #0 + 8001206: f887 3037 strb.w r3, [r7, #55] @ 0x37 + 800120a: 2300 movs r3, #0 + 800120c: 60bb str r3, [r7, #8] + 800120e: 2300 movs r3, #0 + 8001210: 60fb str r3, [r7, #12] + 8001212: e015 b.n 8001240 { - dut_sum[0] += (int32_t)temperature_dut_samples[i][0]; //real - 8001224: 683b ldr r3, [r7, #0] - 8001226: f897 2047 ldrb.w r2, [r7, #71] @ 0x47 - 800122a: 493c ldr r1, [pc, #240] @ (800131c ) - 800122c: f931 2022 ldrsh.w r2, [r1, r2, lsl #2] - 8001230: 4413 add r3, r2 - 8001232: 603b str r3, [r7, #0] - dut_sum[1] += (int32_t)temperature_dut_samples[i][1]; //imag - 8001234: 687a ldr r2, [r7, #4] - 8001236: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 800123a: 4938 ldr r1, [pc, #224] @ (800131c ) - 800123c: 009b lsls r3, r3, #2 - 800123e: 440b add r3, r1 - 8001240: f9b3 3002 ldrsh.w r3, [r3, #2] - 8001244: 4413 add r3, r2 - 8001246: 607b str r3, [r7, #4] + dut_sum[0] += (int32_t)temperature_dut_samples[0][i]; //real + 8001214: 68bb ldr r3, [r7, #8] + 8001216: f897 2037 ldrb.w r2, [r7, #55] @ 0x37 + 800121a: 4948 ldr r1, [pc, #288] @ (800133c ) + 800121c: f931 2012 ldrsh.w r2, [r1, r2, lsl #1] + 8001220: 4413 add r3, r2 + 8001222: 60bb str r3, [r7, #8] + dut_sum[1] += (int32_t)temperature_dut_samples[1][i]; //imag + 8001224: 68fb ldr r3, [r7, #12] + 8001226: f897 2037 ldrb.w r2, [r7, #55] @ 0x37 + 800122a: 4944 ldr r1, [pc, #272] @ (800133c ) + 800122c: 3210 adds r2, #16 + 800122e: f931 2012 ldrsh.w r2, [r1, r2, lsl #1] + 8001232: 4413 add r3, r2 + 8001234: 60fb str r3, [r7, #12] for (i = 0, dut_sum[0]=0, dut_sum[1]=0; i < AD5934_TEMP_AVERAGES; i++) - 8001248: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 800124c: 3301 adds r3, #1 - 800124e: f887 3047 strb.w r3, [r7, #71] @ 0x47 - 8001252: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 8001256: 2b07 cmp r3, #7 - 8001258: d9e4 bls.n 8001224 + 8001236: f897 3037 ldrb.w r3, [r7, #55] @ 0x37 + 800123a: 3301 adds r3, #1 + 800123c: f887 3037 strb.w r3, [r7, #55] @ 0x37 + 8001240: f897 3037 ldrb.w r3, [r7, #55] @ 0x37 + 8001244: 2b0f cmp r3, #15 + 8001246: d9e5 bls.n 8001214 } real_dut = ((float)dut_sum[0])/((float)AD5934_TEMP_AVERAGES); - 800125a: 683b ldr r3, [r7, #0] - 800125c: 4618 mov r0, r3 - 800125e: f7ff fbcd bl 80009fc <__aeabi_i2f> - 8001262: 4603 mov r3, r0 - 8001264: f04f 4182 mov.w r1, #1090519040 @ 0x41000000 - 8001268: 4618 mov r0, r3 - 800126a: f7ff fccf bl 8000c0c <__aeabi_fdiv> - 800126e: 4603 mov r3, r0 - 8001270: 627b str r3, [r7, #36] @ 0x24 + 8001248: 68bb ldr r3, [r7, #8] + 800124a: 4618 mov r0, r3 + 800124c: f7ff fbd6 bl 80009fc <__aeabi_i2f> + 8001250: 4603 mov r3, r0 + 8001252: f04f 4183 mov.w r1, #1098907648 @ 0x41800000 + 8001256: 4618 mov r0, r3 + 8001258: f7ff fcd8 bl 8000c0c <__aeabi_fdiv> + 800125c: 4603 mov r3, r0 + 800125e: 627b str r3, [r7, #36] @ 0x24 imag_dut = ((float)dut_sum[1])/((float)AD5934_TEMP_AVERAGES); - 8001272: 687b ldr r3, [r7, #4] - 8001274: 4618 mov r0, r3 - 8001276: f7ff fbc1 bl 80009fc <__aeabi_i2f> - 800127a: 4603 mov r3, r0 - 800127c: f04f 4182 mov.w r1, #1090519040 @ 0x41000000 - 8001280: 4618 mov r0, r3 - 8001282: f7ff fcc3 bl 8000c0c <__aeabi_fdiv> - 8001286: 4603 mov r3, r0 - 8001288: 623b str r3, [r7, #32] + 8001260: 68fb ldr r3, [r7, #12] + 8001262: 4618 mov r0, r3 + 8001264: f7ff fbca bl 80009fc <__aeabi_i2f> + 8001268: 4603 mov r3, r0 + 800126a: f04f 4183 mov.w r1, #1098907648 @ 0x41800000 + 800126e: 4618 mov r0, r3 + 8001270: f7ff fccc bl 8000c0c <__aeabi_fdiv> + 8001274: 4603 mov r3, r0 + 8001276: 623b str r3, [r7, #32] // Calculate magnitude mag_dut = sqrtf((real_dut * real_dut) + (imag_dut * imag_dut)); - 800128a: 6a79 ldr r1, [r7, #36] @ 0x24 - 800128c: 6a78 ldr r0, [r7, #36] @ 0x24 - 800128e: f7ff fc09 bl 8000aa4 <__aeabi_fmul> - 8001292: 4603 mov r3, r0 - 8001294: 461c mov r4, r3 - 8001296: 6a39 ldr r1, [r7, #32] - 8001298: 6a38 ldr r0, [r7, #32] - 800129a: f7ff fc03 bl 8000aa4 <__aeabi_fmul> - 800129e: 4603 mov r3, r0 - 80012a0: 4619 mov r1, r3 - 80012a2: 4620 mov r0, r4 - 80012a4: f7ff faf6 bl 8000894 <__addsf3> - 80012a8: 4603 mov r3, r0 - 80012aa: 4618 mov r0, r3 - 80012ac: f004 fffc bl 80062a8 - 80012b0: 61f8 str r0, [r7, #28] + 8001278: 6a79 ldr r1, [r7, #36] @ 0x24 + 800127a: 6a78 ldr r0, [r7, #36] @ 0x24 + 800127c: f7ff fc12 bl 8000aa4 <__aeabi_fmul> + 8001280: 4603 mov r3, r0 + 8001282: 461c mov r4, r3 + 8001284: 6a39 ldr r1, [r7, #32] + 8001286: 6a38 ldr r0, [r7, #32] + 8001288: f7ff fc0c bl 8000aa4 <__aeabi_fmul> + 800128c: 4603 mov r3, r0 + 800128e: 4619 mov r1, r3 + 8001290: 4620 mov r0, r4 + 8001292: f7ff faff bl 8000894 <__addsf3> + 8001296: 4603 mov r3, r0 + 8001298: 4618 mov r0, r3 + 800129a: f005 f943 bl 8006524 + 800129e: 61f8 str r0, [r7, #28] - for (i = (AD5934_TEMP_AVERAGES-1); i > 0; i--) - 80012b2: 2307 movs r3, #7 - 80012b4: f887 3047 strb.w r3, [r7, #71] @ 0x47 - 80012b8: e00f b.n 80012da - temperature_display[i] = temperature_display[i-1]; - 80012ba: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80012be: 1e5a subs r2, r3, #1 - 80012c0: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80012c4: 4916 ldr r1, [pc, #88] @ (8001320 ) - 80012c6: f851 2022 ldr.w r2, [r1, r2, lsl #2] - 80012ca: 4915 ldr r1, [pc, #84] @ (8001320 ) - 80012cc: f841 2023 str.w r2, [r1, r3, lsl #2] - for (i = (AD5934_TEMP_AVERAGES-1); i > 0; i--) - 80012d0: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80012d4: 3b01 subs r3, #1 - 80012d6: f887 3047 strb.w r3, [r7, #71] @ 0x47 - 80012da: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80012de: 2b00 cmp r3, #0 - 80012e0: d1eb bne.n 80012ba + //for (i = (AD5934_TEMP_AVERAGES-1); i > 0; i--) + //temperature_display[i] = temperature_display[i-1]; ratio_mag = mag_ref / mag_dut; - 80012e2: 69f9 ldr r1, [r7, #28] - 80012e4: 6ab8 ldr r0, [r7, #40] @ 0x28 - 80012e6: f7ff fc91 bl 8000c0c <__aeabi_fdiv> - 80012ea: 4603 mov r3, r0 - 80012ec: 61bb str r3, [r7, #24] + 80012a0: 69f9 ldr r1, [r7, #28] + 80012a2: 6878 ldr r0, [r7, #4] + 80012a4: f7ff fcb2 bl 8000c0c <__aeabi_fdiv> + 80012a8: 4603 mov r3, r0 + 80012aa: 61bb str r3, [r7, #24] if(ch_ref==AD5934_CH_REF100R_LOW_GAIN) // only for PT100 - 80012ee: f897 3045 ldrb.w r3, [r7, #69] @ 0x45 - 80012f2: 2b09 cmp r3, #9 - 80012f4: d116 bne.n 8001324 + 80012ac: f897 3036 ldrb.w r3, [r7, #54] @ 0x36 + 80012b0: 2b00 cmp r3, #0 + 80012b2: d109 bne.n 80012c8 impedance_dut = AD5934_Linear_Correction(gain_factor * ratio_mag); - 80012f6: 69b9 ldr r1, [r7, #24] - 80012f8: 6bb8 ldr r0, [r7, #56] @ 0x38 - 80012fa: f7ff fbd3 bl 8000aa4 <__aeabi_fmul> - 80012fe: 4603 mov r3, r0 - 8001300: 4618 mov r0, r3 - 8001302: f000 f9f5 bl 80016f0 - 8001306: 6438 str r0, [r7, #64] @ 0x40 - 8001308: e012 b.n 8001330 - 800130a: bf00 nop - 800130c: 40010800 .word 0x40010800 - 8001310: 42c80000 .word 0x42c80000 - 8001314: 447a0000 .word 0x447a0000 - 8001318: 200000b4 .word 0x200000b4 - 800131c: 20000094 .word 0x20000094 - 8001320: 200000d4 .word 0x200000d4 + 80012b4: 69b9 ldr r1, [r7, #24] + 80012b6: 6af8 ldr r0, [r7, #44] @ 0x2c + 80012b8: f7ff fbf4 bl 8000aa4 <__aeabi_fmul> + 80012bc: 4603 mov r3, r0 + 80012be: 4618 mov r0, r3 + 80012c0: f000 f9a0 bl 8001604 + 80012c4: 6338 str r0, [r7, #48] @ 0x30 + 80012c6: e005 b.n 80012d4 else impedance_dut = gain_factor * ratio_mag; - 8001324: 69b9 ldr r1, [r7, #24] - 8001326: 6bb8 ldr r0, [r7, #56] @ 0x38 - 8001328: f7ff fbbc bl 8000aa4 <__aeabi_fmul> - 800132c: 4603 mov r3, r0 - 800132e: 643b str r3, [r7, #64] @ 0x40 + 80012c8: 69b9 ldr r1, [r7, #24] + 80012ca: 6af8 ldr r0, [r7, #44] @ 0x2c + 80012cc: f7ff fbea bl 8000aa4 <__aeabi_fmul> + 80012d0: 4603 mov r3, r0 + 80012d2: 633b str r3, [r7, #48] @ 0x30 // Calculate impedance ratio with the Reference Resistor ratio = impedance_dut / gain_factor; - 8001330: 6bb9 ldr r1, [r7, #56] @ 0x38 - 8001332: 6c38 ldr r0, [r7, #64] @ 0x40 - 8001334: f7ff fc6a bl 8000c0c <__aeabi_fdiv> - 8001338: 4603 mov r3, r0 - 800133a: 617b str r3, [r7, #20] + 80012d4: 6af9 ldr r1, [r7, #44] @ 0x2c + 80012d6: 6b38 ldr r0, [r7, #48] @ 0x30 + 80012d8: f7ff fc98 bl 8000c0c <__aeabi_fdiv> + 80012dc: 4603 mov r3, r0 + 80012de: 617b str r3, [r7, #20] // Calculate impedance discriminant with the ratio discriminant = (AD5934_RTD_A*AD5934_RTD_A)-(4.0f * AD5934_RTD_B * (1.0f - ratio)); - 800133c: 6979 ldr r1, [r7, #20] - 800133e: f04f 507e mov.w r0, #1065353216 @ 0x3f800000 - 8001342: f7ff faa5 bl 8000890 <__aeabi_fsub> - 8001346: 4603 mov r3, r0 - 8001348: 493a ldr r1, [pc, #232] @ (8001434 ) - 800134a: 4618 mov r0, r3 - 800134c: f7ff fbaa bl 8000aa4 <__aeabi_fmul> - 8001350: 4603 mov r3, r0 - 8001352: 4939 ldr r1, [pc, #228] @ (8001438 ) - 8001354: 4618 mov r0, r3 - 8001356: f7ff fa9d bl 8000894 <__addsf3> - 800135a: 4603 mov r3, r0 - 800135c: 613b str r3, [r7, #16] + 80012e0: 6979 ldr r1, [r7, #20] + 80012e2: f04f 507e mov.w r0, #1065353216 @ 0x3f800000 + 80012e6: f7ff fad3 bl 8000890 <__aeabi_fsub> + 80012ea: 4603 mov r3, r0 + 80012ec: 4914 ldr r1, [pc, #80] @ (8001340 ) + 80012ee: 4618 mov r0, r3 + 80012f0: f7ff fbd8 bl 8000aa4 <__aeabi_fmul> + 80012f4: 4603 mov r3, r0 + 80012f6: 4913 ldr r1, [pc, #76] @ (8001344 ) + 80012f8: 4618 mov r0, r3 + 80012fa: f7ff facb bl 8000894 <__addsf3> + 80012fe: 4603 mov r3, r0 + 8001300: 613b str r3, [r7, #16] - // Calculate new temperature with the discriminant - temperature_display[0] = (-AD5934_RTD_A + sqrtf(discriminant))/(2.0f * AD5934_RTD_B); - 800135e: 6938 ldr r0, [r7, #16] - 8001360: f004 ffa2 bl 80062a8 - 8001364: 4603 mov r3, r0 - 8001366: 4935 ldr r1, [pc, #212] @ (800143c ) - 8001368: 4618 mov r0, r3 - 800136a: f7ff fa91 bl 8000890 <__aeabi_fsub> - 800136e: 4603 mov r3, r0 - 8001370: 4933 ldr r1, [pc, #204] @ (8001440 ) - 8001372: 4618 mov r0, r3 - 8001374: f7ff fc4a bl 8000c0c <__aeabi_fdiv> - 8001378: 4603 mov r3, r0 - 800137a: 461a mov r2, r3 - 800137c: 4b31 ldr r3, [pc, #196] @ (8001444 ) - 800137e: 601a str r2, [r3, #0] - - // Sum of all temperatures - for (i = 0, temperature_sum=0.0f; i < AD5934_TEMP_AVERAGES; i++) - 8001380: 2300 movs r3, #0 - 8001382: f887 3047 strb.w r3, [r7, #71] @ 0x47 - 8001386: f04f 0300 mov.w r3, #0 - 800138a: 63fb str r3, [r7, #60] @ 0x3c - 800138c: e00f b.n 80013ae - temperature_sum += temperature_display[i]; - 800138e: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 8001392: 4a2c ldr r2, [pc, #176] @ (8001444 ) - 8001394: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8001398: 4619 mov r1, r3 - 800139a: 6bf8 ldr r0, [r7, #60] @ 0x3c - 800139c: f7ff fa7a bl 8000894 <__addsf3> - 80013a0: 4603 mov r3, r0 - 80013a2: 63fb str r3, [r7, #60] @ 0x3c - for (i = 0, temperature_sum=0.0f; i < AD5934_TEMP_AVERAGES; i++) - 80013a4: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80013a8: 3301 adds r3, #1 - 80013aa: f887 3047 strb.w r3, [r7, #71] @ 0x47 - 80013ae: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 - 80013b2: 2b07 cmp r3, #7 - 80013b4: d9eb bls.n 800138e + //temp_result = (-AD5934_RTD_A + sqrtf(discriminant)/(2.0f * AD5934_RTD_B)); + return (AD5934_Round_Float_Precision(((-AD5934_RTD_A + sqrtf(discriminant))/(2.0f * AD5934_RTD_B)),2)); + 8001302: 6938 ldr r0, [r7, #16] + 8001304: f005 f90e bl 8006524 + 8001308: 4603 mov r3, r0 + 800130a: 490f ldr r1, [pc, #60] @ (8001348 ) + 800130c: 4618 mov r0, r3 + 800130e: f7ff fabf bl 8000890 <__aeabi_fsub> + 8001312: 4603 mov r3, r0 + 8001314: 490d ldr r1, [pc, #52] @ (800134c ) + 8001316: 4618 mov r0, r3 + 8001318: f7ff fc78 bl 8000c0c <__aeabi_fdiv> + 800131c: 4603 mov r3, r0 + 800131e: 2102 movs r1, #2 + 8001320: 4618 mov r0, r3 + 8001322: f000 f941 bl 80015a8 + 8001326: 4603 mov r3, r0 // Is the temperature stable? - if(temperature_display[0]>0.0f && (abs(temperature_display[0]-temperature_display[AD5934_TEMP_AVERAGES-1])/temperature_display[0])<0.1f) - 80013b6: 4b23 ldr r3, [pc, #140] @ (8001444 ) - 80013b8: 681b ldr r3, [r3, #0] - 80013ba: f04f 0100 mov.w r1, #0 - 80013be: 4618 mov r0, r3 - 80013c0: f7ff fd2c bl 8000e1c <__aeabi_fcmpgt> - 80013c4: 4603 mov r3, r0 - 80013c6: 2b00 cmp r3, #0 - 80013c8: d02d beq.n 8001426 - 80013ca: 4b1e ldr r3, [pc, #120] @ (8001444 ) - 80013cc: 681b ldr r3, [r3, #0] - 80013ce: 4a1d ldr r2, [pc, #116] @ (8001444 ) - 80013d0: 69d2 ldr r2, [r2, #28] - 80013d2: 4611 mov r1, r2 - 80013d4: 4618 mov r0, r3 - 80013d6: f7ff fa5b bl 8000890 <__aeabi_fsub> - 80013da: 4603 mov r3, r0 - 80013dc: 4618 mov r0, r3 - 80013de: f7ff fd3d bl 8000e5c <__aeabi_f2iz> - 80013e2: 4603 mov r3, r0 - 80013e4: 2b00 cmp r3, #0 - 80013e6: bfb8 it lt - 80013e8: 425b neglt r3, r3 - 80013ea: 4618 mov r0, r3 - 80013ec: f7ff fb06 bl 80009fc <__aeabi_i2f> - 80013f0: 4602 mov r2, r0 - 80013f2: 4b14 ldr r3, [pc, #80] @ (8001444 ) - 80013f4: 681b ldr r3, [r3, #0] - 80013f6: 4619 mov r1, r3 - 80013f8: 4610 mov r0, r2 - 80013fa: f7ff fc07 bl 8000c0c <__aeabi_fdiv> - 80013fe: 4603 mov r3, r0 - 8001400: 4911 ldr r1, [pc, #68] @ (8001448 ) - 8001402: 4618 mov r0, r3 - 8001404: f7ff fcec bl 8000de0 <__aeabi_fcmplt> - 8001408: 4603 mov r3, r0 - 800140a: 2b00 cmp r3, #0 - 800140c: d00b beq.n 8001426 - return(AD5934_Round_Float_Precision(temperature_sum/((float)AD5934_TEMP_AVERAGES),1)); // Sum / number of averages - 800140e: f04f 4182 mov.w r1, #1090519040 @ 0x41000000 - 8001412: 6bf8 ldr r0, [r7, #60] @ 0x3c - 8001414: f7ff fbfa bl 8000c0c <__aeabi_fdiv> - 8001418: 4603 mov r3, r0 - 800141a: 2101 movs r1, #1 - 800141c: 4618 mov r0, r3 - 800141e: f000 f939 bl 8001694 - 8001422: 4603 mov r3, r0 - 8001424: e001 b.n 800142a - else - return 0.0f; //instable values return always 0 - 8001426: f04f 0300 mov.w r3, #0 + //if(temperature_display[0]>0.0f && (abs(temperature_display[0]-temperature_display[AD5934_TEMP_AVERAGES-1])/temperature_display[0])<0.1f) + //return(AD5934_Round_Float_Precision(temperature_sum/((float)AD5934_TEMP_AVERAGES),1)); // Sum / number of averages + //else + //return 0.0f; //instable values return always 0 } - 800142a: 4618 mov r0, r3 - 800142c: 374c adds r7, #76 @ 0x4c - 800142e: 46bd mov sp, r7 - 8001430: bd90 pop {r4, r7, pc} - 8001432: bf00 nop - 8001434: 361b057f .word 0x361b057f - 8001438: 37802266 .word 0x37802266 - 800143c: 3b801132 .word 0x3b801132 - 8001440: b59b057f .word 0xb59b057f - 8001444: 200000d4 .word 0x200000d4 - 8001448: 3dcccccd .word 0x3dcccccd + 8001328: 4618 mov r0, r3 + 800132a: 373c adds r7, #60 @ 0x3c + 800132c: 46bd mov sp, r7 + 800132e: bd90 pop {r4, r7, pc} + 8001330: 40010800 .word 0x40010800 + 8001334: 42c80000 .word 0x42c80000 + 8001338: 447a0000 .word 0x447a0000 + 800133c: 200000ac .word 0x200000ac + 8001340: 361b057f .word 0x361b057f + 8001344: 37802266 .word 0x37802266 + 8001348: 3b801132 .word 0x3b801132 + 800134c: b59b057f .word 0xb59b057f -0800144c : +08001350 : * * @param temperature_dut The current temperature of the DUT (Device Under Test). * @return float Calculated conductivity in uS/cm. */ float AD5934_GetImpedance(float temperature_dut) { - 800144c: b590 push {r4, r7, lr} - 800144e: b08b sub sp, #44 @ 0x2c - 8001450: af00 add r7, sp, #0 - 8001452: 6078 str r0, [r7, #4] + 8001350: b590 push {r4, r7, lr} + 8001352: b08b sub sp, #44 @ 0x2c + 8001354: af00 add r7, sp, #0 + 8001356: 6078 str r0, [r7, #4] uint8_t i, ec_gain; uint32_t sample_dut; int32_t dut_sum[2] = {0, 0}; - 8001454: 2300 movs r3, #0 - 8001456: 60bb str r3, [r7, #8] - 8001458: 2300 movs r3, #0 - 800145a: 60fb str r3, [r7, #12] + 8001358: 2300 movs r3, #0 + 800135a: 60bb str r3, [r7, #8] + 800135c: 2300 movs r3, #0 + 800135e: 60fb str r3, [r7, #12] float real_avg, imag_avg, mag_dut, slope, target_cond; /* 1. Hardware Setup: Gain Selection (PA6) */ if(HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_6) == GPIO_PIN_SET) - 800145c: 2140 movs r1, #64 @ 0x40 - 800145e: 4874 ldr r0, [pc, #464] @ (8001630 ) - 8001460: f002 fb88 bl 8003b74 - 8001464: 4603 mov r3, r0 - 8001466: 2b01 cmp r3, #1 - 8001468: d103 bne.n 8001472 + 8001360: 2140 movs r1, #64 @ 0x40 + 8001362: 4878 ldr r0, [pc, #480] @ (8001544 ) + 8001364: f002 fd44 bl 8003df0 + 8001368: 4603 mov r3, r0 + 800136a: 2b01 cmp r3, #1 + 800136c: d103 bne.n 8001376 ec_gain = AD5934_CH_EC_HIGH_GAIN; - 800146a: 2384 movs r3, #132 @ 0x84 - 800146c: f887 3026 strb.w r3, [r7, #38] @ 0x26 - 8001470: e002 b.n 8001478 + 800136e: 230e movs r3, #14 + 8001370: f887 3026 strb.w r3, [r7, #38] @ 0x26 + 8001374: e002 b.n 800137c else ec_gain = AD5934_CH_EC_MID_GAIN; - 8001472: 2382 movs r3, #130 @ 0x82 - 8001474: f887 3026 strb.w r3, [r7, #38] @ 0x26 + 8001376: 230d movs r3, #13 + 8001378: f887 3026 strb.w r3, [r7, #38] @ 0x26 - if((ec_gain != flash_data.EC10mS_EC5mS_switch) && (main_state != STATE_SETUP_CALIBRATION)) - 8001478: 4b6e ldr r3, [pc, #440] @ (8001634 ) - 800147a: 7e5b ldrb r3, [r3, #25] - 800147c: f897 2026 ldrb.w r2, [r7, #38] @ 0x26 - 8001480: 429a cmp r2, r3 - 8001482: d005 beq.n 8001490 - 8001484: 4b6c ldr r3, [pc, #432] @ (8001638 ) - 8001486: 781b ldrb r3, [r3, #0] - 8001488: 2b01 cmp r3, #1 - 800148a: d001 beq.n 8001490 + if((ec_gain != flash_data.EC10mS_EC5mS_switch) && (main_state != STATE_PH4_DRY_EC_CALIBRATION || main_state != STATE_PH7_WET_EC_CALIBRATION)) + 800137c: 4b72 ldr r3, [pc, #456] @ (8001548 ) + 800137e: f893 3025 ldrb.w r3, [r3, #37] @ 0x25 + 8001382: f897 2026 ldrb.w r2, [r7, #38] @ 0x26 + 8001386: 429a cmp r2, r3 + 8001388: d009 beq.n 800139e + 800138a: 4b70 ldr r3, [pc, #448] @ (800154c ) + 800138c: 781b ldrb r3, [r3, #0] + 800138e: 2b02 cmp r3, #2 + 8001390: d103 bne.n 800139a + 8001392: 4b6e ldr r3, [pc, #440] @ (800154c ) + 8001394: 781b ldrb r3, [r3, #0] + 8001396: 2b03 cmp r3, #3 + 8001398: d001 beq.n 800139e return -1.0f; // Fatal error because the gain used in calibration is different - 800148c: 4b6b ldr r3, [pc, #428] @ (800163c ) - 800148e: e0cb b.n 8001628 + 800139a: 4b6d ldr r3, [pc, #436] @ (8001550 ) + 800139c: e0ce b.n 800153c ADG715_Update(ec_gain); - 8001490: f897 3026 ldrb.w r3, [r7, #38] @ 0x26 - 8001494: 4618 mov r0, r3 - 8001496: f000 f977 bl 8001788 - HAL_Delay(2); - 800149a: 2002 movs r0, #2 - 800149c: f001 fbf0 bl 8002c80 + 800139e: f897 3026 ldrb.w r3, [r7, #38] @ 0x26 + 80013a2: 4618 mov r0, r3 + 80013a4: f000 fa38 bl 8001818 + //HAL_Delay(5); /* 2. Data Acquisition */ sample_dut = AD5934_Sweep(); - 80014a0: f7ff fdbb bl 800101a - 80014a4: 6238 str r0, [r7, #32] + 80013a8: f7ff fe37 bl 800101a + 80013ac: 6238 str r0, [r7, #32] // Shift buffer for moving average for (i = (AD5934_EC_AVERAGES - 1); i > 0; i--) - 80014a6: 2307 movs r3, #7 - 80014a8: f887 3027 strb.w r3, [r7, #39] @ 0x27 - 80014ac: e01e b.n 80014ec + 80013ae: 230f movs r3, #15 + 80013b0: f887 3027 strb.w r3, [r7, #39] @ 0x27 + 80013b4: e01c b.n 80013f0 { - ec_dut_samples[i][0] = ec_dut_samples[i-1][0]; - 80014ae: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 - 80014b2: 1e5a subs r2, r3, #1 - 80014b4: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 - 80014b8: 4961 ldr r1, [pc, #388] @ (8001640 ) - 80014ba: f931 1022 ldrsh.w r1, [r1, r2, lsl #2] - 80014be: 4a60 ldr r2, [pc, #384] @ (8001640 ) - 80014c0: f822 1023 strh.w r1, [r2, r3, lsl #2] - ec_dut_samples[i][1] = ec_dut_samples[i-1][1]; - 80014c4: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 - 80014c8: 3b01 subs r3, #1 - 80014ca: f897 2027 ldrb.w r2, [r7, #39] @ 0x27 - 80014ce: 495c ldr r1, [pc, #368] @ (8001640 ) - 80014d0: 009b lsls r3, r3, #2 - 80014d2: 440b add r3, r1 - 80014d4: f9b3 0002 ldrsh.w r0, [r3, #2] - 80014d8: 4959 ldr r1, [pc, #356] @ (8001640 ) - 80014da: 0093 lsls r3, r2, #2 - 80014dc: 440b add r3, r1 - 80014de: 4602 mov r2, r0 - 80014e0: 805a strh r2, [r3, #2] + ec_dut_samples[0][i] = ec_dut_samples[0][i-1]; + 80013b6: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 + 80013ba: 1e5a subs r2, r3, #1 + 80013bc: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 + 80013c0: 4964 ldr r1, [pc, #400] @ (8001554 ) + 80013c2: f931 1012 ldrsh.w r1, [r1, r2, lsl #1] + 80013c6: 4a63 ldr r2, [pc, #396] @ (8001554 ) + 80013c8: f822 1013 strh.w r1, [r2, r3, lsl #1] + ec_dut_samples[1][i] = ec_dut_samples[1][i-1]; + 80013cc: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 + 80013d0: 1e5a subs r2, r3, #1 + 80013d2: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 + 80013d6: 495f ldr r1, [pc, #380] @ (8001554 ) + 80013d8: 3210 adds r2, #16 + 80013da: f931 1012 ldrsh.w r1, [r1, r2, lsl #1] + 80013de: 4a5d ldr r2, [pc, #372] @ (8001554 ) + 80013e0: 3310 adds r3, #16 + 80013e2: f822 1013 strh.w r1, [r2, r3, lsl #1] for (i = (AD5934_EC_AVERAGES - 1); i > 0; i--) - 80014e2: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 - 80014e6: 3b01 subs r3, #1 - 80014e8: f887 3027 strb.w r3, [r7, #39] @ 0x27 - 80014ec: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 - 80014f0: 2b00 cmp r3, #0 - 80014f2: d1dc bne.n 80014ae + 80013e6: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 + 80013ea: 3b01 subs r3, #1 + 80013ec: f887 3027 strb.w r3, [r7, #39] @ 0x27 + 80013f0: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 + 80013f4: 2b00 cmp r3, #0 + 80013f6: d1de bne.n 80013b6 } + // Deconstruct 32-bit sample into Real and Imaginary components ec_dut_samples[0][0] = (float)(int16_t)(sample_dut & 0xFFFF); - 80014f4: 6a3b ldr r3, [r7, #32] - 80014f6: b21b sxth r3, r3 - 80014f8: 4618 mov r0, r3 - 80014fa: f7ff fa7f bl 80009fc <__aeabi_i2f> - 80014fe: 4603 mov r3, r0 - 8001500: 4618 mov r0, r3 - 8001502: f7ff fcab bl 8000e5c <__aeabi_f2iz> - 8001506: 4603 mov r3, r0 - 8001508: b21a sxth r2, r3 - 800150a: 4b4d ldr r3, [pc, #308] @ (8001640 ) - 800150c: 801a strh r2, [r3, #0] - ec_dut_samples[0][1] = (float)(int16_t)((sample_dut >> 16) & 0xFFFF); - 800150e: 6a3b ldr r3, [r7, #32] - 8001510: 0c1b lsrs r3, r3, #16 - 8001512: b21b sxth r3, r3 - 8001514: 4618 mov r0, r3 - 8001516: f7ff fa71 bl 80009fc <__aeabi_i2f> - 800151a: 4603 mov r3, r0 - 800151c: 4618 mov r0, r3 - 800151e: f7ff fc9d bl 8000e5c <__aeabi_f2iz> - 8001522: 4603 mov r3, r0 - 8001524: b21a sxth r2, r3 - 8001526: 4b46 ldr r3, [pc, #280] @ (8001640 ) - 8001528: 805a strh r2, [r3, #2] + 80013f8: 6a3b ldr r3, [r7, #32] + 80013fa: b21b sxth r3, r3 + 80013fc: 4618 mov r0, r3 + 80013fe: f7ff fafd bl 80009fc <__aeabi_i2f> + 8001402: 4603 mov r3, r0 + 8001404: 4618 mov r0, r3 + 8001406: f7ff fd29 bl 8000e5c <__aeabi_f2iz> + 800140a: 4603 mov r3, r0 + 800140c: b21a sxth r2, r3 + 800140e: 4b51 ldr r3, [pc, #324] @ (8001554 ) + 8001410: 801a strh r2, [r3, #0] + ec_dut_samples[1][0] = (float)(int16_t)((sample_dut >> 16) & 0xFFFF); + 8001412: 6a3b ldr r3, [r7, #32] + 8001414: 0c1b lsrs r3, r3, #16 + 8001416: b21b sxth r3, r3 + 8001418: 4618 mov r0, r3 + 800141a: f7ff faef bl 80009fc <__aeabi_i2f> + 800141e: 4603 mov r3, r0 + 8001420: 4618 mov r0, r3 + 8001422: f7ff fd1b bl 8000e5c <__aeabi_f2iz> + 8001426: 4603 mov r3, r0 + 8001428: b21a sxth r2, r3 + 800142a: 4b4a ldr r3, [pc, #296] @ (8001554 ) + 800142c: 841a strh r2, [r3, #32] + /* 3. Compute Averages */ for (i = 0; i < AD5934_EC_AVERAGES; i++) - 800152a: 2300 movs r3, #0 - 800152c: f887 3027 strb.w r3, [r7, #39] @ 0x27 - 8001530: e016 b.n 8001560 + 800142e: 2300 movs r3, #0 + 8001430: f887 3027 strb.w r3, [r7, #39] @ 0x27 + 8001434: e015 b.n 8001462 { - dut_sum[0] += (int32_t)ec_dut_samples[i][0]; - 8001532: 68bb ldr r3, [r7, #8] - 8001534: f897 2027 ldrb.w r2, [r7, #39] @ 0x27 - 8001538: 4941 ldr r1, [pc, #260] @ (8001640 ) - 800153a: f931 2022 ldrsh.w r2, [r1, r2, lsl #2] - 800153e: 4413 add r3, r2 - 8001540: 60bb str r3, [r7, #8] - dut_sum[1] += (int32_t)ec_dut_samples[i][1]; - 8001542: 68fa ldr r2, [r7, #12] - 8001544: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 - 8001548: 493d ldr r1, [pc, #244] @ (8001640 ) - 800154a: 009b lsls r3, r3, #2 - 800154c: 440b add r3, r1 - 800154e: f9b3 3002 ldrsh.w r3, [r3, #2] - 8001552: 4413 add r3, r2 - 8001554: 60fb str r3, [r7, #12] + dut_sum[0] += (int32_t)ec_dut_samples[0][i]; + 8001436: 68bb ldr r3, [r7, #8] + 8001438: f897 2027 ldrb.w r2, [r7, #39] @ 0x27 + 800143c: 4945 ldr r1, [pc, #276] @ (8001554 ) + 800143e: f931 2012 ldrsh.w r2, [r1, r2, lsl #1] + 8001442: 4413 add r3, r2 + 8001444: 60bb str r3, [r7, #8] + dut_sum[1] += (int32_t)ec_dut_samples[1][i]; + 8001446: 68fb ldr r3, [r7, #12] + 8001448: f897 2027 ldrb.w r2, [r7, #39] @ 0x27 + 800144c: 4941 ldr r1, [pc, #260] @ (8001554 ) + 800144e: 3210 adds r2, #16 + 8001450: f931 2012 ldrsh.w r2, [r1, r2, lsl #1] + 8001454: 4413 add r3, r2 + 8001456: 60fb str r3, [r7, #12] for (i = 0; i < AD5934_EC_AVERAGES; i++) - 8001556: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 - 800155a: 3301 adds r3, #1 - 800155c: f887 3027 strb.w r3, [r7, #39] @ 0x27 - 8001560: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 - 8001564: 2b07 cmp r3, #7 - 8001566: d9e4 bls.n 8001532 + 8001458: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 + 800145c: 3301 adds r3, #1 + 800145e: f887 3027 strb.w r3, [r7, #39] @ 0x27 + 8001462: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 + 8001466: 2b0f cmp r3, #15 + 8001468: d9e5 bls.n 8001436 } real_avg = (float)dut_sum[0] / (float)AD5934_EC_AVERAGES; - 8001568: 68bb ldr r3, [r7, #8] - 800156a: 4618 mov r0, r3 - 800156c: f7ff fa46 bl 80009fc <__aeabi_i2f> - 8001570: 4603 mov r3, r0 - 8001572: f04f 4182 mov.w r1, #1090519040 @ 0x41000000 - 8001576: 4618 mov r0, r3 - 8001578: f7ff fb48 bl 8000c0c <__aeabi_fdiv> - 800157c: 4603 mov r3, r0 - 800157e: 61fb str r3, [r7, #28] + 800146a: 68bb ldr r3, [r7, #8] + 800146c: 4618 mov r0, r3 + 800146e: f7ff fac5 bl 80009fc <__aeabi_i2f> + 8001472: 4603 mov r3, r0 + 8001474: f04f 4183 mov.w r1, #1098907648 @ 0x41800000 + 8001478: 4618 mov r0, r3 + 800147a: f7ff fbc7 bl 8000c0c <__aeabi_fdiv> + 800147e: 4603 mov r3, r0 + 8001480: 61fb str r3, [r7, #28] imag_avg = (float)dut_sum[1] / (float)AD5934_EC_AVERAGES; - 8001580: 68fb ldr r3, [r7, #12] - 8001582: 4618 mov r0, r3 - 8001584: f7ff fa3a bl 80009fc <__aeabi_i2f> - 8001588: 4603 mov r3, r0 - 800158a: f04f 4182 mov.w r1, #1090519040 @ 0x41000000 - 800158e: 4618 mov r0, r3 - 8001590: f7ff fb3c bl 8000c0c <__aeabi_fdiv> - 8001594: 4603 mov r3, r0 - 8001596: 61bb str r3, [r7, #24] + 8001482: 68fb ldr r3, [r7, #12] + 8001484: 4618 mov r0, r3 + 8001486: f7ff fab9 bl 80009fc <__aeabi_i2f> + 800148a: 4603 mov r3, r0 + 800148c: f04f 4183 mov.w r1, #1098907648 @ 0x41800000 + 8001490: 4618 mov r0, r3 + 8001492: f7ff fbbb bl 8000c0c <__aeabi_fdiv> + 8001496: 4603 mov r3, r0 + 8001498: 61bb str r3, [r7, #24] /* 4. Magnitude Calculation */ mag_dut = sqrtf((real_avg * real_avg) + (imag_avg * imag_avg)); - 8001598: 69f9 ldr r1, [r7, #28] - 800159a: 69f8 ldr r0, [r7, #28] - 800159c: f7ff fa82 bl 8000aa4 <__aeabi_fmul> - 80015a0: 4603 mov r3, r0 - 80015a2: 461c mov r4, r3 - 80015a4: 69b9 ldr r1, [r7, #24] - 80015a6: 69b8 ldr r0, [r7, #24] - 80015a8: f7ff fa7c bl 8000aa4 <__aeabi_fmul> - 80015ac: 4603 mov r3, r0 - 80015ae: 4619 mov r1, r3 - 80015b0: 4620 mov r0, r4 - 80015b2: f7ff f96f bl 8000894 <__addsf3> - 80015b6: 4603 mov r3, r0 - 80015b8: 4618 mov r0, r3 - 80015ba: f004 fe75 bl 80062a8 - 80015be: 6178 str r0, [r7, #20] + 800149a: 69f9 ldr r1, [r7, #28] + 800149c: 69f8 ldr r0, [r7, #28] + 800149e: f7ff fb01 bl 8000aa4 <__aeabi_fmul> + 80014a2: 4603 mov r3, r0 + 80014a4: 461c mov r4, r3 + 80014a6: 69b9 ldr r1, [r7, #24] + 80014a8: 69b8 ldr r0, [r7, #24] + 80014aa: f7ff fafb bl 8000aa4 <__aeabi_fmul> + 80014ae: 4603 mov r3, r0 + 80014b0: 4619 mov r1, r3 + 80014b2: 4620 mov r0, r4 + 80014b4: f7ff f9ee bl 8000894 <__addsf3> + 80014b8: 4603 mov r3, r0 + 80014ba: 4618 mov r0, r3 + 80014bc: f005 f832 bl 8006524 + 80014c0: 6178 str r0, [r7, #20] /* 5. Calibration Logic Implementation */ // Mode: CALIBRATION SETUP (User is defining the reference magnitude) - if(main_state == STATE_SETUP_CALIBRATION) - 80015c0: 4b1d ldr r3, [pc, #116] @ (8001638 ) - 80015c2: 781b ldrb r3, [r3, #0] - 80015c4: 2b01 cmp r3, #1 - 80015c6: d101 bne.n 80015cc + if(main_state == STATE_PH4_DRY_EC_CALIBRATION || main_state == STATE_PH7_WET_EC_CALIBRATION) + 80014c2: 4b22 ldr r3, [pc, #136] @ (800154c ) + 80014c4: 781b ldrb r3, [r3, #0] + 80014c6: 2b02 cmp r3, #2 + 80014c8: d003 beq.n 80014d2 + 80014ca: 4b20 ldr r3, [pc, #128] @ (800154c ) + 80014cc: 781b ldrb r3, [r3, #0] + 80014ce: 2b03 cmp r3, #3 + 80014d0: d101 bne.n 80014d6 { return mag_dut; - 80015c8: 697b ldr r3, [r7, #20] - 80015ca: e02d b.n 8001628 + 80014d2: 697b ldr r3, [r7, #20] + 80014d4: e032 b.n 800153c } // Mode: MEASUREMENT (Applying temperature compensation) else if(flash_data.ec0_mag != flash_data.ec1413_mag) - 80015cc: 4b19 ldr r3, [pc, #100] @ (8001634 ) - 80015ce: 691b ldr r3, [r3, #16] - 80015d0: 4a18 ldr r2, [pc, #96] @ (8001634 ) - 80015d2: 68d2 ldr r2, [r2, #12] - 80015d4: 4611 mov r1, r2 - 80015d6: 4618 mov r0, r3 - 80015d8: f7ff fbf8 bl 8000dcc <__aeabi_fcmpeq> - 80015dc: 4603 mov r3, r0 - 80015de: 2b00 cmp r3, #0 - 80015e0: d120 bne.n 8001624 + 80014d6: 4b1c ldr r3, [pc, #112] @ (8001548 ) + 80014d8: 69db ldr r3, [r3, #28] + 80014da: 4a1b ldr r2, [pc, #108] @ (8001548 ) + 80014dc: 6992 ldr r2, [r2, #24] + 80014de: 4611 mov r1, r2 + 80014e0: 4618 mov r0, r3 + 80014e2: f7ff fc73 bl 8000dcc <__aeabi_fcmpeq> + 80014e6: 4603 mov r3, r0 + 80014e8: 2b00 cmp r3, #0 + 80014ea: d125 bne.n 8001538 { slope = (AD5934_GAIN_FACTOR_1413US/(flash_data.ec1413_mag-flash_data.ec0_mag)); - 80015e2: 4b14 ldr r3, [pc, #80] @ (8001634 ) - 80015e4: 68db ldr r3, [r3, #12] - 80015e6: 4a13 ldr r2, [pc, #76] @ (8001634 ) - 80015e8: 6912 ldr r2, [r2, #16] - 80015ea: 4611 mov r1, r2 - 80015ec: 4618 mov r0, r3 - 80015ee: f7ff f94f bl 8000890 <__aeabi_fsub> - 80015f2: 4603 mov r3, r0 - 80015f4: 4619 mov r1, r3 - 80015f6: 4813 ldr r0, [pc, #76] @ (8001644 ) - 80015f8: f7ff fb08 bl 8000c0c <__aeabi_fdiv> - 80015fc: 4603 mov r3, r0 - 80015fe: 613b str r3, [r7, #16] + 80014ec: 4b16 ldr r3, [pc, #88] @ (8001548 ) + 80014ee: 699b ldr r3, [r3, #24] + 80014f0: 4a15 ldr r2, [pc, #84] @ (8001548 ) + 80014f2: 69d2 ldr r2, [r2, #28] + 80014f4: 4611 mov r1, r2 + 80014f6: 4618 mov r0, r3 + 80014f8: f7ff f9ca bl 8000890 <__aeabi_fsub> + 80014fc: 4603 mov r3, r0 + 80014fe: 4619 mov r1, r3 + 8001500: 4815 ldr r0, [pc, #84] @ (8001558 ) + 8001502: f7ff fb83 bl 8000c0c <__aeabi_fdiv> + 8001506: 4603 mov r3, r0 + 8001508: 613b str r3, [r7, #16] - return(AD5934_GAIN_FACTOR_1413US + (mag_dut - flash_data.ec1413_mag) * slope); - 8001600: 4b0c ldr r3, [pc, #48] @ (8001634 ) - 8001602: 68db ldr r3, [r3, #12] - 8001604: 4619 mov r1, r3 - 8001606: 6978 ldr r0, [r7, #20] - 8001608: f7ff f942 bl 8000890 <__aeabi_fsub> - 800160c: 4603 mov r3, r0 - 800160e: 6939 ldr r1, [r7, #16] - 8001610: 4618 mov r0, r3 - 8001612: f7ff fa47 bl 8000aa4 <__aeabi_fmul> - 8001616: 4603 mov r3, r0 - 8001618: 490a ldr r1, [pc, #40] @ (8001644 ) - 800161a: 4618 mov r0, r3 - 800161c: f7ff f93a bl 8000894 <__addsf3> - 8001620: 4603 mov r3, r0 - 8001622: e001 b.n 8001628 + return(AD5934_GAIN_FACTOR_1413US + (AD5934_EC_Compensate_To_25C(mag_dut,temperature_dut) - flash_data.ec1413_mag) * slope); + 800150a: 6879 ldr r1, [r7, #4] + 800150c: 6978 ldr r0, [r7, #20] + 800150e: f000 f893 bl 8001638 + 8001512: 4602 mov r2, r0 + 8001514: 4b0c ldr r3, [pc, #48] @ (8001548 ) + 8001516: 699b ldr r3, [r3, #24] + 8001518: 4619 mov r1, r3 + 800151a: 4610 mov r0, r2 + 800151c: f7ff f9b8 bl 8000890 <__aeabi_fsub> + 8001520: 4603 mov r3, r0 + 8001522: 6939 ldr r1, [r7, #16] + 8001524: 4618 mov r0, r3 + 8001526: f7ff fabd bl 8000aa4 <__aeabi_fmul> + 800152a: 4603 mov r3, r0 + 800152c: 490a ldr r1, [pc, #40] @ (8001558 ) + 800152e: 4618 mov r0, r3 + 8001530: f7ff f9b0 bl 8000894 <__addsf3> + 8001534: 4603 mov r3, r0 + 8001536: e001 b.n 800153c } else return 0.0f; // Calibration error fallback - 8001624: f04f 0300 mov.w r3, #0 + 8001538: f04f 0300 mov.w r3, #0 } - 8001628: 4618 mov r0, r3 - 800162a: 372c adds r7, #44 @ 0x2c - 800162c: 46bd mov sp, r7 - 800162e: bd90 pop {r4, r7, pc} - 8001630: 40010800 .word 0x40010800 - 8001634: 200001ac .word 0x200001ac - 8001638: 20000654 .word 0x20000654 - 800163c: bf800000 .word 0xbf800000 - 8001640: 200000f4 .word 0x200000f4 - 8001644: 44b0a000 .word 0x44b0a000 + 800153c: 4618 mov r0, r3 + 800153e: 372c adds r7, #44 @ 0x2c + 8001540: 46bd mov sp, r7 + 8001542: bd90 pop {r4, r7, pc} + 8001544: 40010800 .word 0x40010800 + 8001548: 20000224 .word 0x20000224 + 800154c: 200006cc .word 0x200006cc + 8001550: bf800000 .word 0xbf800000 + 8001554: 2000012c .word 0x2000012c + 8001558: 44b0a000 .word 0x44b0a000 -08001648 : +0800155c : /** * @brief Monitora o status com TIMEOUT para evitar travamento do sistema. */ void AD5934_Wait_For_Data_Valid(void) { - 8001648: b580 push {r7, lr} - 800164a: b084 sub sp, #16 - 800164c: af00 add r7, sp, #0 + 800155c: b580 push {r7, lr} + 800155e: b084 sub sp, #16 + 8001560: af00 add r7, sp, #0 uint32_t timeout_counter = 0; - 800164e: 2300 movs r3, #0 - 8001650: 60fb str r3, [r7, #12] + 8001562: 2300 movs r3, #0 + 8001564: 60fb str r3, [r7, #12] const uint32_t MAX_TIMEOUT = 10000; // Limite de tentativas - 8001652: f242 7310 movw r3, #10000 @ 0x2710 - 8001656: 60bb str r3, [r7, #8] + 8001566: f242 7310 movw r3, #10000 @ 0x2710 + 800156a: 60bb str r3, [r7, #8] uint8_t status; while (1) { status = (uint8_t)AD5934_GetRegisterValue(AD5934_STATUS_REG, 1); - 8001658: 2101 movs r1, #1 - 800165a: 208f movs r0, #143 @ 0x8f - 800165c: f7ff fc56 bl 8000f0c - 8001660: 4603 mov r3, r0 - 8001662: 71fb strb r3, [r7, #7] + 800156c: 2101 movs r1, #1 + 800156e: 208f movs r0, #143 @ 0x8f + 8001570: f7ff fccc bl 8000f0c + 8001574: 4603 mov r3, r0 + 8001576: 71fb strb r3, [r7, #7] if ((status & AD5934_STATUS_DATA_VALID) != 0) - 8001664: 79fb ldrb r3, [r7, #7] - 8001666: f003 0302 and.w r3, r3, #2 - 800166a: 2b00 cmp r3, #0 - 800166c: d10a bne.n 8001684 + 8001578: 79fb ldrb r3, [r7, #7] + 800157a: f003 0302 and.w r3, r3, #2 + 800157e: 2b00 cmp r3, #0 + 8001580: d10a bne.n 8001598 { break; // Sucesso! } timeout_counter++; - 800166e: 68fb ldr r3, [r7, #12] - 8001670: 3301 adds r3, #1 - 8001672: 60fb str r3, [r7, #12] + 8001582: 68fb ldr r3, [r7, #12] + 8001584: 3301 adds r3, #1 + 8001586: 60fb str r3, [r7, #12] if (timeout_counter >= MAX_TIMEOUT) - 8001674: 68fa ldr r2, [r7, #12] - 8001676: 68bb ldr r3, [r7, #8] - 8001678: 429a cmp r2, r3 - 800167a: d205 bcs.n 8001688 + 8001588: 68fa ldr r2, [r7, #12] + 800158a: 68bb ldr r3, [r7, #8] + 800158c: 429a cmp r2, r3 + 800158e: d205 bcs.n 800159c { // TRATAMENTO DE ERRO: O sistema não travou, mas o chip falhou. break; } HAL_Delay(1); // Pequeno delay para não sobrecarregar o barramento I2C - 800167c: 2001 movs r0, #1 - 800167e: f001 faff bl 8002c80 + 8001590: 2001 movs r0, #1 + 8001592: f001 fcb3 bl 8002efc status = (uint8_t)AD5934_GetRegisterValue(AD5934_STATUS_REG, 1); - 8001682: e7e9 b.n 8001658 + 8001596: e7e9 b.n 800156c break; // Sucesso! - 8001684: bf00 nop - 8001686: e000 b.n 800168a + 8001598: bf00 nop + 800159a: e000 b.n 800159e break; - 8001688: bf00 nop + 800159c: bf00 nop } } - 800168a: bf00 nop - 800168c: 3710 adds r7, #16 - 800168e: 46bd mov sp, r7 - 8001690: bd80 pop {r7, pc} + 800159e: bf00 nop + 80015a0: 3710 adds r7, #16 + 80015a2: 46bd mov sp, r7 + 80015a4: bd80 pop {r7, pc} ... -08001694 : +080015a8 : * @param valor O valor float original. * @param casas_decimais Quantidade de casas que devem permanecer após a vírgula. * @return float O valor com as casas decimais excedentes removidas. */ float AD5934_Round_Float_Precision(float value, uint8_t number_of_decimals) { - 8001694: b580 push {r7, lr} - 8001696: b084 sub sp, #16 - 8001698: af00 add r7, sp, #0 - 800169a: 6078 str r0, [r7, #4] - 800169c: 460b mov r3, r1 - 800169e: 70fb strb r3, [r7, #3] + 80015a8: b580 push {r7, lr} + 80015aa: b084 sub sp, #16 + 80015ac: af00 add r7, sp, #0 + 80015ae: 6078 str r0, [r7, #4] + 80015b0: 460b mov r3, r1 + 80015b2: 70fb strb r3, [r7, #3] float multiply = 1.0f; - 80016a0: f04f 537e mov.w r3, #1065353216 @ 0x3f800000 - 80016a4: 60fb str r3, [r7, #12] + 80015b4: f04f 537e mov.w r3, #1065353216 @ 0x3f800000 + 80015b8: 60fb str r3, [r7, #12] for (uint8_t i = 0; i < number_of_decimals; i++) - 80016a6: 2300 movs r3, #0 - 80016a8: 72fb strb r3, [r7, #11] - 80016aa: e008 b.n 80016be + 80015ba: 2300 movs r3, #0 + 80015bc: 72fb strb r3, [r7, #11] + 80015be: e008 b.n 80015d2 multiply *= 10.0f; - 80016ac: 490f ldr r1, [pc, #60] @ (80016ec ) - 80016ae: 68f8 ldr r0, [r7, #12] - 80016b0: f7ff f9f8 bl 8000aa4 <__aeabi_fmul> - 80016b4: 4603 mov r3, r0 - 80016b6: 60fb str r3, [r7, #12] + 80015c0: 490f ldr r1, [pc, #60] @ (8001600 ) + 80015c2: 68f8 ldr r0, [r7, #12] + 80015c4: f7ff fa6e bl 8000aa4 <__aeabi_fmul> + 80015c8: 4603 mov r3, r0 + 80015ca: 60fb str r3, [r7, #12] for (uint8_t i = 0; i < number_of_decimals; i++) - 80016b8: 7afb ldrb r3, [r7, #11] - 80016ba: 3301 adds r3, #1 - 80016bc: 72fb strb r3, [r7, #11] - 80016be: 7afa ldrb r2, [r7, #11] - 80016c0: 78fb ldrb r3, [r7, #3] - 80016c2: 429a cmp r2, r3 - 80016c4: d3f2 bcc.n 80016ac + 80015cc: 7afb ldrb r3, [r7, #11] + 80015ce: 3301 adds r3, #1 + 80015d0: 72fb strb r3, [r7, #11] + 80015d2: 7afa ldrb r2, [r7, #11] + 80015d4: 78fb ldrb r3, [r7, #3] + 80015d6: 429a cmp r2, r3 + 80015d8: d3f2 bcc.n 80015c0 return roundf(value * multiply) / multiply; - 80016c6: 68f9 ldr r1, [r7, #12] - 80016c8: 6878 ldr r0, [r7, #4] - 80016ca: f7ff f9eb bl 8000aa4 <__aeabi_fmul> - 80016ce: 4603 mov r3, r0 - 80016d0: 4618 mov r0, r3 - 80016d2: f004 fe79 bl 80063c8 - 80016d6: 4603 mov r3, r0 - 80016d8: 68f9 ldr r1, [r7, #12] - 80016da: 4618 mov r0, r3 - 80016dc: f7ff fa96 bl 8000c0c <__aeabi_fdiv> - 80016e0: 4603 mov r3, r0 + 80015da: 68f9 ldr r1, [r7, #12] + 80015dc: 6878 ldr r0, [r7, #4] + 80015de: f7ff fa61 bl 8000aa4 <__aeabi_fmul> + 80015e2: 4603 mov r3, r0 + 80015e4: 4618 mov r0, r3 + 80015e6: f005 f82d bl 8006644 + 80015ea: 4603 mov r3, r0 + 80015ec: 68f9 ldr r1, [r7, #12] + 80015ee: 4618 mov r0, r3 + 80015f0: f7ff fb0c bl 8000c0c <__aeabi_fdiv> + 80015f4: 4603 mov r3, r0 } - 80016e2: 4618 mov r0, r3 - 80016e4: 3710 adds r7, #16 - 80016e6: 46bd mov sp, r7 - 80016e8: bd80 pop {r7, pc} - 80016ea: bf00 nop - 80016ec: 41200000 .word 0x41200000 + 80015f6: 4618 mov r0, r3 + 80015f8: 3710 adds r7, #16 + 80015fa: 46bd mov sp, r7 + 80015fc: bd80 pop {r7, pc} + 80015fe: bf00 nop + 8001600: 41200000 .word 0x41200000 -080016f0 : +08001604 : * * @param input_val The raw float value from sensor/ADC. * @return float The transformed value following the requested trend. */ float AD5934_Linear_Correction(float raw_value) { - 80016f0: b580 push {r7, lr} - 80016f2: b084 sub sp, #16 - 80016f4: af00 add r7, sp, #0 - 80016f6: 6078 str r0, [r7, #4] + 8001604: b580 push {r7, lr} + 8001606: b084 sub sp, #16 + 8001608: af00 add r7, sp, #0 + 800160a: 6078 str r0, [r7, #4] /* Pre-calculated constants from regression analysis */ const float slope = 1.02281f; - 80016f8: 4b08 ldr r3, [pc, #32] @ (800171c ) - 80016fa: 60fb str r3, [r7, #12] + 800160c: 4b08 ldr r3, [pc, #32] @ (8001630 ) + 800160e: 60fb str r3, [r7, #12] const float offset = (-2.1409f); - 80016fc: 4b08 ldr r3, [pc, #32] @ (8001720 ) - 80016fe: 60bb str r3, [r7, #8] + 8001610: 4b08 ldr r3, [pc, #32] @ (8001634 ) + 8001612: 60bb str r3, [r7, #8] /* Single FPU instruction (if FPU available) or optimized software float mul/add */ return (raw_value * slope) + offset; - 8001700: 68f9 ldr r1, [r7, #12] - 8001702: 6878 ldr r0, [r7, #4] - 8001704: f7ff f9ce bl 8000aa4 <__aeabi_fmul> - 8001708: 4603 mov r3, r0 - 800170a: 68b9 ldr r1, [r7, #8] - 800170c: 4618 mov r0, r3 - 800170e: f7ff f8c1 bl 8000894 <__addsf3> - 8001712: 4603 mov r3, r0 + 8001614: 68f9 ldr r1, [r7, #12] + 8001616: 6878 ldr r0, [r7, #4] + 8001618: f7ff fa44 bl 8000aa4 <__aeabi_fmul> + 800161c: 4603 mov r3, r0 + 800161e: 68b9 ldr r1, [r7, #8] + 8001620: 4618 mov r0, r3 + 8001622: f7ff f937 bl 8000894 <__addsf3> + 8001626: 4603 mov r3, r0 } - 8001714: 4618 mov r0, r3 - 8001716: 3710 adds r7, #16 - 8001718: 46bd mov sp, r7 - 800171a: bd80 pop {r7, pc} - 800171c: 3f82eb70 .word 0x3f82eb70 - 8001720: c0090481 .word 0xc0090481 + 8001628: 4618 mov r0, r3 + 800162a: 3710 adds r7, #16 + 800162c: 46bd mov sp, r7 + 800162e: bd80 pop {r7, pc} + 8001630: 3f82eb70 .word 0x3f82eb70 + 8001634: c0090481 .word 0xc0090481 -08001724 : +08001638 : + * @param admittance raw in uS/cm + * @param temperature_celsius Temperature in degrees Celsius + * @return admittance compensated + */ +float AD5934_EC_Compensate_To_25C(float ec_raw_uScm, float temp_C) +{ + 8001638: b580 push {r7, lr} + 800163a: b084 sub sp, #16 + 800163c: af00 add r7, sp, #0 + 800163e: 6078 str r0, [r7, #4] + 8001640: 6039 str r1, [r7, #0] + + float factor = 1.0f + AD5934_EC_ALPHA_PER_C * (temp_C - AD5934_EC_TEMP_REF_C); + 8001642: 4911 ldr r1, [pc, #68] @ (8001688 ) + 8001644: 6838 ldr r0, [r7, #0] + 8001646: f7ff f923 bl 8000890 <__aeabi_fsub> + 800164a: 4603 mov r3, r0 + 800164c: 490f ldr r1, [pc, #60] @ (800168c ) + 800164e: 4618 mov r0, r3 + 8001650: f7ff fa28 bl 8000aa4 <__aeabi_fmul> + 8001654: 4603 mov r3, r0 + 8001656: f04f 517e mov.w r1, #1065353216 @ 0x3f800000 + 800165a: 4618 mov r0, r3 + 800165c: f7ff f91a bl 8000894 <__addsf3> + 8001660: 4603 mov r3, r0 + 8001662: 60fb str r3, [r7, #12] + + if (factor < 0.1f) + 8001664: 490a ldr r1, [pc, #40] @ (8001690 ) + 8001666: 68f8 ldr r0, [r7, #12] + 8001668: f7ff fbba bl 8000de0 <__aeabi_fcmplt> + 800166c: 4603 mov r3, r0 + 800166e: 2b00 cmp r3, #0 + 8001670: d001 beq.n 8001676 + factor = 0.1f; + 8001672: 4b07 ldr r3, [pc, #28] @ (8001690 ) + 8001674: 60fb str r3, [r7, #12] + + return (ec_raw_uScm / factor); + 8001676: 68f9 ldr r1, [r7, #12] + 8001678: 6878 ldr r0, [r7, #4] + 800167a: f7ff fac7 bl 8000c0c <__aeabi_fdiv> + 800167e: 4603 mov r3, r0 +} + 8001680: 4618 mov r0, r3 + 8001682: 3710 adds r7, #16 + 8001684: 46bd mov sp, r7 + 8001686: bd80 pop {r7, pc} + 8001688: 41c80000 .word 0x41c80000 + 800168c: 3ca3d70a .word 0x3ca3d70a + 8001690: 3dcccccd .word 0x3dcccccd + +08001694 : + * @brief Calibrates EC sensor reading to 25°C reference point + * @param temp_C Temperature of the liquid in Celsius + * @return Temperature-compensated Correction factor value at 25°C reference + */ +float AD5934_EC_Calibrate_Temperature(float temp_C) +{ + 8001694: b5b0 push {r4, r5, r7, lr} + 8001696: b0a2 sub sp, #136 @ 0x88 + 8001698: af00 add r7, sp, #0 + 800169a: 6078 str r0, [r7, #4] + // Calibration data points for standard solution (1413 uS/cm) + const float temps[] = {5, 10, 15, 18, 20, 22, 25, 30, 35, 40, 45, 50}; + 800169c: 4b4b ldr r3, [pc, #300] @ (80017cc ) + 800169e: f107 043c add.w r4, r7, #60 @ 0x3c + 80016a2: 461d mov r5, r3 + 80016a4: cd0f ldmia r5!, {r0, r1, r2, r3} + 80016a6: c40f stmia r4!, {r0, r1, r2, r3} + 80016a8: cd0f ldmia r5!, {r0, r1, r2, r3} + 80016aa: c40f stmia r4!, {r0, r1, r2, r3} + 80016ac: e895 000f ldmia.w r5, {r0, r1, r2, r3} + 80016b0: e884 000f stmia.w r4, {r0, r1, r2, r3} + const float conductivities[] = {893, 1018, 1149, 1225, 1278, 1329, 1413, 1552, 1691, 1843, 1988, 2145}; + 80016b4: 4b46 ldr r3, [pc, #280] @ (80017d0 ) + 80016b6: f107 040c add.w r4, r7, #12 + 80016ba: 461d mov r5, r3 + 80016bc: cd0f ldmia r5!, {r0, r1, r2, r3} + 80016be: c40f stmia r4!, {r0, r1, r2, r3} + 80016c0: cd0f ldmia r5!, {r0, r1, r2, r3} + 80016c2: c40f stmia r4!, {r0, r1, r2, r3} + 80016c4: e895 000f ldmia.w r5, {r0, r1, r2, r3} + 80016c8: e884 000f stmia.w r4, {r0, r1, r2, r3} + + // Find the two nearest temperature points for interpolation + int32_t temp_index = -1; + 80016cc: f04f 33ff mov.w r3, #4294967295 + 80016d0: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + for (int i = 0; i < 12; i++) + 80016d4: 2300 movs r3, #0 + 80016d6: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 80016da: e017 b.n 800170c + { + if (temps[i] >= temp_C) + 80016dc: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 + 80016e0: 009b lsls r3, r3, #2 + 80016e2: 3388 adds r3, #136 @ 0x88 + 80016e4: 443b add r3, r7 + 80016e6: f853 3c4c ldr.w r3, [r3, #-76] + 80016ea: 4619 mov r1, r3 + 80016ec: 6878 ldr r0, [r7, #4] + 80016ee: f7ff fb81 bl 8000df4 <__aeabi_fcmple> + 80016f2: 4603 mov r3, r0 + 80016f4: 2b00 cmp r3, #0 + 80016f6: d004 beq.n 8001702 + { + temp_index = i; + 80016f8: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 + 80016fc: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + break; + 8001700: e008 b.n 8001714 + for (int i = 0; i < 12; i++) + 8001702: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 + 8001706: 3301 adds r3, #1 + 8001708: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 800170c: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 + 8001710: 2b0b cmp r3, #11 + 8001712: dde3 ble.n 80016dc + } + } + + // Handle boundary cases + if (temp_index == -1) { + 8001714: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 8001718: f1b3 3fff cmp.w r3, #4294967295 + 800171c: d103 bne.n 8001726 + // Temperature higher than max point (50°C) + temp_index = 10; + 800171e: 230a movs r3, #10 + 8001720: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + 8001724: e006 b.n 8001734 + } else if (temp_index == 0) { + 8001726: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 800172a: 2b00 cmp r3, #0 + 800172c: d102 bne.n 8001734 + // Temperature lower than min point (5°C) + temp_index = 0; + 800172e: 2300 movs r3, #0 + 8001730: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + } + + // Interpolate conductivity at measured temperature + float temp1 = temps[temp_index - 1]; + 8001734: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 8001738: 3b01 subs r3, #1 + 800173a: 009b lsls r3, r3, #2 + 800173c: 3388 adds r3, #136 @ 0x88 + 800173e: 443b add r3, r7 + 8001740: f853 3c4c ldr.w r3, [r3, #-76] + 8001744: 67fb str r3, [r7, #124] @ 0x7c + float temp2 = temps[temp_index]; + 8001746: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 800174a: 009b lsls r3, r3, #2 + 800174c: 3388 adds r3, #136 @ 0x88 + 800174e: 443b add r3, r7 + 8001750: f853 3c4c ldr.w r3, [r3, #-76] + 8001754: 67bb str r3, [r7, #120] @ 0x78 + float cond1 = conductivities[temp_index - 1]; + 8001756: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 800175a: 3b01 subs r3, #1 + 800175c: 009b lsls r3, r3, #2 + 800175e: 3388 adds r3, #136 @ 0x88 + 8001760: 443b add r3, r7 + 8001762: f853 3c7c ldr.w r3, [r3, #-124] + 8001766: 677b str r3, [r7, #116] @ 0x74 + float cond2 = conductivities[temp_index]; + 8001768: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 800176c: 009b lsls r3, r3, #2 + 800176e: 3388 adds r3, #136 @ 0x88 + 8001770: 443b add r3, r7 + 8001772: f853 3c7c ldr.w r3, [r3, #-124] + 8001776: 673b str r3, [r7, #112] @ 0x70 + + // Linear interpolation to get conductivity at measured temperature + float interpolated_cond = cond1 + (cond2 - cond1) * (temp_C - temp1) / (temp2 - temp1); + 8001778: 6f79 ldr r1, [r7, #116] @ 0x74 + 800177a: 6f38 ldr r0, [r7, #112] @ 0x70 + 800177c: f7ff f888 bl 8000890 <__aeabi_fsub> + 8001780: 4603 mov r3, r0 + 8001782: 461c mov r4, r3 + 8001784: 6ff9 ldr r1, [r7, #124] @ 0x7c + 8001786: 6878 ldr r0, [r7, #4] + 8001788: f7ff f882 bl 8000890 <__aeabi_fsub> + 800178c: 4603 mov r3, r0 + 800178e: 4619 mov r1, r3 + 8001790: 4620 mov r0, r4 + 8001792: f7ff f987 bl 8000aa4 <__aeabi_fmul> + 8001796: 4603 mov r3, r0 + 8001798: 461c mov r4, r3 + 800179a: 6ff9 ldr r1, [r7, #124] @ 0x7c + 800179c: 6fb8 ldr r0, [r7, #120] @ 0x78 + 800179e: f7ff f877 bl 8000890 <__aeabi_fsub> + 80017a2: 4603 mov r3, r0 + 80017a4: 4619 mov r1, r3 + 80017a6: 4620 mov r0, r4 + 80017a8: f7ff fa30 bl 8000c0c <__aeabi_fdiv> + 80017ac: 4603 mov r3, r0 + 80017ae: 4619 mov r1, r3 + 80017b0: 6f78 ldr r0, [r7, #116] @ 0x74 + 80017b2: f7ff f86f bl 8000894 <__addsf3> + 80017b6: 4603 mov r3, r0 + 80017b8: 66fb str r3, [r7, #108] @ 0x6c + + // Return real conductivity at the temperature + return(interpolated_cond/1413.0f); + 80017ba: 4906 ldr r1, [pc, #24] @ (80017d4 ) + 80017bc: 6ef8 ldr r0, [r7, #108] @ 0x6c + 80017be: f7ff fa25 bl 8000c0c <__aeabi_fdiv> + 80017c2: 4603 mov r3, r0 +} + 80017c4: 4618 mov r0, r3 + 80017c6: 3788 adds r7, #136 @ 0x88 + 80017c8: 46bd mov sp, r7 + 80017ca: bdb0 pop {r4, r5, r7, pc} + 80017cc: 080066a4 .word 0x080066a4 + 80017d0: 080066d4 .word 0x080066d4 + 80017d4: 44b0a000 .word 0x44b0a000 + +080017d8 : * * @return None. *******************************************************************************/ void ADG715_SetRegisterValue(char value) { - 8001724: b580 push {r7, lr} - 8001726: b086 sub sp, #24 - 8001728: af02 add r7, sp, #8 - 800172a: 4603 mov r3, r0 - 800172c: 71fb strb r3, [r7, #7] + 80017d8: b580 push {r7, lr} + 80017da: b086 sub sp, #24 + 80017dc: af02 add r7, sp, #8 + 80017de: 4603 mov r3, r0 + 80017e0: 71fb strb r3, [r7, #7] uint8_t writeData[1] = {value}; - 800172e: 79fb ldrb r3, [r7, #7] - 8001730: 733b strb r3, [r7, #12] + 80017e2: 79fb ldrb r3, [r7, #7] + 80017e4: 733b strb r3, [r7, #12] HAL_StatusTypeDef status; status = HAL_I2C_Master_Transmit(&hi2c2, ADG715_I2C_ADDRESS, writeData, 1, 1); - 8001732: f107 020c add.w r2, r7, #12 - 8001736: 2301 movs r3, #1 - 8001738: 9300 str r3, [sp, #0] - 800173a: 2301 movs r3, #1 - 800173c: 2190 movs r1, #144 @ 0x90 - 800173e: 4804 ldr r0, [pc, #16] @ (8001750 ) - 8001740: f002 fba4 bl 8003e8c - 8001744: 4603 mov r3, r0 - 8001746: 73fb strb r3, [r7, #15] + 80017e6: f107 020c add.w r2, r7, #12 + 80017ea: 2301 movs r3, #1 + 80017ec: 9300 str r3, [sp, #0] + 80017ee: 2301 movs r3, #1 + 80017f0: 2190 movs r1, #144 @ 0x90 + 80017f2: 4804 ldr r0, [pc, #16] @ (8001804 ) + 80017f4: f002 fc88 bl 8004108 + 80017f8: 4603 mov r3, r0 + 80017fa: 73fb strb r3, [r7, #15] return; - 8001748: bf00 nop + 80017fc: bf00 nop } - 800174a: 3710 adds r7, #16 - 800174c: 46bd mov sp, r7 - 800174e: bd80 pop {r7, pc} - 8001750: 20000600 .word 0x20000600 + 80017fe: 3710 adds r7, #16 + 8001800: 46bd mov sp, r7 + 8001802: bd80 pop {r7, pc} + 8001804: 20000678 .word 0x20000678 -08001754 : - -void ADG715_SetChannels(uint8_t ch1, uint8_t ch2) +08001808 : { - 8001754: b580 push {r7, lr} - 8001756: b082 sub sp, #8 - 8001758: af00 add r7, sp, #0 - 800175a: 4603 mov r3, r0 - 800175c: 460a mov r2, r1 - 800175e: 71fb strb r3, [r7, #7] - 8001760: 4613 mov r3, r2 - 8001762: 71bb strb r3, [r7, #6] ADG715_SetRegisterValue(ch1+ch2); - 8001764: 79fa ldrb r2, [r7, #7] - 8001766: 79bb ldrb r3, [r7, #6] - 8001768: 4413 add r3, r2 - 800176a: b2db uxtb r3, r3 - 800176c: 4618 mov r0, r3 - 800176e: f7ff ffd9 bl 8001724 } - 8001772: bf00 nop - 8001774: 3708 adds r7, #8 - 8001776: 46bd mov sp, r7 - 8001778: bd80 pop {r7, pc} - -0800177a : void ADG715_ResetChannels(void) { - 800177a: b580 push {r7, lr} - 800177c: af00 add r7, sp, #0 + 8001808: b580 push {r7, lr} + 800180a: af00 add r7, sp, #0 ADG715_SetRegisterValue(0); - 800177e: 2000 movs r0, #0 - 8001780: f7ff ffd0 bl 8001724 + 800180c: 2000 movs r0, #0 + 800180e: f7ff ffe3 bl 80017d8 } - 8001784: bf00 nop - 8001786: bd80 pop {r7, pc} + 8001812: bf00 nop + 8001814: bd80 pop {r7, pc} + ... -08001788 : -* @param: channel = AD5934_CH_REF_100R, AD5934_CH_REF_1K, AD5934_CH_REF_10K, AD5934_CH_PT100, AD5934_CH_PT1000 or AD5934_CH_EC +08001818 : +* @param: channel = AD5934_CH_REF_100R, AD5934_CH_REF_1K, AD5934_CH_REF_10K, AD5934_CH_PT100, AD5934_CH_PT1000, AD5934_CH_EC, ... * * @return none. ******************************************************************************/ -void ADG715_Update(uint8_t channel) +void ADG715_Update(AD5934_Channel_t channel) { - 8001788: b580 push {r7, lr} - 800178a: b082 sub sp, #8 - 800178c: af00 add r7, sp, #0 - 800178e: 4603 mov r3, r0 - 8001790: 71fb strb r3, [r7, #7] - HAL_StatusTypeDef status; + 8001818: b580 push {r7, lr} + 800181a: b082 sub sp, #8 + 800181c: af00 add r7, sp, #0 + 800181e: 4603 mov r3, r0 + 8001820: 71fb strb r3, [r7, #7] + // Garante que o índice recebido não ultrapassa os limites do vetor + if (channel >= AD5934_CH_MAX) + 8001822: 79fb ldrb r3, [r7, #7] + 8001824: 2b0e cmp r3, #14 + 8001826: d810 bhi.n 800184a + return; - // Disconnect all Analog Switches - ADG715_ResetChannels(); - 8001792: f7ff fff2 bl 800177a + // Envia o byte combinado via I2C (Make-before-break nativo por barramento) + ADG715_SetRegisterValue(ADG715_Channel_Map[channel]); + 8001828: 79fb ldrb r3, [r7, #7] + 800182a: 4a0a ldr r2, [pc, #40] @ (8001854 ) + 800182c: 5cd3 ldrb r3, [r2, r3] + 800182e: 4618 mov r0, r3 + 8001830: f7ff ffd2 bl 80017d8 - // Set the pair of connections - if(channel == AD5934_CH_REF100R_LOW_GAIN) - 8001796: 79fb ldrb r3, [r7, #7] - 8001798: 2b09 cmp r3, #9 - 800179a: d104 bne.n 80017a6 - { - ADG715_SetChannels(ADG715_SW1, ADG715_SW4); // Rf = 150R, Ch = Ref_100R - 800179c: 2108 movs r1, #8 - 800179e: 2001 movs r0, #1 - 80017a0: f7ff ffd8 bl 8001754 - else if(channel == AD5934_CH_EC_HIGH_GAIN) - { - ADG715_SetChannels(ADG715_SW3, ADG715_SW8); // Rf = 6k2, Ch = EC - } + // Gestão inteligente do delay de acomodação + if (channel >= AD5934_CH_EC_LOW_GAIN) + 8001834: 79fb ldrb r3, [r7, #7] + 8001836: 2b0b cmp r3, #11 + 8001838: d903 bls.n 8001842 + HAL_Delay(20); // Canais de Condutividade Elétrica (CE) necessitam de maior estabilização química + 800183a: 2014 movs r0, #20 + 800183c: f001 fb5e bl 8002efc + 8001840: e004 b.n 800184c + else + HAL_Delay(10); // Resistores puros e RTD estabilizam mais rapidamente + 8001842: 200a movs r0, #10 + 8001844: f001 fb5a bl 8002efc + 8001848: e000 b.n 800184c + return; + 800184a: bf00 nop } - 80017a4: e06e b.n 8001884 - else if(channel == AD5934_CH_REF100R_MID_GAIN) - 80017a6: 79fb ldrb r3, [r7, #7] - 80017a8: 2b0a cmp r3, #10 - 80017aa: d104 bne.n 80017b6 - ADG715_SetChannels(ADG715_SW2, ADG715_SW4); // Rf = 1k5, Ch = Ref_100R - 80017ac: 2108 movs r1, #8 - 80017ae: 2002 movs r0, #2 - 80017b0: f7ff ffd0 bl 8001754 -} - 80017b4: e066 b.n 8001884 - else if(channel == AD5934_CH_REF100R_HIGH_GAIN) - 80017b6: 79fb ldrb r3, [r7, #7] - 80017b8: 2b0c cmp r3, #12 - 80017ba: d104 bne.n 80017c6 - ADG715_SetChannels(ADG715_SW3, ADG715_SW4); // Rf = 6k2, Ch = Ref_100R - 80017bc: 2108 movs r1, #8 - 80017be: 2004 movs r0, #4 - 80017c0: f7ff ffc8 bl 8001754 -} - 80017c4: e05e b.n 8001884 - else if(channel == AD5934_CH_REF1K_LOW_GAIN) - 80017c6: 79fb ldrb r3, [r7, #7] - 80017c8: 2b11 cmp r3, #17 - 80017ca: d104 bne.n 80017d6 - ADG715_SetChannels(ADG715_SW1, ADG715_SW5); // Rf = 150R, Ch = Ref_1k - 80017cc: 2110 movs r1, #16 - 80017ce: 2001 movs r0, #1 - 80017d0: f7ff ffc0 bl 8001754 -} - 80017d4: e056 b.n 8001884 - else if(channel == AD5934_CH_REF1K_MID_GAIN) - 80017d6: 79fb ldrb r3, [r7, #7] - 80017d8: 2b12 cmp r3, #18 - 80017da: d104 bne.n 80017e6 - ADG715_SetChannels(ADG715_SW2, ADG715_SW5); // Rf = 1k5, Ch = Ref_1k - 80017dc: 2110 movs r1, #16 - 80017de: 2002 movs r0, #2 - 80017e0: f7ff ffb8 bl 8001754 -} - 80017e4: e04e b.n 8001884 - else if(channel == AD5934_CH_REF1K_HIGH_GAIN) - 80017e6: 79fb ldrb r3, [r7, #7] - 80017e8: 2b14 cmp r3, #20 - 80017ea: d104 bne.n 80017f6 - ADG715_SetChannels(ADG715_SW3, ADG715_SW5); // Rf = 6k2, Ch = Ref_1k - 80017ec: 2110 movs r1, #16 - 80017ee: 2004 movs r0, #4 - 80017f0: f7ff ffb0 bl 8001754 -} - 80017f4: e046 b.n 8001884 - else if(channel == AD5934_CH_REF10K_LOW_GAIN) - 80017f6: 79fb ldrb r3, [r7, #7] - 80017f8: 2b21 cmp r3, #33 @ 0x21 - 80017fa: d104 bne.n 8001806 - ADG715_SetChannels(ADG715_SW1, ADG715_SW6); // Rf = 150R, Ch = Ref_10k - 80017fc: 2120 movs r1, #32 - 80017fe: 2001 movs r0, #1 - 8001800: f7ff ffa8 bl 8001754 -} - 8001804: e03e b.n 8001884 - else if(channel == AD5934_CH_REF10K_MID_GAIN) - 8001806: 79fb ldrb r3, [r7, #7] - 8001808: 2b22 cmp r3, #34 @ 0x22 - 800180a: d104 bne.n 8001816 - ADG715_SetChannels(ADG715_SW2, ADG715_SW6); // Rf = 1k5, Ch = Ref_10k - 800180c: 2120 movs r1, #32 - 800180e: 2002 movs r0, #2 - 8001810: f7ff ffa0 bl 8001754 -} - 8001814: e036 b.n 8001884 - else if(channel == AD5934_CH_REF10K_HIGH_GAIN) - 8001816: 79fb ldrb r3, [r7, #7] - 8001818: 2b24 cmp r3, #36 @ 0x24 - 800181a: d104 bne.n 8001826 - ADG715_SetChannels(ADG715_SW3, ADG715_SW6); // Rf = 6k2, Ch = Ref_10k - 800181c: 2120 movs r1, #32 - 800181e: 2004 movs r0, #4 - 8001820: f7ff ff98 bl 8001754 -} - 8001824: e02e b.n 8001884 - else if(channel == AD5934_CH_RTD_LOW_GAIN) - 8001826: 79fb ldrb r3, [r7, #7] - 8001828: 2b41 cmp r3, #65 @ 0x41 - 800182a: d104 bne.n 8001836 - ADG715_SetChannels(ADG715_SW1, ADG715_SW7); // Rf = 150R, Ch = RTD - 800182c: 2140 movs r1, #64 @ 0x40 - 800182e: 2001 movs r0, #1 - 8001830: f7ff ff90 bl 8001754 -} - 8001834: e026 b.n 8001884 - else if(channel == AD5934_CH_RTD_MID_GAIN) - 8001836: 79fb ldrb r3, [r7, #7] - 8001838: 2b42 cmp r3, #66 @ 0x42 - 800183a: d104 bne.n 8001846 - ADG715_SetChannels(ADG715_SW2, ADG715_SW7); // Rf = 1k5, Ch = RTD - 800183c: 2140 movs r1, #64 @ 0x40 - 800183e: 2002 movs r0, #2 - 8001840: f7ff ff88 bl 8001754 -} - 8001844: e01e b.n 8001884 - else if(channel == AD5934_CH_RTD_HIGH_GAIN) - 8001846: 79fb ldrb r3, [r7, #7] - 8001848: 2b44 cmp r3, #68 @ 0x44 - 800184a: d104 bne.n 8001856 - ADG715_SetChannels(ADG715_SW3, ADG715_SW7); // Rf = 6k2, Ch = RTD - 800184c: 2140 movs r1, #64 @ 0x40 - 800184e: 2004 movs r0, #4 - 8001850: f7ff ff80 bl 8001754 -} - 8001854: e016 b.n 8001884 - else if(channel == AD5934_CH_EC_LOW_GAIN) - 8001856: 79fb ldrb r3, [r7, #7] - 8001858: 2b81 cmp r3, #129 @ 0x81 - 800185a: d104 bne.n 8001866 - ADG715_SetChannels(ADG715_SW1, ADG715_SW8); // Rf = 150R, Ch = EC - 800185c: 2180 movs r1, #128 @ 0x80 - 800185e: 2001 movs r0, #1 - 8001860: f7ff ff78 bl 8001754 -} - 8001864: e00e b.n 8001884 - else if(channel == AD5934_CH_EC_MID_GAIN) - 8001866: 79fb ldrb r3, [r7, #7] - 8001868: 2b82 cmp r3, #130 @ 0x82 - 800186a: d104 bne.n 8001876 - ADG715_SetChannels(ADG715_SW2, ADG715_SW8); // Rf = 1k5, Ch = EC - 800186c: 2180 movs r1, #128 @ 0x80 - 800186e: 2002 movs r0, #2 - 8001870: f7ff ff70 bl 8001754 -} - 8001874: e006 b.n 8001884 - else if(channel == AD5934_CH_EC_HIGH_GAIN) - 8001876: 79fb ldrb r3, [r7, #7] - 8001878: 2b84 cmp r3, #132 @ 0x84 - 800187a: d103 bne.n 8001884 - ADG715_SetChannels(ADG715_SW3, ADG715_SW8); // Rf = 6k2, Ch = EC - 800187c: 2180 movs r1, #128 @ 0x80 - 800187e: 2004 movs r0, #4 - 8001880: f7ff ff68 bl 8001754 -} - 8001884: bf00 nop - 8001886: 3708 adds r7, #8 - 8001888: 46bd mov sp, r7 - 800188a: bd80 pop {r7, pc} + 800184c: 3708 adds r7, #8 + 800184e: 46bd mov sp, r7 + 8001850: bd80 pop {r7, pc} + 8001852: bf00 nop + 8001854: 08006794 .word 0x08006794 -0800188c : +08001858 : ADC_HandleTypeDef hadc1; ADC_HandleTypeDef hadc2; /* ADC1 init function */ void MX_ADC1_Init(void) { - 800188c: b580 push {r7, lr} - 800188e: b084 sub sp, #16 - 8001890: af00 add r7, sp, #0 + 8001858: b580 push {r7, lr} + 800185a: b084 sub sp, #16 + 800185c: af00 add r7, sp, #0 /* USER CODE BEGIN ADC1_Init 0 */ /* USER CODE END ADC1_Init 0 */ ADC_ChannelConfTypeDef sConfig = {0}; - 8001892: 1d3b adds r3, r7, #4 - 8001894: 2200 movs r2, #0 - 8001896: 601a str r2, [r3, #0] - 8001898: 605a str r2, [r3, #4] - 800189a: 609a str r2, [r3, #8] + 800185e: 1d3b adds r3, r7, #4 + 8001860: 2200 movs r2, #0 + 8001862: 601a str r2, [r3, #0] + 8001864: 605a str r2, [r3, #4] + 8001866: 609a str r2, [r3, #8] /* USER CODE END ADC1_Init 1 */ /** Common config */ hadc1.Instance = ADC1; - 800189c: 4b18 ldr r3, [pc, #96] @ (8001900 ) - 800189e: 4a19 ldr r2, [pc, #100] @ (8001904 ) - 80018a0: 601a str r2, [r3, #0] + 8001868: 4b18 ldr r3, [pc, #96] @ (80018cc ) + 800186a: 4a19 ldr r2, [pc, #100] @ (80018d0 ) + 800186c: 601a str r2, [r3, #0] hadc1.Init.ScanConvMode = ADC_SCAN_DISABLE; - 80018a2: 4b17 ldr r3, [pc, #92] @ (8001900 ) - 80018a4: 2200 movs r2, #0 - 80018a6: 609a str r2, [r3, #8] + 800186e: 4b17 ldr r3, [pc, #92] @ (80018cc ) + 8001870: 2200 movs r2, #0 + 8001872: 609a str r2, [r3, #8] hadc1.Init.ContinuousConvMode = ENABLE; - 80018a8: 4b15 ldr r3, [pc, #84] @ (8001900 ) - 80018aa: 2201 movs r2, #1 - 80018ac: 731a strb r2, [r3, #12] + 8001874: 4b15 ldr r3, [pc, #84] @ (80018cc ) + 8001876: 2201 movs r2, #1 + 8001878: 731a strb r2, [r3, #12] hadc1.Init.DiscontinuousConvMode = DISABLE; - 80018ae: 4b14 ldr r3, [pc, #80] @ (8001900 ) - 80018b0: 2200 movs r2, #0 - 80018b2: 751a strb r2, [r3, #20] + 800187a: 4b14 ldr r3, [pc, #80] @ (80018cc ) + 800187c: 2200 movs r2, #0 + 800187e: 751a strb r2, [r3, #20] hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START; - 80018b4: 4b12 ldr r3, [pc, #72] @ (8001900 ) - 80018b6: f44f 2260 mov.w r2, #917504 @ 0xe0000 - 80018ba: 61da str r2, [r3, #28] + 8001880: 4b12 ldr r3, [pc, #72] @ (80018cc ) + 8001882: f44f 2260 mov.w r2, #917504 @ 0xe0000 + 8001886: 61da str r2, [r3, #28] hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT; - 80018bc: 4b10 ldr r3, [pc, #64] @ (8001900 ) - 80018be: 2200 movs r2, #0 - 80018c0: 605a str r2, [r3, #4] + 8001888: 4b10 ldr r3, [pc, #64] @ (80018cc ) + 800188a: 2200 movs r2, #0 + 800188c: 605a str r2, [r3, #4] hadc1.Init.NbrOfConversion = 1; - 80018c2: 4b0f ldr r3, [pc, #60] @ (8001900 ) - 80018c4: 2201 movs r2, #1 - 80018c6: 611a str r2, [r3, #16] + 800188e: 4b0f ldr r3, [pc, #60] @ (80018cc ) + 8001890: 2201 movs r2, #1 + 8001892: 611a str r2, [r3, #16] if (HAL_ADC_Init(&hadc1) != HAL_OK) - 80018c8: 480d ldr r0, [pc, #52] @ (8001900 ) - 80018ca: f001 f9fd bl 8002cc8 - 80018ce: 4603 mov r3, r0 - 80018d0: 2b00 cmp r3, #0 - 80018d2: d001 beq.n 80018d8 + 8001894: 480d ldr r0, [pc, #52] @ (80018cc ) + 8001896: f001 fb55 bl 8002f44 + 800189a: 4603 mov r3, r0 + 800189c: 2b00 cmp r3, #0 + 800189e: d001 beq.n 80018a4 { Error_Handler(); - 80018d4: f000 ff66 bl 80027a4 + 80018a0: f001 f8be bl 8002a20 } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_0; - 80018d8: 2300 movs r3, #0 - 80018da: 607b str r3, [r7, #4] + 80018a4: 2300 movs r3, #0 + 80018a6: 607b str r3, [r7, #4] sConfig.Rank = ADC_REGULAR_RANK_1; - 80018dc: 2301 movs r3, #1 - 80018de: 60bb str r3, [r7, #8] + 80018a8: 2301 movs r3, #1 + 80018aa: 60bb str r3, [r7, #8] sConfig.SamplingTime = ADC_SAMPLETIME_1CYCLE_5; - 80018e0: 2300 movs r3, #0 - 80018e2: 60fb str r3, [r7, #12] + 80018ac: 2300 movs r3, #0 + 80018ae: 60fb str r3, [r7, #12] if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK) - 80018e4: 1d3b adds r3, r7, #4 - 80018e6: 4619 mov r1, r3 - 80018e8: 4805 ldr r0, [pc, #20] @ (8001900 ) - 80018ea: f001 fac5 bl 8002e78 - 80018ee: 4603 mov r3, r0 - 80018f0: 2b00 cmp r3, #0 - 80018f2: d001 beq.n 80018f8 + 80018b0: 1d3b adds r3, r7, #4 + 80018b2: 4619 mov r1, r3 + 80018b4: 4805 ldr r0, [pc, #20] @ (80018cc ) + 80018b6: f001 fc1d bl 80030f4 + 80018ba: 4603 mov r3, r0 + 80018bc: 2b00 cmp r3, #0 + 80018be: d001 beq.n 80018c4 { Error_Handler(); - 80018f4: f000 ff56 bl 80027a4 + 80018c0: f001 f8ae bl 8002a20 } /* USER CODE BEGIN ADC1_Init 2 */ /* USER CODE END ADC1_Init 2 */ } - 80018f8: bf00 nop - 80018fa: 3710 adds r7, #16 - 80018fc: 46bd mov sp, r7 - 80018fe: bd80 pop {r7, pc} - 8001900: 20000114 .word 0x20000114 - 8001904: 40012400 .word 0x40012400 + 80018c4: bf00 nop + 80018c6: 3710 adds r7, #16 + 80018c8: 46bd mov sp, r7 + 80018ca: bd80 pop {r7, pc} + 80018cc: 2000016c .word 0x2000016c + 80018d0: 40012400 .word 0x40012400 -08001908 : +080018d4 : /* ADC2 init function */ void MX_ADC2_Init(void) { - 8001908: b580 push {r7, lr} - 800190a: b084 sub sp, #16 - 800190c: af00 add r7, sp, #0 + 80018d4: b580 push {r7, lr} + 80018d6: b084 sub sp, #16 + 80018d8: af00 add r7, sp, #0 /* USER CODE BEGIN ADC2_Init 0 */ /* USER CODE END ADC2_Init 0 */ ADC_ChannelConfTypeDef sConfig = {0}; - 800190e: 1d3b adds r3, r7, #4 - 8001910: 2200 movs r2, #0 - 8001912: 601a str r2, [r3, #0] - 8001914: 605a str r2, [r3, #4] - 8001916: 609a str r2, [r3, #8] + 80018da: 1d3b adds r3, r7, #4 + 80018dc: 2200 movs r2, #0 + 80018de: 601a str r2, [r3, #0] + 80018e0: 605a str r2, [r3, #4] + 80018e2: 609a str r2, [r3, #8] /* USER CODE END ADC2_Init 1 */ /** Common config */ hadc2.Instance = ADC2; - 8001918: 4b18 ldr r3, [pc, #96] @ (800197c ) - 800191a: 4a19 ldr r2, [pc, #100] @ (8001980 ) - 800191c: 601a str r2, [r3, #0] + 80018e4: 4b18 ldr r3, [pc, #96] @ (8001948 ) + 80018e6: 4a19 ldr r2, [pc, #100] @ (800194c ) + 80018e8: 601a str r2, [r3, #0] hadc2.Init.ScanConvMode = ADC_SCAN_DISABLE; - 800191e: 4b17 ldr r3, [pc, #92] @ (800197c ) - 8001920: 2200 movs r2, #0 - 8001922: 609a str r2, [r3, #8] + 80018ea: 4b17 ldr r3, [pc, #92] @ (8001948 ) + 80018ec: 2200 movs r2, #0 + 80018ee: 609a str r2, [r3, #8] hadc2.Init.ContinuousConvMode = ENABLE; - 8001924: 4b15 ldr r3, [pc, #84] @ (800197c ) - 8001926: 2201 movs r2, #1 - 8001928: 731a strb r2, [r3, #12] + 80018f0: 4b15 ldr r3, [pc, #84] @ (8001948 ) + 80018f2: 2201 movs r2, #1 + 80018f4: 731a strb r2, [r3, #12] hadc2.Init.DiscontinuousConvMode = DISABLE; - 800192a: 4b14 ldr r3, [pc, #80] @ (800197c ) - 800192c: 2200 movs r2, #0 - 800192e: 751a strb r2, [r3, #20] + 80018f6: 4b14 ldr r3, [pc, #80] @ (8001948 ) + 80018f8: 2200 movs r2, #0 + 80018fa: 751a strb r2, [r3, #20] hadc2.Init.ExternalTrigConv = ADC_SOFTWARE_START; - 8001930: 4b12 ldr r3, [pc, #72] @ (800197c ) - 8001932: f44f 2260 mov.w r2, #917504 @ 0xe0000 - 8001936: 61da str r2, [r3, #28] + 80018fc: 4b12 ldr r3, [pc, #72] @ (8001948 ) + 80018fe: f44f 2260 mov.w r2, #917504 @ 0xe0000 + 8001902: 61da str r2, [r3, #28] hadc2.Init.DataAlign = ADC_DATAALIGN_RIGHT; - 8001938: 4b10 ldr r3, [pc, #64] @ (800197c ) - 800193a: 2200 movs r2, #0 - 800193c: 605a str r2, [r3, #4] + 8001904: 4b10 ldr r3, [pc, #64] @ (8001948 ) + 8001906: 2200 movs r2, #0 + 8001908: 605a str r2, [r3, #4] hadc2.Init.NbrOfConversion = 1; - 800193e: 4b0f ldr r3, [pc, #60] @ (800197c ) - 8001940: 2201 movs r2, #1 - 8001942: 611a str r2, [r3, #16] + 800190a: 4b0f ldr r3, [pc, #60] @ (8001948 ) + 800190c: 2201 movs r2, #1 + 800190e: 611a str r2, [r3, #16] if (HAL_ADC_Init(&hadc2) != HAL_OK) - 8001944: 480d ldr r0, [pc, #52] @ (800197c ) - 8001946: f001 f9bf bl 8002cc8 - 800194a: 4603 mov r3, r0 - 800194c: 2b00 cmp r3, #0 - 800194e: d001 beq.n 8001954 + 8001910: 480d ldr r0, [pc, #52] @ (8001948 ) + 8001912: f001 fb17 bl 8002f44 + 8001916: 4603 mov r3, r0 + 8001918: 2b00 cmp r3, #0 + 800191a: d001 beq.n 8001920 { Error_Handler(); - 8001950: f000 ff28 bl 80027a4 + 800191c: f001 f880 bl 8002a20 } /** Configure Regular Channel */ sConfig.Channel = ADC_CHANNEL_1; - 8001954: 2301 movs r3, #1 - 8001956: 607b str r3, [r7, #4] + 8001920: 2301 movs r3, #1 + 8001922: 607b str r3, [r7, #4] sConfig.Rank = ADC_REGULAR_RANK_1; - 8001958: 2301 movs r3, #1 - 800195a: 60bb str r3, [r7, #8] + 8001924: 2301 movs r3, #1 + 8001926: 60bb str r3, [r7, #8] sConfig.SamplingTime = ADC_SAMPLETIME_1CYCLE_5; - 800195c: 2300 movs r3, #0 - 800195e: 60fb str r3, [r7, #12] + 8001928: 2300 movs r3, #0 + 800192a: 60fb str r3, [r7, #12] if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK) - 8001960: 1d3b adds r3, r7, #4 - 8001962: 4619 mov r1, r3 - 8001964: 4805 ldr r0, [pc, #20] @ (800197c ) - 8001966: f001 fa87 bl 8002e78 - 800196a: 4603 mov r3, r0 - 800196c: 2b00 cmp r3, #0 - 800196e: d001 beq.n 8001974 + 800192c: 1d3b adds r3, r7, #4 + 800192e: 4619 mov r1, r3 + 8001930: 4805 ldr r0, [pc, #20] @ (8001948 ) + 8001932: f001 fbdf bl 80030f4 + 8001936: 4603 mov r3, r0 + 8001938: 2b00 cmp r3, #0 + 800193a: d001 beq.n 8001940 { Error_Handler(); - 8001970: f000 ff18 bl 80027a4 + 800193c: f001 f870 bl 8002a20 } /* USER CODE BEGIN ADC2_Init 2 */ /* USER CODE END ADC2_Init 2 */ } - 8001974: bf00 nop - 8001976: 3710 adds r7, #16 - 8001978: 46bd mov sp, r7 - 800197a: bd80 pop {r7, pc} - 800197c: 20000144 .word 0x20000144 - 8001980: 40012800 .word 0x40012800 + 8001940: bf00 nop + 8001942: 3710 adds r7, #16 + 8001944: 46bd mov sp, r7 + 8001946: bd80 pop {r7, pc} + 8001948: 2000019c .word 0x2000019c + 800194c: 40012800 .word 0x40012800 -08001984 : +08001950 : void HAL_ADC_MspInit(ADC_HandleTypeDef* adcHandle) { - 8001984: b580 push {r7, lr} - 8001986: b08a sub sp, #40 @ 0x28 - 8001988: af00 add r7, sp, #0 - 800198a: 6078 str r0, [r7, #4] + 8001950: b580 push {r7, lr} + 8001952: b08a sub sp, #40 @ 0x28 + 8001954: af00 add r7, sp, #0 + 8001956: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800198c: f107 0318 add.w r3, r7, #24 - 8001990: 2200 movs r2, #0 - 8001992: 601a str r2, [r3, #0] - 8001994: 605a str r2, [r3, #4] - 8001996: 609a str r2, [r3, #8] - 8001998: 60da str r2, [r3, #12] + 8001958: f107 0318 add.w r3, r7, #24 + 800195c: 2200 movs r2, #0 + 800195e: 601a str r2, [r3, #0] + 8001960: 605a str r2, [r3, #4] + 8001962: 609a str r2, [r3, #8] + 8001964: 60da str r2, [r3, #12] if(adcHandle->Instance==ADC1) - 800199a: 687b ldr r3, [r7, #4] - 800199c: 681b ldr r3, [r3, #0] - 800199e: 4a28 ldr r2, [pc, #160] @ (8001a40 ) - 80019a0: 4293 cmp r3, r2 - 80019a2: d122 bne.n 80019ea + 8001966: 687b ldr r3, [r7, #4] + 8001968: 681b ldr r3, [r3, #0] + 800196a: 4a28 ldr r2, [pc, #160] @ (8001a0c ) + 800196c: 4293 cmp r3, r2 + 800196e: d122 bne.n 80019b6 { /* USER CODE BEGIN ADC1_MspInit 0 */ /* USER CODE END ADC1_MspInit 0 */ /* ADC1 clock enable */ __HAL_RCC_ADC1_CLK_ENABLE(); - 80019a4: 4b27 ldr r3, [pc, #156] @ (8001a44 ) - 80019a6: 699b ldr r3, [r3, #24] - 80019a8: 4a26 ldr r2, [pc, #152] @ (8001a44 ) - 80019aa: f443 7300 orr.w r3, r3, #512 @ 0x200 - 80019ae: 6193 str r3, [r2, #24] - 80019b0: 4b24 ldr r3, [pc, #144] @ (8001a44 ) - 80019b2: 699b ldr r3, [r3, #24] - 80019b4: f403 7300 and.w r3, r3, #512 @ 0x200 - 80019b8: 617b str r3, [r7, #20] - 80019ba: 697b ldr r3, [r7, #20] + 8001970: 4b27 ldr r3, [pc, #156] @ (8001a10 ) + 8001972: 699b ldr r3, [r3, #24] + 8001974: 4a26 ldr r2, [pc, #152] @ (8001a10 ) + 8001976: f443 7300 orr.w r3, r3, #512 @ 0x200 + 800197a: 6193 str r3, [r2, #24] + 800197c: 4b24 ldr r3, [pc, #144] @ (8001a10 ) + 800197e: 699b ldr r3, [r3, #24] + 8001980: f403 7300 and.w r3, r3, #512 @ 0x200 + 8001984: 617b str r3, [r7, #20] + 8001986: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOA_CLK_ENABLE(); - 80019bc: 4b21 ldr r3, [pc, #132] @ (8001a44 ) - 80019be: 699b ldr r3, [r3, #24] - 80019c0: 4a20 ldr r2, [pc, #128] @ (8001a44 ) - 80019c2: f043 0304 orr.w r3, r3, #4 - 80019c6: 6193 str r3, [r2, #24] - 80019c8: 4b1e ldr r3, [pc, #120] @ (8001a44 ) - 80019ca: 699b ldr r3, [r3, #24] - 80019cc: f003 0304 and.w r3, r3, #4 - 80019d0: 613b str r3, [r7, #16] - 80019d2: 693b ldr r3, [r7, #16] + 8001988: 4b21 ldr r3, [pc, #132] @ (8001a10 ) + 800198a: 699b ldr r3, [r3, #24] + 800198c: 4a20 ldr r2, [pc, #128] @ (8001a10 ) + 800198e: f043 0304 orr.w r3, r3, #4 + 8001992: 6193 str r3, [r2, #24] + 8001994: 4b1e ldr r3, [pc, #120] @ (8001a10 ) + 8001996: 699b ldr r3, [r3, #24] + 8001998: f003 0304 and.w r3, r3, #4 + 800199c: 613b str r3, [r7, #16] + 800199e: 693b ldr r3, [r7, #16] /**ADC1 GPIO Configuration PA0-WKUP ------> ADC1_IN0 PA1 ------> ADC1_IN1 */ GPIO_InitStruct.Pin = AIN1_Pin|AIN2_Pin; - 80019d4: 2303 movs r3, #3 - 80019d6: 61bb str r3, [r7, #24] + 80019a0: 2303 movs r3, #3 + 80019a2: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; - 80019d8: 2303 movs r3, #3 - 80019da: 61fb str r3, [r7, #28] + 80019a4: 2303 movs r3, #3 + 80019a6: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 80019dc: f107 0318 add.w r3, r7, #24 - 80019e0: 4619 mov r1, r3 - 80019e2: 4819 ldr r0, [pc, #100] @ (8001a48 ) - 80019e4: f001 ff42 bl 800386c + 80019a8: f107 0318 add.w r3, r7, #24 + 80019ac: 4619 mov r1, r3 + 80019ae: 4819 ldr r0, [pc, #100] @ (8001a14 ) + 80019b0: f002 f89a bl 8003ae8 /* USER CODE BEGIN ADC2_MspInit 1 */ /* USER CODE END ADC2_MspInit 1 */ } } - 80019e8: e026 b.n 8001a38 + 80019b4: e026 b.n 8001a04 else if(adcHandle->Instance==ADC2) - 80019ea: 687b ldr r3, [r7, #4] - 80019ec: 681b ldr r3, [r3, #0] - 80019ee: 4a17 ldr r2, [pc, #92] @ (8001a4c ) - 80019f0: 4293 cmp r3, r2 - 80019f2: d121 bne.n 8001a38 + 80019b6: 687b ldr r3, [r7, #4] + 80019b8: 681b ldr r3, [r3, #0] + 80019ba: 4a17 ldr r2, [pc, #92] @ (8001a18 ) + 80019bc: 4293 cmp r3, r2 + 80019be: d121 bne.n 8001a04 __HAL_RCC_ADC2_CLK_ENABLE(); - 80019f4: 4b13 ldr r3, [pc, #76] @ (8001a44 ) - 80019f6: 699b ldr r3, [r3, #24] - 80019f8: 4a12 ldr r2, [pc, #72] @ (8001a44 ) - 80019fa: f443 6380 orr.w r3, r3, #1024 @ 0x400 - 80019fe: 6193 str r3, [r2, #24] - 8001a00: 4b10 ldr r3, [pc, #64] @ (8001a44 ) - 8001a02: 699b ldr r3, [r3, #24] - 8001a04: f403 6380 and.w r3, r3, #1024 @ 0x400 - 8001a08: 60fb str r3, [r7, #12] - 8001a0a: 68fb ldr r3, [r7, #12] + 80019c0: 4b13 ldr r3, [pc, #76] @ (8001a10 ) + 80019c2: 699b ldr r3, [r3, #24] + 80019c4: 4a12 ldr r2, [pc, #72] @ (8001a10 ) + 80019c6: f443 6380 orr.w r3, r3, #1024 @ 0x400 + 80019ca: 6193 str r3, [r2, #24] + 80019cc: 4b10 ldr r3, [pc, #64] @ (8001a10 ) + 80019ce: 699b ldr r3, [r3, #24] + 80019d0: f403 6380 and.w r3, r3, #1024 @ 0x400 + 80019d4: 60fb str r3, [r7, #12] + 80019d6: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001a0c: 4b0d ldr r3, [pc, #52] @ (8001a44 ) - 8001a0e: 699b ldr r3, [r3, #24] - 8001a10: 4a0c ldr r2, [pc, #48] @ (8001a44 ) - 8001a12: f043 0304 orr.w r3, r3, #4 - 8001a16: 6193 str r3, [r2, #24] - 8001a18: 4b0a ldr r3, [pc, #40] @ (8001a44 ) - 8001a1a: 699b ldr r3, [r3, #24] - 8001a1c: f003 0304 and.w r3, r3, #4 - 8001a20: 60bb str r3, [r7, #8] - 8001a22: 68bb ldr r3, [r7, #8] + 80019d8: 4b0d ldr r3, [pc, #52] @ (8001a10 ) + 80019da: 699b ldr r3, [r3, #24] + 80019dc: 4a0c ldr r2, [pc, #48] @ (8001a10 ) + 80019de: f043 0304 orr.w r3, r3, #4 + 80019e2: 6193 str r3, [r2, #24] + 80019e4: 4b0a ldr r3, [pc, #40] @ (8001a10 ) + 80019e6: 699b ldr r3, [r3, #24] + 80019e8: f003 0304 and.w r3, r3, #4 + 80019ec: 60bb str r3, [r7, #8] + 80019ee: 68bb ldr r3, [r7, #8] GPIO_InitStruct.Pin = AIN1_Pin|AIN2_Pin; - 8001a24: 2303 movs r3, #3 - 8001a26: 61bb str r3, [r7, #24] + 80019f0: 2303 movs r3, #3 + 80019f2: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; - 8001a28: 2303 movs r3, #3 - 8001a2a: 61fb str r3, [r7, #28] + 80019f4: 2303 movs r3, #3 + 80019f6: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8001a2c: f107 0318 add.w r3, r7, #24 - 8001a30: 4619 mov r1, r3 - 8001a32: 4805 ldr r0, [pc, #20] @ (8001a48 ) - 8001a34: f001 ff1a bl 800386c + 80019f8: f107 0318 add.w r3, r7, #24 + 80019fc: 4619 mov r1, r3 + 80019fe: 4805 ldr r0, [pc, #20] @ (8001a14 ) + 8001a00: f002 f872 bl 8003ae8 } - 8001a38: bf00 nop - 8001a3a: 3728 adds r7, #40 @ 0x28 - 8001a3c: 46bd mov sp, r7 - 8001a3e: bd80 pop {r7, pc} - 8001a40: 40012400 .word 0x40012400 - 8001a44: 40021000 .word 0x40021000 - 8001a48: 40010800 .word 0x40010800 - 8001a4c: 40012800 .word 0x40012800 + 8001a04: bf00 nop + 8001a06: 3728 adds r7, #40 @ 0x28 + 8001a08: 46bd mov sp, r7 + 8001a0a: bd80 pop {r7, pc} + 8001a0c: 40012400 .word 0x40012400 + 8001a10: 40021000 .word 0x40021000 + 8001a14: 40010800 .word 0x40010800 + 8001a18: 40012800 .word 0x40012800 -08001a50 : +08001a1c : ADS1015_I2C i2c; float ph_dut_samples[ADS1015_PH_AVERAGES]={0}; // Write the register static void writeRegister(ADS1015_I2C *i2c, uint8_t reg, uint16_t value) { - 8001a50: b580 push {r7, lr} - 8001a52: b086 sub sp, #24 - 8001a54: af02 add r7, sp, #8 - 8001a56: 6078 str r0, [r7, #4] - 8001a58: 460b mov r3, r1 - 8001a5a: 70fb strb r3, [r7, #3] - 8001a5c: 4613 mov r3, r2 - 8001a5e: 803b strh r3, [r7, #0] + 8001a1c: b580 push {r7, lr} + 8001a1e: b086 sub sp, #24 + 8001a20: af02 add r7, sp, #8 + 8001a22: 6078 str r0, [r7, #4] + 8001a24: 460b mov r3, r1 + 8001a26: 70fb strb r3, [r7, #3] + 8001a28: 4613 mov r3, r2 + 8001a2a: 803b strh r3, [r7, #0] uint8_t pData[3] = { reg, (uint8_t) (value >> 8), (uint8_t) (value & 0xFF) }; - 8001a60: 78fb ldrb r3, [r7, #3] - 8001a62: 733b strb r3, [r7, #12] - 8001a64: 883b ldrh r3, [r7, #0] - 8001a66: 0a1b lsrs r3, r3, #8 - 8001a68: b29b uxth r3, r3 - 8001a6a: b2db uxtb r3, r3 - 8001a6c: 737b strb r3, [r7, #13] - 8001a6e: 883b ldrh r3, [r7, #0] - 8001a70: b2db uxtb r3, r3 - 8001a72: 73bb strb r3, [r7, #14] + 8001a2c: 78fb ldrb r3, [r7, #3] + 8001a2e: 733b strb r3, [r7, #12] + 8001a30: 883b ldrh r3, [r7, #0] + 8001a32: 0a1b lsrs r3, r3, #8 + 8001a34: b29b uxth r3, r3 + 8001a36: b2db uxtb r3, r3 + 8001a38: 737b strb r3, [r7, #13] + 8001a3a: 883b ldrh r3, [r7, #0] + 8001a3c: b2db uxtb r3, r3 + 8001a3e: 73bb strb r3, [r7, #14] HAL_I2C_Master_Transmit(i2c->hi2c, i2c->m_i2cAddress, pData, 3, 10); - 8001a74: 687b ldr r3, [r7, #4] - 8001a76: 68d8 ldr r0, [r3, #12] - 8001a78: 687b ldr r3, [r7, #4] - 8001a7a: 8819 ldrh r1, [r3, #0] - 8001a7c: f107 020c add.w r2, r7, #12 - 8001a80: 230a movs r3, #10 - 8001a82: 9300 str r3, [sp, #0] - 8001a84: 2303 movs r3, #3 - 8001a86: f002 fa01 bl 8003e8c + 8001a40: 687b ldr r3, [r7, #4] + 8001a42: 68d8 ldr r0, [r3, #12] + 8001a44: 687b ldr r3, [r7, #4] + 8001a46: 8819 ldrh r1, [r3, #0] + 8001a48: f107 020c add.w r2, r7, #12 + 8001a4c: 230a movs r3, #10 + 8001a4e: 9300 str r3, [sp, #0] + 8001a50: 2303 movs r3, #3 + 8001a52: f002 fb59 bl 8004108 } - 8001a8a: bf00 nop - 8001a8c: 3710 adds r7, #16 - 8001a8e: 46bd mov sp, r7 - 8001a90: bd80 pop {r7, pc} + 8001a56: bf00 nop + 8001a58: 3710 adds r7, #16 + 8001a5a: 46bd mov sp, r7 + 8001a5c: bd80 pop {r7, pc} -08001a92 : +08001a5e : // Read the register static uint16_t readRegister(ADS1015_I2C *i2c, uint8_t reg) { - 8001a92: b580 push {r7, lr} - 8001a94: b086 sub sp, #24 - 8001a96: af02 add r7, sp, #8 - 8001a98: 6078 str r0, [r7, #4] - 8001a9a: 460b mov r3, r1 - 8001a9c: 70fb strb r3, [r7, #3] + 8001a5e: b580 push {r7, lr} + 8001a60: b086 sub sp, #24 + 8001a62: af02 add r7, sp, #8 + 8001a64: 6078 str r0, [r7, #4] + 8001a66: 460b mov r3, r1 + 8001a68: 70fb strb r3, [r7, #3] HAL_I2C_Master_Transmit(i2c->hi2c, i2c->m_i2cAddress, ®, 1, 10); - 8001a9e: 687b ldr r3, [r7, #4] - 8001aa0: 68d8 ldr r0, [r3, #12] - 8001aa2: 687b ldr r3, [r7, #4] - 8001aa4: 8819 ldrh r1, [r3, #0] - 8001aa6: 1cfa adds r2, r7, #3 - 8001aa8: 230a movs r3, #10 - 8001aaa: 9300 str r3, [sp, #0] - 8001aac: 2301 movs r3, #1 - 8001aae: f002 f9ed bl 8003e8c + 8001a6a: 687b ldr r3, [r7, #4] + 8001a6c: 68d8 ldr r0, [r3, #12] + 8001a6e: 687b ldr r3, [r7, #4] + 8001a70: 8819 ldrh r1, [r3, #0] + 8001a72: 1cfa adds r2, r7, #3 + 8001a74: 230a movs r3, #10 + 8001a76: 9300 str r3, [sp, #0] + 8001a78: 2301 movs r3, #1 + 8001a7a: f002 fb45 bl 8004108 uint8_t pData[2] = { 0, 0 }; - 8001ab2: 2300 movs r3, #0 - 8001ab4: 81bb strh r3, [r7, #12] + 8001a7e: 2300 movs r3, #0 + 8001a80: 81bb strh r3, [r7, #12] HAL_I2C_Master_Receive(i2c->hi2c, i2c->m_i2cAddress, pData, 2, 10); - 8001ab6: 687b ldr r3, [r7, #4] - 8001ab8: 68d8 ldr r0, [r3, #12] - 8001aba: 687b ldr r3, [r7, #4] - 8001abc: 8819 ldrh r1, [r3, #0] - 8001abe: f107 020c add.w r2, r7, #12 - 8001ac2: 230a movs r3, #10 - 8001ac4: 9300 str r3, [sp, #0] - 8001ac6: 2302 movs r3, #2 - 8001ac8: f002 fade bl 8004088 + 8001a82: 687b ldr r3, [r7, #4] + 8001a84: 68d8 ldr r0, [r3, #12] + 8001a86: 687b ldr r3, [r7, #4] + 8001a88: 8819 ldrh r1, [r3, #0] + 8001a8a: f107 020c add.w r2, r7, #12 + 8001a8e: 230a movs r3, #10 + 8001a90: 9300 str r3, [sp, #0] + 8001a92: 2302 movs r3, #2 + 8001a94: f002 fc36 bl 8004304 return ((pData[0] << 8) | pData[1]); - 8001acc: 7b3b ldrb r3, [r7, #12] - 8001ace: b21b sxth r3, r3 - 8001ad0: 021b lsls r3, r3, #8 - 8001ad2: b21a sxth r2, r3 - 8001ad4: 7b7b ldrb r3, [r7, #13] - 8001ad6: b21b sxth r3, r3 - 8001ad8: 4313 orrs r3, r2 - 8001ada: b21b sxth r3, r3 - 8001adc: b29b uxth r3, r3 + 8001a98: 7b3b ldrb r3, [r7, #12] + 8001a9a: b21b sxth r3, r3 + 8001a9c: 021b lsls r3, r3, #8 + 8001a9e: b21a sxth r2, r3 + 8001aa0: 7b7b ldrb r3, [r7, #13] + 8001aa2: b21b sxth r3, r3 + 8001aa4: 4313 orrs r3, r2 + 8001aa6: b21b sxth r3, r3 + 8001aa8: b29b uxth r3, r3 } - 8001ade: 4618 mov r0, r3 - 8001ae0: 3710 adds r7, #16 - 8001ae2: 46bd mov sp, r7 - 8001ae4: bd80 pop {r7, pc} + 8001aaa: 4618 mov r0, r3 + 8001aac: 3710 adds r7, #16 + 8001aae: 46bd mov sp, r7 + 8001ab0: bd80 pop {r7, pc} -08001ae6 : +08001ab2 : HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, GPIO_PIN_SET); // This MUST have GPIO PA5 ready to use - ERROR I2C - Wrong address } // Declare an ADS1015 structure void ADS1015(ADS1015_I2C *i2c, I2C_HandleTypeDef *hi2c, uint8_t i2cAddress) { - 8001ae6: b480 push {r7} - 8001ae8: b085 sub sp, #20 - 8001aea: af00 add r7, sp, #0 - 8001aec: 60f8 str r0, [r7, #12] - 8001aee: 60b9 str r1, [r7, #8] - 8001af0: 4613 mov r3, r2 - 8001af2: 71fb strb r3, [r7, #7] + 8001ab2: b480 push {r7} + 8001ab4: b085 sub sp, #20 + 8001ab6: af00 add r7, sp, #0 + 8001ab8: 60f8 str r0, [r7, #12] + 8001aba: 60b9 str r1, [r7, #8] + 8001abc: 4613 mov r3, r2 + 8001abe: 71fb strb r3, [r7, #7] i2c->hi2c = hi2c; - 8001af4: 68fb ldr r3, [r7, #12] - 8001af6: 68ba ldr r2, [r7, #8] - 8001af8: 60da str r2, [r3, #12] + 8001ac0: 68fb ldr r3, [r7, #12] + 8001ac2: 68ba ldr r2, [r7, #8] + 8001ac4: 60da str r2, [r3, #12] i2c->m_i2cAddress = i2cAddress << 1; // It's Important to shift the address << 1 - 8001afa: 79fb ldrb r3, [r7, #7] - 8001afc: b29b uxth r3, r3 - 8001afe: 005b lsls r3, r3, #1 - 8001b00: b29a uxth r2, r3 - 8001b02: 68fb ldr r3, [r7, #12] - 8001b04: 801a strh r2, [r3, #0] + 8001ac6: 79fb ldrb r3, [r7, #7] + 8001ac8: b29b uxth r3, r3 + 8001aca: 005b lsls r3, r3, #1 + 8001acc: b29a uxth r2, r3 + 8001ace: 68fb ldr r3, [r7, #12] + 8001ad0: 801a strh r2, [r3, #0] i2c->m_conversionDelay = ADS1015_CONVERSIONDELAY; - 8001b06: 68fb ldr r3, [r7, #12] - 8001b08: 2204 movs r2, #4 - 8001b0a: 605a str r2, [r3, #4] + 8001ad2: 68fb ldr r3, [r7, #12] + 8001ad4: 2204 movs r2, #4 + 8001ad6: 605a str r2, [r3, #4] i2c->m_bitShift = 4; - 8001b0c: 68fb ldr r3, [r7, #12] - 8001b0e: 2204 movs r2, #4 - 8001b10: 721a strb r2, [r3, #8] + 8001ad8: 68fb ldr r3, [r7, #12] + 8001ada: 2204 movs r2, #4 + 8001adc: 721a strb r2, [r3, #8] i2c->m_gain = GAIN_TWOTHIRDS; /* +/- 6.144V range (limited to VDD +0.3V max!) */ - 8001b12: 68fb ldr r3, [r7, #12] - 8001b14: 2200 movs r2, #0 - 8001b16: 815a strh r2, [r3, #10] + 8001ade: 68fb ldr r3, [r7, #12] + 8001ae0: 2200 movs r2, #0 + 8001ae2: 815a strh r2, [r3, #10] //ADSbegin(i2c); //Ready is not used } - 8001b18: bf00 nop - 8001b1a: 3714 adds r7, #20 - 8001b1c: 46bd mov sp, r7 - 8001b1e: bc80 pop {r7} - 8001b20: 4770 bx lr + 8001ae4: bf00 nop + 8001ae6: 3714 adds r7, #20 + 8001ae8: 46bd mov sp, r7 + 8001aea: bc80 pop {r7} + 8001aec: 4770 bx lr -08001b22 : +08001aee : // ADSsetGain(GAIN_TWO); // 2x gain +/- 2.048V 1 bit = 1mV 0.0625mV // ADSsetGain(GAIN_FOUR); // 4x gain +/- 1.024V 1 bit = 0.5mV 0.03125mV // ADSsetGain(GAIN_EIGHT); // 8x gain +/- 0.512V 1 bit = 0.25mV 0.015625mV // ADSsetGain(GAIN_SIXTEEN); // 16x gain +/- 0.256V 1 bit = 0.125mV 0.0078125mV */ void ADSsetGain(ADS1015_I2C *i2c, adsGain_t gain) { - 8001b22: b480 push {r7} - 8001b24: b083 sub sp, #12 - 8001b26: af00 add r7, sp, #0 - 8001b28: 6078 str r0, [r7, #4] - 8001b2a: 460b mov r3, r1 - 8001b2c: 807b strh r3, [r7, #2] + 8001aee: b480 push {r7} + 8001af0: b083 sub sp, #12 + 8001af2: af00 add r7, sp, #0 + 8001af4: 6078 str r0, [r7, #4] + 8001af6: 460b mov r3, r1 + 8001af8: 807b strh r3, [r7, #2] i2c->m_gain = gain; - 8001b2e: 687b ldr r3, [r7, #4] - 8001b30: 887a ldrh r2, [r7, #2] - 8001b32: 815a strh r2, [r3, #10] + 8001afa: 687b ldr r3, [r7, #4] + 8001afc: 887a ldrh r2, [r7, #2] + 8001afe: 815a strh r2, [r3, #10] } - 8001b34: bf00 nop - 8001b36: 370c adds r7, #12 - 8001b38: 46bd mov sp, r7 - 8001b3a: bc80 pop {r7} - 8001b3c: 4770 bx lr + 8001b00: bf00 nop + 8001b02: 370c adds r7, #12 + 8001b04: 46bd mov sp, r7 + 8001b06: bc80 pop {r7} + 8001b08: 4770 bx lr -08001b3e : +08001b0a : /* * Reads the conversion results, measuring the voltage * difference between the P (AIN0) and N (AIN1) input. Generates * a signed value since the difference can be either positive or negative. */ int16_t ADSreadADC_Differential_0_1(ADS1015_I2C *i2c) { - 8001b3e: b580 push {r7, lr} - 8001b40: b084 sub sp, #16 - 8001b42: af00 add r7, sp, #0 - 8001b44: 6078 str r0, [r7, #4] + 8001b0a: b580 push {r7, lr} + 8001b0c: b084 sub sp, #16 + 8001b0e: af00 add r7, sp, #0 + 8001b10: 6078 str r0, [r7, #4] // Start with default values uint16_t config = - 8001b46: f240 1303 movw r3, #259 @ 0x103 - 8001b4a: 81bb strh r3, [r7, #12] + 8001b12: f240 1303 movw r3, #259 @ 0x103 + 8001b16: 81bb strh r3, [r7, #12] ADS1015_REG_CONFIG_CMODE_TRAD | // Traditional comparator (default val) ADS1015_REG_CONFIG_DR_128SPS | // 128 samples per second (default) ADS1015_REG_CONFIG_MODE_SINGLE; // Single-shot mode (default) // Set PGA/voltage range config |= i2c->m_gain; - 8001b4c: 687b ldr r3, [r7, #4] - 8001b4e: 895a ldrh r2, [r3, #10] - 8001b50: 89bb ldrh r3, [r7, #12] - 8001b52: 4313 orrs r3, r2 - 8001b54: 81bb strh r3, [r7, #12] + 8001b18: 687b ldr r3, [r7, #4] + 8001b1a: 895a ldrh r2, [r3, #10] + 8001b1c: 89bb ldrh r3, [r7, #12] + 8001b1e: 4313 orrs r3, r2 + 8001b20: 81bb strh r3, [r7, #12] // Set channels config |= ADS1015_REG_CONFIG_MUX_DIFF_0_1; // AIN0 = P, AIN1 = N // Set 'start single-conversion' bit config |= ADS1015_REG_CONFIG_OS_SINGLE; - 8001b56: 89bb ldrh r3, [r7, #12] - 8001b58: ea6f 4343 mvn.w r3, r3, lsl #17 - 8001b5c: ea6f 4353 mvn.w r3, r3, lsr #17 - 8001b60: 81bb strh r3, [r7, #12] + 8001b22: 89bb ldrh r3, [r7, #12] + 8001b24: ea6f 4343 mvn.w r3, r3, lsl #17 + 8001b28: ea6f 4353 mvn.w r3, r3, lsr #17 + 8001b2c: 81bb strh r3, [r7, #12] // Write config register to the ADC writeRegister(i2c, ADS1015_REG_POINTER_CONFIG, config); - 8001b62: 89bb ldrh r3, [r7, #12] - 8001b64: 461a mov r2, r3 - 8001b66: 2101 movs r1, #1 - 8001b68: 6878 ldr r0, [r7, #4] - 8001b6a: f7ff ff71 bl 8001a50 + 8001b2e: 89bb ldrh r3, [r7, #12] + 8001b30: 461a mov r2, r3 + 8001b32: 2101 movs r1, #1 + 8001b34: 6878 ldr r0, [r7, #4] + 8001b36: f7ff ff71 bl 8001a1c // Wait for the conversion to complete HAL_Delay(i2c->m_conversionDelay); - 8001b6e: 687b ldr r3, [r7, #4] - 8001b70: 685b ldr r3, [r3, #4] - 8001b72: 4618 mov r0, r3 - 8001b74: f001 f884 bl 8002c80 + 8001b3a: 687b ldr r3, [r7, #4] + 8001b3c: 685b ldr r3, [r3, #4] + 8001b3e: 4618 mov r0, r3 + 8001b40: f001 f9dc bl 8002efc // Read the conversion results uint16_t res = readRegister(i2c, ADS1015_REG_POINTER_CONVERT) >> i2c->m_bitShift; - 8001b78: 2100 movs r1, #0 - 8001b7a: 6878 ldr r0, [r7, #4] - 8001b7c: f7ff ff89 bl 8001a92 - 8001b80: 4603 mov r3, r0 - 8001b82: 461a mov r2, r3 - 8001b84: 687b ldr r3, [r7, #4] - 8001b86: 7a1b ldrb r3, [r3, #8] - 8001b88: fa42 f303 asr.w r3, r2, r3 - 8001b8c: 81fb strh r3, [r7, #14] + 8001b44: 2100 movs r1, #0 + 8001b46: 6878 ldr r0, [r7, #4] + 8001b48: f7ff ff89 bl 8001a5e + 8001b4c: 4603 mov r3, r0 + 8001b4e: 461a mov r2, r3 + 8001b50: 687b ldr r3, [r7, #4] + 8001b52: 7a1b ldrb r3, [r3, #8] + 8001b54: fa42 f303 asr.w r3, r2, r3 + 8001b58: 81fb strh r3, [r7, #14] if (i2c->m_bitShift == 0) { - 8001b8e: 687b ldr r3, [r7, #4] - 8001b90: 7a1b ldrb r3, [r3, #8] - 8001b92: 2b00 cmp r3, #0 - 8001b94: d102 bne.n 8001b9c + 8001b5a: 687b ldr r3, [r7, #4] + 8001b5c: 7a1b ldrb r3, [r3, #8] + 8001b5e: 2b00 cmp r3, #0 + 8001b60: d102 bne.n 8001b68 return (int16_t) res; - 8001b96: f9b7 300e ldrsh.w r3, [r7, #14] - 8001b9a: e00b b.n 8001bb4 + 8001b62: f9b7 300e ldrsh.w r3, [r7, #14] + 8001b66: e00b b.n 8001b80 } else { // Shift 12-bit results right 4 bits for the ADS1015, // making sure we keep the sign bit intact if (res > 0x07FF) { - 8001b9c: 89fb ldrh r3, [r7, #14] - 8001b9e: f5b3 6f00 cmp.w r3, #2048 @ 0x800 - 8001ba2: d305 bcc.n 8001bb0 + 8001b68: 89fb ldrh r3, [r7, #14] + 8001b6a: f5b3 6f00 cmp.w r3, #2048 @ 0x800 + 8001b6e: d305 bcc.n 8001b7c // negative number - extend the sign to 16th bit res |= 0xF000; - 8001ba4: 89fb ldrh r3, [r7, #14] - 8001ba6: ea6f 5303 mvn.w r3, r3, lsl #20 - 8001baa: ea6f 5313 mvn.w r3, r3, lsr #20 - 8001bae: 81fb strh r3, [r7, #14] + 8001b70: 89fb ldrh r3, [r7, #14] + 8001b72: ea6f 5303 mvn.w r3, r3, lsl #20 + 8001b76: ea6f 5313 mvn.w r3, r3, lsr #20 + 8001b7a: 81fb strh r3, [r7, #14] } return (int16_t) res; - 8001bb0: f9b7 300e ldrsh.w r3, [r7, #14] + 8001b7c: f9b7 300e ldrsh.w r3, [r7, #14] } } - 8001bb4: 4618 mov r0, r3 - 8001bb6: 3710 adds r7, #16 - 8001bb8: 46bd mov sp, r7 - 8001bba: bd80 pop {r7, pc} + 8001b80: 4618 mov r0, r3 + 8001b82: 3710 adds r7, #16 + 8001b84: 46bd mov sp, r7 + 8001b86: bd80 pop {r7, pc} -08001bbc : +08001b88 : return (int16_t) res; } } -float ADSCalculate_ph_Volts(void) +float ADSCalculate_ph_mV(void) // pH in mV { - 8001bbc: b580 push {r7, lr} - 8001bbe: b082 sub sp, #8 - 8001bc0: af00 add r7, sp, #0 + 8001b88: b580 push {r7, lr} + 8001b8a: b082 sub sp, #8 + 8001b8c: af00 add r7, sp, #0 float ph_dut_sum; uint8_t i; for (i = (ADS1015_PH_AVERAGES-1); i > 0; i--) - 8001bc2: 2307 movs r3, #7 - 8001bc4: 70fb strb r3, [r7, #3] - 8001bc6: e00b b.n 8001be0 + 8001b8e: 230f movs r3, #15 + 8001b90: 70fb strb r3, [r7, #3] + 8001b92: e00b b.n 8001bac ph_dut_samples[i] = ph_dut_samples[i-1]; - 8001bc8: 78fb ldrb r3, [r7, #3] - 8001bca: 1e5a subs r2, r3, #1 - 8001bcc: 78fb ldrb r3, [r7, #3] - 8001bce: 4922 ldr r1, [pc, #136] @ (8001c58 ) - 8001bd0: f851 2022 ldr.w r2, [r1, r2, lsl #2] - 8001bd4: 4920 ldr r1, [pc, #128] @ (8001c58 ) - 8001bd6: f841 2023 str.w r2, [r1, r3, lsl #2] + 8001b94: 78fb ldrb r3, [r7, #3] + 8001b96: 1e5a subs r2, r3, #1 + 8001b98: 78fb ldrb r3, [r7, #3] + 8001b9a: 4923 ldr r1, [pc, #140] @ (8001c28 ) + 8001b9c: f851 2022 ldr.w r2, [r1, r2, lsl #2] + 8001ba0: 4921 ldr r1, [pc, #132] @ (8001c28 ) + 8001ba2: f841 2023 str.w r2, [r1, r3, lsl #2] for (i = (ADS1015_PH_AVERAGES-1); i > 0; i--) - 8001bda: 78fb ldrb r3, [r7, #3] - 8001bdc: 3b01 subs r3, #1 - 8001bde: 70fb strb r3, [r7, #3] - 8001be0: 78fb ldrb r3, [r7, #3] - 8001be2: 2b00 cmp r3, #0 - 8001be4: d1f0 bne.n 8001bc8 + 8001ba6: 78fb ldrb r3, [r7, #3] + 8001ba8: 3b01 subs r3, #1 + 8001baa: 70fb strb r3, [r7, #3] + 8001bac: 78fb ldrb r3, [r7, #3] + 8001bae: 2b00 cmp r3, #0 + 8001bb0: d1f0 bne.n 8001b94 - ph_dut_samples[0] = (((float)(2048 - ADSreadADC_Differential_0_1(&i2c)) * ADS1015_ADC_VREF) / ADS1015_ADC_MAX); // 1. Converter leitura bruta do ADC para tensão real (Volts) - 8001be6: 481d ldr r0, [pc, #116] @ (8001c5c ) - 8001be8: f7ff ffa9 bl 8001b3e - 8001bec: 4603 mov r3, r0 - 8001bee: f5c3 6300 rsb r3, r3, #2048 @ 0x800 - 8001bf2: 4618 mov r0, r3 - 8001bf4: f7fe ff02 bl 80009fc <__aeabi_i2f> - 8001bf8: 4603 mov r3, r0 - 8001bfa: 4919 ldr r1, [pc, #100] @ (8001c60 ) - 8001bfc: 4618 mov r0, r3 - 8001bfe: f7fe ff51 bl 8000aa4 <__aeabi_fmul> - 8001c02: 4603 mov r3, r0 - 8001c04: 4917 ldr r1, [pc, #92] @ (8001c64 ) - 8001c06: 4618 mov r0, r3 - 8001c08: f7ff f800 bl 8000c0c <__aeabi_fdiv> - 8001c0c: 4603 mov r3, r0 - 8001c0e: 461a mov r2, r3 - 8001c10: 4b11 ldr r3, [pc, #68] @ (8001c58 ) - 8001c12: 601a str r2, [r3, #0] + ph_dut_samples[0] = (((float)(ADSreadADC_Differential_0_1(&i2c)) * ADS1015_ADC_VREF) / ADS1015_ADC_MAX); // 1. Converter leitura bruta do ADC para tensão real (mV) + 8001bb2: 481e ldr r0, [pc, #120] @ (8001c2c ) + 8001bb4: f7ff ffa9 bl 8001b0a + 8001bb8: 4603 mov r3, r0 + 8001bba: 4618 mov r0, r3 + 8001bbc: f7fe ff1e bl 80009fc <__aeabi_i2f> + 8001bc0: 4603 mov r3, r0 + 8001bc2: f04f 4189 mov.w r1, #1149239296 @ 0x44800000 + 8001bc6: 4618 mov r0, r3 + 8001bc8: f7fe ff6c bl 8000aa4 <__aeabi_fmul> + 8001bcc: 4603 mov r3, r0 + 8001bce: 4918 ldr r1, [pc, #96] @ (8001c30 ) + 8001bd0: 4618 mov r0, r3 + 8001bd2: f7ff f81b bl 8000c0c <__aeabi_fdiv> + 8001bd6: 4603 mov r3, r0 + 8001bd8: 461a mov r2, r3 + 8001bda: 4b13 ldr r3, [pc, #76] @ (8001c28 ) + 8001bdc: 601a str r2, [r3, #0] for (i = 0, ph_dut_sum=0; i < ADS1015_PH_AVERAGES; i++) - 8001c14: 2300 movs r3, #0 - 8001c16: 70fb strb r3, [r7, #3] - 8001c18: f04f 0300 mov.w r3, #0 - 8001c1c: 607b str r3, [r7, #4] - 8001c1e: e00c b.n 8001c3a + 8001bde: 2300 movs r3, #0 + 8001be0: 70fb strb r3, [r7, #3] + 8001be2: f04f 0300 mov.w r3, #0 + 8001be6: 607b str r3, [r7, #4] + 8001be8: e00c b.n 8001c04 ph_dut_sum += ph_dut_samples[i]; - 8001c20: 78fb ldrb r3, [r7, #3] - 8001c22: 4a0d ldr r2, [pc, #52] @ (8001c58 ) - 8001c24: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8001c28: 4619 mov r1, r3 - 8001c2a: 6878 ldr r0, [r7, #4] - 8001c2c: f7fe fe32 bl 8000894 <__addsf3> - 8001c30: 4603 mov r3, r0 - 8001c32: 607b str r3, [r7, #4] + 8001bea: 78fb ldrb r3, [r7, #3] + 8001bec: 4a0e ldr r2, [pc, #56] @ (8001c28 ) + 8001bee: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8001bf2: 4619 mov r1, r3 + 8001bf4: 6878 ldr r0, [r7, #4] + 8001bf6: f7fe fe4d bl 8000894 <__addsf3> + 8001bfa: 4603 mov r3, r0 + 8001bfc: 607b str r3, [r7, #4] for (i = 0, ph_dut_sum=0; i < ADS1015_PH_AVERAGES; i++) - 8001c34: 78fb ldrb r3, [r7, #3] - 8001c36: 3301 adds r3, #1 - 8001c38: 70fb strb r3, [r7, #3] - 8001c3a: 78fb ldrb r3, [r7, #3] - 8001c3c: 2b07 cmp r3, #7 - 8001c3e: d9ef bls.n 8001c20 + 8001bfe: 78fb ldrb r3, [r7, #3] + 8001c00: 3301 adds r3, #1 + 8001c02: 70fb strb r3, [r7, #3] + 8001c04: 78fb ldrb r3, [r7, #3] + 8001c06: 2b0f cmp r3, #15 + 8001c08: d9ef bls.n 8001bea - ph_dut_sum /= ADS1015_PH_AVERAGES; - 8001c40: f04f 4182 mov.w r1, #1090519040 @ 0x41000000 - 8001c44: 6878 ldr r0, [r7, #4] - 8001c46: f7fe ffe1 bl 8000c0c <__aeabi_fdiv> - 8001c4a: 4603 mov r3, r0 - 8001c4c: 607b str r3, [r7, #4] - - return (ph_dut_sum); - 8001c4e: 687b ldr r3, [r7, #4] + return (ADSRound_Float_Precision((ph_dut_sum/ADS1015_PH_AVERAGES),2)); + 8001c0a: f04f 4183 mov.w r1, #1098907648 @ 0x41800000 + 8001c0e: 6878 ldr r0, [r7, #4] + 8001c10: f7fe fffc bl 8000c0c <__aeabi_fdiv> + 8001c14: 4603 mov r3, r0 + 8001c16: 2102 movs r1, #2 + 8001c18: 4618 mov r0, r3 + 8001c1a: f000 f8fb bl 8001e14 + 8001c1e: 4603 mov r3, r0 } - 8001c50: 4618 mov r0, r3 - 8001c52: 3708 adds r7, #8 - 8001c54: 46bd mov sp, r7 - 8001c56: bd80 pop {r7, pc} - 8001c58: 20000184 .word 0x20000184 - 8001c5c: 20000174 .word 0x20000174 - 8001c60: 40533333 .word 0x40533333 - 8001c64: 457ff000 .word 0x457ff000 + 8001c20: 4618 mov r0, r3 + 8001c22: 3708 adds r7, #8 + 8001c24: 46bd mov sp, r7 + 8001c26: bd80 pop {r7, pc} + 8001c28: 200001dc .word 0x200001dc + 8001c2c: 200001cc .word 0x200001cc + 8001c30: 457ff000 .word 0x457ff000 -08001c68 : +08001c34 : * - * @param temp_dut Unused in this non-compensated version. - * @return float Calculated pH value [0.0, 14.0]. Returns 0.0 if calibration error detected. + * @return float Valor de pH calculado (0.0 a 14.0). */ -float ADSCalculate_ph_Uncompensated(void) + +float ADSCalculate_ph_Compensated(float temp_dut) { - 8001c68: b580 push {r7, lr} - 8001c6a: b084 sub sp, #16 - 8001c6c: af00 add r7, sp, #0 - /* - * 1. Convert raw ADC reading to actual voltage (Volts). - * Note: The subtraction of 2048 assumes a differential configuration - * where the midpoint is at the mid-scale of the ADS1015. - */ - float v_measured = ((float)(2048 - ADSreadADC_Differential_0_1(&i2c)) * ADS1015_ADC_VREF) / ADS1015_ADC_MAX; - 8001c6e: 482e ldr r0, [pc, #184] @ (8001d28 ) - 8001c70: f7ff ff65 bl 8001b3e + 8001c34: b590 push {r4, r7, lr} + 8001c36: b089 sub sp, #36 @ 0x24 + 8001c38: af00 add r7, sp, #0 + 8001c3a: 6078 str r0, [r7, #4] + + float dut_mV = ADSCalculate_ph_mV(); + 8001c3c: f7ff ffa4 bl 8001b88 + 8001c40: 61f8 str r0, [r7, #28] + + float t_cal_k = flash_data.ph_temperature + 273.15f; + 8001c42: 4b1c ldr r3, [pc, #112] @ (8001cb4 ) + 8001c44: 68db ldr r3, [r3, #12] + 8001c46: 491c ldr r1, [pc, #112] @ (8001cb8 ) + 8001c48: 4618 mov r0, r3 + 8001c4a: f7fe fe23 bl 8000894 <__addsf3> + 8001c4e: 4603 mov r3, r0 + 8001c50: 61bb str r3, [r7, #24] + float t_dut_k = temp_dut + 273.15f; + 8001c52: 4919 ldr r1, [pc, #100] @ (8001cb8 ) + 8001c54: 6878 ldr r0, [r7, #4] + 8001c56: f7fe fe1d bl 8000894 <__addsf3> + 8001c5a: 4603 mov r3, r0 + 8001c5c: 617b str r3, [r7, #20] + + float slope_dut = flash_data.ph_slope_mV * (t_dut_k / t_cal_k); + 8001c5e: 4b15 ldr r3, [pc, #84] @ (8001cb4 ) + 8001c60: 691c ldr r4, [r3, #16] + 8001c62: 69b9 ldr r1, [r7, #24] + 8001c64: 6978 ldr r0, [r7, #20] + 8001c66: f7fe ffd1 bl 8000c0c <__aeabi_fdiv> + 8001c6a: 4603 mov r3, r0 + 8001c6c: 4619 mov r1, r3 + 8001c6e: 4620 mov r0, r4 + 8001c70: f7fe ff18 bl 8000aa4 <__aeabi_fmul> 8001c74: 4603 mov r3, r0 - 8001c76: f5c3 6300 rsb r3, r3, #2048 @ 0x800 - 8001c7a: 4618 mov r0, r3 - 8001c7c: f7fe febe bl 80009fc <__aeabi_i2f> - 8001c80: 4603 mov r3, r0 - 8001c82: 492a ldr r1, [pc, #168] @ (8001d2c ) - 8001c84: 4618 mov r0, r3 - 8001c86: f7fe ff0d bl 8000aa4 <__aeabi_fmul> - 8001c8a: 4603 mov r3, r0 - 8001c8c: 4928 ldr r1, [pc, #160] @ (8001d30 ) - 8001c8e: 4618 mov r0, r3 - 8001c90: f7fe ffbc bl 8000c0c <__aeabi_fdiv> - 8001c94: 4603 mov r3, r0 - 8001c96: 60bb str r3, [r7, #8] - /* - * 2. Calculate the original Slope (measured during calibration). - * PH_DELTA_CALIB is a constant representing the pH difference between - * calibration points (e.g., |7.0 - 4.0| = 3.0). - */ - float delta_v_calib = flash_data.ph7_volts - flash_data.ph4_volts; - 8001c98: 4b26 ldr r3, [pc, #152] @ (8001d34 ) - 8001c9a: 689b ldr r3, [r3, #8] - 8001c9c: 4a25 ldr r2, [pc, #148] @ (8001d34 ) - 8001c9e: 6852 ldr r2, [r2, #4] - 8001ca0: 4611 mov r1, r2 - 8001ca2: 4618 mov r0, r3 - 8001ca4: f7fe fdf4 bl 8000890 <__aeabi_fsub> + 8001c76: 613b str r3, [r7, #16] + + float ph_result = (flash_data.ph7_real + ((dut_mV - flash_data.ph7_mV) / slope_dut)); + 8001c78: 4b0e ldr r3, [pc, #56] @ (8001cb4 ) + 8001c7a: 695c ldr r4, [r3, #20] + 8001c7c: 4b0d ldr r3, [pc, #52] @ (8001cb4 ) + 8001c7e: 689b ldr r3, [r3, #8] + 8001c80: 4619 mov r1, r3 + 8001c82: 69f8 ldr r0, [r7, #28] + 8001c84: f7fe fe04 bl 8000890 <__aeabi_fsub> + 8001c88: 4603 mov r3, r0 + 8001c8a: 6939 ldr r1, [r7, #16] + 8001c8c: 4618 mov r0, r3 + 8001c8e: f7fe ffbd bl 8000c0c <__aeabi_fdiv> + 8001c92: 4603 mov r3, r0 + 8001c94: 4619 mov r1, r3 + 8001c96: 4620 mov r0, r4 + 8001c98: f7fe fdfc bl 8000894 <__addsf3> + 8001c9c: 4603 mov r3, r0 + 8001c9e: 60fb str r3, [r7, #12] + + return (ADSRound_Float_Precision(ph_result,2)); + 8001ca0: 2102 movs r1, #2 + 8001ca2: 68f8 ldr r0, [r7, #12] + 8001ca4: f000 f8b6 bl 8001e14 8001ca8: 4603 mov r3, r0 - 8001caa: 607b str r3, [r7, #4] - /* Safety check: Prevent division by zero if calibration data is invalid */ - if (delta_v_calib == 0.0f) - 8001cac: f04f 0100 mov.w r1, #0 - 8001cb0: 6878 ldr r0, [r7, #4] - 8001cb2: f7ff f88b bl 8000dcc <__aeabi_fcmpeq> - 8001cb6: 4603 mov r3, r0 - 8001cb8: 2b00 cmp r3, #0 - 8001cba: d002 beq.n 8001cc2 - { - return 0.0f; - 8001cbc: f04f 0300 mov.w r3, #0 - 8001cc0: e02d b.n 8001d1e - } - - /* Slope = Delta pH / Delta Voltage */ - float slope_at_calib = PH_DELTA_CALIB / delta_v_calib; - 8001cc2: 6879 ldr r1, [r7, #4] - 8001cc4: 481c ldr r0, [pc, #112] @ (8001d38 ) - 8001cc6: f7fe ffa1 bl 8000c0c <__aeabi_fdiv> - 8001cca: 4603 mov r3, r0 - 8001ccc: 603b str r3, [r7, #0] - /* - * 3. Final pH Calculation (Non-compensated) - * Formula: pH = pH_ref + (V_measured - V_ref_7) * Slope - * Where pH_ref is 7.0. - */ - float ph_result = 7.0f + ((v_measured - flash_data.ph7_volts) * slope_at_calib); - 8001cce: 4b19 ldr r3, [pc, #100] @ (8001d34 ) - 8001cd0: 689b ldr r3, [r3, #8] - 8001cd2: 4619 mov r1, r3 - 8001cd4: 68b8 ldr r0, [r7, #8] - 8001cd6: f7fe fddb bl 8000890 <__aeabi_fsub> - 8001cda: 4603 mov r3, r0 - 8001cdc: 6839 ldr r1, [r7, #0] - 8001cde: 4618 mov r0, r3 - 8001ce0: f7fe fee0 bl 8000aa4 <__aeabi_fmul> - 8001ce4: 4603 mov r3, r0 - 8001ce6: 4915 ldr r1, [pc, #84] @ (8001d3c ) - 8001ce8: 4618 mov r0, r3 - 8001cea: f7fe fdd3 bl 8000894 <__addsf3> - 8001cee: 4603 mov r3, r0 - 8001cf0: 60fb str r3, [r7, #12] - - /* 4. Clamping (Ensure physical limits of the pH scale) */ - if (ph_result < 0.0f) - 8001cf2: f04f 0100 mov.w r1, #0 - 8001cf6: 68f8 ldr r0, [r7, #12] - 8001cf8: f7ff f872 bl 8000de0 <__aeabi_fcmplt> - 8001cfc: 4603 mov r3, r0 - 8001cfe: 2b00 cmp r3, #0 - 8001d00: d003 beq.n 8001d0a - { - ph_result = 0.0f; - 8001d02: f04f 0300 mov.w r3, #0 - 8001d06: 60fb str r3, [r7, #12] - 8001d08: e008 b.n 8001d1c - } - else if (ph_result > 14.0f) - 8001d0a: 490d ldr r1, [pc, #52] @ (8001d40 ) - 8001d0c: 68f8 ldr r0, [r7, #12] - 8001d0e: f7ff f885 bl 8000e1c <__aeabi_fcmpgt> - 8001d12: 4603 mov r3, r0 - 8001d14: 2b00 cmp r3, #0 - 8001d16: d001 beq.n 8001d1c - { - ph_result = 14.0f; - 8001d18: 4b09 ldr r3, [pc, #36] @ (8001d40 ) - 8001d1a: 60fb str r3, [r7, #12] - } - - return ph_result; - 8001d1c: 68fb ldr r3, [r7, #12] } - 8001d1e: 4618 mov r0, r3 - 8001d20: 3710 adds r7, #16 - 8001d22: 46bd mov sp, r7 - 8001d24: bd80 pop {r7, pc} - 8001d26: bf00 nop - 8001d28: 20000174 .word 0x20000174 - 8001d2c: 40533333 .word 0x40533333 - 8001d30: 457ff000 .word 0x457ff000 - 8001d34: 200001ac .word 0x200001ac - 8001d38: 40400000 .word 0x40400000 - 8001d3c: 40e00000 .word 0x40e00000 - 8001d40: 41600000 .word 0x41600000 + 8001caa: 4618 mov r0, r3 + 8001cac: 3724 adds r7, #36 @ 0x24 + 8001cae: 46bd mov sp, r7 + 8001cb0: bd90 pop {r4, r7, pc} + 8001cb2: bf00 nop + 8001cb4: 20000224 .word 0x20000224 + 8001cb8: 43889333 .word 0x43889333 -08001d44 : +08001cbc : + * @param temp_target The target temperature to interpolate for. + * @param row_index Index of the buffer row (1 for pH4, 2 for pH7). + * @return float Interpolated value from the matrix. + */ +float ADSinterpolate_ph(float temp_target, uint8_t row_index) +{ + 8001cbc: b5b0 push {r4, r5, r7, lr} + 8001cbe: b0ac sub sp, #176 @ 0xb0 + 8001cc0: af00 add r7, sp, #0 + 8001cc2: 6078 str r0, [r7, #4] + 8001cc4: 460b mov r3, r1 + 8001cc6: 70fb strb r3, [r7, #3] + + /* Matrix with {Temperature, Ph 4 Buffer, Ph 7 Buffer} */ + const float lut_matrix_buffer_ph[ADS1015_INTERPOLATION_ROWS][ADS1015_PH_TEMP_INTER_POINTS] = { + 8001cc8: 4a51 ldr r2, [pc, #324] @ (8001e10 ) + 8001cca: f107 030c add.w r3, r7, #12 + 8001cce: 4611 mov r1, r2 + 8001cd0: 2290 movs r2, #144 @ 0x90 + 8001cd2: 4618 mov r0, r3 + 8001cd4: f004 fc18 bl 8006508 + {0.0f, 5.0f, 10.0f, 15.0f, 20.0f, 25.0f, 30.0f, 35.0f, 40.0f, 45.0f, 50.0f, 55.0f}, // Temperature + {4.01f, 4.00f, 4.00f, 4.00f, 4.00f, 4.01f, 4.01f, 4.02f, 4.03f, 4.05f, 4.06f, 4.10f}, // Buffer ph 4 + {7.12f, 7.07f, 7.05f, 7.03f, 7.01f, 7.00f, 6.98f, 6.97f, 6.96f, 6.96f, 6.96f, 6.96f},}; // Buffer ph 7 + uint8_t i = 0; + 8001cd8: 2300 movs r3, #0 + 8001cda: f887 30af strb.w r3, [r7, #175] @ 0xaf + + /* Boundary Check: Clamp to first or last index if out of range */ + if (temp_target <= lut_matrix_buffer_ph[0][0]) + 8001cde: 68fb ldr r3, [r7, #12] + 8001ce0: 4619 mov r1, r3 + 8001ce2: 6878 ldr r0, [r7, #4] + 8001ce4: f7ff f886 bl 8000df4 <__aeabi_fcmple> + 8001ce8: 4603 mov r3, r0 + 8001cea: 2b00 cmp r3, #0 + 8001cec: d009 beq.n 8001d02 + return lut_matrix_buffer_ph[row_index][0]; + 8001cee: 78fa ldrb r2, [r7, #3] + 8001cf0: 4613 mov r3, r2 + 8001cf2: 005b lsls r3, r3, #1 + 8001cf4: 4413 add r3, r2 + 8001cf6: 011b lsls r3, r3, #4 + 8001cf8: 33b0 adds r3, #176 @ 0xb0 + 8001cfa: 443b add r3, r7 + 8001cfc: 3ba4 subs r3, #164 @ 0xa4 + 8001cfe: 681b ldr r3, [r3, #0] + 8001d00: e082 b.n 8001e08 + if (temp_target >= lut_matrix_buffer_ph[0][ADS1015_PH_TEMP_INTER_POINTS-1]) + 8001d02: 6bbb ldr r3, [r7, #56] @ 0x38 + 8001d04: 4619 mov r1, r3 + 8001d06: 6878 ldr r0, [r7, #4] + 8001d08: f7ff f87e bl 8000e08 <__aeabi_fcmpge> + 8001d0c: 4603 mov r3, r0 + 8001d0e: 2b00 cmp r3, #0 + 8001d10: d009 beq.n 8001d26 + return lut_matrix_buffer_ph[row_index][ADS1015_PH_TEMP_INTER_POINTS-1]; + 8001d12: 78fa ldrb r2, [r7, #3] + 8001d14: 4613 mov r3, r2 + 8001d16: 005b lsls r3, r3, #1 + 8001d18: 4413 add r3, r2 + 8001d1a: 011b lsls r3, r3, #4 + 8001d1c: 33b0 adds r3, #176 @ 0xb0 + 8001d1e: 443b add r3, r7 + 8001d20: 3b78 subs r3, #120 @ 0x78 + 8001d22: 681b ldr r3, [r3, #0] + 8001d24: e070 b.n 8001e08 + + /* Find interpolation interval */ + while (i < (ADS1015_PH_TEMP_INTER_POINTS-1) && lut_matrix_buffer_ph[0][i+1] < temp_target) + 8001d26: e004 b.n 8001d32 + { + i++; + 8001d28: f897 30af ldrb.w r3, [r7, #175] @ 0xaf + 8001d2c: 3301 adds r3, #1 + 8001d2e: f887 30af strb.w r3, [r7, #175] @ 0xaf + while (i < (ADS1015_PH_TEMP_INTER_POINTS-1) && lut_matrix_buffer_ph[0][i+1] < temp_target) + 8001d32: f897 30af ldrb.w r3, [r7, #175] @ 0xaf + 8001d36: 2b0a cmp r3, #10 + 8001d38: d80e bhi.n 8001d58 + 8001d3a: f897 30af ldrb.w r3, [r7, #175] @ 0xaf + 8001d3e: 3301 adds r3, #1 + 8001d40: 009b lsls r3, r3, #2 + 8001d42: 33b0 adds r3, #176 @ 0xb0 + 8001d44: 443b add r3, r7 + 8001d46: f853 3ca4 ldr.w r3, [r3, #-164] + 8001d4a: 4619 mov r1, r3 + 8001d4c: 6878 ldr r0, [r7, #4] + 8001d4e: f7ff f865 bl 8000e1c <__aeabi_fcmpgt> + 8001d52: 4603 mov r3, r0 + 8001d54: 2b00 cmp r3, #0 + 8001d56: d1e7 bne.n 8001d28 + } + + float x0 = lut_matrix_buffer_ph[0][i]; + 8001d58: f897 30af ldrb.w r3, [r7, #175] @ 0xaf + 8001d5c: 009b lsls r3, r3, #2 + 8001d5e: 33b0 adds r3, #176 @ 0xb0 + 8001d60: 443b add r3, r7 + 8001d62: f853 3ca4 ldr.w r3, [r3, #-164] + 8001d66: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + float x1 = lut_matrix_buffer_ph[0][i+1]; + 8001d6a: f897 30af ldrb.w r3, [r7, #175] @ 0xaf + 8001d6e: 3301 adds r3, #1 + 8001d70: 009b lsls r3, r3, #2 + 8001d72: 33b0 adds r3, #176 @ 0xb0 + 8001d74: 443b add r3, r7 + 8001d76: f853 3ca4 ldr.w r3, [r3, #-164] + 8001d7a: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + float y0 = lut_matrix_buffer_ph[row_index][i]; + 8001d7e: 78fa ldrb r2, [r7, #3] + 8001d80: f897 10af ldrb.w r1, [r7, #175] @ 0xaf + 8001d84: 4613 mov r3, r2 + 8001d86: 005b lsls r3, r3, #1 + 8001d88: 4413 add r3, r2 + 8001d8a: 009b lsls r3, r3, #2 + 8001d8c: 440b add r3, r1 + 8001d8e: 009b lsls r3, r3, #2 + 8001d90: 33b0 adds r3, #176 @ 0xb0 + 8001d92: 443b add r3, r7 + 8001d94: f853 3ca4 ldr.w r3, [r3, #-164] + 8001d98: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 + float y1 = lut_matrix_buffer_ph[row_index][i+1]; + 8001d9c: 78fa ldrb r2, [r7, #3] + 8001d9e: f897 30af ldrb.w r3, [r7, #175] @ 0xaf + 8001da2: 1c59 adds r1, r3, #1 + 8001da4: 4613 mov r3, r2 + 8001da6: 005b lsls r3, r3, #1 + 8001da8: 4413 add r3, r2 + 8001daa: 009b lsls r3, r3, #2 + 8001dac: 440b add r3, r1 + 8001dae: 009b lsls r3, r3, #2 + 8001db0: 33b0 adds r3, #176 @ 0xb0 + 8001db2: 443b add r3, r7 + 8001db4: f853 3ca4 ldr.w r3, [r3, #-164] + 8001db8: f8c7 309c str.w r3, [r7, #156] @ 0x9c + + /* Linear Interpolation: y = y0 + (x - x0) * ((y1 - y_0) / (x1 - x0)) */ + return y0 + (temp_target - x0) * ((y1 - y0) / (x1 - x0)); + 8001dbc: f8d7 10a8 ldr.w r1, [r7, #168] @ 0xa8 + 8001dc0: 6878 ldr r0, [r7, #4] + 8001dc2: f7fe fd65 bl 8000890 <__aeabi_fsub> + 8001dc6: 4603 mov r3, r0 + 8001dc8: 461c mov r4, r3 + 8001dca: f8d7 10a0 ldr.w r1, [r7, #160] @ 0xa0 + 8001dce: f8d7 009c ldr.w r0, [r7, #156] @ 0x9c + 8001dd2: f7fe fd5d bl 8000890 <__aeabi_fsub> + 8001dd6: 4603 mov r3, r0 + 8001dd8: 461d mov r5, r3 + 8001dda: f8d7 10a8 ldr.w r1, [r7, #168] @ 0xa8 + 8001dde: f8d7 00a4 ldr.w r0, [r7, #164] @ 0xa4 + 8001de2: f7fe fd55 bl 8000890 <__aeabi_fsub> + 8001de6: 4603 mov r3, r0 + 8001de8: 4619 mov r1, r3 + 8001dea: 4628 mov r0, r5 + 8001dec: f7fe ff0e bl 8000c0c <__aeabi_fdiv> + 8001df0: 4603 mov r3, r0 + 8001df2: 4619 mov r1, r3 + 8001df4: 4620 mov r0, r4 + 8001df6: f7fe fe55 bl 8000aa4 <__aeabi_fmul> + 8001dfa: 4603 mov r3, r0 + 8001dfc: f8d7 10a0 ldr.w r1, [r7, #160] @ 0xa0 + 8001e00: 4618 mov r0, r3 + 8001e02: f7fe fd47 bl 8000894 <__addsf3> + 8001e06: 4603 mov r3, r0 +} + 8001e08: 4618 mov r0, r3 + 8001e0a: 37b0 adds r7, #176 @ 0xb0 + 8001e0c: 46bd mov sp, r7 + 8001e0e: bdb0 pop {r4, r5, r7, pc} + 8001e10: 08006704 .word 0x08006704 + +08001e14 : + * @param valor O valor float original. + * @param casas_decimais Quantidade de casas que devem permanecer após a vírgula. + * @return float O valor com as casas decimais excedentes removidas. + */ +float ADSRound_Float_Precision(float value, uint8_t number_of_decimals) +{ + 8001e14: b580 push {r7, lr} + 8001e16: b084 sub sp, #16 + 8001e18: af00 add r7, sp, #0 + 8001e1a: 6078 str r0, [r7, #4] + 8001e1c: 460b mov r3, r1 + 8001e1e: 70fb strb r3, [r7, #3] + float multiply = 1.0f; + 8001e20: f04f 537e mov.w r3, #1065353216 @ 0x3f800000 + 8001e24: 60fb str r3, [r7, #12] + + for (uint8_t i = 0; i < number_of_decimals; i++) + 8001e26: 2300 movs r3, #0 + 8001e28: 72fb strb r3, [r7, #11] + 8001e2a: e008 b.n 8001e3e + multiply *= 10.0f; + 8001e2c: 490f ldr r1, [pc, #60] @ (8001e6c ) + 8001e2e: 68f8 ldr r0, [r7, #12] + 8001e30: f7fe fe38 bl 8000aa4 <__aeabi_fmul> + 8001e34: 4603 mov r3, r0 + 8001e36: 60fb str r3, [r7, #12] + for (uint8_t i = 0; i < number_of_decimals; i++) + 8001e38: 7afb ldrb r3, [r7, #11] + 8001e3a: 3301 adds r3, #1 + 8001e3c: 72fb strb r3, [r7, #11] + 8001e3e: 7afa ldrb r2, [r7, #11] + 8001e40: 78fb ldrb r3, [r7, #3] + 8001e42: 429a cmp r2, r3 + 8001e44: d3f2 bcc.n 8001e2c + + return roundf(value * multiply) / multiply; + 8001e46: 68f9 ldr r1, [r7, #12] + 8001e48: 6878 ldr r0, [r7, #4] + 8001e4a: f7fe fe2b bl 8000aa4 <__aeabi_fmul> + 8001e4e: 4603 mov r3, r0 + 8001e50: 4618 mov r0, r3 + 8001e52: f004 fbf7 bl 8006644 + 8001e56: 4603 mov r3, r0 + 8001e58: 68f9 ldr r1, [r7, #12] + 8001e5a: 4618 mov r0, r3 + 8001e5c: f7fe fed6 bl 8000c0c <__aeabi_fdiv> + 8001e60: 4603 mov r3, r0 +} + 8001e62: 4618 mov r0, r3 + 8001e64: 3710 adds r7, #16 + 8001e66: 46bd mov sp, r7 + 8001e68: bd80 pop {r7, pc} + 8001e6a: bf00 nop + 8001e6c: 41200000 .word 0x41200000 + +08001e70 : * @brief Initializes the GPIO hardware and sets initial states. * @note This function replaces the handle-based init. * @retval None */ void digital_outputs_init(void) { - 8001d44: b580 push {r7, lr} - 8001d46: b086 sub sp, #24 - 8001d48: af00 add r7, sp, #0 + 8001e70: b580 push {r7, lr} + 8001e72: b086 sub sp, #24 + 8001e74: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8001d4a: 1d3b adds r3, r7, #4 - 8001d4c: 2200 movs r2, #0 - 8001d4e: 601a str r2, [r3, #0] - 8001d50: 605a str r2, [r3, #4] - 8001d52: 609a str r2, [r3, #8] - 8001d54: 60da str r2, [r3, #12] + 8001e76: 1d3b adds r3, r7, #4 + 8001e78: 2200 movs r2, #0 + 8001e7a: 601a str r2, [r3, #0] + 8001e7c: 605a str r2, [r3, #4] + 8001e7e: 609a str r2, [r3, #8] + 8001e80: 60da str r2, [r3, #12] for (int i = 0; i < OUTPUT_PINS_COUNT; i++) { - 8001d56: 2300 movs r3, #0 - 8001d58: 617b str r3, [r7, #20] - 8001d5a: e029 b.n 8001db0 + 8001e82: 2300 movs r3, #0 + 8001e84: 617b str r3, [r7, #20] + 8001e86: e029 b.n 8001edc GPIO_InitStruct.Pin = output_pins[i].pin; - 8001d5c: 4a18 ldr r2, [pc, #96] @ (8001dc0 ) - 8001d5e: 697b ldr r3, [r7, #20] - 8001d60: 00db lsls r3, r3, #3 - 8001d62: 4413 add r3, r2 - 8001d64: 889b ldrh r3, [r3, #4] - 8001d66: 607b str r3, [r7, #4] + 8001e88: 4a18 ldr r2, [pc, #96] @ (8001eec ) + 8001e8a: 697b ldr r3, [r7, #20] + 8001e8c: 00db lsls r3, r3, #3 + 8001e8e: 4413 add r3, r2 + 8001e90: 889b ldrh r3, [r3, #4] + 8001e92: 607b str r3, [r7, #4] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_OD; // Open-drain - 8001d68: 2311 movs r3, #17 - 8001d6a: 60bb str r3, [r7, #8] + 8001e94: 2311 movs r3, #17 + 8001e96: 60bb str r3, [r7, #8] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001d6c: 2300 movs r3, #0 - 8001d6e: 60fb str r3, [r7, #12] + 8001e98: 2300 movs r3, #0 + 8001e9a: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8001d70: 2302 movs r3, #2 - 8001d72: 613b str r3, [r7, #16] + 8001e9c: 2302 movs r3, #2 + 8001e9e: 613b str r3, [r7, #16] HAL_GPIO_Init(output_pins[i].port, &GPIO_InitStruct); - 8001d74: 4a12 ldr r2, [pc, #72] @ (8001dc0 ) - 8001d76: 697b ldr r3, [r7, #20] - 8001d78: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 8001d7c: 1d3a adds r2, r7, #4 - 8001d7e: 4611 mov r1, r2 - 8001d80: 4618 mov r0, r3 - 8001d82: f001 fd73 bl 800386c + 8001ea0: 4a12 ldr r2, [pc, #72] @ (8001eec ) + 8001ea2: 697b ldr r3, [r7, #20] + 8001ea4: f852 3033 ldr.w r3, [r2, r3, lsl #3] + 8001ea8: 1d3a adds r2, r7, #4 + 8001eaa: 4611 mov r1, r2 + 8001eac: 4618 mov r0, r3 + 8001eae: f001 fe1b bl 8003ae8 // Force initial state to LOW (Reset) HAL_GPIO_WritePin(output_pins[i].port, output_pins[i].pin, GPIO_PIN_RESET); - 8001d86: 4a0e ldr r2, [pc, #56] @ (8001dc0 ) - 8001d88: 697b ldr r3, [r7, #20] - 8001d8a: f852 0033 ldr.w r0, [r2, r3, lsl #3] - 8001d8e: 4a0c ldr r2, [pc, #48] @ (8001dc0 ) - 8001d90: 697b ldr r3, [r7, #20] - 8001d92: 00db lsls r3, r3, #3 - 8001d94: 4413 add r3, r2 - 8001d96: 889b ldrh r3, [r3, #4] - 8001d98: 2200 movs r2, #0 - 8001d9a: 4619 mov r1, r3 - 8001d9c: f001 ff01 bl 8003ba2 + 8001eb2: 4a0e ldr r2, [pc, #56] @ (8001eec ) + 8001eb4: 697b ldr r3, [r7, #20] + 8001eb6: f852 0033 ldr.w r0, [r2, r3, lsl #3] + 8001eba: 4a0c ldr r2, [pc, #48] @ (8001eec ) + 8001ebc: 697b ldr r3, [r7, #20] + 8001ebe: 00db lsls r3, r3, #3 + 8001ec0: 4413 add r3, r2 + 8001ec2: 889b ldrh r3, [r3, #4] + 8001ec4: 2200 movs r2, #0 + 8001ec6: 4619 mov r1, r3 + 8001ec8: f001 ffa9 bl 8003e1e pin_states[i] = 0; - 8001da0: 4a08 ldr r2, [pc, #32] @ (8001dc4 ) - 8001da2: 697b ldr r3, [r7, #20] - 8001da4: 4413 add r3, r2 - 8001da6: 2200 movs r2, #0 - 8001da8: 701a strb r2, [r3, #0] + 8001ecc: 4a08 ldr r2, [pc, #32] @ (8001ef0 ) + 8001ece: 697b ldr r3, [r7, #20] + 8001ed0: 4413 add r3, r2 + 8001ed2: 2200 movs r2, #0 + 8001ed4: 701a strb r2, [r3, #0] for (int i = 0; i < OUTPUT_PINS_COUNT; i++) { - 8001daa: 697b ldr r3, [r7, #20] - 8001dac: 3301 adds r3, #1 - 8001dae: 617b str r3, [r7, #20] - 8001db0: 697b ldr r3, [r7, #20] - 8001db2: 2b07 cmp r3, #7 - 8001db4: ddd2 ble.n 8001d5c + 8001ed6: 697b ldr r3, [r7, #20] + 8001ed8: 3301 adds r3, #1 + 8001eda: 617b str r3, [r7, #20] + 8001edc: 697b ldr r3, [r7, #20] + 8001ede: 2b07 cmp r3, #7 + 8001ee0: ddd2 ble.n 8001e88 } } - 8001db6: bf00 nop - 8001db8: bf00 nop - 8001dba: 3718 adds r7, #24 - 8001dbc: 46bd mov sp, r7 - 8001dbe: bd80 pop {r7, pc} - 8001dc0: 08006428 .word 0x08006428 - 8001dc4: 200001a4 .word 0x200001a4 + 8001ee2: bf00 nop + 8001ee4: bf00 nop + 8001ee6: 3718 adds r7, #24 + 8001ee8: 46bd mov sp, r7 + 8001eea: bd80 pop {r7, pc} + 8001eec: 080067a4 .word 0x080067a4 + 8001ef0: 2000021c .word 0x2000021c -08001dc8 : +08001ef4 : * @return HAL_OK em caso de sucesso. */ FlashPage_t flash_data; HAL_StatusTypeDef Flash_Save_Page(FlashPage_t *pPage) { - 8001dc8: b5b0 push {r4, r5, r7, lr} - 8001dca: b08c sub sp, #48 @ 0x30 - 8001dcc: af00 add r7, sp, #0 - 8001dce: 6078 str r0, [r7, #4] + 8001ef4: b5b0 push {r4, r5, r7, lr} + 8001ef6: b08c sub sp, #48 @ 0x30 + 8001ef8: af00 add r7, sp, #0 + 8001efa: 6078 str r0, [r7, #4] if (pPage == NULL) return HAL_ERROR; - 8001dd0: 687b ldr r3, [r7, #4] - 8001dd2: 2b00 cmp r3, #0 - 8001dd4: d101 bne.n 8001dda - 8001dd6: 2301 movs r3, #1 - 8001dd8: e04a b.n 8001e70 + 8001efc: 687b ldr r3, [r7, #4] + 8001efe: 2b00 cmp r3, #0 + 8001f00: d101 bne.n 8001f06 + 8001f02: 2301 movs r3, #1 + 8001f04: e04a b.n 8001f9c HAL_StatusTypeDef status = HAL_OK; - 8001dda: 2300 movs r3, #0 - 8001ddc: f887 302f strb.w r3, [r7, #47] @ 0x2f + 8001f06: 2300 movs r3, #0 + 8001f08: f887 302f strb.w r3, [r7, #47] @ 0x2f HAL_FLASH_Unlock(); - 8001de0: f001 fbb4 bl 800354c + 8001f0c: f001 fc5c bl 80037c8 // 1. Apagar a página inteira (limpa os 1024 bytes) FLASH_EraseInitTypeDef EraseInitStruct; uint32_t PageError = 0; - 8001de4: 2300 movs r3, #0 - 8001de6: 60bb str r3, [r7, #8] + 8001f10: 2300 movs r3, #0 + 8001f12: 60bb str r3, [r7, #8] EraseInitStruct.TypeErase = FLASH_TYPEERASE_PAGES; - 8001de8: 2300 movs r3, #0 - 8001dea: 60fb str r3, [r7, #12] + 8001f14: 2300 movs r3, #0 + 8001f16: 60fb str r3, [r7, #12] EraseInitStruct.PageAddress = FLASH_PAGE_ADDR; - 8001dec: 4b22 ldr r3, [pc, #136] @ (8001e78 ) - 8001dee: 617b str r3, [r7, #20] + 8001f18: 4b22 ldr r3, [pc, #136] @ (8001fa4 ) + 8001f1a: 617b str r3, [r7, #20] EraseInitStruct.NbPages = 1; - 8001df0: 2301 movs r3, #1 - 8001df2: 61bb str r3, [r7, #24] + 8001f1c: 2301 movs r3, #1 + 8001f1e: 61bb str r3, [r7, #24] if (HAL_FLASHEx_Erase(&EraseInitStruct, &PageError) != HAL_OK) { - 8001df4: f107 0208 add.w r2, r7, #8 - 8001df8: f107 030c add.w r3, r7, #12 - 8001dfc: 4611 mov r1, r2 - 8001dfe: 4618 mov r0, r3 - 8001e00: f001 fc8c bl 800371c - 8001e04: 4603 mov r3, r0 - 8001e06: 2b00 cmp r3, #0 - 8001e08: d003 beq.n 8001e12 + 8001f20: f107 0208 add.w r2, r7, #8 + 8001f24: f107 030c add.w r3, r7, #12 + 8001f28: 4611 mov r1, r2 + 8001f2a: 4618 mov r0, r3 + 8001f2c: f001 fd34 bl 8003998 + 8001f30: 4603 mov r3, r0 + 8001f32: 2b00 cmp r3, #0 + 8001f34: d003 beq.n 8001f3e status = HAL_ERROR; - 8001e0a: 2301 movs r3, #1 - 8001e0c: f887 302f strb.w r3, [r7, #47] @ 0x2f + 8001f36: 2301 movs r3, #1 + 8001f38: f887 302f strb.w r3, [r7, #47] @ 0x2f goto Exit; - 8001e10: e02a b.n 8001e68 + 8001f3c: e02a b.n 8001f94 // 2. Gravar o bloco de 1KB // Como a estrutura é exatamente 1KB e alinhada, podemos tratar como um array de uint32_t. // O STM32F1 grava preferencialmente em DoubleWord (64-bit), mas HalfWord (16-bit) // funciona de forma segura para qualquer tamanho múltiplo de 2. uint32_t *pSrc = (uint32_t *)pPage; - 8001e12: 687b ldr r3, [r7, #4] - 8001e14: 627b str r3, [r7, #36] @ 0x24 + 8001f3e: 687b ldr r3, [r7, #4] + 8001f40: 627b str r3, [r7, #36] @ 0x24 uint32_t *pDest = (uint32_t *)FLASH_PAGE_ADDR; - 8001e16: 4b18 ldr r3, [pc, #96] @ (8001e78 ) - 8001e18: 623b str r3, [r7, #32] + 8001f42: 4b18 ldr r3, [pc, #96] @ (8001fa4 ) + 8001f44: 623b str r3, [r7, #32] uint32_t iterations = FLASH_PAGE_SIZE / sizeof(uint32_t); // 1024 / 4 = 256 iterações - 8001e1a: f44f 7380 mov.w r3, #256 @ 0x100 - 8001e1e: 61fb str r3, [r7, #28] + 8001f46: f44f 7380 mov.w r3, #256 @ 0x100 + 8001f4a: 61fb str r3, [r7, #28] for (uint32_t i = 0; i < iterations; i++) { - 8001e20: 2300 movs r3, #0 - 8001e22: 62bb str r3, [r7, #40] @ 0x28 - 8001e24: e01b b.n 8001e5e + 8001f4c: 2300 movs r3, #0 + 8001f4e: 62bb str r3, [r7, #40] @ 0x28 + 8001f50: e01b b.n 8001f8a // Usamos o modo de gravação de 32-bit (Word) se disponível, // ou simulamos com duas gravações de 16-bit para máxima compatuidade no F1. if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, (uint32_t)&pDest[i], pSrc[i]) != HAL_OK) { - 8001e26: 6abb ldr r3, [r7, #40] @ 0x28 - 8001e28: 009b lsls r3, r3, #2 - 8001e2a: 6a3a ldr r2, [r7, #32] - 8001e2c: 4413 add r3, r2 - 8001e2e: 4619 mov r1, r3 - 8001e30: 6abb ldr r3, [r7, #40] @ 0x28 - 8001e32: 009b lsls r3, r3, #2 - 8001e34: 6a7a ldr r2, [r7, #36] @ 0x24 - 8001e36: 4413 add r3, r2 - 8001e38: 681b ldr r3, [r3, #0] - 8001e3a: 2200 movs r2, #0 - 8001e3c: 461c mov r4, r3 - 8001e3e: 4615 mov r5, r2 - 8001e40: 4622 mov r2, r4 - 8001e42: 462b mov r3, r5 - 8001e44: 2002 movs r0, #2 - 8001e46: f001 fb11 bl 800346c - 8001e4a: 4603 mov r3, r0 - 8001e4c: 2b00 cmp r3, #0 - 8001e4e: d003 beq.n 8001e58 + 8001f52: 6abb ldr r3, [r7, #40] @ 0x28 + 8001f54: 009b lsls r3, r3, #2 + 8001f56: 6a3a ldr r2, [r7, #32] + 8001f58: 4413 add r3, r2 + 8001f5a: 4619 mov r1, r3 + 8001f5c: 6abb ldr r3, [r7, #40] @ 0x28 + 8001f5e: 009b lsls r3, r3, #2 + 8001f60: 6a7a ldr r2, [r7, #36] @ 0x24 + 8001f62: 4413 add r3, r2 + 8001f64: 681b ldr r3, [r3, #0] + 8001f66: 2200 movs r2, #0 + 8001f68: 461c mov r4, r3 + 8001f6a: 4615 mov r5, r2 + 8001f6c: 4622 mov r2, r4 + 8001f6e: 462b mov r3, r5 + 8001f70: 2002 movs r0, #2 + 8001f72: f001 fbb9 bl 80036e8 + 8001f76: 4603 mov r3, r0 + 8001f78: 2b00 cmp r3, #0 + 8001f7a: d003 beq.n 8001f84 status = HAL_ERROR; - 8001e50: 2301 movs r3, #1 - 8001e52: f887 302f strb.w r3, [r7, #47] @ 0x2f + 8001f7c: 2301 movs r3, #1 + 8001f7e: f887 302f strb.w r3, [r7, #47] @ 0x2f break; - 8001e56: e007 b.n 8001e68 + 8001f82: e007 b.n 8001f94 for (uint32_t i = 0; i < iterations; i++) { - 8001e58: 6abb ldr r3, [r7, #40] @ 0x28 - 8001e5a: 3301 adds r3, #1 - 8001e5c: 62bb str r3, [r7, #40] @ 0x28 - 8001e5e: 6aba ldr r2, [r7, #40] @ 0x28 - 8001e60: 69fb ldr r3, [r7, #28] - 8001e62: 429a cmp r2, r3 - 8001e64: d3df bcc.n 8001e26 + 8001f84: 6abb ldr r3, [r7, #40] @ 0x28 + 8001f86: 3301 adds r3, #1 + 8001f88: 62bb str r3, [r7, #40] @ 0x28 + 8001f8a: 6aba ldr r2, [r7, #40] @ 0x28 + 8001f8c: 69fb ldr r3, [r7, #28] + 8001f8e: 429a cmp r2, r3 + 8001f90: d3df bcc.n 8001f52 } } Exit: - 8001e66: bf00 nop + 8001f92: bf00 nop HAL_FLASH_Lock(); - 8001e68: f001 fb96 bl 8003598 + 8001f94: f001 fc3e bl 8003814 return status; - 8001e6c: f897 302f ldrb.w r3, [r7, #47] @ 0x2f + 8001f98: f897 302f ldrb.w r3, [r7, #47] @ 0x2f } - 8001e70: 4618 mov r0, r3 - 8001e72: 3730 adds r7, #48 @ 0x30 - 8001e74: 46bd mov sp, r7 - 8001e76: bdb0 pop {r4, r5, r7, pc} - 8001e78: 0800fc00 .word 0x0800fc00 + 8001f9c: 4618 mov r0, r3 + 8001f9e: 3730 adds r7, #48 @ 0x30 + 8001fa0: 46bd mov sp, r7 + 8001fa2: bdb0 pop {r4, r5, r7, pc} + 8001fa4: 0800fc00 .word 0x0800fc00 -08001e7c : +08001fa8 : /** * @brief Lê a página da Flash para a RAM. */ HAL_StatusTypeDef Flash_Load_Page(FlashPage_t *pDest) { - 8001e7c: b580 push {r7, lr} - 8001e7e: b082 sub sp, #8 - 8001e80: af00 add r7, sp, #0 - 8001e82: 6078 str r0, [r7, #4] + 8001fa8: b580 push {r7, lr} + 8001faa: b082 sub sp, #8 + 8001fac: af00 add r7, sp, #0 + 8001fae: 6078 str r0, [r7, #4] if (pDest == NULL) return HAL_ERROR; - 8001e84: 687b ldr r3, [r7, #4] - 8001e86: 2b00 cmp r3, #0 - 8001e88: d101 bne.n 8001e8e - 8001e8a: 2301 movs r3, #1 - 8001e8c: e00d b.n 8001eaa + 8001fb0: 687b ldr r3, [r7, #4] + 8001fb2: 2b00 cmp r3, #0 + 8001fb4: d101 bne.n 8001fba + 8001fb6: 2301 movs r3, #1 + 8001fb8: e00d b.n 8001fd6 // Leitura direta por memcpy (A Flash é mapeada no espaço de endereçamento comum) memcpy(pDest, (void *)FLASH_PAGE_ADDR, FLASH_PAGE_SIZE); - 8001e8e: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001e92: 4908 ldr r1, [pc, #32] @ (8001eb4 ) - 8001e94: 6878 ldr r0, [r7, #4] - 8001e96: f004 f9f9 bl 800628c + 8001fba: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001fbe: 4908 ldr r1, [pc, #32] @ (8001fe0 ) + 8001fc0: 6878 ldr r0, [r7, #4] + 8001fc2: f004 faa1 bl 8006508 // Validação da integridade através do Magic Number if (pDest->magic_number != 0xDEADBEEF) { - 8001e9a: 687b ldr r3, [r7, #4] - 8001e9c: 681b ldr r3, [r3, #0] - 8001e9e: 4a06 ldr r2, [pc, #24] @ (8001eb8 ) - 8001ea0: 4293 cmp r3, r2 - 8001ea2: d001 beq.n 8001ea8 + 8001fc6: 687b ldr r3, [r7, #4] + 8001fc8: 681b ldr r3, [r3, #0] + 8001fca: 4a06 ldr r2, [pc, #24] @ (8001fe4 ) + 8001fcc: 4293 cmp r3, r2 + 8001fce: d001 beq.n 8001fd4 return HAL_ERROR; - 8001ea4: 2301 movs r3, #1 - 8001ea6: e000 b.n 8001eaa + 8001fd0: 2301 movs r3, #1 + 8001fd2: e000 b.n 8001fd6 } return HAL_OK; - 8001ea8: 2300 movs r3, #0 + 8001fd4: 2300 movs r3, #0 } - 8001eaa: 4618 mov r0, r3 - 8001eac: 3708 adds r7, #8 - 8001eae: 46bd mov sp, r7 - 8001eb0: bd80 pop {r7, pc} - 8001eb2: bf00 nop - 8001eb4: 0800fc00 .word 0x0800fc00 - 8001eb8: deadbeef .word 0xdeadbeef + 8001fd6: 4618 mov r0, r3 + 8001fd8: 3708 adds r7, #8 + 8001fda: 46bd mov sp, r7 + 8001fdc: bd80 pop {r7, pc} + 8001fde: bf00 nop + 8001fe0: 0800fc00 .word 0x0800fc00 + 8001fe4: deadbeef .word 0xdeadbeef -08001ebc : +08001fe8 : * EXTI * Free pins are configured automatically as Analog (this feature is enabled through * the Code Generation settings) */ void MX_GPIO_Init(void) { - 8001ebc: b580 push {r7, lr} - 8001ebe: b088 sub sp, #32 - 8001ec0: af00 add r7, sp, #0 + 8001fe8: b580 push {r7, lr} + 8001fea: b088 sub sp, #32 + 8001fec: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8001ec2: f107 0310 add.w r3, r7, #16 - 8001ec6: 2200 movs r2, #0 - 8001ec8: 601a str r2, [r3, #0] - 8001eca: 605a str r2, [r3, #4] - 8001ecc: 609a str r2, [r3, #8] - 8001ece: 60da str r2, [r3, #12] + 8001fee: f107 0310 add.w r3, r7, #16 + 8001ff2: 2200 movs r2, #0 + 8001ff4: 601a str r2, [r3, #0] + 8001ff6: 605a str r2, [r3, #4] + 8001ff8: 609a str r2, [r3, #8] + 8001ffa: 60da str r2, [r3, #12] /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOC_CLK_ENABLE(); - 8001ed0: 4b46 ldr r3, [pc, #280] @ (8001fec ) - 8001ed2: 699b ldr r3, [r3, #24] - 8001ed4: 4a45 ldr r2, [pc, #276] @ (8001fec ) - 8001ed6: f043 0310 orr.w r3, r3, #16 - 8001eda: 6193 str r3, [r2, #24] - 8001edc: 4b43 ldr r3, [pc, #268] @ (8001fec ) - 8001ede: 699b ldr r3, [r3, #24] - 8001ee0: f003 0310 and.w r3, r3, #16 - 8001ee4: 60fb str r3, [r7, #12] - 8001ee6: 68fb ldr r3, [r7, #12] + 8001ffc: 4b46 ldr r3, [pc, #280] @ (8002118 ) + 8001ffe: 699b ldr r3, [r3, #24] + 8002000: 4a45 ldr r2, [pc, #276] @ (8002118 ) + 8002002: f043 0310 orr.w r3, r3, #16 + 8002006: 6193 str r3, [r2, #24] + 8002008: 4b43 ldr r3, [pc, #268] @ (8002118 ) + 800200a: 699b ldr r3, [r3, #24] + 800200c: f003 0310 and.w r3, r3, #16 + 8002010: 60fb str r3, [r7, #12] + 8002012: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOD_CLK_ENABLE(); - 8001ee8: 4b40 ldr r3, [pc, #256] @ (8001fec ) - 8001eea: 699b ldr r3, [r3, #24] - 8001eec: 4a3f ldr r2, [pc, #252] @ (8001fec ) - 8001eee: f043 0320 orr.w r3, r3, #32 - 8001ef2: 6193 str r3, [r2, #24] - 8001ef4: 4b3d ldr r3, [pc, #244] @ (8001fec ) - 8001ef6: 699b ldr r3, [r3, #24] - 8001ef8: f003 0320 and.w r3, r3, #32 - 8001efc: 60bb str r3, [r7, #8] - 8001efe: 68bb ldr r3, [r7, #8] + 8002014: 4b40 ldr r3, [pc, #256] @ (8002118 ) + 8002016: 699b ldr r3, [r3, #24] + 8002018: 4a3f ldr r2, [pc, #252] @ (8002118 ) + 800201a: f043 0320 orr.w r3, r3, #32 + 800201e: 6193 str r3, [r2, #24] + 8002020: 4b3d ldr r3, [pc, #244] @ (8002118 ) + 8002022: 699b ldr r3, [r3, #24] + 8002024: f003 0320 and.w r3, r3, #32 + 8002028: 60bb str r3, [r7, #8] + 800202a: 68bb ldr r3, [r7, #8] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001f00: 4b3a ldr r3, [pc, #232] @ (8001fec ) - 8001f02: 699b ldr r3, [r3, #24] - 8001f04: 4a39 ldr r2, [pc, #228] @ (8001fec ) - 8001f06: f043 0304 orr.w r3, r3, #4 - 8001f0a: 6193 str r3, [r2, #24] - 8001f0c: 4b37 ldr r3, [pc, #220] @ (8001fec ) - 8001f0e: 699b ldr r3, [r3, #24] - 8001f10: f003 0304 and.w r3, r3, #4 - 8001f14: 607b str r3, [r7, #4] - 8001f16: 687b ldr r3, [r7, #4] + 800202c: 4b3a ldr r3, [pc, #232] @ (8002118 ) + 800202e: 699b ldr r3, [r3, #24] + 8002030: 4a39 ldr r2, [pc, #228] @ (8002118 ) + 8002032: f043 0304 orr.w r3, r3, #4 + 8002036: 6193 str r3, [r2, #24] + 8002038: 4b37 ldr r3, [pc, #220] @ (8002118 ) + 800203a: 699b ldr r3, [r3, #24] + 800203c: f003 0304 and.w r3, r3, #4 + 8002040: 607b str r3, [r7, #4] + 8002042: 687b ldr r3, [r7, #4] __HAL_RCC_GPIOB_CLK_ENABLE(); - 8001f18: 4b34 ldr r3, [pc, #208] @ (8001fec ) - 8001f1a: 699b ldr r3, [r3, #24] - 8001f1c: 4a33 ldr r2, [pc, #204] @ (8001fec ) - 8001f1e: f043 0308 orr.w r3, r3, #8 - 8001f22: 6193 str r3, [r2, #24] - 8001f24: 4b31 ldr r3, [pc, #196] @ (8001fec ) - 8001f26: 699b ldr r3, [r3, #24] - 8001f28: f003 0308 and.w r3, r3, #8 - 8001f2c: 603b str r3, [r7, #0] - 8001f2e: 683b ldr r3, [r7, #0] + 8002044: 4b34 ldr r3, [pc, #208] @ (8002118 ) + 8002046: 699b ldr r3, [r3, #24] + 8002048: 4a33 ldr r2, [pc, #204] @ (8002118 ) + 800204a: f043 0308 orr.w r3, r3, #8 + 800204e: 6193 str r3, [r2, #24] + 8002050: 4b31 ldr r3, [pc, #196] @ (8002118 ) + 8002052: 699b ldr r3, [r3, #24] + 8002054: f003 0308 and.w r3, r3, #8 + 8002058: 603b str r3, [r7, #0] + 800205a: 683b ldr r3, [r7, #0] /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOC, DIGI_OUT5_Pin|DIGI_OUT6_Pin|DIGI_OUT7_Pin, GPIO_PIN_RESET); - 8001f30: 2200 movs r2, #0 - 8001f32: f44f 4160 mov.w r1, #57344 @ 0xe000 - 8001f36: 482e ldr r0, [pc, #184] @ (8001ff0 ) - 8001f38: f001 fe33 bl 8003ba2 + 800205c: 2200 movs r2, #0 + 800205e: f44f 4160 mov.w r1, #57344 @ 0xe000 + 8002062: 482e ldr r0, [pc, #184] @ (800211c ) + 8002064: f001 fedb bl 8003e1e /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOB, DIGI_OUT0_Pin|DIGI_OUT1_Pin|DIGI_OUT2_Pin|LED_Red_Pin - 8001f3c: 2200 movs r2, #0 - 8001f3e: f240 3137 movw r1, #823 @ 0x337 - 8001f42: 482c ldr r0, [pc, #176] @ (8001ff4 ) - 8001f44: f001 fe2d bl 8003ba2 + 8002068: 2200 movs r2, #0 + 800206a: f240 3137 movw r1, #823 @ 0x337 + 800206e: 482c ldr r0, [pc, #176] @ (8002120 ) + 8002070: f001 fed5 bl 8003e1e |LED_Green_Pin|DIGI_OUT3_Pin|DIGI_OUT4_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(TX_EN_RS485_GPIO_Port, TX_EN_RS485_Pin, GPIO_PIN_RESET); - 8001f48: 2200 movs r2, #0 - 8001f4a: f44f 5180 mov.w r1, #4096 @ 0x1000 - 8001f4e: 482a ldr r0, [pc, #168] @ (8001ff8 ) - 8001f50: f001 fe27 bl 8003ba2 + 8002074: 2200 movs r2, #0 + 8002076: f44f 5180 mov.w r1, #4096 @ 0x1000 + 800207a: 482a ldr r0, [pc, #168] @ (8002124 ) + 800207c: f001 fecf bl 8003e1e /*Configure GPIO pins : DIGI_OUT5_Pin DIGI_OUT6_Pin DIGI_OUT7_Pin */ GPIO_InitStruct.Pin = DIGI_OUT5_Pin|DIGI_OUT6_Pin|DIGI_OUT7_Pin; - 8001f54: f44f 4360 mov.w r3, #57344 @ 0xe000 - 8001f58: 613b str r3, [r7, #16] + 8002080: f44f 4360 mov.w r3, #57344 @ 0xe000 + 8002084: 613b str r3, [r7, #16] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_OD; - 8001f5a: 2311 movs r3, #17 - 8001f5c: 617b str r3, [r7, #20] + 8002086: 2311 movs r3, #17 + 8002088: 617b str r3, [r7, #20] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001f5e: 2300 movs r3, #0 - 8001f60: 61bb str r3, [r7, #24] + 800208a: 2300 movs r3, #0 + 800208c: 61bb str r3, [r7, #24] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8001f62: 2302 movs r3, #2 - 8001f64: 61fb str r3, [r7, #28] + 800208e: 2302 movs r3, #2 + 8002090: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - 8001f66: f107 0310 add.w r3, r7, #16 - 8001f6a: 4619 mov r1, r3 - 8001f6c: 4820 ldr r0, [pc, #128] @ (8001ff0 ) - 8001f6e: f001 fc7d bl 800386c + 8002092: f107 0310 add.w r3, r7, #16 + 8002096: 4619 mov r1, r3 + 8002098: 4820 ldr r0, [pc, #128] @ (800211c ) + 800209a: f001 fd25 bl 8003ae8 /*Configure GPIO pins : RS485_Addr0_Pin RS485_Addr1_Pin RS485_Addr2_Pin RS485_Addr3_Pin SYS_CFG0_Pin SYS_CFG1_Pin PG_RS485_Pin PG_CE_Pin PG_PH_Pin */ GPIO_InitStruct.Pin = RS485_Addr0_Pin|RS485_Addr1_Pin|RS485_Addr2_Pin|RS485_Addr3_Pin - 8001f72: f648 13fc movw r3, #35324 @ 0x89fc - 8001f76: 613b str r3, [r7, #16] + 800209e: f648 13fc movw r3, #35324 @ 0x89fc + 80020a2: 613b str r3, [r7, #16] |SYS_CFG0_Pin|SYS_CFG1_Pin|PG_RS485_Pin|PG_CE_Pin |PG_PH_Pin; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 8001f78: 2300 movs r3, #0 - 8001f7a: 617b str r3, [r7, #20] + 80020a4: 2300 movs r3, #0 + 80020a6: 617b str r3, [r7, #20] GPIO_InitStruct.Pull = GPIO_PULLUP; - 8001f7c: 2301 movs r3, #1 - 8001f7e: 61bb str r3, [r7, #24] + 80020a8: 2301 movs r3, #1 + 80020aa: 61bb str r3, [r7, #24] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8001f80: f107 0310 add.w r3, r7, #16 - 8001f84: 4619 mov r1, r3 - 8001f86: 481c ldr r0, [pc, #112] @ (8001ff8 ) - 8001f88: f001 fc70 bl 800386c + 80020ac: f107 0310 add.w r3, r7, #16 + 80020b0: 4619 mov r1, r3 + 80020b2: 481c ldr r0, [pc, #112] @ (8002124 ) + 80020b4: f001 fd18 bl 8003ae8 /*Configure GPIO pins : DIGI_OUT0_Pin DIGI_OUT1_Pin DIGI_OUT2_Pin LED_Red_Pin LED_Green_Pin DIGI_OUT3_Pin DIGI_OUT4_Pin */ GPIO_InitStruct.Pin = DIGI_OUT0_Pin|DIGI_OUT1_Pin|DIGI_OUT2_Pin|LED_Red_Pin - 8001f8c: f240 3337 movw r3, #823 @ 0x337 - 8001f90: 613b str r3, [r7, #16] + 80020b8: f240 3337 movw r3, #823 @ 0x337 + 80020bc: 613b str r3, [r7, #16] |LED_Green_Pin|DIGI_OUT3_Pin|DIGI_OUT4_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_OD; - 8001f92: 2311 movs r3, #17 - 8001f94: 617b str r3, [r7, #20] + 80020be: 2311 movs r3, #17 + 80020c0: 617b str r3, [r7, #20] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001f96: 2300 movs r3, #0 - 8001f98: 61bb str r3, [r7, #24] + 80020c2: 2300 movs r3, #0 + 80020c4: 61bb str r3, [r7, #24] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8001f9a: 2302 movs r3, #2 - 8001f9c: 61fb str r3, [r7, #28] + 80020c6: 2302 movs r3, #2 + 80020c8: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 8001f9e: f107 0310 add.w r3, r7, #16 - 8001fa2: 4619 mov r1, r3 - 8001fa4: 4813 ldr r0, [pc, #76] @ (8001ff4 ) - 8001fa6: f001 fc61 bl 800386c + 80020ca: f107 0310 add.w r3, r7, #16 + 80020ce: 4619 mov r1, r3 + 80020d0: 4813 ldr r0, [pc, #76] @ (8002120 ) + 80020d2: f001 fd09 bl 8003ae8 /*Configure GPIO pins : RS485_Addr4_Pin RS485_Addr5_Pin RS485_Addr6_Pin RS485_Addr7_Pin Calib_PH_Pin */ GPIO_InitStruct.Pin = RS485_Addr4_Pin|RS485_Addr5_Pin|RS485_Addr6_Pin|RS485_Addr7_Pin - 8001faa: f24f 0308 movw r3, #61448 @ 0xf008 - 8001fae: 613b str r3, [r7, #16] + 80020d6: f24f 0308 movw r3, #61448 @ 0xf008 + 80020da: 613b str r3, [r7, #16] |Calib_PH_Pin; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 8001fb0: 2300 movs r3, #0 - 8001fb2: 617b str r3, [r7, #20] + 80020dc: 2300 movs r3, #0 + 80020de: 617b str r3, [r7, #20] GPIO_InitStruct.Pull = GPIO_PULLUP; - 8001fb4: 2301 movs r3, #1 - 8001fb6: 61bb str r3, [r7, #24] + 80020e0: 2301 movs r3, #1 + 80020e2: 61bb str r3, [r7, #24] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 8001fb8: f107 0310 add.w r3, r7, #16 - 8001fbc: 4619 mov r1, r3 - 8001fbe: 480d ldr r0, [pc, #52] @ (8001ff4 ) - 8001fc0: f001 fc54 bl 800386c + 80020e4: f107 0310 add.w r3, r7, #16 + 80020e8: 4619 mov r1, r3 + 80020ea: 480d ldr r0, [pc, #52] @ (8002120 ) + 80020ec: f001 fcfc bl 8003ae8 /*Configure GPIO pin : TX_EN_RS485_Pin */ GPIO_InitStruct.Pin = TX_EN_RS485_Pin; - 8001fc4: f44f 5380 mov.w r3, #4096 @ 0x1000 - 8001fc8: 613b str r3, [r7, #16] + 80020f0: f44f 5380 mov.w r3, #4096 @ 0x1000 + 80020f4: 613b str r3, [r7, #16] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 8001fca: 2301 movs r3, #1 - 8001fcc: 617b str r3, [r7, #20] + 80020f6: 2301 movs r3, #1 + 80020f8: 617b str r3, [r7, #20] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001fce: 2300 movs r3, #0 - 8001fd0: 61bb str r3, [r7, #24] + 80020fa: 2300 movs r3, #0 + 80020fc: 61bb str r3, [r7, #24] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8001fd2: 2302 movs r3, #2 - 8001fd4: 61fb str r3, [r7, #28] + 80020fe: 2302 movs r3, #2 + 8002100: 61fb str r3, [r7, #28] HAL_GPIO_Init(TX_EN_RS485_GPIO_Port, &GPIO_InitStruct); - 8001fd6: f107 0310 add.w r3, r7, #16 - 8001fda: 4619 mov r1, r3 - 8001fdc: 4806 ldr r0, [pc, #24] @ (8001ff8 ) - 8001fde: f001 fc45 bl 800386c + 8002102: f107 0310 add.w r3, r7, #16 + 8002106: 4619 mov r1, r3 + 8002108: 4806 ldr r0, [pc, #24] @ (8002124 ) + 800210a: f001 fced bl 8003ae8 } - 8001fe2: bf00 nop - 8001fe4: 3720 adds r7, #32 - 8001fe6: 46bd mov sp, r7 - 8001fe8: bd80 pop {r7, pc} - 8001fea: bf00 nop - 8001fec: 40021000 .word 0x40021000 - 8001ff0: 40011000 .word 0x40011000 - 8001ff4: 40010c00 .word 0x40010c00 - 8001ff8: 40010800 .word 0x40010800 + 800210e: bf00 nop + 8002110: 3720 adds r7, #32 + 8002112: 46bd mov sp, r7 + 8002114: bd80 pop {r7, pc} + 8002116: bf00 nop + 8002118: 40021000 .word 0x40021000 + 800211c: 40011000 .word 0x40011000 + 8002120: 40010c00 .word 0x40010c00 + 8002124: 40010800 .word 0x40010800 -08001ffc : +08002128 : I2C_HandleTypeDef hi2c1; I2C_HandleTypeDef hi2c2; /* I2C1 init function */ void MX_I2C1_Init(void) { - 8001ffc: b580 push {r7, lr} - 8001ffe: af00 add r7, sp, #0 + 8002128: b580 push {r7, lr} + 800212a: af00 add r7, sp, #0 /* USER CODE END I2C1_Init 0 */ /* USER CODE BEGIN I2C1_Init 1 */ /* USER CODE END I2C1_Init 1 */ hi2c1.Instance = I2C1; - 8002000: 4b12 ldr r3, [pc, #72] @ (800204c ) - 8002002: 4a13 ldr r2, [pc, #76] @ (8002050 ) - 8002004: 601a str r2, [r3, #0] + 800212c: 4b12 ldr r3, [pc, #72] @ (8002178 ) + 800212e: 4a13 ldr r2, [pc, #76] @ (800217c ) + 8002130: 601a str r2, [r3, #0] hi2c1.Init.ClockSpeed = 100000; - 8002006: 4b11 ldr r3, [pc, #68] @ (800204c ) - 8002008: 4a12 ldr r2, [pc, #72] @ (8002054 ) - 800200a: 605a str r2, [r3, #4] + 8002132: 4b11 ldr r3, [pc, #68] @ (8002178 ) + 8002134: 4a12 ldr r2, [pc, #72] @ (8002180 ) + 8002136: 605a str r2, [r3, #4] hi2c1.Init.DutyCycle = I2C_DUTYCYCLE_2; - 800200c: 4b0f ldr r3, [pc, #60] @ (800204c ) - 800200e: 2200 movs r2, #0 - 8002010: 609a str r2, [r3, #8] + 8002138: 4b0f ldr r3, [pc, #60] @ (8002178 ) + 800213a: 2200 movs r2, #0 + 800213c: 609a str r2, [r3, #8] hi2c1.Init.OwnAddress1 = 0; - 8002012: 4b0e ldr r3, [pc, #56] @ (800204c ) - 8002014: 2200 movs r2, #0 - 8002016: 60da str r2, [r3, #12] + 800213e: 4b0e ldr r3, [pc, #56] @ (8002178 ) + 8002140: 2200 movs r2, #0 + 8002142: 60da str r2, [r3, #12] hi2c1.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; - 8002018: 4b0c ldr r3, [pc, #48] @ (800204c ) - 800201a: f44f 4280 mov.w r2, #16384 @ 0x4000 - 800201e: 611a str r2, [r3, #16] + 8002144: 4b0c ldr r3, [pc, #48] @ (8002178 ) + 8002146: f44f 4280 mov.w r2, #16384 @ 0x4000 + 800214a: 611a str r2, [r3, #16] hi2c1.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; - 8002020: 4b0a ldr r3, [pc, #40] @ (800204c ) - 8002022: 2200 movs r2, #0 - 8002024: 615a str r2, [r3, #20] + 800214c: 4b0a ldr r3, [pc, #40] @ (8002178 ) + 800214e: 2200 movs r2, #0 + 8002150: 615a str r2, [r3, #20] hi2c1.Init.OwnAddress2 = 0; - 8002026: 4b09 ldr r3, [pc, #36] @ (800204c ) - 8002028: 2200 movs r2, #0 - 800202a: 619a str r2, [r3, #24] + 8002152: 4b09 ldr r3, [pc, #36] @ (8002178 ) + 8002154: 2200 movs r2, #0 + 8002156: 619a str r2, [r3, #24] hi2c1.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; - 800202c: 4b07 ldr r3, [pc, #28] @ (800204c ) - 800202e: 2200 movs r2, #0 - 8002030: 61da str r2, [r3, #28] + 8002158: 4b07 ldr r3, [pc, #28] @ (8002178 ) + 800215a: 2200 movs r2, #0 + 800215c: 61da str r2, [r3, #28] hi2c1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; - 8002032: 4b06 ldr r3, [pc, #24] @ (800204c ) - 8002034: 2200 movs r2, #0 - 8002036: 621a str r2, [r3, #32] + 800215e: 4b06 ldr r3, [pc, #24] @ (8002178 ) + 8002160: 2200 movs r2, #0 + 8002162: 621a str r2, [r3, #32] if (HAL_I2C_Init(&hi2c1) != HAL_OK) - 8002038: 4804 ldr r0, [pc, #16] @ (800204c ) - 800203a: f001 fde3 bl 8003c04 - 800203e: 4603 mov r3, r0 - 8002040: 2b00 cmp r3, #0 - 8002042: d001 beq.n 8002048 + 8002164: 4804 ldr r0, [pc, #16] @ (8002178 ) + 8002166: f001 fe8b bl 8003e80 + 800216a: 4603 mov r3, r0 + 800216c: 2b00 cmp r3, #0 + 800216e: d001 beq.n 8002174 { Error_Handler(); - 8002044: f000 fbae bl 80027a4 + 8002170: f000 fc56 bl 8002a20 } /* USER CODE BEGIN I2C1_Init 2 */ /* USER CODE END I2C1_Init 2 */ } - 8002048: bf00 nop - 800204a: bd80 pop {r7, pc} - 800204c: 200005ac .word 0x200005ac - 8002050: 40005400 .word 0x40005400 - 8002054: 000186a0 .word 0x000186a0 + 8002174: bf00 nop + 8002176: bd80 pop {r7, pc} + 8002178: 20000624 .word 0x20000624 + 800217c: 40005400 .word 0x40005400 + 8002180: 000186a0 .word 0x000186a0 -08002058 : +08002184 : /* I2C2 init function */ void MX_I2C2_Init(void) { - 8002058: b580 push {r7, lr} - 800205a: af00 add r7, sp, #0 + 8002184: b580 push {r7, lr} + 8002186: af00 add r7, sp, #0 /* USER CODE END I2C2_Init 0 */ /* USER CODE BEGIN I2C2_Init 1 */ /* USER CODE END I2C2_Init 1 */ hi2c2.Instance = I2C2; - 800205c: 4b12 ldr r3, [pc, #72] @ (80020a8 ) - 800205e: 4a13 ldr r2, [pc, #76] @ (80020ac ) - 8002060: 601a str r2, [r3, #0] + 8002188: 4b12 ldr r3, [pc, #72] @ (80021d4 ) + 800218a: 4a13 ldr r2, [pc, #76] @ (80021d8 ) + 800218c: 601a str r2, [r3, #0] hi2c2.Init.ClockSpeed = 100000; - 8002062: 4b11 ldr r3, [pc, #68] @ (80020a8 ) - 8002064: 4a12 ldr r2, [pc, #72] @ (80020b0 ) - 8002066: 605a str r2, [r3, #4] + 800218e: 4b11 ldr r3, [pc, #68] @ (80021d4 ) + 8002190: 4a12 ldr r2, [pc, #72] @ (80021dc ) + 8002192: 605a str r2, [r3, #4] hi2c2.Init.DutyCycle = I2C_DUTYCYCLE_2; - 8002068: 4b0f ldr r3, [pc, #60] @ (80020a8 ) - 800206a: 2200 movs r2, #0 - 800206c: 609a str r2, [r3, #8] + 8002194: 4b0f ldr r3, [pc, #60] @ (80021d4 ) + 8002196: 2200 movs r2, #0 + 8002198: 609a str r2, [r3, #8] hi2c2.Init.OwnAddress1 = 0; - 800206e: 4b0e ldr r3, [pc, #56] @ (80020a8 ) - 8002070: 2200 movs r2, #0 - 8002072: 60da str r2, [r3, #12] + 800219a: 4b0e ldr r3, [pc, #56] @ (80021d4 ) + 800219c: 2200 movs r2, #0 + 800219e: 60da str r2, [r3, #12] hi2c2.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; - 8002074: 4b0c ldr r3, [pc, #48] @ (80020a8 ) - 8002076: f44f 4280 mov.w r2, #16384 @ 0x4000 - 800207a: 611a str r2, [r3, #16] + 80021a0: 4b0c ldr r3, [pc, #48] @ (80021d4 ) + 80021a2: f44f 4280 mov.w r2, #16384 @ 0x4000 + 80021a6: 611a str r2, [r3, #16] hi2c2.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; - 800207c: 4b0a ldr r3, [pc, #40] @ (80020a8 ) - 800207e: 2200 movs r2, #0 - 8002080: 615a str r2, [r3, #20] + 80021a8: 4b0a ldr r3, [pc, #40] @ (80021d4 ) + 80021aa: 2200 movs r2, #0 + 80021ac: 615a str r2, [r3, #20] hi2c2.Init.OwnAddress2 = 0; - 8002082: 4b09 ldr r3, [pc, #36] @ (80020a8 ) - 8002084: 2200 movs r2, #0 - 8002086: 619a str r2, [r3, #24] + 80021ae: 4b09 ldr r3, [pc, #36] @ (80021d4 ) + 80021b0: 2200 movs r2, #0 + 80021b2: 619a str r2, [r3, #24] hi2c2.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; - 8002088: 4b07 ldr r3, [pc, #28] @ (80020a8 ) - 800208a: 2200 movs r2, #0 - 800208c: 61da str r2, [r3, #28] + 80021b4: 4b07 ldr r3, [pc, #28] @ (80021d4 ) + 80021b6: 2200 movs r2, #0 + 80021b8: 61da str r2, [r3, #28] hi2c2.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; - 800208e: 4b06 ldr r3, [pc, #24] @ (80020a8 ) - 8002090: 2200 movs r2, #0 - 8002092: 621a str r2, [r3, #32] + 80021ba: 4b06 ldr r3, [pc, #24] @ (80021d4 ) + 80021bc: 2200 movs r2, #0 + 80021be: 621a str r2, [r3, #32] if (HAL_I2C_Init(&hi2c2) != HAL_OK) - 8002094: 4804 ldr r0, [pc, #16] @ (80020a8 ) - 8002096: f001 fdb5 bl 8003c04 - 800209a: 4603 mov r3, r0 - 800209c: 2b00 cmp r3, #0 - 800209e: d001 beq.n 80020a4 + 80021c0: 4804 ldr r0, [pc, #16] @ (80021d4 ) + 80021c2: f001 fe5d bl 8003e80 + 80021c6: 4603 mov r3, r0 + 80021c8: 2b00 cmp r3, #0 + 80021ca: d001 beq.n 80021d0 { Error_Handler(); - 80020a0: f000 fb80 bl 80027a4 + 80021cc: f000 fc28 bl 8002a20 } /* USER CODE BEGIN I2C2_Init 2 */ /* USER CODE END I2C2_Init 2 */ } - 80020a4: bf00 nop - 80020a6: bd80 pop {r7, pc} - 80020a8: 20000600 .word 0x20000600 - 80020ac: 40005800 .word 0x40005800 - 80020b0: 000186a0 .word 0x000186a0 + 80021d0: bf00 nop + 80021d2: bd80 pop {r7, pc} + 80021d4: 20000678 .word 0x20000678 + 80021d8: 40005800 .word 0x40005800 + 80021dc: 000186a0 .word 0x000186a0 -080020b4 : +080021e0 : void HAL_I2C_MspInit(I2C_HandleTypeDef* i2cHandle) { - 80020b4: b580 push {r7, lr} - 80020b6: b08a sub sp, #40 @ 0x28 - 80020b8: af00 add r7, sp, #0 - 80020ba: 6078 str r0, [r7, #4] + 80021e0: b580 push {r7, lr} + 80021e2: b08a sub sp, #40 @ 0x28 + 80021e4: af00 add r7, sp, #0 + 80021e6: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80020bc: f107 0318 add.w r3, r7, #24 - 80020c0: 2200 movs r2, #0 - 80020c2: 601a str r2, [r3, #0] - 80020c4: 605a str r2, [r3, #4] - 80020c6: 609a str r2, [r3, #8] - 80020c8: 60da str r2, [r3, #12] + 80021e8: f107 0318 add.w r3, r7, #24 + 80021ec: 2200 movs r2, #0 + 80021ee: 601a str r2, [r3, #0] + 80021f0: 605a str r2, [r3, #4] + 80021f2: 609a str r2, [r3, #8] + 80021f4: 60da str r2, [r3, #12] if(i2cHandle->Instance==I2C1) - 80020ca: 687b ldr r3, [r7, #4] - 80020cc: 681b ldr r3, [r3, #0] - 80020ce: 4a2b ldr r2, [pc, #172] @ (800217c ) - 80020d0: 4293 cmp r3, r2 - 80020d2: d124 bne.n 800211e + 80021f6: 687b ldr r3, [r7, #4] + 80021f8: 681b ldr r3, [r3, #0] + 80021fa: 4a2b ldr r2, [pc, #172] @ (80022a8 ) + 80021fc: 4293 cmp r3, r2 + 80021fe: d124 bne.n 800224a { /* USER CODE BEGIN I2C1_MspInit 0 */ /* USER CODE END I2C1_MspInit 0 */ __HAL_RCC_GPIOB_CLK_ENABLE(); - 80020d4: 4b2a ldr r3, [pc, #168] @ (8002180 ) - 80020d6: 699b ldr r3, [r3, #24] - 80020d8: 4a29 ldr r2, [pc, #164] @ (8002180 ) - 80020da: f043 0308 orr.w r3, r3, #8 - 80020de: 6193 str r3, [r2, #24] - 80020e0: 4b27 ldr r3, [pc, #156] @ (8002180 ) - 80020e2: 699b ldr r3, [r3, #24] - 80020e4: f003 0308 and.w r3, r3, #8 - 80020e8: 617b str r3, [r7, #20] - 80020ea: 697b ldr r3, [r7, #20] + 8002200: 4b2a ldr r3, [pc, #168] @ (80022ac ) + 8002202: 699b ldr r3, [r3, #24] + 8002204: 4a29 ldr r2, [pc, #164] @ (80022ac ) + 8002206: f043 0308 orr.w r3, r3, #8 + 800220a: 6193 str r3, [r2, #24] + 800220c: 4b27 ldr r3, [pc, #156] @ (80022ac ) + 800220e: 699b ldr r3, [r3, #24] + 8002210: f003 0308 and.w r3, r3, #8 + 8002214: 617b str r3, [r7, #20] + 8002216: 697b ldr r3, [r7, #20] /**I2C1 GPIO Configuration PB6 ------> I2C1_SCL PB7 ------> I2C1_SDA */ GPIO_InitStruct.Pin = I2C1_SCL_PH_Pin|I2C1_SDA_PH_Pin; - 80020ec: 23c0 movs r3, #192 @ 0xc0 - 80020ee: 61bb str r3, [r7, #24] + 8002218: 23c0 movs r3, #192 @ 0xc0 + 800221a: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; - 80020f0: 2312 movs r3, #18 - 80020f2: 61fb str r3, [r7, #28] + 800221c: 2312 movs r3, #18 + 800221e: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 80020f4: 2302 movs r3, #2 - 80020f6: 627b str r3, [r7, #36] @ 0x24 + 8002220: 2302 movs r3, #2 + 8002222: 627b str r3, [r7, #36] @ 0x24 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 80020f8: f107 0318 add.w r3, r7, #24 - 80020fc: 4619 mov r1, r3 - 80020fe: 4821 ldr r0, [pc, #132] @ (8002184 ) - 8002100: f001 fbb4 bl 800386c + 8002224: f107 0318 add.w r3, r7, #24 + 8002228: 4619 mov r1, r3 + 800222a: 4821 ldr r0, [pc, #132] @ (80022b0 ) + 800222c: f001 fc5c bl 8003ae8 /* I2C1 clock enable */ __HAL_RCC_I2C1_CLK_ENABLE(); - 8002104: 4b1e ldr r3, [pc, #120] @ (8002180 ) - 8002106: 69db ldr r3, [r3, #28] - 8002108: 4a1d ldr r2, [pc, #116] @ (8002180 ) - 800210a: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 - 800210e: 61d3 str r3, [r2, #28] - 8002110: 4b1b ldr r3, [pc, #108] @ (8002180 ) - 8002112: 69db ldr r3, [r3, #28] - 8002114: f403 1300 and.w r3, r3, #2097152 @ 0x200000 - 8002118: 613b str r3, [r7, #16] - 800211a: 693b ldr r3, [r7, #16] + 8002230: 4b1e ldr r3, [pc, #120] @ (80022ac ) + 8002232: 69db ldr r3, [r3, #28] + 8002234: 4a1d ldr r2, [pc, #116] @ (80022ac ) + 8002236: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 + 800223a: 61d3 str r3, [r2, #28] + 800223c: 4b1b ldr r3, [pc, #108] @ (80022ac ) + 800223e: 69db ldr r3, [r3, #28] + 8002240: f403 1300 and.w r3, r3, #2097152 @ 0x200000 + 8002244: 613b str r3, [r7, #16] + 8002246: 693b ldr r3, [r7, #16] __HAL_RCC_I2C2_CLK_ENABLE(); /* USER CODE BEGIN I2C2_MspInit 1 */ /* USER CODE END I2C2_MspInit 1 */ } } - 800211c: e029 b.n 8002172 + 8002248: e029 b.n 800229e else if(i2cHandle->Instance==I2C2) - 800211e: 687b ldr r3, [r7, #4] - 8002120: 681b ldr r3, [r3, #0] - 8002122: 4a19 ldr r2, [pc, #100] @ (8002188 ) - 8002124: 4293 cmp r3, r2 - 8002126: d124 bne.n 8002172 + 800224a: 687b ldr r3, [r7, #4] + 800224c: 681b ldr r3, [r3, #0] + 800224e: 4a19 ldr r2, [pc, #100] @ (80022b4 ) + 8002250: 4293 cmp r3, r2 + 8002252: d124 bne.n 800229e __HAL_RCC_GPIOB_CLK_ENABLE(); - 8002128: 4b15 ldr r3, [pc, #84] @ (8002180 ) - 800212a: 699b ldr r3, [r3, #24] - 800212c: 4a14 ldr r2, [pc, #80] @ (8002180 ) - 800212e: f043 0308 orr.w r3, r3, #8 - 8002132: 6193 str r3, [r2, #24] - 8002134: 4b12 ldr r3, [pc, #72] @ (8002180 ) - 8002136: 699b ldr r3, [r3, #24] - 8002138: f003 0308 and.w r3, r3, #8 - 800213c: 60fb str r3, [r7, #12] - 800213e: 68fb ldr r3, [r7, #12] + 8002254: 4b15 ldr r3, [pc, #84] @ (80022ac ) + 8002256: 699b ldr r3, [r3, #24] + 8002258: 4a14 ldr r2, [pc, #80] @ (80022ac ) + 800225a: f043 0308 orr.w r3, r3, #8 + 800225e: 6193 str r3, [r2, #24] + 8002260: 4b12 ldr r3, [pc, #72] @ (80022ac ) + 8002262: 699b ldr r3, [r3, #24] + 8002264: f003 0308 and.w r3, r3, #8 + 8002268: 60fb str r3, [r7, #12] + 800226a: 68fb ldr r3, [r7, #12] GPIO_InitStruct.Pin = I2C2_SCL_CE_Pin|I2C2_SDA_CE_Pin; - 8002140: f44f 6340 mov.w r3, #3072 @ 0xc00 - 8002144: 61bb str r3, [r7, #24] + 800226c: f44f 6340 mov.w r3, #3072 @ 0xc00 + 8002270: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; - 8002146: 2312 movs r3, #18 - 8002148: 61fb str r3, [r7, #28] + 8002272: 2312 movs r3, #18 + 8002274: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 800214a: 2302 movs r3, #2 - 800214c: 627b str r3, [r7, #36] @ 0x24 + 8002276: 2302 movs r3, #2 + 8002278: 627b str r3, [r7, #36] @ 0x24 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 800214e: f107 0318 add.w r3, r7, #24 - 8002152: 4619 mov r1, r3 - 8002154: 480b ldr r0, [pc, #44] @ (8002184 ) - 8002156: f001 fb89 bl 800386c + 800227a: f107 0318 add.w r3, r7, #24 + 800227e: 4619 mov r1, r3 + 8002280: 480b ldr r0, [pc, #44] @ (80022b0 ) + 8002282: f001 fc31 bl 8003ae8 __HAL_RCC_I2C2_CLK_ENABLE(); - 800215a: 4b09 ldr r3, [pc, #36] @ (8002180 ) - 800215c: 69db ldr r3, [r3, #28] - 800215e: 4a08 ldr r2, [pc, #32] @ (8002180 ) - 8002160: f443 0380 orr.w r3, r3, #4194304 @ 0x400000 - 8002164: 61d3 str r3, [r2, #28] - 8002166: 4b06 ldr r3, [pc, #24] @ (8002180 ) - 8002168: 69db ldr r3, [r3, #28] - 800216a: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 800216e: 60bb str r3, [r7, #8] - 8002170: 68bb ldr r3, [r7, #8] + 8002286: 4b09 ldr r3, [pc, #36] @ (80022ac ) + 8002288: 69db ldr r3, [r3, #28] + 800228a: 4a08 ldr r2, [pc, #32] @ (80022ac ) + 800228c: f443 0380 orr.w r3, r3, #4194304 @ 0x400000 + 8002290: 61d3 str r3, [r2, #28] + 8002292: 4b06 ldr r3, [pc, #24] @ (80022ac ) + 8002294: 69db ldr r3, [r3, #28] + 8002296: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 800229a: 60bb str r3, [r7, #8] + 800229c: 68bb ldr r3, [r7, #8] } - 8002172: bf00 nop - 8002174: 3728 adds r7, #40 @ 0x28 - 8002176: 46bd mov sp, r7 - 8002178: bd80 pop {r7, pc} - 800217a: bf00 nop - 800217c: 40005400 .word 0x40005400 - 8002180: 40021000 .word 0x40021000 - 8002184: 40010c00 .word 0x40010c00 - 8002188: 40005800 .word 0x40005800 + 800229e: bf00 nop + 80022a0: 3728 adds r7, #40 @ 0x28 + 80022a2: 46bd mov sp, r7 + 80022a4: bd80 pop {r7, pc} + 80022a6: bf00 nop + 80022a8: 40005400 .word 0x40005400 + 80022ac: 40021000 .word 0x40021000 + 80022b0: 40010c00 .word 0x40010c00 + 80022b4: 40005800 .word 0x40005800 -0800218c
: +080022b8
: /** * @brief The application entry point. * @retval int */ int main(void) { - 800218c: b580 push {r7, lr} - 800218e: b090 sub sp, #64 @ 0x40 - 8002190: af00 add r7, sp, #0 + 80022b8: b590 push {r4, r7, lr} + 80022ba: b093 sub sp, #76 @ 0x4c + 80022bc: af00 add r7, sp, #0 /* USER CODE BEGIN 1 */ HAL_StatusTypeDef status0,status1; // Variables to store previous LED states uint8_t previous_green_state = 0; - 8002192: 2300 movs r3, #0 - 8002194: f887 303f strb.w r3, [r7, #63] @ 0x3f + 80022be: 2300 movs r3, #0 + 80022c0: f887 3047 strb.w r3, [r7, #71] @ 0x47 uint8_t previous_red_state = 0; - 8002198: 2300 movs r3, #0 - 800219a: f887 303e strb.w r3, [r7, #62] @ 0x3e + 80022c4: 2300 movs r3, #0 + 80022c6: f887 3046 strb.w r3, [r7, #70] @ 0x46 // Variables for timing uint32_t previous_millis_green = 0; - 800219e: 2300 movs r3, #0 - 80021a0: 63bb str r3, [r7, #56] @ 0x38 + 80022ca: 2300 movs r3, #0 + 80022cc: 643b str r3, [r7, #64] @ 0x40 uint32_t previous_millis_red = 0; - 80021a2: 2300 movs r3, #0 - 80021a4: 637b str r3, [r7, #52] @ 0x34 + 80022ce: 2300 movs r3, #0 + 80022d0: 63fb str r3, [r7, #60] @ 0x3c /*! Temporary variables */ uint8_t tempString[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; - 80021a6: f107 0308 add.w r3, r7, #8 - 80021aa: 2200 movs r2, #0 - 80021ac: 601a str r2, [r3, #0] - 80021ae: 605a str r2, [r3, #4] - 80021b0: 811a strh r2, [r3, #8] + 80022d2: f107 030c add.w r3, r7, #12 + 80022d6: 2200 movs r2, #0 + 80022d8: 601a str r2, [r3, #0] + 80022da: 605a str r2, [r3, #4] + 80022dc: 811a strh r2, [r3, #8] /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); - 80021b2: f000 fd03 bl 8002bbc + 80022de: f000 fdab bl 8002e38 /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); - 80021b6: f000 f991 bl 80024dc + 80022e2: f000 fa39 bl 8002758 /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); - 80021ba: f7ff fe7f bl 8001ebc + 80022e6: f7ff fe7f bl 8001fe8 MX_ADC1_Init(); - 80021be: f7ff fb65 bl 800188c + 80022ea: f7ff fab5 bl 8001858 MX_ADC2_Init(); - 80021c2: f7ff fba1 bl 8001908 + 80022ee: f7ff faf1 bl 80018d4 MX_I2C1_Init(); - 80021c6: f7ff ff19 bl 8001ffc + 80022f2: f7ff ff19 bl 8002128 MX_I2C2_Init(); - 80021ca: f7ff ff45 bl 8002058 + 80022f6: f7ff ff45 bl 8002184 MX_USART1_UART_Init(); - 80021ce: f000 fc51 bl 8002a74 + 80022fa: f000 fcf9 bl 8002cf0 /* USER CODE BEGIN 2 */ Flash_Load_Page(&flash_data); - 80021d2: 48b9 ldr r0, [pc, #740] @ (80024b8 ) - 80021d4: f7ff fe52 bl 8001e7c + 80022fe: 4854 ldr r0, [pc, #336] @ (8002450 ) + 8002300: f7ff fe52 bl 8001fa8 HAL_TIM_Base_Start(&htim3); HAL_ADCEx_Calibration_Start(&hadc1); HAL_ADC_Start_DMA(&hadc1, (uint32_t*)AD_RES, 2); // Internal Temperature conversion */ digital_outputs_init(); - 80021d8: f7ff fdb4 bl 8001d44 + 8002304: f7ff fdb4 bl 8001e70 // Initialize RS-485 driver rs485_init(); - 80021dc: f000 faf4 bl 80027c8 + 8002308: f000 fb9c bl 8002a44 + ADS1015(&i2c, &hi2c1, ADS_ADDR_GND); - 80021e0: 2248 movs r2, #72 @ 0x48 - 80021e2: 49b6 ldr r1, [pc, #728] @ (80024bc ) - 80021e4: 48b6 ldr r0, [pc, #728] @ (80024c0 ) - 80021e6: f7ff fc7e bl 8001ae6 - ADSsetGain(&i2c, GAIN_SIXTEEN); - 80021ea: f44f 6120 mov.w r1, #2560 @ 0xa00 - 80021ee: 48b4 ldr r0, [pc, #720] @ (80024c0 ) - 80021f0: f7ff fc97 bl 8001b22 + 800230c: 2248 movs r2, #72 @ 0x48 + 800230e: 4951 ldr r1, [pc, #324] @ (8002454 ) + 8002310: 4851 ldr r0, [pc, #324] @ (8002458 ) + 8002312: f7ff fbce bl 8001ab2 + ADSsetGain(&i2c, GAIN_FOUR); + 8002316: f44f 61c0 mov.w r1, #1536 @ 0x600 + 800231a: 484f ldr r0, [pc, #316] @ (8002458 ) + 800231c: f7ff fbe7 bl 8001aee + ADG715_ResetChannels(); + 8002320: f7ff fa72 bl 8001808 // Start CE and RTD Measurement AD5934_Init(); - 80021f4: f7fe fed2 bl 8000f9c + 8002324: f7fe fe3a bl 8000f9c /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ + for(i=0;i + { + refResistance = AD5934_Get_Ref_Resistance(); // On Board Resistor + 8002330: f7fe fe90 bl 8001054 + 8002334: 6378 str r0, [r7, #52] @ 0x34 + temperature_RTD = AD5934_GetTemperature(refResistance); // Liquid Temperature is stored + 8002336: 6b78 ldr r0, [r7, #52] @ 0x34 + 8002338: f7fe ff18 bl 800116c + 800233c: 63b8 str r0, [r7, #56] @ 0x38 + admittance_EC = AD5934_GetImpedance(temperature_RTD); + 800233e: 6bb8 ldr r0, [r7, #56] @ 0x38 + 8002340: f7ff f806 bl 8001350 + 8002344: 61f8 str r0, [r7, #28] + ph_compensated = ADSCalculate_ph_Compensated(temperature_RTD); + 8002346: 6bb8 ldr r0, [r7, #56] @ 0x38 + 8002348: f7ff fc74 bl 8001c34 + 800234c: 61b8 str r0, [r7, #24] + for(i=0;i + } + + if(HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_3) == GPIO_PIN_RESET) // When PB3 (with internal pull up) in the Prog Header is set to GND - 80021f8: 2108 movs r1, #8 - 80021fa: 48b2 ldr r0, [pc, #712] @ (80024c4 ) - 80021fc: f001 fcba bl 8003b74 - 8002200: 4603 mov r3, r0 - 8002202: 2b00 cmp r3, #0 - 8002204: f040 8091 bne.w 800232a + 8002360: 2108 movs r1, #8 + 8002362: 483e ldr r0, [pc, #248] @ (800245c ) + 8002364: f001 fd44 bl 8003df0 + 8002368: 4603 mov r3, r0 + 800236a: 2b00 cmp r3, #0 + 800236c: f040 80dd bne.w 800252a { - main_state = STATE_SETUP_CALIBRATION; - 8002208: 4baf ldr r3, [pc, #700] @ (80024c8 ) - 800220a: 2201 movs r2, #1 - 800220c: 701a strb r2, [r3, #0] + main_state = STATE_PH4_DRY_EC_CALIBRATION; + 8002370: 4b3b ldr r3, [pc, #236] @ (8002460 ) + 8002372: 2202 movs r2, #2 + 8002374: 701a strb r2, [r3, #0] HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_SET); - 800220e: 2201 movs r2, #1 - 8002210: 2110 movs r1, #16 - 8002212: 48ac ldr r0, [pc, #688] @ (80024c4 ) - 8002214: f001 fcc5 bl 8003ba2 + 8002376: 2201 movs r2, #1 + 8002378: 2110 movs r1, #16 + 800237a: 4838 ldr r0, [pc, #224] @ (800245c ) + 800237c: f001 fd4f bl 8003e1e HAL_GPIO_WritePin(GPIOB, GPIO_PIN_5, GPIO_PIN_RESET); // Red LED On - 8002218: 2200 movs r2, #0 - 800221a: 2120 movs r1, #32 - 800221c: 48a9 ldr r0, [pc, #676] @ (80024c4 ) - 800221e: f001 fcc0 bl 8003ba2 + 8002380: 2200 movs r2, #0 + 8002382: 2120 movs r1, #32 + 8002384: 4835 ldr r0, [pc, #212] @ (800245c ) + 8002386: f001 fd4a bl 8003e1e - for(i=0;i<32;i++) // Loop to get stability and get averages - 8002222: 2300 movs r3, #0 - 8002224: f887 3033 strb.w r3, [r7, #51] @ 0x33 - 8002228: e032 b.n 8002290 + for(i=0;i<(2*AD5934_TEMP_AVERAGES);i++) // Loop to get stability and get averages + 800238a: 2300 movs r3, #0 + 800238c: f887 3033 strb.w r3, [r7, #51] @ 0x33 + 8002390: e033 b.n 80023fa { - flash_data.ph4_volts = ADSCalculate_ph_Volts(); - 800222a: f7ff fcc7 bl 8001bbc - 800222e: 4603 mov r3, r0 - 8002230: 4aa1 ldr r2, [pc, #644] @ (80024b8 ) - 8002232: 6053 str r3, [r2, #4] - flash_data.temperature_value = AD5934_GetTemperature(); // Air Temperature is not stored, just used to calculate impedance - 8002234: f7fe ff0e bl 8001054 - 8002238: 4603 mov r3, r0 - 800223a: 4a9f ldr r2, [pc, #636] @ (80024b8 ) - 800223c: 6153 str r3, [r2, #20] - flash_data.ec0_mag = AD5934_GetImpedance(flash_data.temperature_value); // Dry Probe - 800223e: 4b9e ldr r3, [pc, #632] @ (80024b8 ) - 8002240: 695b ldr r3, [r3, #20] - 8002242: 4618 mov r0, r3 - 8002244: f7ff f902 bl 800144c - 8002248: 4603 mov r3, r0 - 800224a: 4a9b ldr r2, [pc, #620] @ (80024b8 ) - 800224c: 6113 str r3, [r2, #16] + flash_data.ph4_mV = ADSCalculate_ph_mV(); + 8002392: f7ff fbf9 bl 8001b88 + 8002396: 4603 mov r3, r0 + 8002398: 4a2d ldr r2, [pc, #180] @ (8002450 ) + 800239a: 6053 str r3, [r2, #4] + temperature_RTD = AD5934_GetTemperature(refResistance); // Air Temperature is not used in the function + 800239c: 6b78 ldr r0, [r7, #52] @ 0x34 + 800239e: f7fe fee5 bl 800116c + 80023a2: 63b8 str r0, [r7, #56] @ 0x38 + flash_data.ec0_mag = AD5934_GetImpedance(temperature_RTD); // Dry Probe + 80023a4: 6bb8 ldr r0, [r7, #56] @ 0x38 + 80023a6: f7fe ffd3 bl 8001350 + 80023aa: 4603 mov r3, r0 + 80023ac: 4a28 ldr r2, [pc, #160] @ (8002450 ) + 80023ae: 61d3 str r3, [r2, #28] if(HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_6) == GPIO_PIN_SET) - 800224e: 2140 movs r1, #64 @ 0x40 - 8002250: 489e ldr r0, [pc, #632] @ (80024cc ) - 8002252: f001 fc8f bl 8003b74 - 8002256: 4603 mov r3, r0 - 8002258: 2b01 cmp r3, #1 - 800225a: d103 bne.n 8002264 + 80023b0: 2140 movs r1, #64 @ 0x40 + 80023b2: 482c ldr r0, [pc, #176] @ (8002464 ) + 80023b4: f001 fd1c bl 8003df0 + 80023b8: 4603 mov r3, r0 + 80023ba: 2b01 cmp r3, #1 + 80023bc: d104 bne.n 80023c8 flash_data.EC10mS_EC5mS_switch = AD5934_CH_EC_HIGH_GAIN; // 5mS/cm option - 800225c: 4b96 ldr r3, [pc, #600] @ (80024b8 ) - 800225e: 2284 movs r2, #132 @ 0x84 - 8002260: 765a strb r2, [r3, #25] - 8002262: e002 b.n 800226a + 80023be: 4b24 ldr r3, [pc, #144] @ (8002450 ) + 80023c0: 220e movs r2, #14 + 80023c2: f883 2025 strb.w r2, [r3, #37] @ 0x25 + 80023c6: e003 b.n 80023d0 else flash_data.EC10mS_EC5mS_switch = AD5934_CH_EC_MID_GAIN; //10ms/cm option - 8002264: 4b94 ldr r3, [pc, #592] @ (80024b8 ) - 8002266: 2282 movs r2, #130 @ 0x82 - 8002268: 765a strb r2, [r3, #25] + 80023c8: 4b21 ldr r3, [pc, #132] @ (8002450 ) + 80023ca: 220d movs r2, #13 + 80023cc: f883 2025 strb.w r2, [r3, #37] @ 0x25 if(HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_7) == GPIO_PIN_SET) - 800226a: 2180 movs r1, #128 @ 0x80 - 800226c: 4897 ldr r0, [pc, #604] @ (80024cc ) - 800226e: f001 fc81 bl 8003b74 - 8002272: 4603 mov r3, r0 - 8002274: 2b01 cmp r3, #1 - 8002276: d103 bne.n 8002280 + 80023d0: 2180 movs r1, #128 @ 0x80 + 80023d2: 4824 ldr r0, [pc, #144] @ (8002464 ) + 80023d4: f001 fd0c bl 8003df0 + 80023d8: 4603 mov r3, r0 + 80023da: 2b01 cmp r3, #1 + 80023dc: d104 bne.n 80023e8 flash_data.PT100_PT1000_switch = AD5934_CH_RTD_LOW_GAIN; //PT100 option - 8002278: 4b8f ldr r3, [pc, #572] @ (80024b8 ) - 800227a: 2241 movs r2, #65 @ 0x41 - 800227c: 761a strb r2, [r3, #24] - 800227e: e002 b.n 8002286 + 80023de: 4b1c ldr r3, [pc, #112] @ (8002450 ) + 80023e0: 2209 movs r2, #9 + 80023e2: f883 2024 strb.w r2, [r3, #36] @ 0x24 + 80023e6: e003 b.n 80023f0 else flash_data.PT100_PT1000_switch = AD5934_CH_RTD_MID_GAIN; //PT1000 option - 8002280: 4b8d ldr r3, [pc, #564] @ (80024b8 ) - 8002282: 2242 movs r2, #66 @ 0x42 - 8002284: 761a strb r2, [r3, #24] - for(i=0;i<32;i++) // Loop to get stability and get averages - 8002286: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 - 800228a: 3301 adds r3, #1 - 800228c: f887 3033 strb.w r3, [r7, #51] @ 0x33 - 8002290: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 - 8002294: 2b1f cmp r3, #31 - 8002296: d9c8 bls.n 800222a + 80023e8: 4b19 ldr r3, [pc, #100] @ (8002450 ) + 80023ea: 220a movs r2, #10 + 80023ec: f883 2024 strb.w r2, [r3, #36] @ 0x24 + for(i=0;i<(2*AD5934_TEMP_AVERAGES);i++) // Loop to get stability and get averages + 80023f0: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 + 80023f4: 3301 adds r3, #1 + 80023f6: f887 3033 strb.w r3, [r7, #51] @ 0x33 + 80023fa: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 + 80023fe: 2b1f cmp r3, #31 + 8002400: d9c7 bls.n 8002392 } + HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_RESET); // Green LED On + 8002402: 2200 movs r2, #0 + 8002404: 2110 movs r1, #16 + 8002406: 4815 ldr r0, [pc, #84] @ (800245c ) + 8002408: f001 fd09 bl 8003e1e + HAL_GPIO_WritePin(GPIOB, GPIO_PIN_5, GPIO_PIN_SET); + 800240c: 2201 movs r2, #1 + 800240e: 2120 movs r1, #32 + 8002410: 4812 ldr r0, [pc, #72] @ (800245c ) + 8002412: f001 fd04 bl 8003e1e while(HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_3) == GPIO_PIN_RESET); - 8002298: bf00 nop - 800229a: 2108 movs r1, #8 - 800229c: 4889 ldr r0, [pc, #548] @ (80024c4 ) - 800229e: f001 fc69 bl 8003b74 - 80022a2: 4603 mov r3, r0 - 80022a4: 2b00 cmp r3, #0 - 80022a6: d0f8 beq.n 800229a + 8002416: bf00 nop + 8002418: 2108 movs r1, #8 + 800241a: 4810 ldr r0, [pc, #64] @ (800245c ) + 800241c: f001 fce8 bl 8003df0 + 8002420: 4603 mov r3, r0 + 8002422: 2b00 cmp r3, #0 + 8002424: d0f8 beq.n 8002418 HAL_Delay(500); - 80022a8: f44f 70fa mov.w r0, #500 @ 0x1f4 - 80022ac: f000 fce8 bl 8002c80 + 8002426: f44f 70fa mov.w r0, #500 @ 0x1f4 + 800242a: f000 fd67 bl 8002efc - HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_RESET); // Green LED On - 80022b0: 2200 movs r2, #0 - 80022b2: 2110 movs r1, #16 - 80022b4: 4883 ldr r0, [pc, #524] @ (80024c4 ) - 80022b6: f001 fc74 bl 8003ba2 - HAL_GPIO_WritePin(GPIOB, GPIO_PIN_5, GPIO_PIN_SET); - 80022ba: 2201 movs r2, #1 - 80022bc: 2120 movs r1, #32 - 80022be: 4881 ldr r0, [pc, #516] @ (80024c4 ) - 80022c0: f001 fc6f bl 8003ba2 + main_state = STATE_PH7_WET_EC_CALIBRATION; + 800242e: 4b0c ldr r3, [pc, #48] @ (8002460 ) + 8002430: 2203 movs r2, #3 + 8002432: 701a strb r2, [r3, #0] - for(i=0;i<32;i++) // Loop to get stability and get averages - 80022c4: 2300 movs r3, #0 - 80022c6: f887 3033 strb.w r3, [r7, #51] @ 0x33 - 80022ca: e019 b.n 8002300 + HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_SET); + 8002434: 2201 movs r2, #1 + 8002436: 2110 movs r1, #16 + 8002438: 4808 ldr r0, [pc, #32] @ (800245c ) + 800243a: f001 fcf0 bl 8003e1e + HAL_GPIO_WritePin(GPIOB, GPIO_PIN_5, GPIO_PIN_RESET); // Red LED On + 800243e: 2200 movs r2, #0 + 8002440: 2120 movs r1, #32 + 8002442: 4806 ldr r0, [pc, #24] @ (800245c ) + 8002444: f001 fceb bl 8003e1e + + + + for(i=0;i<(2*AD5934_TEMP_AVERAGES);i++) // Loop to get stability and get averages + 8002448: 2300 movs r3, #0 + 800244a: f887 3033 strb.w r3, [r7, #51] @ 0x33 + 800244e: e02d b.n 80024ac + 8002450: 20000224 .word 0x20000224 + 8002454: 20000624 .word 0x20000624 + 8002458: 200001cc .word 0x200001cc + 800245c: 40010c00 .word 0x40010c00 + 8002460: 200006cc .word 0x200006cc + 8002464: 40010800 .word 0x40010800 { - flash_data.temperature_value = AD5934_GetTemperature(); // Liquid Temperature is stored - 80022cc: f7fe fec2 bl 8001054 - 80022d0: 4603 mov r3, r0 - 80022d2: 4a79 ldr r2, [pc, #484] @ (80024b8 ) - 80022d4: 6153 str r3, [r2, #20] - flash_data.ph7_volts = ADSCalculate_ph_Volts(); - 80022d6: f7ff fc71 bl 8001bbc - 80022da: 4603 mov r3, r0 - 80022dc: 4a76 ldr r2, [pc, #472] @ (80024b8 ) - 80022de: 6093 str r3, [r2, #8] - flash_data.ec1413_mag = AD5934_GetImpedance(flash_data.temperature_value); // Get the impedance of the reference liquid - 80022e0: 4b75 ldr r3, [pc, #468] @ (80024b8 ) - 80022e2: 695b ldr r3, [r3, #20] - 80022e4: 4618 mov r0, r3 - 80022e6: f7ff f8b1 bl 800144c - 80022ea: 4603 mov r3, r0 - 80022ec: 4a72 ldr r2, [pc, #456] @ (80024b8 ) - 80022ee: 60d3 str r3, [r2, #12] - Flash_Save_Page(&flash_data); // Store Calibration parameters in Flash - 80022f0: 4871 ldr r0, [pc, #452] @ (80024b8 ) - 80022f2: f7ff fd69 bl 8001dc8 - for(i=0;i<32;i++) // Loop to get stability and get averages - 80022f6: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 - 80022fa: 3301 adds r3, #1 - 80022fc: f887 3033 strb.w r3, [r7, #51] @ 0x33 - 8002300: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 - 8002304: 2b1f cmp r3, #31 - 8002306: d9e1 bls.n 80022cc + temperature_RTD = AD5934_GetTemperature(refResistance); // Liquid Temperature is stored + 8002468: 6b78 ldr r0, [r7, #52] @ 0x34 + 800246a: f7fe fe7f bl 800116c + 800246e: 63b8 str r0, [r7, #56] @ 0x38 + flash_data.ec_factor = AD5934_EC_Calibrate_Temperature(temperature_RTD); + 8002470: 6bb8 ldr r0, [r7, #56] @ 0x38 + 8002472: f7ff f90f bl 8001694 + 8002476: 4603 mov r3, r0 + 8002478: 4aac ldr r2, [pc, #688] @ (800272c ) + 800247a: 6213 str r3, [r2, #32] + flash_data.ph7_mV = ADSCalculate_ph_mV(); + 800247c: f7ff fb84 bl 8001b88 + 8002480: 4603 mov r3, r0 + 8002482: 4aaa ldr r2, [pc, #680] @ (800272c ) + 8002484: 6093 str r3, [r2, #8] + flash_data.ec1413_mag = AD5934_GetImpedance(temperature_RTD)*flash_data.ec_factor; // Get the magnitude of the reference liquid and compensate it to 25ºC + 8002486: 6bb8 ldr r0, [r7, #56] @ 0x38 + 8002488: f7fe ff62 bl 8001350 + 800248c: 4602 mov r2, r0 + 800248e: 4ba7 ldr r3, [pc, #668] @ (800272c ) + 8002490: 6a1b ldr r3, [r3, #32] + 8002492: 4619 mov r1, r3 + 8002494: 4610 mov r0, r2 + 8002496: f7fe fb05 bl 8000aa4 <__aeabi_fmul> + 800249a: 4603 mov r3, r0 + 800249c: 461a mov r2, r3 + 800249e: 4ba3 ldr r3, [pc, #652] @ (800272c ) + 80024a0: 619a str r2, [r3, #24] + for(i=0;i<(2*AD5934_TEMP_AVERAGES);i++) // Loop to get stability and get averages + 80024a2: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 + 80024a6: 3301 adds r3, #1 + 80024a8: f887 3033 strb.w r3, [r7, #51] @ 0x33 + 80024ac: f897 3033 ldrb.w r3, [r7, #51] @ 0x33 + 80024b0: 2b1f cmp r3, #31 + 80024b2: d9d9 bls.n 8002468 + } + ph7_interp = ADSinterpolate_ph(temperature_RTD,ADS1015_PH_7_BUFFER_ROW); + 80024b4: 2102 movs r1, #2 + 80024b6: 6bb8 ldr r0, [r7, #56] @ 0x38 + 80024b8: f7ff fc00 bl 8001cbc + 80024bc: 62f8 str r0, [r7, #44] @ 0x2c + ph4_interp = ADSinterpolate_ph(temperature_RTD,ADS1015_PH_4_BUFFER_ROW); + 80024be: 2101 movs r1, #1 + 80024c0: 6bb8 ldr r0, [r7, #56] @ 0x38 + 80024c2: f7ff fbfb bl 8001cbc + 80024c6: 62b8 str r0, [r7, #40] @ 0x28 + + flash_data.ph_temperature = temperature_RTD; + 80024c8: 4a98 ldr r2, [pc, #608] @ (800272c ) + 80024ca: 6bbb ldr r3, [r7, #56] @ 0x38 + 80024cc: 60d3 str r3, [r2, #12] + flash_data.ph_slope_mV = (flash_data.ph7_mV - flash_data.ph4_mV) / (ph7_interp - ph4_interp); + 80024ce: 4b97 ldr r3, [pc, #604] @ (800272c ) + 80024d0: 689b ldr r3, [r3, #8] + 80024d2: 4a96 ldr r2, [pc, #600] @ (800272c ) + 80024d4: 6852 ldr r2, [r2, #4] + 80024d6: 4611 mov r1, r2 + 80024d8: 4618 mov r0, r3 + 80024da: f7fe f9d9 bl 8000890 <__aeabi_fsub> + 80024de: 4603 mov r3, r0 + 80024e0: 461c mov r4, r3 + 80024e2: 6ab9 ldr r1, [r7, #40] @ 0x28 + 80024e4: 6af8 ldr r0, [r7, #44] @ 0x2c + 80024e6: f7fe f9d3 bl 8000890 <__aeabi_fsub> + 80024ea: 4603 mov r3, r0 + 80024ec: 4619 mov r1, r3 + 80024ee: 4620 mov r0, r4 + 80024f0: f7fe fb8c bl 8000c0c <__aeabi_fdiv> + 80024f4: 4603 mov r3, r0 + 80024f6: 461a mov r2, r3 + 80024f8: 4b8c ldr r3, [pc, #560] @ (800272c ) + 80024fa: 611a str r2, [r3, #16] + flash_data.ph7_real = ph7_interp; + 80024fc: 4a8b ldr r2, [pc, #556] @ (800272c ) + 80024fe: 6afb ldr r3, [r7, #44] @ 0x2c + 8002500: 6153 str r3, [r2, #20] + + Flash_Save_Page(&flash_data); // Store Calibration parameters in Flash + 8002502: 488a ldr r0, [pc, #552] @ (800272c ) + 8002504: f7ff fcf6 bl 8001ef4 + + HAL_Delay(500); - 8002308: f44f 70fa mov.w r0, #500 @ 0x1f4 - 800230c: f000 fcb8 bl 8002c80 + 8002508: f44f 70fa mov.w r0, #500 @ 0x1f4 + 800250c: f000 fcf6 bl 8002efc HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_RESET); // Green LED On - 8002310: 2200 movs r2, #0 - 8002312: 2110 movs r1, #16 - 8002314: 486b ldr r0, [pc, #428] @ (80024c4 ) - 8002316: f001 fc44 bl 8003ba2 - HAL_GPIO_WritePin(GPIOB, GPIO_PIN_5, GPIO_PIN_RESET); // Red LED On - 800231a: 2200 movs r2, #0 - 800231c: 2120 movs r1, #32 - 800231e: 4869 ldr r0, [pc, #420] @ (80024c4 ) - 8002320: f001 fc3f bl 8003ba2 + 8002510: 2200 movs r2, #0 + 8002512: 2110 movs r1, #16 + 8002514: 4886 ldr r0, [pc, #536] @ (8002730 ) + 8002516: f001 fc82 bl 8003e1e + HAL_GPIO_WritePin(GPIOB, GPIO_PIN_5, GPIO_PIN_SET); + 800251a: 2201 movs r2, #1 + 800251c: 2120 movs r1, #32 + 800251e: 4884 ldr r0, [pc, #528] @ (8002730 ) + 8002520: f001 fc7d bl 8003e1e + main_state = STATE_RUNNING_OK; - 8002324: 4b68 ldr r3, [pc, #416] @ (80024c8 ) - 8002326: 2200 movs r2, #0 - 8002328: 701a strb r2, [r3, #0] + 8002524: 4b83 ldr r3, [pc, #524] @ (8002734 ) + 8002526: 2200 movs r2, #0 + 8002528: 701a strb r2, [r3, #0] { current_millis = HAL_GetTick(); - 800232a: f000 fc9f bl 8002c6c - 800232e: 62f8 str r0, [r7, #44] @ 0x2c + 800252a: f000 fcdd bl 8002ee8 + 800252e: 6278 str r0, [r7, #36] @ 0x24 // Piscar LED verde em PB5 a cada 0,5 segundos if ((current_millis - previous_millis_green) >= 500) - 8002330: 6afa ldr r2, [r7, #44] @ 0x2c - 8002332: 6bbb ldr r3, [r7, #56] @ 0x38 - 8002334: 1ad3 subs r3, r2, r3 - 8002336: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 - 800233a: d372 bcc.n 8002422 + 8002530: 6a7a ldr r2, [r7, #36] @ 0x24 + 8002532: 6c3b ldr r3, [r7, #64] @ 0x40 + 8002534: 1ad3 subs r3, r2, r3 + 8002536: f5b3 7ffa cmp.w r3, #500 @ 0x1f4 + 800253a: d31b bcc.n 8002574 { previous_millis_green = current_millis; - 800233c: 6afb ldr r3, [r7, #44] @ 0x2c - 800233e: 63bb str r3, [r7, #56] @ 0x38 + 800253c: 6a7b ldr r3, [r7, #36] @ 0x24 + 800253e: 643b str r3, [r7, #64] @ 0x40 HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_5); - 8002340: 2120 movs r1, #32 - 8002342: 4860 ldr r0, [pc, #384] @ (80024c4 ) - 8002344: f001 fc45 bl 8003bd2 + 8002540: 2120 movs r1, #32 + 8002542: 487b ldr r0, [pc, #492] @ (8002730 ) + 8002544: f001 fc83 bl 8003e4e // Check if state changed and send via RS485 uint8_t current_green_state = HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_5); - 8002348: 2120 movs r1, #32 - 800234a: 485e ldr r0, [pc, #376] @ (80024c4 ) - 800234c: f001 fc12 bl 8003b74 - 8002350: 4603 mov r3, r0 - 8002352: f887 302b strb.w r3, [r7, #43] @ 0x2b + 8002548: 2120 movs r1, #32 + 800254a: 4879 ldr r0, [pc, #484] @ (8002730 ) + 800254c: f001 fc50 bl 8003df0 + 8002550: 4603 mov r3, r0 + 8002552: f887 3023 strb.w r3, [r7, #35] @ 0x23 if (current_green_state != previous_green_state) - 8002356: f897 202b ldrb.w r2, [r7, #43] @ 0x2b - 800235a: f897 303f ldrb.w r3, [r7, #63] @ 0x3f - 800235e: 429a cmp r2, r3 - 8002360: d008 beq.n 8002374 + 8002556: f897 2023 ldrb.w r2, [r7, #35] @ 0x23 + 800255a: f897 3047 ldrb.w r3, [r7, #71] @ 0x47 + 800255e: 429a cmp r2, r3 + 8002560: d008 beq.n 8002574 { previous_green_state = current_green_state; - 8002362: f897 302b ldrb.w r3, [r7, #43] @ 0x2b - 8002366: f887 303f strb.w r3, [r7, #63] @ 0x3f + 8002562: f897 3023 ldrb.w r3, [r7, #35] @ 0x23 + 8002566: f887 3047 strb.w r3, [r7, #71] @ 0x47 uint8_t led_data[2] = {0x01, current_green_state}; // Command 0x01 for green LED - 800236a: 2301 movs r3, #1 - 800236c: 713b strb r3, [r7, #4] - 800236e: f897 302b ldrb.w r3, [r7, #43] @ 0x2b - 8002372: 717b strb r3, [r7, #5] + 800256a: 2301 movs r3, #1 + 800256c: 723b strb r3, [r7, #8] + 800256e: f897 3023 ldrb.w r3, [r7, #35] @ 0x23 + 8002572: 727b strb r3, [r7, #9] - } - - temperature_RTD = AD5934_GetTemperature(); - 8002374: f7fe fe6e bl 8001054 - 8002378: 6278 str r0, [r7, #36] @ 0x24 - FloatToString(tempString, temperature_RTD); - 800237a: 6a78 ldr r0, [r7, #36] @ 0x24 - 800237c: f7fe f97c bl 8000678 <__aeabi_f2d> - 8002380: 4602 mov r2, r0 - 8002382: 460b mov r3, r1 - 8002384: f107 0108 add.w r1, r7, #8 - 8002388: 4608 mov r0, r1 - 800238a: f000 f8f7 bl 800257c - status0 = rs485_send_broadcast(tempString, (strlen((char*)tempString)-1)); - 800238e: f107 0308 add.w r3, r7, #8 - 8002392: 4618 mov r0, r3 - 8002394: f7fd feda bl 800014c - 8002398: 4603 mov r3, r0 - 800239a: b29b uxth r3, r3 - 800239c: 3b01 subs r3, #1 - 800239e: b29a uxth r2, r3 - 80023a0: f107 0308 add.w r3, r7, #8 - 80023a4: 4611 mov r1, r2 - 80023a6: 4618 mov r0, r3 - 80023a8: f000 fa3a bl 8002820 - 80023ac: 4603 mov r3, r0 - 80023ae: f887 3023 strb.w r3, [r7, #35] @ 0x23 - status1 = rs485_send_broadcast(newline_temp, strlen((char*)newline_temp)); - 80023b2: 4847 ldr r0, [pc, #284] @ (80024d0 ) - 80023b4: f7fd feca bl 800014c - 80023b8: 4603 mov r3, r0 - 80023ba: b29b uxth r3, r3 - 80023bc: 4619 mov r1, r3 - 80023be: 4844 ldr r0, [pc, #272] @ (80024d0 ) - 80023c0: f000 fa2e bl 8002820 - 80023c4: 4603 mov r3, r0 - 80023c6: f887 3022 strb.w r3, [r7, #34] @ 0x22 - - admittance_EC = AD5934_GetImpedance(temperature_RTD); - 80023ca: 6a78 ldr r0, [r7, #36] @ 0x24 - 80023cc: f7ff f83e bl 800144c - 80023d0: 61f8 str r0, [r7, #28] - FloatToString(tempString, admittance_EC); - 80023d2: 69f8 ldr r0, [r7, #28] - 80023d4: f7fe f950 bl 8000678 <__aeabi_f2d> - 80023d8: 4602 mov r2, r0 - 80023da: 460b mov r3, r1 - 80023dc: f107 0108 add.w r1, r7, #8 - 80023e0: 4608 mov r0, r1 - 80023e2: f000 f8cb bl 800257c - status0 = rs485_send_broadcast(tempString, (strlen((char*)tempString)-1)); - 80023e6: f107 0308 add.w r3, r7, #8 - 80023ea: 4618 mov r0, r3 - 80023ec: f7fd feae bl 800014c - 80023f0: 4603 mov r3, r0 - 80023f2: b29b uxth r3, r3 - 80023f4: 3b01 subs r3, #1 - 80023f6: b29a uxth r2, r3 - 80023f8: f107 0308 add.w r3, r7, #8 - 80023fc: 4611 mov r1, r2 - 80023fe: 4618 mov r0, r3 - 8002400: f000 fa0e bl 8002820 - 8002404: 4603 mov r3, r0 - 8002406: f887 3023 strb.w r3, [r7, #35] @ 0x23 - status1 = rs485_send_broadcast(newline_admi, strlen((char*)newline_admi)); - 800240a: 4832 ldr r0, [pc, #200] @ (80024d4 ) - 800240c: f7fd fe9e bl 800014c - 8002410: 4603 mov r3, r0 - 8002412: b29b uxth r3, r3 - 8002414: 4619 mov r1, r3 - 8002416: 482f ldr r0, [pc, #188] @ (80024d4 ) - 8002418: f000 fa02 bl 8002820 - 800241c: 4603 mov r3, r0 - 800241e: f887 3022 strb.w r3, [r7, #34] @ 0x22 } // Piscar LED vermelho em PB4 a cada 1 segundo if ((current_millis - previous_millis_red) >= 1000) - 8002422: 6afa ldr r2, [r7, #44] @ 0x2c - 8002424: 6b7b ldr r3, [r7, #52] @ 0x34 - 8002426: 1ad3 subs r3, r2, r3 - 8002428: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 - 800242c: f4ff af7d bcc.w 800232a + 8002574: 6a7a ldr r2, [r7, #36] @ 0x24 + 8002576: 6bfb ldr r3, [r7, #60] @ 0x3c + 8002578: 1ad3 subs r3, r2, r3 + 800257a: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8 + 800257e: d3d4 bcc.n 800252a { previous_millis_red = current_millis; - 8002430: 6afb ldr r3, [r7, #44] @ 0x2c - 8002432: 637b str r3, [r7, #52] @ 0x34 + 8002580: 6a7b ldr r3, [r7, #36] @ 0x24 + 8002582: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_4); - 8002434: 2110 movs r1, #16 - 8002436: 4823 ldr r0, [pc, #140] @ (80024c4 ) - 8002438: f001 fbcb bl 8003bd2 + 8002584: 2110 movs r1, #16 + 8002586: 486a ldr r0, [pc, #424] @ (8002730 ) + 8002588: f001 fc61 bl 8003e4e // Check if state changed and send via RS485 uint8_t current_red_state = HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_4); - 800243c: 2110 movs r1, #16 - 800243e: 4821 ldr r0, [pc, #132] @ (80024c4 ) - 8002440: f001 fb98 bl 8003b74 - 8002444: 4603 mov r3, r0 - 8002446: 76fb strb r3, [r7, #27] + 800258c: 2110 movs r1, #16 + 800258e: 4868 ldr r0, [pc, #416] @ (8002730 ) + 8002590: f001 fc2e bl 8003df0 + 8002594: 4603 mov r3, r0 + 8002596: f887 3022 strb.w r3, [r7, #34] @ 0x22 if (current_red_state != previous_red_state) - 8002448: 7efa ldrb r2, [r7, #27] - 800244a: f897 303e ldrb.w r3, [r7, #62] @ 0x3e - 800244e: 429a cmp r2, r3 - 8002450: d006 beq.n 8002460 + 800259a: f897 2022 ldrb.w r2, [r7, #34] @ 0x22 + 800259e: f897 3046 ldrb.w r3, [r7, #70] @ 0x46 + 80025a2: 429a cmp r2, r3 + 80025a4: d008 beq.n 80025b8 { previous_red_state = current_red_state; - 8002452: 7efb ldrb r3, [r7, #27] - 8002454: f887 303e strb.w r3, [r7, #62] @ 0x3e + 80025a6: f897 3022 ldrb.w r3, [r7, #34] @ 0x22 + 80025aa: f887 3046 strb.w r3, [r7, #70] @ 0x46 uint8_t led_data[2] = {0x02, current_red_state}; // Command 0x02 for red LED - 8002458: 2302 movs r3, #2 - 800245a: 703b strb r3, [r7, #0] - 800245c: 7efb ldrb r3, [r7, #27] - 800245e: 707b strb r3, [r7, #1] + 80025ae: 2302 movs r3, #2 + 80025b0: 713b strb r3, [r7, #4] + 80025b2: f897 3022 ldrb.w r3, [r7, #34] @ 0x22 + 80025b6: 717b strb r3, [r7, #5] } + status1 = rs485_send_broadcast(tm_t, strlen((char*)tm_t)); + 80025b8: 485f ldr r0, [pc, #380] @ (8002738 ) + 80025ba: f7fd fdc7 bl 800014c + 80025be: 4603 mov r3, r0 + 80025c0: b29b uxth r3, r3 + 80025c2: 4619 mov r1, r3 + 80025c4: 485c ldr r0, [pc, #368] @ (8002738 ) + 80025c6: f000 fa69 bl 8002a9c + 80025ca: 4603 mov r3, r0 + 80025cc: f887 3021 strb.w r3, [r7, #33] @ 0x21 + temperature_RTD = AD5934_GetTemperature(refResistance); + 80025d0: 6b78 ldr r0, [r7, #52] @ 0x34 + 80025d2: f7fe fdcb bl 800116c + 80025d6: 63b8 str r0, [r7, #56] @ 0x38 + FloatToString(tempString, temperature_RTD); + 80025d8: 6bb8 ldr r0, [r7, #56] @ 0x38 + 80025da: f7fe f84d bl 8000678 <__aeabi_f2d> + 80025de: 4602 mov r2, r0 + 80025e0: 460b mov r3, r1 + 80025e2: f107 010c add.w r1, r7, #12 + 80025e6: 4608 mov r0, r1 + 80025e8: f000 f906 bl 80027f8 + status0 = rs485_send_broadcast(tempString, (strlen((char*)tempString)-1)); + 80025ec: f107 030c add.w r3, r7, #12 + 80025f0: 4618 mov r0, r3 + 80025f2: f7fd fdab bl 800014c + 80025f6: 4603 mov r3, r0 + 80025f8: b29b uxth r3, r3 + 80025fa: 3b01 subs r3, #1 + 80025fc: b29a uxth r2, r3 + 80025fe: f107 030c add.w r3, r7, #12 + 8002602: 4611 mov r1, r2 + 8002604: 4618 mov r0, r3 + 8002606: f000 fa49 bl 8002a9c + 800260a: 4603 mov r3, r0 + 800260c: f887 3020 strb.w r3, [r7, #32] + status1 = rs485_send_broadcast(newline_temp, strlen((char*)newline_temp)); + 8002610: 484a ldr r0, [pc, #296] @ (800273c ) + 8002612: f7fd fd9b bl 800014c + 8002616: 4603 mov r3, r0 + 8002618: b29b uxth r3, r3 + 800261a: 4619 mov r1, r3 + 800261c: 4847 ldr r0, [pc, #284] @ (800273c ) + 800261e: f000 fa3d bl 8002a9c + 8002622: 4603 mov r3, r0 + 8002624: f887 3021 strb.w r3, [r7, #33] @ 0x21 - ph_compensated = ADSCalculate_ph_Uncompensated(); - 8002460: f7ff fc02 bl 8001c68 - 8002464: 6178 str r0, [r7, #20] + status1 = rs485_send_broadcast(ad_t, strlen((char*)ad_t)); + 8002628: 4845 ldr r0, [pc, #276] @ (8002740 ) + 800262a: f7fd fd8f bl 800014c + 800262e: 4603 mov r3, r0 + 8002630: b29b uxth r3, r3 + 8002632: 4619 mov r1, r3 + 8002634: 4842 ldr r0, [pc, #264] @ (8002740 ) + 8002636: f000 fa31 bl 8002a9c + 800263a: 4603 mov r3, r0 + 800263c: f887 3021 strb.w r3, [r7, #33] @ 0x21 + admittance_EC = AD5934_GetImpedance(temperature_RTD); + 8002640: 6bb8 ldr r0, [r7, #56] @ 0x38 + 8002642: f7fe fe85 bl 8001350 + 8002646: 61f8 str r0, [r7, #28] + FloatToString(tempString, admittance_EC); + 8002648: 69f8 ldr r0, [r7, #28] + 800264a: f7fe f815 bl 8000678 <__aeabi_f2d> + 800264e: 4602 mov r2, r0 + 8002650: 460b mov r3, r1 + 8002652: f107 010c add.w r1, r7, #12 + 8002656: 4608 mov r0, r1 + 8002658: f000 f8ce bl 80027f8 + status0 = rs485_send_broadcast(tempString, (strlen((char*)tempString)-1)); + 800265c: f107 030c add.w r3, r7, #12 + 8002660: 4618 mov r0, r3 + 8002662: f7fd fd73 bl 800014c + 8002666: 4603 mov r3, r0 + 8002668: b29b uxth r3, r3 + 800266a: 3b01 subs r3, #1 + 800266c: b29a uxth r2, r3 + 800266e: f107 030c add.w r3, r7, #12 + 8002672: 4611 mov r1, r2 + 8002674: 4618 mov r0, r3 + 8002676: f000 fa11 bl 8002a9c + 800267a: 4603 mov r3, r0 + 800267c: f887 3020 strb.w r3, [r7, #32] + status1 = rs485_send_broadcast(newline_admi, strlen((char*)newline_admi)); + 8002680: 4830 ldr r0, [pc, #192] @ (8002744 ) + 8002682: f7fd fd63 bl 800014c + 8002686: 4603 mov r3, r0 + 8002688: b29b uxth r3, r3 + 800268a: 4619 mov r1, r3 + 800268c: 482d ldr r0, [pc, #180] @ (8002744 ) + 800268e: f000 fa05 bl 8002a9c + 8002692: 4603 mov r3, r0 + 8002694: f887 3021 strb.w r3, [r7, #33] @ 0x21 + + status1 = rs485_send_broadcast(ph_t, strlen((char*)ph_t)); + 8002698: 482b ldr r0, [pc, #172] @ (8002748 ) + 800269a: f7fd fd57 bl 800014c + 800269e: 4603 mov r3, r0 + 80026a0: b29b uxth r3, r3 + 80026a2: 4619 mov r1, r3 + 80026a4: 4828 ldr r0, [pc, #160] @ (8002748 ) + 80026a6: f000 f9f9 bl 8002a9c + 80026aa: 4603 mov r3, r0 + 80026ac: f887 3021 strb.w r3, [r7, #33] @ 0x21 + ph_compensated = 10*ADSCalculate_ph_mV();//ADSCalculate_ph_Compensated(temperature_RTD); + 80026b0: f7ff fa6a bl 8001b88 + 80026b4: 4603 mov r3, r0 + 80026b6: 4925 ldr r1, [pc, #148] @ (800274c ) + 80026b8: 4618 mov r0, r3 + 80026ba: f7fe f9f3 bl 8000aa4 <__aeabi_fmul> + 80026be: 4603 mov r3, r0 + 80026c0: 61bb str r3, [r7, #24] FloatToString(tempString, ph_compensated); - 8002466: 6978 ldr r0, [r7, #20] - 8002468: f7fe f906 bl 8000678 <__aeabi_f2d> - 800246c: 4602 mov r2, r0 - 800246e: 460b mov r3, r1 - 8002470: f107 0108 add.w r1, r7, #8 - 8002474: 4608 mov r0, r1 - 8002476: f000 f881 bl 800257c - status0 = rs485_send_broadcast(tempString, (strlen((char*)tempString)-1)); - 800247a: f107 0308 add.w r3, r7, #8 - 800247e: 4618 mov r0, r3 - 8002480: f7fd fe64 bl 800014c - 8002484: 4603 mov r3, r0 - 8002486: b29b uxth r3, r3 - 8002488: 3b01 subs r3, #1 - 800248a: b29a uxth r2, r3 - 800248c: f107 0308 add.w r3, r7, #8 - 8002490: 4611 mov r1, r2 - 8002492: 4618 mov r0, r3 - 8002494: f000 f9c4 bl 8002820 - 8002498: 4603 mov r3, r0 - 800249a: f887 3023 strb.w r3, [r7, #35] @ 0x23 - status1 = rs485_send_broadcast(newline_ph, strlen((char*)newline_ph)); - 800249e: 480e ldr r0, [pc, #56] @ (80024d8 ) - 80024a0: f7fd fe54 bl 800014c - 80024a4: 4603 mov r3, r0 - 80024a6: b29b uxth r3, r3 - 80024a8: 4619 mov r1, r3 - 80024aa: 480b ldr r0, [pc, #44] @ (80024d8 ) - 80024ac: f000 f9b8 bl 8002820 - 80024b0: 4603 mov r3, r0 - 80024b2: f887 3022 strb.w r3, [r7, #34] @ 0x22 - current_millis = HAL_GetTick(); - 80024b6: e738 b.n 800232a - 80024b8: 200001ac .word 0x200001ac - 80024bc: 200005ac .word 0x200005ac - 80024c0: 20000174 .word 0x20000174 - 80024c4: 40010c00 .word 0x40010c00 - 80024c8: 20000654 .word 0x20000654 - 80024cc: 40010800 .word 0x40010800 - 80024d0: 20000010 .word 0x20000010 - 80024d4: 20000008 .word 0x20000008 - 80024d8: 20000000 .word 0x20000000 + 80026c2: 69b8 ldr r0, [r7, #24] + 80026c4: f7fd ffd8 bl 8000678 <__aeabi_f2d> + 80026c8: 4602 mov r2, r0 + 80026ca: 460b mov r3, r1 + 80026cc: f107 010c add.w r1, r7, #12 + 80026d0: 4608 mov r0, r1 + 80026d2: f000 f891 bl 80027f8 -080024dc : + status0 = rs485_send_broadcast(tempString, (strlen((char*)tempString)-1)); + 80026d6: f107 030c add.w r3, r7, #12 + 80026da: 4618 mov r0, r3 + 80026dc: f7fd fd36 bl 800014c + 80026e0: 4603 mov r3, r0 + 80026e2: b29b uxth r3, r3 + 80026e4: 3b01 subs r3, #1 + 80026e6: b29a uxth r2, r3 + 80026e8: f107 030c add.w r3, r7, #12 + 80026ec: 4611 mov r1, r2 + 80026ee: 4618 mov r0, r3 + 80026f0: f000 f9d4 bl 8002a9c + 80026f4: 4603 mov r3, r0 + 80026f6: f887 3020 strb.w r3, [r7, #32] + status1 = rs485_send_broadcast(newline_ph, strlen((char*)newline_ph)); + 80026fa: 4815 ldr r0, [pc, #84] @ (8002750 ) + 80026fc: f7fd fd26 bl 800014c + 8002700: 4603 mov r3, r0 + 8002702: b29b uxth r3, r3 + 8002704: 4619 mov r1, r3 + 8002706: 4812 ldr r0, [pc, #72] @ (8002750 ) + 8002708: f000 f9c8 bl 8002a9c + 800270c: 4603 mov r3, r0 + 800270e: f887 3021 strb.w r3, [r7, #33] @ 0x21 + + status1 = rs485_send_broadcast(newline, strlen((char*)newline)); + 8002712: 4810 ldr r0, [pc, #64] @ (8002754 ) + 8002714: f7fd fd1a bl 800014c + 8002718: 4603 mov r3, r0 + 800271a: b29b uxth r3, r3 + 800271c: 4619 mov r1, r3 + 800271e: 480d ldr r0, [pc, #52] @ (8002754 ) + 8002720: f000 f9bc bl 8002a9c + 8002724: 4603 mov r3, r0 + 8002726: f887 3021 strb.w r3, [r7, #33] @ 0x21 + current_millis = HAL_GetTick(); + 800272a: e6fe b.n 800252a + 800272c: 20000224 .word 0x20000224 + 8002730: 40010c00 .word 0x40010c00 + 8002734: 200006cc .word 0x200006cc + 8002738: 2000002c .word 0x2000002c + 800273c: 20000014 .word 0x20000014 + 8002740: 2000001c .word 0x2000001c + 8002744: 2000000c .word 0x2000000c + 8002748: 20000024 .word 0x20000024 + 800274c: 41200000 .word 0x41200000 + 8002750: 20000004 .word 0x20000004 + 8002754: 20000000 .word 0x20000000 + +08002758 : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { - 80024dc: b580 push {r7, lr} - 80024de: b094 sub sp, #80 @ 0x50 - 80024e0: af00 add r7, sp, #0 + 8002758: b580 push {r7, lr} + 800275a: b094 sub sp, #80 @ 0x50 + 800275c: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - 80024e2: f107 0328 add.w r3, r7, #40 @ 0x28 - 80024e6: 2228 movs r2, #40 @ 0x28 - 80024e8: 2100 movs r1, #0 - 80024ea: 4618 mov r0, r3 - 80024ec: f003 fe9c bl 8006228 + 800275e: f107 0328 add.w r3, r7, #40 @ 0x28 + 8002762: 2228 movs r2, #40 @ 0x28 + 8002764: 2100 movs r1, #0 + 8002766: 4618 mov r0, r3 + 8002768: f003 fe9c bl 80064a4 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - 80024f0: f107 0314 add.w r3, r7, #20 - 80024f4: 2200 movs r2, #0 - 80024f6: 601a str r2, [r3, #0] - 80024f8: 605a str r2, [r3, #4] - 80024fa: 609a str r2, [r3, #8] - 80024fc: 60da str r2, [r3, #12] - 80024fe: 611a str r2, [r3, #16] + 800276c: f107 0314 add.w r3, r7, #20 + 8002770: 2200 movs r2, #0 + 8002772: 601a str r2, [r3, #0] + 8002774: 605a str r2, [r3, #4] + 8002776: 609a str r2, [r3, #8] + 8002778: 60da str r2, [r3, #12] + 800277a: 611a str r2, [r3, #16] RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; - 8002500: 1d3b adds r3, r7, #4 - 8002502: 2200 movs r2, #0 - 8002504: 601a str r2, [r3, #0] - 8002506: 605a str r2, [r3, #4] - 8002508: 609a str r2, [r3, #8] - 800250a: 60da str r2, [r3, #12] + 800277c: 1d3b adds r3, r7, #4 + 800277e: 2200 movs r2, #0 + 8002780: 601a str r2, [r3, #0] + 8002782: 605a str r2, [r3, #4] + 8002784: 609a str r2, [r3, #8] + 8002786: 60da str r2, [r3, #12] /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; - 800250c: 2301 movs r3, #1 - 800250e: 62bb str r3, [r7, #40] @ 0x28 + 8002788: 2301 movs r3, #1 + 800278a: 62bb str r3, [r7, #40] @ 0x28 RCC_OscInitStruct.HSEState = RCC_HSE_ON; - 8002510: f44f 3380 mov.w r3, #65536 @ 0x10000 - 8002514: 62fb str r3, [r7, #44] @ 0x2c + 800278c: f44f 3380 mov.w r3, #65536 @ 0x10000 + 8002790: 62fb str r3, [r7, #44] @ 0x2c RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; - 8002516: 2300 movs r3, #0 - 8002518: 647b str r3, [r7, #68] @ 0x44 + 8002792: 2300 movs r3, #0 + 8002794: 647b str r3, [r7, #68] @ 0x44 if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - 800251a: f107 0328 add.w r3, r7, #40 @ 0x28 - 800251e: 4618 mov r0, r3 - 8002520: f002 fba4 bl 8004c6c - 8002524: 4603 mov r3, r0 - 8002526: 2b00 cmp r3, #0 - 8002528: d001 beq.n 800252e + 8002796: f107 0328 add.w r3, r7, #40 @ 0x28 + 800279a: 4618 mov r0, r3 + 800279c: f002 fba4 bl 8004ee8 + 80027a0: 4603 mov r3, r0 + 80027a2: 2b00 cmp r3, #0 + 80027a4: d001 beq.n 80027aa { Error_Handler(); - 800252a: f000 f93b bl 80027a4 + 80027a6: f000 f93b bl 8002a20 } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - 800252e: 230f movs r3, #15 - 8002530: 617b str r3, [r7, #20] + 80027aa: 230f movs r3, #15 + 80027ac: 617b str r3, [r7, #20] |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_HSE; - 8002532: 2301 movs r3, #1 - 8002534: 61bb str r3, [r7, #24] + 80027ae: 2301 movs r3, #1 + 80027b0: 61bb str r3, [r7, #24] RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; - 8002536: 2300 movs r3, #0 - 8002538: 61fb str r3, [r7, #28] + 80027b2: 2300 movs r3, #0 + 80027b4: 61fb str r3, [r7, #28] RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1; - 800253a: 2300 movs r3, #0 - 800253c: 623b str r3, [r7, #32] + 80027b6: 2300 movs r3, #0 + 80027b8: 623b str r3, [r7, #32] RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; - 800253e: 2300 movs r3, #0 - 8002540: 627b str r3, [r7, #36] @ 0x24 + 80027ba: 2300 movs r3, #0 + 80027bc: 627b str r3, [r7, #36] @ 0x24 if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK) - 8002542: f107 0314 add.w r3, r7, #20 - 8002546: 2100 movs r1, #0 - 8002548: 4618 mov r0, r3 - 800254a: f002 fe11 bl 8005170 - 800254e: 4603 mov r3, r0 - 8002550: 2b00 cmp r3, #0 - 8002552: d001 beq.n 8002558 + 80027be: f107 0314 add.w r3, r7, #20 + 80027c2: 2100 movs r1, #0 + 80027c4: 4618 mov r0, r3 + 80027c6: f002 fe11 bl 80053ec + 80027ca: 4603 mov r3, r0 + 80027cc: 2b00 cmp r3, #0 + 80027ce: d001 beq.n 80027d4 { Error_Handler(); - 8002554: f000 f926 bl 80027a4 + 80027d0: f000 f926 bl 8002a20 } PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC; - 8002558: 2302 movs r3, #2 - 800255a: 607b str r3, [r7, #4] + 80027d4: 2302 movs r3, #2 + 80027d6: 607b str r3, [r7, #4] PeriphClkInit.AdcClockSelection = RCC_ADCPCLK2_DIV8; - 800255c: f44f 4340 mov.w r3, #49152 @ 0xc000 - 8002560: 60fb str r3, [r7, #12] + 80027d8: f44f 4340 mov.w r3, #49152 @ 0xc000 + 80027dc: 60fb str r3, [r7, #12] if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) - 8002562: 1d3b adds r3, r7, #4 - 8002564: 4618 mov r0, r3 - 8002566: f002 ff93 bl 8005490 - 800256a: 4603 mov r3, r0 - 800256c: 2b00 cmp r3, #0 - 800256e: d001 beq.n 8002574 + 80027de: 1d3b adds r3, r7, #4 + 80027e0: 4618 mov r0, r3 + 80027e2: f002 ff93 bl 800570c + 80027e6: 4603 mov r3, r0 + 80027e8: 2b00 cmp r3, #0 + 80027ea: d001 beq.n 80027f0 { Error_Handler(); - 8002570: f000 f918 bl 80027a4 + 80027ec: f000 f918 bl 8002a20 } } - 8002574: bf00 nop - 8002576: 3750 adds r7, #80 @ 0x50 - 8002578: 46bd mov sp, r7 - 800257a: bd80 pop {r7, pc} + 80027f0: bf00 nop + 80027f2: 3750 adds r7, #80 @ 0x50 + 80027f4: 46bd mov sp, r7 + 80027f6: bd80 pop {r7, pc} -0800257c : +080027f8 : * @param val - value to be converted * * @return None. *******************************************************************************/ void FloatToString(char *buf, double val) { - 800257c: b5b0 push {r4, r5, r7, lr} - 800257e: b096 sub sp, #88 @ 0x58 - 8002580: af00 add r7, sp, #0 - 8002582: 60f8 str r0, [r7, #12] - 8002584: e9c7 2300 strd r2, r3, [r7] + 80027f8: b5b0 push {r4, r5, r7, lr} + 80027fa: b096 sub sp, #88 @ 0x58 + 80027fc: af00 add r7, sp, #0 + 80027fe: 60f8 str r0, [r7, #12] + 8002800: e9c7 2300 strd r2, r3, [r7] char temp[20]; // Buffer auxiliar para construção segura int i = 0; - 8002588: 2300 movs r3, #0 - 800258a: 657b str r3, [r7, #84] @ 0x54 + 8002804: 2300 movs r3, #0 + 8002806: 657b str r3, [r7, #84] @ 0x54 // 1. Tratar sinal negativo if (val < 0) { - 800258c: f04f 0200 mov.w r2, #0 - 8002590: f04f 0300 mov.w r3, #0 - 8002594: e9d7 0100 ldrd r0, r1, [r7] - 8002598: f7fe f926 bl 80007e8 <__aeabi_dcmplt> - 800259c: 4603 mov r3, r0 - 800259e: 2b00 cmp r3, #0 - 80025a0: d00d beq.n 80025be + 8002808: f04f 0200 mov.w r2, #0 + 800280c: f04f 0300 mov.w r3, #0 + 8002810: e9d7 0100 ldrd r0, r1, [r7] + 8002814: f7fd ffe8 bl 80007e8 <__aeabi_dcmplt> + 8002818: 4603 mov r3, r0 + 800281a: 2b00 cmp r3, #0 + 800281c: d00d beq.n 800283a temp[i++] = '-'; - 80025a2: 6d7b ldr r3, [r7, #84] @ 0x54 - 80025a4: 1c5a adds r2, r3, #1 - 80025a6: 657a str r2, [r7, #84] @ 0x54 - 80025a8: 3358 adds r3, #88 @ 0x58 - 80025aa: 443b add r3, r7 - 80025ac: 222d movs r2, #45 @ 0x2d - 80025ae: f803 2c30 strb.w r2, [r3, #-48] + 800281e: 6d7b ldr r3, [r7, #84] @ 0x54 + 8002820: 1c5a adds r2, r3, #1 + 8002822: 657a str r2, [r7, #84] @ 0x54 + 8002824: 3358 adds r3, #88 @ 0x58 + 8002826: 443b add r3, r7 + 8002828: 222d movs r2, #45 @ 0x2d + 800282a: f803 2c30 strb.w r2, [r3, #-48] val = -val; - 80025b2: 683c ldr r4, [r7, #0] - 80025b4: 687b ldr r3, [r7, #4] - 80025b6: f083 4500 eor.w r5, r3, #2147483648 @ 0x80000000 - 80025ba: e9c7 4500 strd r4, r5, [r7] + 800282e: 683c ldr r4, [r7, #0] + 8002830: 687b ldr r3, [r7, #4] + 8002832: f083 4500 eor.w r5, r3, #2147483648 @ 0x80000000 + 8002836: e9c7 4500 strd r4, r5, [r7] } // 2. Separar parte inteira e fracionária long intPart = (long)val; - 80025be: e9d7 0100 ldrd r0, r1, [r7] - 80025c2: f7fe f939 bl 8000838 <__aeabi_d2iz> - 80025c6: 4603 mov r3, r0 - 80025c8: 653b str r3, [r7, #80] @ 0x50 + 800283a: e9d7 0100 ldrd r0, r1, [r7] + 800283e: f7fd fffb bl 8000838 <__aeabi_d2iz> + 8002842: 4603 mov r3, r0 + 8002844: 653b str r3, [r7, #80] @ 0x50 // Multiplicamos por 1000 para obter 3 casas decimais fixas int fracPart = (int)((val - (double)intPart) * 1000.0 + 0.5); - 80025ca: 6d38 ldr r0, [r7, #80] @ 0x50 - 80025cc: f7fe f842 bl 8000654 <__aeabi_i2d> - 80025d0: 4602 mov r2, r0 - 80025d2: 460b mov r3, r1 - 80025d4: e9d7 0100 ldrd r0, r1, [r7] - 80025d8: f7fd feee bl 80003b8 <__aeabi_dsub> - 80025dc: 4602 mov r2, r0 - 80025de: 460b mov r3, r1 - 80025e0: 4610 mov r0, r2 - 80025e2: 4619 mov r1, r3 - 80025e4: f04f 0200 mov.w r2, #0 - 80025e8: 4b6a ldr r3, [pc, #424] @ (8002794 ) - 80025ea: f7fd fdb7 bl 800015c <__aeabi_dmul> - 80025ee: 4602 mov r2, r0 - 80025f0: 460b mov r3, r1 - 80025f2: 4610 mov r0, r2 - 80025f4: 4619 mov r1, r3 - 80025f6: f04f 0200 mov.w r2, #0 - 80025fa: 4b67 ldr r3, [pc, #412] @ (8002798 ) - 80025fc: f7fd fede bl 80003bc <__adddf3> - 8002600: 4602 mov r2, r0 - 8002602: 460b mov r3, r1 - 8002604: 4610 mov r0, r2 - 8002606: 4619 mov r1, r3 - 8002608: f7fe f916 bl 8000838 <__aeabi_d2iz> - 800260c: 4603 mov r3, r0 - 800260e: 63fb str r3, [r7, #60] @ 0x3c + 8002846: 6d38 ldr r0, [r7, #80] @ 0x50 + 8002848: f7fd ff04 bl 8000654 <__aeabi_i2d> + 800284c: 4602 mov r2, r0 + 800284e: 460b mov r3, r1 + 8002850: e9d7 0100 ldrd r0, r1, [r7] + 8002854: f7fd fdb0 bl 80003b8 <__aeabi_dsub> + 8002858: 4602 mov r2, r0 + 800285a: 460b mov r3, r1 + 800285c: 4610 mov r0, r2 + 800285e: 4619 mov r1, r3 + 8002860: f04f 0200 mov.w r2, #0 + 8002864: 4b6a ldr r3, [pc, #424] @ (8002a10 ) + 8002866: f7fd fc79 bl 800015c <__aeabi_dmul> + 800286a: 4602 mov r2, r0 + 800286c: 460b mov r3, r1 + 800286e: 4610 mov r0, r2 + 8002870: 4619 mov r1, r3 + 8002872: f04f 0200 mov.w r2, #0 + 8002876: 4b67 ldr r3, [pc, #412] @ (8002a14 ) + 8002878: f7fd fda0 bl 80003bc <__adddf3> + 800287c: 4602 mov r2, r0 + 800287e: 460b mov r3, r1 + 8002880: 4610 mov r0, r2 + 8002882: 4619 mov r1, r3 + 8002884: f7fd ffd8 bl 8000838 <__aeabi_d2iz> + 8002888: 4603 mov r3, r0 + 800288a: 63fb str r3, [r7, #60] @ 0x3c // 3. Converter a parte inteira para o buffer temp // Usamos um buffer temporário de inversão para não precisar de lógica complexa de ponteiro char intRev[12]; int j = 0; - 8002610: 2300 movs r3, #0 - 8002612: 64fb str r3, [r7, #76] @ 0x4c + 800288c: 2300 movs r3, #0 + 800288e: 64fb str r3, [r7, #76] @ 0x4c if (intPart == 0) { - 8002614: 6d3b ldr r3, [r7, #80] @ 0x50 - 8002616: 2b00 cmp r3, #0 - 8002618: d126 bne.n 8002668 + 8002890: 6d3b ldr r3, [r7, #80] @ 0x50 + 8002892: 2b00 cmp r3, #0 + 8002894: d126 bne.n 80028e4 intRev[j++] = '0'; - 800261a: 6cfb ldr r3, [r7, #76] @ 0x4c - 800261c: 1c5a adds r2, r3, #1 - 800261e: 64fa str r2, [r7, #76] @ 0x4c - 8002620: 3358 adds r3, #88 @ 0x58 - 8002622: 443b add r3, r7 - 8002624: 2230 movs r2, #48 @ 0x30 - 8002626: f803 2c3c strb.w r2, [r3, #-60] - 800262a: e020 b.n 800266e + 8002896: 6cfb ldr r3, [r7, #76] @ 0x4c + 8002898: 1c5a adds r2, r3, #1 + 800289a: 64fa str r2, [r7, #76] @ 0x4c + 800289c: 3358 adds r3, #88 @ 0x58 + 800289e: 443b add r3, r7 + 80028a0: 2230 movs r2, #48 @ 0x30 + 80028a2: f803 2c3c strb.w r2, [r3, #-60] + 80028a6: e020 b.n 80028ea } else { while (intPart > 0) { intRev[j++] = (intPart % 10) + '0'; - 800262c: 6d3a ldr r2, [r7, #80] @ 0x50 - 800262e: 4b5b ldr r3, [pc, #364] @ (800279c ) - 8002630: fb83 1302 smull r1, r3, r3, r2 - 8002634: 1099 asrs r1, r3, #2 - 8002636: 17d3 asrs r3, r2, #31 - 8002638: 1ac9 subs r1, r1, r3 - 800263a: 460b mov r3, r1 - 800263c: 009b lsls r3, r3, #2 - 800263e: 440b add r3, r1 - 8002640: 005b lsls r3, r3, #1 - 8002642: 1ad1 subs r1, r2, r3 - 8002644: b2ca uxtb r2, r1 - 8002646: 6cfb ldr r3, [r7, #76] @ 0x4c - 8002648: 1c59 adds r1, r3, #1 - 800264a: 64f9 str r1, [r7, #76] @ 0x4c - 800264c: 3230 adds r2, #48 @ 0x30 - 800264e: b2d2 uxtb r2, r2 - 8002650: 3358 adds r3, #88 @ 0x58 - 8002652: 443b add r3, r7 - 8002654: f803 2c3c strb.w r2, [r3, #-60] + 80028a8: 6d3a ldr r2, [r7, #80] @ 0x50 + 80028aa: 4b5b ldr r3, [pc, #364] @ (8002a18 ) + 80028ac: fb83 1302 smull r1, r3, r3, r2 + 80028b0: 1099 asrs r1, r3, #2 + 80028b2: 17d3 asrs r3, r2, #31 + 80028b4: 1ac9 subs r1, r1, r3 + 80028b6: 460b mov r3, r1 + 80028b8: 009b lsls r3, r3, #2 + 80028ba: 440b add r3, r1 + 80028bc: 005b lsls r3, r3, #1 + 80028be: 1ad1 subs r1, r2, r3 + 80028c0: b2ca uxtb r2, r1 + 80028c2: 6cfb ldr r3, [r7, #76] @ 0x4c + 80028c4: 1c59 adds r1, r3, #1 + 80028c6: 64f9 str r1, [r7, #76] @ 0x4c + 80028c8: 3230 adds r2, #48 @ 0x30 + 80028ca: b2d2 uxtb r2, r2 + 80028cc: 3358 adds r3, #88 @ 0x58 + 80028ce: 443b add r3, r7 + 80028d0: f803 2c3c strb.w r2, [r3, #-60] intPart /= 10; - 8002658: 6d3b ldr r3, [r7, #80] @ 0x50 - 800265a: 4a50 ldr r2, [pc, #320] @ (800279c ) - 800265c: fb82 1203 smull r1, r2, r2, r3 - 8002660: 1092 asrs r2, r2, #2 - 8002662: 17db asrs r3, r3, #31 - 8002664: 1ad3 subs r3, r2, r3 - 8002666: 653b str r3, [r7, #80] @ 0x50 + 80028d4: 6d3b ldr r3, [r7, #80] @ 0x50 + 80028d6: 4a50 ldr r2, [pc, #320] @ (8002a18 ) + 80028d8: fb82 1203 smull r1, r2, r2, r3 + 80028dc: 1092 asrs r2, r2, #2 + 80028de: 17db asrs r3, r3, #31 + 80028e0: 1ad3 subs r3, r2, r3 + 80028e2: 653b str r3, [r7, #80] @ 0x50 while (intPart > 0) { - 8002668: 6d3b ldr r3, [r7, #80] @ 0x50 - 800266a: 2b00 cmp r3, #0 - 800266c: dcde bgt.n 800262c + 80028e4: 6d3b ldr r3, [r7, #80] @ 0x50 + 80028e6: 2b00 cmp r3, #0 + 80028e8: dcde bgt.n 80028a8 } } // Inverter a parte inteira de volta para o buffer principal for (int k = j - 1; k >= 0; k--) { - 800266e: 6cfb ldr r3, [r7, #76] @ 0x4c - 8002670: 3b01 subs r3, #1 - 8002672: 64bb str r3, [r7, #72] @ 0x48 - 8002674: e00e b.n 8002694 + 80028ea: 6cfb ldr r3, [r7, #76] @ 0x4c + 80028ec: 3b01 subs r3, #1 + 80028ee: 64bb str r3, [r7, #72] @ 0x48 + 80028f0: e00e b.n 8002910 temp[i++] = intRev[k]; - 8002676: 6d7b ldr r3, [r7, #84] @ 0x54 - 8002678: 1c5a adds r2, r3, #1 - 800267a: 657a str r2, [r7, #84] @ 0x54 - 800267c: f107 011c add.w r1, r7, #28 - 8002680: 6cba ldr r2, [r7, #72] @ 0x48 - 8002682: 440a add r2, r1 - 8002684: 7812 ldrb r2, [r2, #0] - 8002686: 3358 adds r3, #88 @ 0x58 - 8002688: 443b add r3, r7 - 800268a: f803 2c30 strb.w r2, [r3, #-48] + 80028f2: 6d7b ldr r3, [r7, #84] @ 0x54 + 80028f4: 1c5a adds r2, r3, #1 + 80028f6: 657a str r2, [r7, #84] @ 0x54 + 80028f8: f107 011c add.w r1, r7, #28 + 80028fc: 6cba ldr r2, [r7, #72] @ 0x48 + 80028fe: 440a add r2, r1 + 8002900: 7812 ldrb r2, [r2, #0] + 8002902: 3358 adds r3, #88 @ 0x58 + 8002904: 443b add r3, r7 + 8002906: f803 2c30 strb.w r2, [r3, #-48] for (int k = j - 1; k >= 0; k--) { - 800268e: 6cbb ldr r3, [r7, #72] @ 0x48 - 8002690: 3b01 subs r3, #1 - 8002692: 64bb str r3, [r7, #72] @ 0x48 - 8002694: 6cbb ldr r3, [r7, #72] @ 0x48 - 8002696: 2b00 cmp r3, #0 - 8002698: daed bge.n 8002676 + 800290a: 6cbb ldr r3, [r7, #72] @ 0x48 + 800290c: 3b01 subs r3, #1 + 800290e: 64bb str r3, [r7, #72] @ 0x48 + 8002910: 6cbb ldr r3, [r7, #72] @ 0x48 + 8002912: 2b00 cmp r3, #0 + 8002914: daed bge.n 80028f2 } // 4. Adicionar o ponto decimal e a parte fracionária (sempre 3 casas) temp[i++] = '.'; - 800269a: 6d7b ldr r3, [r7, #84] @ 0x54 - 800269c: 1c5a adds r2, r3, #1 - 800269e: 657a str r2, [r7, #84] @ 0x54 - 80026a0: 3358 adds r3, #88 @ 0x58 - 80026a2: 443b add r3, r7 - 80026a4: 222e movs r2, #46 @ 0x2e - 80026a6: f803 2c30 strb.w r2, [r3, #-48] + 8002916: 6d7b ldr r3, [r7, #84] @ 0x54 + 8002918: 1c5a adds r2, r3, #1 + 800291a: 657a str r2, [r7, #84] @ 0x54 + 800291c: 3358 adds r3, #88 @ 0x58 + 800291e: 443b add r3, r7 + 8002920: 222e movs r2, #46 @ 0x2e + 8002922: f803 2c30 strb.w r2, [r3, #-48] // Garantir que a parte fracionária tenha sempre 3 dígitos (ex: .005 em vez de .5) int fracBuffer[3]; fracBuffer[2] = fracPart % 10; // Unidade - 80026aa: 6bf9 ldr r1, [r7, #60] @ 0x3c - 80026ac: 4b3b ldr r3, [pc, #236] @ (800279c ) - 80026ae: fb83 2301 smull r2, r3, r3, r1 - 80026b2: 109a asrs r2, r3, #2 - 80026b4: 17cb asrs r3, r1, #31 - 80026b6: 1ad2 subs r2, r2, r3 - 80026b8: 4613 mov r3, r2 - 80026ba: 009b lsls r3, r3, #2 - 80026bc: 4413 add r3, r2 - 80026be: 005b lsls r3, r3, #1 - 80026c0: 1aca subs r2, r1, r3 - 80026c2: 61ba str r2, [r7, #24] + 8002926: 6bf9 ldr r1, [r7, #60] @ 0x3c + 8002928: 4b3b ldr r3, [pc, #236] @ (8002a18 ) + 800292a: fb83 2301 smull r2, r3, r3, r1 + 800292e: 109a asrs r2, r3, #2 + 8002930: 17cb asrs r3, r1, #31 + 8002932: 1ad2 subs r2, r2, r3 + 8002934: 4613 mov r3, r2 + 8002936: 009b lsls r3, r3, #2 + 8002938: 4413 add r3, r2 + 800293a: 005b lsls r3, r3, #1 + 800293c: 1aca subs r2, r1, r3 + 800293e: 61ba str r2, [r7, #24] fracBuffer[1] = (fracPart / 10) % 10; // Dezena - 80026c4: 6bfb ldr r3, [r7, #60] @ 0x3c - 80026c6: 4a35 ldr r2, [pc, #212] @ (800279c ) - 80026c8: fb82 1203 smull r1, r2, r2, r3 - 80026cc: 1092 asrs r2, r2, #2 - 80026ce: 17db asrs r3, r3, #31 - 80026d0: 1ad1 subs r1, r2, r3 - 80026d2: 4b32 ldr r3, [pc, #200] @ (800279c ) - 80026d4: fb83 2301 smull r2, r3, r3, r1 - 80026d8: 109a asrs r2, r3, #2 - 80026da: 17cb asrs r3, r1, #31 - 80026dc: 1ad2 subs r2, r2, r3 - 80026de: 4613 mov r3, r2 - 80026e0: 009b lsls r3, r3, #2 - 80026e2: 4413 add r3, r2 - 80026e4: 005b lsls r3, r3, #1 - 80026e6: 1aca subs r2, r1, r3 - 80026e8: 617a str r2, [r7, #20] + 8002940: 6bfb ldr r3, [r7, #60] @ 0x3c + 8002942: 4a35 ldr r2, [pc, #212] @ (8002a18 ) + 8002944: fb82 1203 smull r1, r2, r2, r3 + 8002948: 1092 asrs r2, r2, #2 + 800294a: 17db asrs r3, r3, #31 + 800294c: 1ad1 subs r1, r2, r3 + 800294e: 4b32 ldr r3, [pc, #200] @ (8002a18 ) + 8002950: fb83 2301 smull r2, r3, r3, r1 + 8002954: 109a asrs r2, r3, #2 + 8002956: 17cb asrs r3, r1, #31 + 8002958: 1ad2 subs r2, r2, r3 + 800295a: 4613 mov r3, r2 + 800295c: 009b lsls r3, r3, #2 + 800295e: 4413 add r3, r2 + 8002960: 005b lsls r3, r3, #1 + 8002962: 1aca subs r2, r1, r3 + 8002964: 617a str r2, [r7, #20] fracBuffer[0] = (fracPart / 100) % 10; // Centena - 80026ea: 6bfb ldr r3, [r7, #60] @ 0x3c - 80026ec: 4a2c ldr r2, [pc, #176] @ (80027a0 ) - 80026ee: fb82 1203 smull r1, r2, r2, r3 - 80026f2: 1152 asrs r2, r2, #5 - 80026f4: 17db asrs r3, r3, #31 - 80026f6: 1ad1 subs r1, r2, r3 - 80026f8: 4b28 ldr r3, [pc, #160] @ (800279c ) - 80026fa: fb83 2301 smull r2, r3, r3, r1 - 80026fe: 109a asrs r2, r3, #2 - 8002700: 17cb asrs r3, r1, #31 - 8002702: 1ad2 subs r2, r2, r3 - 8002704: 4613 mov r3, r2 - 8002706: 009b lsls r3, r3, #2 - 8002708: 4413 add r3, r2 - 800270a: 005b lsls r3, r3, #1 - 800270c: 1aca subs r2, r1, r3 - 800270e: 613a str r2, [r7, #16] + 8002966: 6bfb ldr r3, [r7, #60] @ 0x3c + 8002968: 4a2c ldr r2, [pc, #176] @ (8002a1c ) + 800296a: fb82 1203 smull r1, r2, r2, r3 + 800296e: 1152 asrs r2, r2, #5 + 8002970: 17db asrs r3, r3, #31 + 8002972: 1ad1 subs r1, r2, r3 + 8002974: 4b28 ldr r3, [pc, #160] @ (8002a18 ) + 8002976: fb83 2301 smull r2, r3, r3, r1 + 800297a: 109a asrs r2, r3, #2 + 800297c: 17cb asrs r3, r1, #31 + 800297e: 1ad2 subs r2, r2, r3 + 8002980: 4613 mov r3, r2 + 8002982: 009b lsls r3, r3, #2 + 8002984: 4413 add r3, r2 + 8002986: 005b lsls r3, r3, #1 + 8002988: 1aca subs r2, r1, r3 + 800298a: 613a str r2, [r7, #16] for (int k = 2; k >= 0; k--) { - 8002710: 2302 movs r3, #2 - 8002712: 647b str r3, [r7, #68] @ 0x44 - 8002714: e012 b.n 800273c + 800298c: 2302 movs r3, #2 + 800298e: 647b str r3, [r7, #68] @ 0x44 + 8002990: e012 b.n 80029b8 temp[i++] = fracBuffer[k] + '0'; - 8002716: 6c7b ldr r3, [r7, #68] @ 0x44 - 8002718: 009b lsls r3, r3, #2 - 800271a: 3358 adds r3, #88 @ 0x58 - 800271c: 443b add r3, r7 - 800271e: f853 3c48 ldr.w r3, [r3, #-72] - 8002722: b2da uxtb r2, r3 - 8002724: 6d7b ldr r3, [r7, #84] @ 0x54 - 8002726: 1c59 adds r1, r3, #1 - 8002728: 6579 str r1, [r7, #84] @ 0x54 - 800272a: 3230 adds r2, #48 @ 0x30 - 800272c: b2d2 uxtb r2, r2 - 800272e: 3358 adds r3, #88 @ 0x58 - 8002730: 443b add r3, r7 - 8002732: f803 2c30 strb.w r2, [r3, #-48] + 8002992: 6c7b ldr r3, [r7, #68] @ 0x44 + 8002994: 009b lsls r3, r3, #2 + 8002996: 3358 adds r3, #88 @ 0x58 + 8002998: 443b add r3, r7 + 800299a: f853 3c48 ldr.w r3, [r3, #-72] + 800299e: b2da uxtb r2, r3 + 80029a0: 6d7b ldr r3, [r7, #84] @ 0x54 + 80029a2: 1c59 adds r1, r3, #1 + 80029a4: 6579 str r1, [r7, #84] @ 0x54 + 80029a6: 3230 adds r2, #48 @ 0x30 + 80029a8: b2d2 uxtb r2, r2 + 80029aa: 3358 adds r3, #88 @ 0x58 + 80029ac: 443b add r3, r7 + 80029ae: f803 2c30 strb.w r2, [r3, #-48] for (int k = 2; k >= 0; k--) { - 8002736: 6c7b ldr r3, [r7, #68] @ 0x44 - 8002738: 3b01 subs r3, #1 - 800273a: 647b str r3, [r7, #68] @ 0x44 - 800273c: 6c7b ldr r3, [r7, #68] @ 0x44 - 800273e: 2b00 cmp r3, #0 - 8002740: dae9 bge.n 8002716 + 80029b2: 6c7b ldr r3, [r7, #68] @ 0x44 + 80029b4: 3b01 subs r3, #1 + 80029b6: 647b str r3, [r7, #68] @ 0x44 + 80029b8: 6c7b ldr r3, [r7, #68] @ 0x44 + 80029ba: 2b00 cmp r3, #0 + 80029bc: dae9 bge.n 8002992 } // 5. Finalizar a string com o caractere nulo temp[i] = '\0'; - 8002742: f107 0228 add.w r2, r7, #40 @ 0x28 - 8002746: 6d7b ldr r3, [r7, #84] @ 0x54 - 8002748: 4413 add r3, r2 - 800274a: 2200 movs r2, #0 - 800274c: 701a strb r2, [r3, #0] + 80029be: f107 0228 add.w r2, r7, #40 @ 0x28 + 80029c2: 6d7b ldr r3, [r7, #84] @ 0x54 + 80029c4: 4413 add r3, r2 + 80029c6: 2200 movs r2, #0 + 80029c8: 701a strb r2, [r3, #0] // 6. Copiar para o buffer de destino final (sem risco de lixo) int destIdx = 0; - 800274e: 2300 movs r3, #0 - 8002750: 643b str r3, [r7, #64] @ 0x40 + 80029ca: 2300 movs r3, #0 + 80029cc: 643b str r3, [r7, #64] @ 0x40 while (temp[destIdx] != '\0' && destIdx < 15) { // Limite de segurança - 8002752: e00b b.n 800276c + 80029ce: e00b b.n 80029e8 buf[destIdx] = temp[destIdx]; - 8002754: 6c3b ldr r3, [r7, #64] @ 0x40 - 8002756: 68fa ldr r2, [r7, #12] - 8002758: 4413 add r3, r2 - 800275a: f107 0128 add.w r1, r7, #40 @ 0x28 - 800275e: 6c3a ldr r2, [r7, #64] @ 0x40 - 8002760: 440a add r2, r1 - 8002762: 7812 ldrb r2, [r2, #0] - 8002764: 701a strb r2, [r3, #0] + 80029d0: 6c3b ldr r3, [r7, #64] @ 0x40 + 80029d2: 68fa ldr r2, [r7, #12] + 80029d4: 4413 add r3, r2 + 80029d6: f107 0128 add.w r1, r7, #40 @ 0x28 + 80029da: 6c3a ldr r2, [r7, #64] @ 0x40 + 80029dc: 440a add r2, r1 + 80029de: 7812 ldrb r2, [r2, #0] + 80029e0: 701a strb r2, [r3, #0] destIdx++; - 8002766: 6c3b ldr r3, [r7, #64] @ 0x40 - 8002768: 3301 adds r3, #1 - 800276a: 643b str r3, [r7, #64] @ 0x40 + 80029e2: 6c3b ldr r3, [r7, #64] @ 0x40 + 80029e4: 3301 adds r3, #1 + 80029e6: 643b str r3, [r7, #64] @ 0x40 while (temp[destIdx] != '\0' && destIdx < 15) { // Limite de segurança - 800276c: f107 0228 add.w r2, r7, #40 @ 0x28 - 8002770: 6c3b ldr r3, [r7, #64] @ 0x40 - 8002772: 4413 add r3, r2 - 8002774: 781b ldrb r3, [r3, #0] - 8002776: 2b00 cmp r3, #0 - 8002778: d002 beq.n 8002780 - 800277a: 6c3b ldr r3, [r7, #64] @ 0x40 - 800277c: 2b0e cmp r3, #14 - 800277e: dde9 ble.n 8002754 + 80029e8: f107 0228 add.w r2, r7, #40 @ 0x28 + 80029ec: 6c3b ldr r3, [r7, #64] @ 0x40 + 80029ee: 4413 add r3, r2 + 80029f0: 781b ldrb r3, [r3, #0] + 80029f2: 2b00 cmp r3, #0 + 80029f4: d002 beq.n 80029fc + 80029f6: 6c3b ldr r3, [r7, #64] @ 0x40 + 80029f8: 2b0e cmp r3, #14 + 80029fa: dde9 ble.n 80029d0 } buf[destIdx] = '\0'; - 8002780: 6c3b ldr r3, [r7, #64] @ 0x40 - 8002782: 68fa ldr r2, [r7, #12] - 8002784: 4413 add r3, r2 - 8002786: 2200 movs r2, #0 - 8002788: 701a strb r2, [r3, #0] + 80029fc: 6c3b ldr r3, [r7, #64] @ 0x40 + 80029fe: 68fa ldr r2, [r7, #12] + 8002a00: 4413 add r3, r2 + 8002a02: 2200 movs r2, #0 + 8002a04: 701a strb r2, [r3, #0] } - 800278a: bf00 nop - 800278c: 3758 adds r7, #88 @ 0x58 - 800278e: 46bd mov sp, r7 - 8002790: bdb0 pop {r4, r5, r7, pc} - 8002792: bf00 nop - 8002794: 408f4000 .word 0x408f4000 - 8002798: 3fe00000 .word 0x3fe00000 - 800279c: 66666667 .word 0x66666667 - 80027a0: 51eb851f .word 0x51eb851f + 8002a06: bf00 nop + 8002a08: 3758 adds r7, #88 @ 0x58 + 8002a0a: 46bd mov sp, r7 + 8002a0c: bdb0 pop {r4, r5, r7, pc} + 8002a0e: bf00 nop + 8002a10: 408f4000 .word 0x408f4000 + 8002a14: 3fe00000 .word 0x3fe00000 + 8002a18: 66666667 .word 0x66666667 + 8002a1c: 51eb851f .word 0x51eb851f -080027a4 : +08002a20 : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { - 80027a4: b480 push {r7} - 80027a6: af00 add r7, sp, #0 + 8002a20: b480 push {r7} + 8002a22: af00 add r7, sp, #0 \details Disables IRQ interrupts by setting the I-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __disable_irq(void) { __ASM volatile ("cpsid i" : : : "memory"); - 80027a8: b672 cpsid i + 8002a24: b672 cpsid i } - 80027aa: bf00 nop + 8002a26: bf00 nop /* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ __disable_irq(); while (1) - 80027ac: bf00 nop - 80027ae: e7fd b.n 80027ac + 8002a28: bf00 nop + 8002a2a: e7fd b.n 8002a28 -080027b0 : +08002a2c : * @rmtoll IDR IDy LL_GPIO_ReadInputPort * @param GPIOx GPIO Port * @retval Input data register value of port */ __STATIC_INLINE uint32_t LL_GPIO_ReadInputPort(GPIO_TypeDef *GPIOx) { - 80027b0: b480 push {r7} - 80027b2: b083 sub sp, #12 - 80027b4: af00 add r7, sp, #0 - 80027b6: 6078 str r0, [r7, #4] + 8002a2c: b480 push {r7} + 8002a2e: b083 sub sp, #12 + 8002a30: af00 add r7, sp, #0 + 8002a32: 6078 str r0, [r7, #4] return (READ_REG(GPIOx->IDR)); - 80027b8: 687b ldr r3, [r7, #4] - 80027ba: 689b ldr r3, [r3, #8] + 8002a34: 687b ldr r3, [r7, #4] + 8002a36: 689b ldr r3, [r3, #8] } - 80027bc: 4618 mov r0, r3 - 80027be: 370c adds r7, #12 - 80027c0: 46bd mov sp, r7 - 80027c2: bc80 pop {r7} - 80027c4: 4770 bx lr + 8002a38: 4618 mov r0, r3 + 8002a3a: 370c adds r7, #12 + 8002a3c: 46bd mov sp, r7 + 8002a3e: bc80 pop {r7} + 8002a40: 4770 bx lr ... -080027c8 : +08002a44 : /** * @brief Initializes the RS-485 driver. * @note This function configures GPIOs for address detection and USART1 for communication. */ void rs485_init(void) { - 80027c8: b580 push {r7, lr} - 80027ca: af00 add r7, sp, #0 + 8002a44: b580 push {r7, lr} + 8002a46: af00 add r7, sp, #0 /* Configure GPIOs for address detection */ rs485_configure_gpio_address(); - 80027cc: f000 f864 bl 8002898 + 8002a48: f000 f864 bl 8002b14 /* Configure USART1 for RS-485 communication */ rs485_configure_usart1(); - 80027d0: f000 f8a8 bl 8002924 + 8002a4c: f000 f8a8 bl 8002ba0 /* Get the current device address from GPIOs */ device_address.full_address = rs485_get_address(); - 80027d4: f000 f808 bl 80027e8 - 80027d8: 4603 mov r3, r0 - 80027da: 461a mov r2, r3 - 80027dc: 4b01 ldr r3, [pc, #4] @ (80027e4 ) - 80027de: 709a strb r2, [r3, #2] + 8002a50: f000 f808 bl 8002a64 + 8002a54: 4603 mov r3, r0 + 8002a56: 461a mov r2, r3 + 8002a58: 4b01 ldr r3, [pc, #4] @ (8002a60 ) + 8002a5a: 709a strb r2, [r3, #2] } - 80027e0: bf00 nop - 80027e2: bd80 pop {r7, pc} - 80027e4: 20000658 .word 0x20000658 + 8002a5c: bf00 nop + 8002a5e: bd80 pop {r7, pc} + 8002a60: 200006d0 .word 0x200006d0 -080027e8 : +08002a64 : /** * @brief Gets the current device address from GPIOs. * @return The 8-bit device address. */ uint8_t rs485_get_address(void) { - 80027e8: b598 push {r3, r4, r7, lr} - 80027ea: af00 add r7, sp, #0 + 8002a64: b598 push {r3, r4, r7, lr} + 8002a66: af00 add r7, sp, #0 return ((uint8_t) ((((LL_GPIO_ReadInputPort(GPIOB) & RS485_ADDR_MASK_HIGH)>>RS485_ADDR_BIT_SET_HIGH) | (LL_GPIO_ReadInputPort(GPIOA) & RS485_ADDR_MASK_LOW)>>RS485_ADDR_BIT_SET_LOW))); - 80027ec: 480a ldr r0, [pc, #40] @ (8002818 ) - 80027ee: f7ff ffdf bl 80027b0 - 80027f2: 4603 mov r3, r0 - 80027f4: 0a1b lsrs r3, r3, #8 - 80027f6: b2db uxtb r3, r3 - 80027f8: f023 030f bic.w r3, r3, #15 - 80027fc: b2dc uxtb r4, r3 - 80027fe: 4807 ldr r0, [pc, #28] @ (800281c ) - 8002800: f7ff ffd6 bl 80027b0 - 8002804: 4603 mov r3, r0 - 8002806: 089b lsrs r3, r3, #2 - 8002808: b2db uxtb r3, r3 - 800280a: f003 030f and.w r3, r3, #15 - 800280e: b2db uxtb r3, r3 - 8002810: 4323 orrs r3, r4 - 8002812: b2db uxtb r3, r3 + 8002a68: 480a ldr r0, [pc, #40] @ (8002a94 ) + 8002a6a: f7ff ffdf bl 8002a2c + 8002a6e: 4603 mov r3, r0 + 8002a70: 0a1b lsrs r3, r3, #8 + 8002a72: b2db uxtb r3, r3 + 8002a74: f023 030f bic.w r3, r3, #15 + 8002a78: b2dc uxtb r4, r3 + 8002a7a: 4807 ldr r0, [pc, #28] @ (8002a98 ) + 8002a7c: f7ff ffd6 bl 8002a2c + 8002a80: 4603 mov r3, r0 + 8002a82: 089b lsrs r3, r3, #2 + 8002a84: b2db uxtb r3, r3 + 8002a86: f003 030f and.w r3, r3, #15 + 8002a8a: b2db uxtb r3, r3 + 8002a8c: 4323 orrs r3, r4 + 8002a8e: b2db uxtb r3, r3 } - 8002814: 4618 mov r0, r3 - 8002816: bd98 pop {r3, r4, r7, pc} - 8002818: 40010c00 .word 0x40010c00 - 800281c: 40010800 .word 0x40010800 + 8002a90: 4618 mov r0, r3 + 8002a92: bd98 pop {r3, r4, r7, pc} + 8002a94: 40010c00 .word 0x40010c00 + 8002a98: 40010800 .word 0x40010800 -08002820 : +08002a9c : * @param data Pointer to the data buffer. * @param length Number of bytes to send. * @retval HAL_OK on success, otherwise error code. */ HAL_StatusTypeDef rs485_send_broadcast(uint8_t* data, uint16_t length) { - 8002820: b580 push {r7, lr} - 8002822: b084 sub sp, #16 - 8002824: af00 add r7, sp, #0 - 8002826: 6078 str r0, [r7, #4] - 8002828: 460b mov r3, r1 - 800282a: 807b strh r3, [r7, #2] + 8002a9c: b580 push {r7, lr} + 8002a9e: b084 sub sp, #16 + 8002aa0: af00 add r7, sp, #0 + 8002aa2: 6078 str r0, [r7, #4] + 8002aa4: 460b mov r3, r1 + 8002aa6: 807b strh r3, [r7, #2] /* Enable transmission mode */ rs485_enable_tx(); - 800282c: f000 f81c bl 8002868 + 8002aa8: f000 f81c bl 8002ae4 /* Send the broadcast address (0x00) first */ uint8_t broadcast_address = 0x00; - 8002830: 2300 movs r3, #0 - 8002832: 73bb strb r3, [r7, #14] + 8002aac: 2300 movs r3, #0 + 8002aae: 73bb strb r3, [r7, #14] HAL_UART_Transmit(&huart1, &broadcast_address, 1, HAL_MAX_DELAY); - 8002834: f107 010e add.w r1, r7, #14 - 8002838: f04f 33ff mov.w r3, #4294967295 - 800283c: 2201 movs r2, #1 - 800283e: 4809 ldr r0, [pc, #36] @ (8002864 ) - 8002840: f002 ff2c bl 800569c + 8002ab0: f107 010e add.w r1, r7, #14 + 8002ab4: f04f 33ff mov.w r3, #4294967295 + 8002ab8: 2201 movs r2, #1 + 8002aba: 4809 ldr r0, [pc, #36] @ (8002ae0 ) + 8002abc: f002 ff2c bl 8005918 /* Send the data */ HAL_StatusTypeDef status = HAL_UART_Transmit(&huart1, data, length, HAL_MAX_DELAY); - 8002844: 887a ldrh r2, [r7, #2] - 8002846: f04f 33ff mov.w r3, #4294967295 - 800284a: 6879 ldr r1, [r7, #4] - 800284c: 4805 ldr r0, [pc, #20] @ (8002864 ) - 800284e: f002 ff25 bl 800569c - 8002852: 4603 mov r3, r0 - 8002854: 73fb strb r3, [r7, #15] + 8002ac0: 887a ldrh r2, [r7, #2] + 8002ac2: f04f 33ff mov.w r3, #4294967295 + 8002ac6: 6879 ldr r1, [r7, #4] + 8002ac8: 4805 ldr r0, [pc, #20] @ (8002ae0 ) + 8002aca: f002 ff25 bl 8005918 + 8002ace: 4603 mov r3, r0 + 8002ad0: 73fb strb r3, [r7, #15] /* Disable transmission mode after sending */ rs485_disable_tx(); - 8002856: f000 f813 bl 8002880 + 8002ad2: f000 f813 bl 8002afc return status; - 800285a: 7bfb ldrb r3, [r7, #15] + 8002ad6: 7bfb ldrb r3, [r7, #15] } - 800285c: 4618 mov r0, r3 - 800285e: 3710 adds r7, #16 - 8002860: 46bd mov sp, r7 - 8002862: bd80 pop {r7, pc} - 8002864: 2000065c .word 0x2000065c + 8002ad8: 4618 mov r0, r3 + 8002ada: 3710 adds r7, #16 + 8002adc: 46bd mov sp, r7 + 8002ade: bd80 pop {r7, pc} + 8002ae0: 200006d4 .word 0x200006d4 -08002868 : +08002ae4 : /** * @brief Enables transmission mode on RS-485 transceiver. */ void rs485_enable_tx(void) { - 8002868: b580 push {r7, lr} - 800286a: af00 add r7, sp, #0 + 8002ae4: b580 push {r7, lr} + 8002ae6: af00 add r7, sp, #0 /* Set TX EN pin high to enable transmitter */ HAL_GPIO_WritePin(RS485_TX_EN_PORT, RS485_TX_EN_PIN, GPIO_PIN_SET); - 800286c: 2201 movs r2, #1 - 800286e: f44f 5180 mov.w r1, #4096 @ 0x1000 - 8002872: 4802 ldr r0, [pc, #8] @ (800287c ) - 8002874: f001 f995 bl 8003ba2 + 8002ae8: 2201 movs r2, #1 + 8002aea: f44f 5180 mov.w r1, #4096 @ 0x1000 + 8002aee: 4802 ldr r0, [pc, #8] @ (8002af8 ) + 8002af0: f001 f995 bl 8003e1e } - 8002878: bf00 nop - 800287a: bd80 pop {r7, pc} - 800287c: 40010800 .word 0x40010800 + 8002af4: bf00 nop + 8002af6: bd80 pop {r7, pc} + 8002af8: 40010800 .word 0x40010800 -08002880 : +08002afc : /** * @brief Disables transmission mode on RS-485 transceiver. */ void rs485_disable_tx(void) { - 8002880: b580 push {r7, lr} - 8002882: af00 add r7, sp, #0 + 8002afc: b580 push {r7, lr} + 8002afe: af00 add r7, sp, #0 /* Set TX EN pin low to disable transmitter */ HAL_GPIO_WritePin(RS485_TX_EN_PORT, RS485_TX_EN_PIN, GPIO_PIN_RESET); - 8002884: 2200 movs r2, #0 - 8002886: f44f 5180 mov.w r1, #4096 @ 0x1000 - 800288a: 4802 ldr r0, [pc, #8] @ (8002894 ) - 800288c: f001 f989 bl 8003ba2 + 8002b00: 2200 movs r2, #0 + 8002b02: f44f 5180 mov.w r1, #4096 @ 0x1000 + 8002b06: 4802 ldr r0, [pc, #8] @ (8002b10 ) + 8002b08: f001 f989 bl 8003e1e } - 8002890: bf00 nop - 8002892: bd80 pop {r7, pc} - 8002894: 40010800 .word 0x40010800 + 8002b0c: bf00 nop + 8002b0e: bd80 pop {r7, pc} + 8002b10: 40010800 .word 0x40010800 -08002898 : +08002b14 : /** * @brief Configures GPIOs for address detection. */ static void rs485_configure_gpio_address(void) { - 8002898: b580 push {r7, lr} - 800289a: b086 sub sp, #24 - 800289c: af00 add r7, sp, #0 + 8002b14: b580 push {r7, lr} + 8002b16: b086 sub sp, #24 + 8002b18: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800289e: f107 0308 add.w r3, r7, #8 - 80028a2: 2200 movs r2, #0 - 80028a4: 601a str r2, [r3, #0] - 80028a6: 605a str r2, [r3, #4] - 80028a8: 609a str r2, [r3, #8] - 80028aa: 60da str r2, [r3, #12] + 8002b1a: f107 0308 add.w r3, r7, #8 + 8002b1e: 2200 movs r2, #0 + 8002b20: 601a str r2, [r3, #0] + 8002b22: 605a str r2, [r3, #4] + 8002b24: 609a str r2, [r3, #8] + 8002b26: 60da str r2, [r3, #12] /* Enable clock for GPIOA and GPIOB */ __HAL_RCC_GPIOA_CLK_ENABLE(); - 80028ac: 4b1a ldr r3, [pc, #104] @ (8002918 ) - 80028ae: 699b ldr r3, [r3, #24] - 80028b0: 4a19 ldr r2, [pc, #100] @ (8002918 ) - 80028b2: f043 0304 orr.w r3, r3, #4 - 80028b6: 6193 str r3, [r2, #24] - 80028b8: 4b17 ldr r3, [pc, #92] @ (8002918 ) - 80028ba: 699b ldr r3, [r3, #24] - 80028bc: f003 0304 and.w r3, r3, #4 - 80028c0: 607b str r3, [r7, #4] - 80028c2: 687b ldr r3, [r7, #4] + 8002b28: 4b1a ldr r3, [pc, #104] @ (8002b94 ) + 8002b2a: 699b ldr r3, [r3, #24] + 8002b2c: 4a19 ldr r2, [pc, #100] @ (8002b94 ) + 8002b2e: f043 0304 orr.w r3, r3, #4 + 8002b32: 6193 str r3, [r2, #24] + 8002b34: 4b17 ldr r3, [pc, #92] @ (8002b94 ) + 8002b36: 699b ldr r3, [r3, #24] + 8002b38: f003 0304 and.w r3, r3, #4 + 8002b3c: 607b str r3, [r7, #4] + 8002b3e: 687b ldr r3, [r7, #4] __HAL_RCC_GPIOB_CLK_ENABLE(); - 80028c4: 4b14 ldr r3, [pc, #80] @ (8002918 ) - 80028c6: 699b ldr r3, [r3, #24] - 80028c8: 4a13 ldr r2, [pc, #76] @ (8002918 ) - 80028ca: f043 0308 orr.w r3, r3, #8 - 80028ce: 6193 str r3, [r2, #24] - 80028d0: 4b11 ldr r3, [pc, #68] @ (8002918 ) - 80028d2: 699b ldr r3, [r3, #24] - 80028d4: f003 0308 and.w r3, r3, #8 - 80028d8: 603b str r3, [r7, #0] - 80028da: 683b ldr r3, [r7, #0] + 8002b40: 4b14 ldr r3, [pc, #80] @ (8002b94 ) + 8002b42: 699b ldr r3, [r3, #24] + 8002b44: 4a13 ldr r2, [pc, #76] @ (8002b94 ) + 8002b46: f043 0308 orr.w r3, r3, #8 + 8002b4a: 6193 str r3, [r2, #24] + 8002b4c: 4b11 ldr r3, [pc, #68] @ (8002b94 ) + 8002b4e: 699b ldr r3, [r3, #24] + 8002b50: f003 0308 and.w r3, r3, #8 + 8002b54: 603b str r3, [r7, #0] + 8002b56: 683b ldr r3, [r7, #0] /* Configure PA2-PA5 as input with pull-up */ GPIO_InitStruct.Pin = GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5; - 80028dc: 233c movs r3, #60 @ 0x3c - 80028de: 60bb str r3, [r7, #8] + 8002b58: 233c movs r3, #60 @ 0x3c + 8002b5a: 60bb str r3, [r7, #8] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 80028e0: 2300 movs r3, #0 - 80028e2: 60fb str r3, [r7, #12] + 8002b5c: 2300 movs r3, #0 + 8002b5e: 60fb str r3, [r7, #12] GPIO_InitStruct.Pull = GPIO_PULLUP; - 80028e4: 2301 movs r3, #1 - 80028e6: 613b str r3, [r7, #16] + 8002b60: 2301 movs r3, #1 + 8002b62: 613b str r3, [r7, #16] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 80028e8: f107 0308 add.w r3, r7, #8 - 80028ec: 4619 mov r1, r3 - 80028ee: 480b ldr r0, [pc, #44] @ (800291c ) - 80028f0: f000 ffbc bl 800386c + 8002b64: f107 0308 add.w r3, r7, #8 + 8002b68: 4619 mov r1, r3 + 8002b6a: 480b ldr r0, [pc, #44] @ (8002b98 ) + 8002b6c: f000 ffbc bl 8003ae8 /* Configure PB12-PB15 as input with pull-up */ GPIO_InitStruct.Pin = GPIO_PIN_12 | GPIO_PIN_13 | GPIO_PIN_14 | GPIO_PIN_15; - 80028f4: f44f 4370 mov.w r3, #61440 @ 0xf000 - 80028f8: 60bb str r3, [r7, #8] + 8002b70: f44f 4370 mov.w r3, #61440 @ 0xf000 + 8002b74: 60bb str r3, [r7, #8] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 80028fa: 2300 movs r3, #0 - 80028fc: 60fb str r3, [r7, #12] + 8002b76: 2300 movs r3, #0 + 8002b78: 60fb str r3, [r7, #12] GPIO_InitStruct.Pull = GPIO_PULLUP; - 80028fe: 2301 movs r3, #1 - 8002900: 613b str r3, [r7, #16] + 8002b7a: 2301 movs r3, #1 + 8002b7c: 613b str r3, [r7, #16] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 8002902: f107 0308 add.w r3, r7, #8 - 8002906: 4619 mov r1, r3 - 8002908: 4805 ldr r0, [pc, #20] @ (8002920 ) - 800290a: f000 ffaf bl 800386c + 8002b7e: f107 0308 add.w r3, r7, #8 + 8002b82: 4619 mov r1, r3 + 8002b84: 4805 ldr r0, [pc, #20] @ (8002b9c ) + 8002b86: f000 ffaf bl 8003ae8 } - 800290e: bf00 nop - 8002910: 3718 adds r7, #24 - 8002912: 46bd mov sp, r7 - 8002914: bd80 pop {r7, pc} - 8002916: bf00 nop - 8002918: 40021000 .word 0x40021000 - 800291c: 40010800 .word 0x40010800 - 8002920: 40010c00 .word 0x40010c00 + 8002b8a: bf00 nop + 8002b8c: 3718 adds r7, #24 + 8002b8e: 46bd mov sp, r7 + 8002b90: bd80 pop {r7, pc} + 8002b92: bf00 nop + 8002b94: 40021000 .word 0x40021000 + 8002b98: 40010800 .word 0x40010800 + 8002b9c: 40010c00 .word 0x40010c00 -08002924 : +08002ba0 : /** * @brief Configures USART1 for RS-485 communication. */ static void rs485_configure_usart1(void) { - 8002924: b580 push {r7, lr} - 8002926: b082 sub sp, #8 - 8002928: af00 add r7, sp, #0 + 8002ba0: b580 push {r7, lr} + 8002ba2: b082 sub sp, #8 + 8002ba4: af00 add r7, sp, #0 /* Enable clock for USART1 */ __HAL_RCC_USART1_CLK_ENABLE(); - 800292a: 4b18 ldr r3, [pc, #96] @ (800298c ) - 800292c: 699b ldr r3, [r3, #24] - 800292e: 4a17 ldr r2, [pc, #92] @ (800298c ) - 8002930: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 8002934: 6193 str r3, [r2, #24] - 8002936: 4b15 ldr r3, [pc, #84] @ (800298c ) - 8002938: 699b ldr r3, [r3, #24] - 800293a: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 800293e: 607b str r3, [r7, #4] - 8002940: 687b ldr r3, [r7, #4] + 8002ba6: 4b18 ldr r3, [pc, #96] @ (8002c08 ) + 8002ba8: 699b ldr r3, [r3, #24] + 8002baa: 4a17 ldr r2, [pc, #92] @ (8002c08 ) + 8002bac: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 8002bb0: 6193 str r3, [r2, #24] + 8002bb2: 4b15 ldr r3, [pc, #84] @ (8002c08 ) + 8002bb4: 699b ldr r3, [r3, #24] + 8002bb6: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 8002bba: 607b str r3, [r7, #4] + 8002bbc: 687b ldr r3, [r7, #4] huart1.Instance = USART1; - 8002942: 4b13 ldr r3, [pc, #76] @ (8002990 ) - 8002944: 4a13 ldr r2, [pc, #76] @ (8002994 ) - 8002946: 601a str r2, [r3, #0] + 8002bbe: 4b13 ldr r3, [pc, #76] @ (8002c0c ) + 8002bc0: 4a13 ldr r2, [pc, #76] @ (8002c10 ) + 8002bc2: 601a str r2, [r3, #0] huart1.Init.BaudRate = 9600; /*!< Default baud rate for RS-485 */ - 8002948: 4b11 ldr r3, [pc, #68] @ (8002990 ) - 800294a: f44f 5216 mov.w r2, #9600 @ 0x2580 - 800294e: 605a str r2, [r3, #4] + 8002bc4: 4b11 ldr r3, [pc, #68] @ (8002c0c ) + 8002bc6: f44f 5216 mov.w r2, #9600 @ 0x2580 + 8002bca: 605a str r2, [r3, #4] huart1.Init.WordLength = UART_WORDLENGTH_8B; - 8002950: 4b0f ldr r3, [pc, #60] @ (8002990 ) - 8002952: 2200 movs r2, #0 - 8002954: 609a str r2, [r3, #8] + 8002bcc: 4b0f ldr r3, [pc, #60] @ (8002c0c ) + 8002bce: 2200 movs r2, #0 + 8002bd0: 609a str r2, [r3, #8] huart1.Init.StopBits = UART_STOPBITS_1; - 8002956: 4b0e ldr r3, [pc, #56] @ (8002990 ) - 8002958: 2200 movs r2, #0 - 800295a: 60da str r2, [r3, #12] + 8002bd2: 4b0e ldr r3, [pc, #56] @ (8002c0c ) + 8002bd4: 2200 movs r2, #0 + 8002bd6: 60da str r2, [r3, #12] huart1.Init.Parity = UART_PARITY_NONE; - 800295c: 4b0c ldr r3, [pc, #48] @ (8002990 ) - 800295e: 2200 movs r2, #0 - 8002960: 611a str r2, [r3, #16] + 8002bd8: 4b0c ldr r3, [pc, #48] @ (8002c0c ) + 8002bda: 2200 movs r2, #0 + 8002bdc: 611a str r2, [r3, #16] huart1.Init.Mode = UART_MODE_TX_RX; - 8002962: 4b0b ldr r3, [pc, #44] @ (8002990 ) - 8002964: 220c movs r2, #12 - 8002966: 615a str r2, [r3, #20] + 8002bde: 4b0b ldr r3, [pc, #44] @ (8002c0c ) + 8002be0: 220c movs r2, #12 + 8002be2: 615a str r2, [r3, #20] huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; /*!< Use NONE as TX enable */ - 8002968: 4b09 ldr r3, [pc, #36] @ (8002990 ) - 800296a: 2200 movs r2, #0 - 800296c: 619a str r2, [r3, #24] + 8002be4: 4b09 ldr r3, [pc, #36] @ (8002c0c ) + 8002be6: 2200 movs r2, #0 + 8002be8: 619a str r2, [r3, #24] huart1.Init.OverSampling = UART_OVERSAMPLING_16; - 800296e: 4b08 ldr r3, [pc, #32] @ (8002990 ) - 8002970: 2200 movs r2, #0 - 8002972: 61da str r2, [r3, #28] + 8002bea: 4b08 ldr r3, [pc, #32] @ (8002c0c ) + 8002bec: 2200 movs r2, #0 + 8002bee: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart1) != HAL_OK) - 8002974: 4806 ldr r0, [pc, #24] @ (8002990 ) - 8002976: f002 fe41 bl 80055fc - 800297a: 4603 mov r3, r0 - 800297c: 2b00 cmp r3, #0 - 800297e: d001 beq.n 8002984 + 8002bf0: 4806 ldr r0, [pc, #24] @ (8002c0c ) + 8002bf2: f002 fe41 bl 8005878 + 8002bf6: 4603 mov r3, r0 + 8002bf8: 2b00 cmp r3, #0 + 8002bfa: d001 beq.n 8002c00 { /* Initialization Error */ while(1); - 8002980: bf00 nop - 8002982: e7fd b.n 8002980 + 8002bfc: bf00 nop + 8002bfe: e7fd b.n 8002bfc } } - 8002984: bf00 nop - 8002986: 3708 adds r7, #8 - 8002988: 46bd mov sp, r7 - 800298a: bd80 pop {r7, pc} - 800298c: 40021000 .word 0x40021000 - 8002990: 2000065c .word 0x2000065c - 8002994: 40013800 .word 0x40013800 + 8002c00: bf00 nop + 8002c02: 3708 adds r7, #8 + 8002c04: 46bd mov sp, r7 + 8002c06: bd80 pop {r7, pc} + 8002c08: 40021000 .word 0x40021000 + 8002c0c: 200006d4 .word 0x200006d4 + 8002c10: 40013800 .word 0x40013800 -08002998 : +08002c14 : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { - 8002998: b480 push {r7} - 800299a: b085 sub sp, #20 - 800299c: af00 add r7, sp, #0 + 8002c14: b480 push {r7} + 8002c16: b085 sub sp, #20 + 8002c18: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_AFIO_CLK_ENABLE(); - 800299e: 4b15 ldr r3, [pc, #84] @ (80029f4 ) - 80029a0: 699b ldr r3, [r3, #24] - 80029a2: 4a14 ldr r2, [pc, #80] @ (80029f4 ) - 80029a4: f043 0301 orr.w r3, r3, #1 - 80029a8: 6193 str r3, [r2, #24] - 80029aa: 4b12 ldr r3, [pc, #72] @ (80029f4 ) - 80029ac: 699b ldr r3, [r3, #24] - 80029ae: f003 0301 and.w r3, r3, #1 - 80029b2: 60bb str r3, [r7, #8] - 80029b4: 68bb ldr r3, [r7, #8] + 8002c1a: 4b15 ldr r3, [pc, #84] @ (8002c70 ) + 8002c1c: 699b ldr r3, [r3, #24] + 8002c1e: 4a14 ldr r2, [pc, #80] @ (8002c70 ) + 8002c20: f043 0301 orr.w r3, r3, #1 + 8002c24: 6193 str r3, [r2, #24] + 8002c26: 4b12 ldr r3, [pc, #72] @ (8002c70 ) + 8002c28: 699b ldr r3, [r3, #24] + 8002c2a: f003 0301 and.w r3, r3, #1 + 8002c2e: 60bb str r3, [r7, #8] + 8002c30: 68bb ldr r3, [r7, #8] __HAL_RCC_PWR_CLK_ENABLE(); - 80029b6: 4b0f ldr r3, [pc, #60] @ (80029f4 ) - 80029b8: 69db ldr r3, [r3, #28] - 80029ba: 4a0e ldr r2, [pc, #56] @ (80029f4 ) - 80029bc: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 80029c0: 61d3 str r3, [r2, #28] - 80029c2: 4b0c ldr r3, [pc, #48] @ (80029f4 ) - 80029c4: 69db ldr r3, [r3, #28] - 80029c6: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 80029ca: 607b str r3, [r7, #4] - 80029cc: 687b ldr r3, [r7, #4] + 8002c32: 4b0f ldr r3, [pc, #60] @ (8002c70 ) + 8002c34: 69db ldr r3, [r3, #28] + 8002c36: 4a0e ldr r2, [pc, #56] @ (8002c70 ) + 8002c38: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8002c3c: 61d3 str r3, [r2, #28] + 8002c3e: 4b0c ldr r3, [pc, #48] @ (8002c70 ) + 8002c40: 69db ldr r3, [r3, #28] + 8002c42: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8002c46: 607b str r3, [r7, #4] + 8002c48: 687b ldr r3, [r7, #4] /* System interrupt init*/ /** NOJTAG: JTAG-DP Disabled and SW-DP Enabled */ __HAL_AFIO_REMAP_SWJ_NOJTAG(); - 80029ce: 4b0a ldr r3, [pc, #40] @ (80029f8 ) - 80029d0: 685b ldr r3, [r3, #4] - 80029d2: 60fb str r3, [r7, #12] - 80029d4: 68fb ldr r3, [r7, #12] - 80029d6: f023 63e0 bic.w r3, r3, #117440512 @ 0x7000000 - 80029da: 60fb str r3, [r7, #12] - 80029dc: 68fb ldr r3, [r7, #12] - 80029de: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000 - 80029e2: 60fb str r3, [r7, #12] - 80029e4: 4a04 ldr r2, [pc, #16] @ (80029f8 ) - 80029e6: 68fb ldr r3, [r7, #12] - 80029e8: 6053 str r3, [r2, #4] + 8002c4a: 4b0a ldr r3, [pc, #40] @ (8002c74 ) + 8002c4c: 685b ldr r3, [r3, #4] + 8002c4e: 60fb str r3, [r7, #12] + 8002c50: 68fb ldr r3, [r7, #12] + 8002c52: f023 63e0 bic.w r3, r3, #117440512 @ 0x7000000 + 8002c56: 60fb str r3, [r7, #12] + 8002c58: 68fb ldr r3, [r7, #12] + 8002c5a: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000 + 8002c5e: 60fb str r3, [r7, #12] + 8002c60: 4a04 ldr r2, [pc, #16] @ (8002c74 ) + 8002c62: 68fb ldr r3, [r7, #12] + 8002c64: 6053 str r3, [r2, #4] /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } - 80029ea: bf00 nop - 80029ec: 3714 adds r7, #20 - 80029ee: 46bd mov sp, r7 - 80029f0: bc80 pop {r7} - 80029f2: 4770 bx lr - 80029f4: 40021000 .word 0x40021000 - 80029f8: 40010000 .word 0x40010000 + 8002c66: bf00 nop + 8002c68: 3714 adds r7, #20 + 8002c6a: 46bd mov sp, r7 + 8002c6c: bc80 pop {r7} + 8002c6e: 4770 bx lr + 8002c70: 40021000 .word 0x40021000 + 8002c74: 40010000 .word 0x40010000 -080029fc : +08002c78 : /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { - 80029fc: b480 push {r7} - 80029fe: af00 add r7, sp, #0 + 8002c78: b480 push {r7} + 8002c7a: af00 add r7, sp, #0 /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ /* USER CODE END NonMaskableInt_IRQn 0 */ /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ while (1) - 8002a00: bf00 nop - 8002a02: e7fd b.n 8002a00 + 8002c7c: bf00 nop + 8002c7e: e7fd b.n 8002c7c -08002a04 : +08002c80 : /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { - 8002a04: b480 push {r7} - 8002a06: af00 add r7, sp, #0 + 8002c80: b480 push {r7} + 8002c82: af00 add r7, sp, #0 /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) - 8002a08: bf00 nop - 8002a0a: e7fd b.n 8002a08 + 8002c84: bf00 nop + 8002c86: e7fd b.n 8002c84 -08002a0c : +08002c88 : /** * @brief This function handles Memory management fault. */ void MemManage_Handler(void) { - 8002a0c: b480 push {r7} - 8002a0e: af00 add r7, sp, #0 + 8002c88: b480 push {r7} + 8002c8a: af00 add r7, sp, #0 /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) - 8002a10: bf00 nop - 8002a12: e7fd b.n 8002a10 + 8002c8c: bf00 nop + 8002c8e: e7fd b.n 8002c8c -08002a14 : +08002c90 : /** * @brief This function handles Prefetch fault, memory access fault. */ void BusFault_Handler(void) { - 8002a14: b480 push {r7} - 8002a16: af00 add r7, sp, #0 + 8002c90: b480 push {r7} + 8002c92: af00 add r7, sp, #0 /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) - 8002a18: bf00 nop - 8002a1a: e7fd b.n 8002a18 + 8002c94: bf00 nop + 8002c96: e7fd b.n 8002c94 -08002a1c : +08002c98 : /** * @brief This function handles Undefined instruction or illegal state. */ void UsageFault_Handler(void) { - 8002a1c: b480 push {r7} - 8002a1e: af00 add r7, sp, #0 + 8002c98: b480 push {r7} + 8002c9a: af00 add r7, sp, #0 /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) - 8002a20: bf00 nop - 8002a22: e7fd b.n 8002a20 + 8002c9c: bf00 nop + 8002c9e: e7fd b.n 8002c9c -08002a24 : +08002ca0 : /** * @brief This function handles System service call via SWI instruction. */ void SVC_Handler(void) { - 8002a24: b480 push {r7} - 8002a26: af00 add r7, sp, #0 + 8002ca0: b480 push {r7} + 8002ca2: af00 add r7, sp, #0 /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } - 8002a28: bf00 nop - 8002a2a: 46bd mov sp, r7 - 8002a2c: bc80 pop {r7} - 8002a2e: 4770 bx lr + 8002ca4: bf00 nop + 8002ca6: 46bd mov sp, r7 + 8002ca8: bc80 pop {r7} + 8002caa: 4770 bx lr -08002a30 : +08002cac : /** * @brief This function handles Debug monitor. */ void DebugMon_Handler(void) { - 8002a30: b480 push {r7} - 8002a32: af00 add r7, sp, #0 + 8002cac: b480 push {r7} + 8002cae: af00 add r7, sp, #0 /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } - 8002a34: bf00 nop - 8002a36: 46bd mov sp, r7 - 8002a38: bc80 pop {r7} - 8002a3a: 4770 bx lr + 8002cb0: bf00 nop + 8002cb2: 46bd mov sp, r7 + 8002cb4: bc80 pop {r7} + 8002cb6: 4770 bx lr -08002a3c : +08002cb8 : /** * @brief This function handles Pendable request for system service. */ void PendSV_Handler(void) { - 8002a3c: b480 push {r7} - 8002a3e: af00 add r7, sp, #0 + 8002cb8: b480 push {r7} + 8002cba: af00 add r7, sp, #0 /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } - 8002a40: bf00 nop - 8002a42: 46bd mov sp, r7 - 8002a44: bc80 pop {r7} - 8002a46: 4770 bx lr + 8002cbc: bf00 nop + 8002cbe: 46bd mov sp, r7 + 8002cc0: bc80 pop {r7} + 8002cc2: 4770 bx lr -08002a48 : +08002cc4 : /** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { - 8002a48: b580 push {r7, lr} - 8002a4a: af00 add r7, sp, #0 + 8002cc4: b580 push {r7, lr} + 8002cc6: af00 add r7, sp, #0 /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); - 8002a4c: f000 f8fc bl 8002c48 + 8002cc8: f000 f8fc bl 8002ec4 /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } - 8002a50: bf00 nop - 8002a52: bd80 pop {r7, pc} + 8002ccc: bf00 nop + 8002cce: bd80 pop {r7, pc} -08002a54 : +08002cd0 : /** * @brief This function handles USART1 global interrupt. */ void USART1_IRQHandler(void) { - 8002a54: b580 push {r7, lr} - 8002a56: af00 add r7, sp, #0 + 8002cd0: b580 push {r7, lr} + 8002cd2: af00 add r7, sp, #0 /* USER CODE BEGIN USART1_IRQn 0 */ /* USER CODE END USART1_IRQn 0 */ HAL_UART_IRQHandler(&huart1); - 8002a58: 4802 ldr r0, [pc, #8] @ (8002a64 ) - 8002a5a: f002 feab bl 80057b4 + 8002cd4: 4802 ldr r0, [pc, #8] @ (8002ce0 ) + 8002cd6: f002 feab bl 8005a30 /* USER CODE BEGIN USART1_IRQn 1 */ /* USER CODE END USART1_IRQn 1 */ } - 8002a5e: bf00 nop - 8002a60: bd80 pop {r7, pc} - 8002a62: bf00 nop - 8002a64: 200006a4 .word 0x200006a4 + 8002cda: bf00 nop + 8002cdc: bd80 pop {r7, pc} + 8002cde: bf00 nop + 8002ce0: 2000071c .word 0x2000071c -08002a68 : +08002ce4 : * @note This function should be used only after reset. * @param None * @retval None */ void SystemInit (void) { - 8002a68: b480 push {r7} - 8002a6a: af00 add r7, sp, #0 + 8002ce4: b480 push {r7} + 8002ce6: af00 add r7, sp, #0 /* Configure the Vector Table location -------------------------------------*/ #if defined(USER_VECT_TAB_ADDRESS) SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */ #endif /* USER_VECT_TAB_ADDRESS */ } - 8002a6c: bf00 nop - 8002a6e: 46bd mov sp, r7 - 8002a70: bc80 pop {r7} - 8002a72: 4770 bx lr + 8002ce8: bf00 nop + 8002cea: 46bd mov sp, r7 + 8002cec: bc80 pop {r7} + 8002cee: 4770 bx lr -08002a74 : +08002cf0 : UART_HandleTypeDef huart1; /* USART1 init function */ void MX_USART1_UART_Init(void) { - 8002a74: b580 push {r7, lr} - 8002a76: af00 add r7, sp, #0 + 8002cf0: b580 push {r7, lr} + 8002cf2: af00 add r7, sp, #0 /* USER CODE END USART1_Init 0 */ /* USER CODE BEGIN USART1_Init 1 */ /* USER CODE END USART1_Init 1 */ huart1.Instance = USART1; - 8002a78: 4b11 ldr r3, [pc, #68] @ (8002ac0 ) - 8002a7a: 4a12 ldr r2, [pc, #72] @ (8002ac4 ) - 8002a7c: 601a str r2, [r3, #0] + 8002cf4: 4b11 ldr r3, [pc, #68] @ (8002d3c ) + 8002cf6: 4a12 ldr r2, [pc, #72] @ (8002d40 ) + 8002cf8: 601a str r2, [r3, #0] huart1.Init.BaudRate = 115200; - 8002a7e: 4b10 ldr r3, [pc, #64] @ (8002ac0 ) - 8002a80: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 8002a84: 605a str r2, [r3, #4] + 8002cfa: 4b10 ldr r3, [pc, #64] @ (8002d3c ) + 8002cfc: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 8002d00: 605a str r2, [r3, #4] huart1.Init.WordLength = UART_WORDLENGTH_8B; - 8002a86: 4b0e ldr r3, [pc, #56] @ (8002ac0 ) - 8002a88: 2200 movs r2, #0 - 8002a8a: 609a str r2, [r3, #8] + 8002d02: 4b0e ldr r3, [pc, #56] @ (8002d3c ) + 8002d04: 2200 movs r2, #0 + 8002d06: 609a str r2, [r3, #8] huart1.Init.StopBits = UART_STOPBITS_1; - 8002a8c: 4b0c ldr r3, [pc, #48] @ (8002ac0 ) - 8002a8e: 2200 movs r2, #0 - 8002a90: 60da str r2, [r3, #12] + 8002d08: 4b0c ldr r3, [pc, #48] @ (8002d3c ) + 8002d0a: 2200 movs r2, #0 + 8002d0c: 60da str r2, [r3, #12] huart1.Init.Parity = UART_PARITY_NONE; - 8002a92: 4b0b ldr r3, [pc, #44] @ (8002ac0 ) - 8002a94: 2200 movs r2, #0 - 8002a96: 611a str r2, [r3, #16] + 8002d0e: 4b0b ldr r3, [pc, #44] @ (8002d3c ) + 8002d10: 2200 movs r2, #0 + 8002d12: 611a str r2, [r3, #16] huart1.Init.Mode = UART_MODE_TX_RX; - 8002a98: 4b09 ldr r3, [pc, #36] @ (8002ac0 ) - 8002a9a: 220c movs r2, #12 - 8002a9c: 615a str r2, [r3, #20] + 8002d14: 4b09 ldr r3, [pc, #36] @ (8002d3c ) + 8002d16: 220c movs r2, #12 + 8002d18: 615a str r2, [r3, #20] huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 8002a9e: 4b08 ldr r3, [pc, #32] @ (8002ac0 ) - 8002aa0: 2200 movs r2, #0 - 8002aa2: 619a str r2, [r3, #24] + 8002d1a: 4b08 ldr r3, [pc, #32] @ (8002d3c ) + 8002d1c: 2200 movs r2, #0 + 8002d1e: 619a str r2, [r3, #24] huart1.Init.OverSampling = UART_OVERSAMPLING_16; - 8002aa4: 4b06 ldr r3, [pc, #24] @ (8002ac0 ) - 8002aa6: 2200 movs r2, #0 - 8002aa8: 61da str r2, [r3, #28] + 8002d20: 4b06 ldr r3, [pc, #24] @ (8002d3c ) + 8002d22: 2200 movs r2, #0 + 8002d24: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart1) != HAL_OK) - 8002aaa: 4805 ldr r0, [pc, #20] @ (8002ac0 ) - 8002aac: f002 fda6 bl 80055fc - 8002ab0: 4603 mov r3, r0 - 8002ab2: 2b00 cmp r3, #0 - 8002ab4: d001 beq.n 8002aba + 8002d26: 4805 ldr r0, [pc, #20] @ (8002d3c ) + 8002d28: f002 fda6 bl 8005878 + 8002d2c: 4603 mov r3, r0 + 8002d2e: 2b00 cmp r3, #0 + 8002d30: d001 beq.n 8002d36 { Error_Handler(); - 8002ab6: f7ff fe75 bl 80027a4 + 8002d32: f7ff fe75 bl 8002a20 } /* USER CODE BEGIN USART1_Init 2 */ /* USER CODE END USART1_Init 2 */ } - 8002aba: bf00 nop - 8002abc: bd80 pop {r7, pc} - 8002abe: bf00 nop - 8002ac0: 200006a4 .word 0x200006a4 - 8002ac4: 40013800 .word 0x40013800 + 8002d36: bf00 nop + 8002d38: bd80 pop {r7, pc} + 8002d3a: bf00 nop + 8002d3c: 2000071c .word 0x2000071c + 8002d40: 40013800 .word 0x40013800 -08002ac8 : +08002d44 : void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) { - 8002ac8: b580 push {r7, lr} - 8002aca: b088 sub sp, #32 - 8002acc: af00 add r7, sp, #0 - 8002ace: 6078 str r0, [r7, #4] + 8002d44: b580 push {r7, lr} + 8002d46: b088 sub sp, #32 + 8002d48: af00 add r7, sp, #0 + 8002d4a: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8002ad0: f107 0310 add.w r3, r7, #16 - 8002ad4: 2200 movs r2, #0 - 8002ad6: 601a str r2, [r3, #0] - 8002ad8: 605a str r2, [r3, #4] - 8002ada: 609a str r2, [r3, #8] - 8002adc: 60da str r2, [r3, #12] + 8002d4c: f107 0310 add.w r3, r7, #16 + 8002d50: 2200 movs r2, #0 + 8002d52: 601a str r2, [r3, #0] + 8002d54: 605a str r2, [r3, #4] + 8002d56: 609a str r2, [r3, #8] + 8002d58: 60da str r2, [r3, #12] if(uartHandle->Instance==USART1) - 8002ade: 687b ldr r3, [r7, #4] - 8002ae0: 681b ldr r3, [r3, #0] - 8002ae2: 4a20 ldr r2, [pc, #128] @ (8002b64 ) - 8002ae4: 4293 cmp r3, r2 - 8002ae6: d139 bne.n 8002b5c + 8002d5a: 687b ldr r3, [r7, #4] + 8002d5c: 681b ldr r3, [r3, #0] + 8002d5e: 4a20 ldr r2, [pc, #128] @ (8002de0 ) + 8002d60: 4293 cmp r3, r2 + 8002d62: d139 bne.n 8002dd8 { /* USER CODE BEGIN USART1_MspInit 0 */ /* USER CODE END USART1_MspInit 0 */ /* USART1 clock enable */ __HAL_RCC_USART1_CLK_ENABLE(); - 8002ae8: 4b1f ldr r3, [pc, #124] @ (8002b68 ) - 8002aea: 699b ldr r3, [r3, #24] - 8002aec: 4a1e ldr r2, [pc, #120] @ (8002b68 ) - 8002aee: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 8002af2: 6193 str r3, [r2, #24] - 8002af4: 4b1c ldr r3, [pc, #112] @ (8002b68 ) - 8002af6: 699b ldr r3, [r3, #24] - 8002af8: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 8002afc: 60fb str r3, [r7, #12] - 8002afe: 68fb ldr r3, [r7, #12] + 8002d64: 4b1f ldr r3, [pc, #124] @ (8002de4 ) + 8002d66: 699b ldr r3, [r3, #24] + 8002d68: 4a1e ldr r2, [pc, #120] @ (8002de4 ) + 8002d6a: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 8002d6e: 6193 str r3, [r2, #24] + 8002d70: 4b1c ldr r3, [pc, #112] @ (8002de4 ) + 8002d72: 699b ldr r3, [r3, #24] + 8002d74: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 8002d78: 60fb str r3, [r7, #12] + 8002d7a: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8002b00: 4b19 ldr r3, [pc, #100] @ (8002b68 ) - 8002b02: 699b ldr r3, [r3, #24] - 8002b04: 4a18 ldr r2, [pc, #96] @ (8002b68 ) - 8002b06: f043 0304 orr.w r3, r3, #4 - 8002b0a: 6193 str r3, [r2, #24] - 8002b0c: 4b16 ldr r3, [pc, #88] @ (8002b68 ) - 8002b0e: 699b ldr r3, [r3, #24] - 8002b10: f003 0304 and.w r3, r3, #4 - 8002b14: 60bb str r3, [r7, #8] - 8002b16: 68bb ldr r3, [r7, #8] + 8002d7c: 4b19 ldr r3, [pc, #100] @ (8002de4 ) + 8002d7e: 699b ldr r3, [r3, #24] + 8002d80: 4a18 ldr r2, [pc, #96] @ (8002de4 ) + 8002d82: f043 0304 orr.w r3, r3, #4 + 8002d86: 6193 str r3, [r2, #24] + 8002d88: 4b16 ldr r3, [pc, #88] @ (8002de4 ) + 8002d8a: 699b ldr r3, [r3, #24] + 8002d8c: f003 0304 and.w r3, r3, #4 + 8002d90: 60bb str r3, [r7, #8] + 8002d92: 68bb ldr r3, [r7, #8] /**USART1 GPIO Configuration PA9 ------> USART1_TX PA10 ------> USART1_RX */ GPIO_InitStruct.Pin = TX_RS485_Pin; - 8002b18: f44f 7300 mov.w r3, #512 @ 0x200 - 8002b1c: 613b str r3, [r7, #16] + 8002d94: f44f 7300 mov.w r3, #512 @ 0x200 + 8002d98: 613b str r3, [r7, #16] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8002b1e: 2302 movs r3, #2 - 8002b20: 617b str r3, [r7, #20] + 8002d9a: 2302 movs r3, #2 + 8002d9c: 617b str r3, [r7, #20] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM; - 8002b22: 2301 movs r3, #1 - 8002b24: 61fb str r3, [r7, #28] + 8002d9e: 2301 movs r3, #1 + 8002da0: 61fb str r3, [r7, #28] HAL_GPIO_Init(TX_RS485_GPIO_Port, &GPIO_InitStruct); - 8002b26: f107 0310 add.w r3, r7, #16 - 8002b2a: 4619 mov r1, r3 - 8002b2c: 480f ldr r0, [pc, #60] @ (8002b6c ) - 8002b2e: f000 fe9d bl 800386c + 8002da2: f107 0310 add.w r3, r7, #16 + 8002da6: 4619 mov r1, r3 + 8002da8: 480f ldr r0, [pc, #60] @ (8002de8 ) + 8002daa: f000 fe9d bl 8003ae8 GPIO_InitStruct.Pin = RX_RS485_Pin; - 8002b32: f44f 6380 mov.w r3, #1024 @ 0x400 - 8002b36: 613b str r3, [r7, #16] + 8002dae: f44f 6380 mov.w r3, #1024 @ 0x400 + 8002db2: 613b str r3, [r7, #16] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 8002b38: 2300 movs r3, #0 - 8002b3a: 617b str r3, [r7, #20] + 8002db4: 2300 movs r3, #0 + 8002db6: 617b str r3, [r7, #20] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8002b3c: 2300 movs r3, #0 - 8002b3e: 61bb str r3, [r7, #24] + 8002db8: 2300 movs r3, #0 + 8002dba: 61bb str r3, [r7, #24] HAL_GPIO_Init(RX_RS485_GPIO_Port, &GPIO_InitStruct); - 8002b40: f107 0310 add.w r3, r7, #16 - 8002b44: 4619 mov r1, r3 - 8002b46: 4809 ldr r0, [pc, #36] @ (8002b6c ) - 8002b48: f000 fe90 bl 800386c + 8002dbc: f107 0310 add.w r3, r7, #16 + 8002dc0: 4619 mov r1, r3 + 8002dc2: 4809 ldr r0, [pc, #36] @ (8002de8 ) + 8002dc4: f000 fe90 bl 8003ae8 /* USART1 interrupt Init */ HAL_NVIC_SetPriority(USART1_IRQn, 0, 0); - 8002b4c: 2200 movs r2, #0 - 8002b4e: 2100 movs r1, #0 - 8002b50: 2025 movs r0, #37 @ 0x25 - 8002b52: f000 fba2 bl 800329a + 8002dc8: 2200 movs r2, #0 + 8002dca: 2100 movs r1, #0 + 8002dcc: 2025 movs r0, #37 @ 0x25 + 8002dce: f000 fba2 bl 8003516 HAL_NVIC_EnableIRQ(USART1_IRQn); - 8002b56: 2025 movs r0, #37 @ 0x25 - 8002b58: f000 fbbb bl 80032d2 + 8002dd2: 2025 movs r0, #37 @ 0x25 + 8002dd4: f000 fbbb bl 800354e /* USER CODE BEGIN USART1_MspInit 1 */ /* USER CODE END USART1_MspInit 1 */ } } - 8002b5c: bf00 nop - 8002b5e: 3720 adds r7, #32 - 8002b60: 46bd mov sp, r7 - 8002b62: bd80 pop {r7, pc} - 8002b64: 40013800 .word 0x40013800 - 8002b68: 40021000 .word 0x40021000 - 8002b6c: 40010800 .word 0x40010800 + 8002dd8: bf00 nop + 8002dda: 3720 adds r7, #32 + 8002ddc: 46bd mov sp, r7 + 8002dde: bd80 pop {r7, pc} + 8002de0: 40013800 .word 0x40013800 + 8002de4: 40021000 .word 0x40021000 + 8002de8: 40010800 .word 0x40010800 -08002b70 : +08002dec : .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: /* Call the clock system initialization function.*/ bl SystemInit - 8002b70: f7ff ff7a bl 8002a68 + 8002dec: f7ff ff7a bl 8002ce4 /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata - 8002b74: 480b ldr r0, [pc, #44] @ (8002ba4 ) + 8002df0: 480b ldr r0, [pc, #44] @ (8002e20 ) ldr r1, =_edata - 8002b76: 490c ldr r1, [pc, #48] @ (8002ba8 ) + 8002df2: 490c ldr r1, [pc, #48] @ (8002e24 ) ldr r2, =_sidata - 8002b78: 4a0c ldr r2, [pc, #48] @ (8002bac ) + 8002df4: 4a0c ldr r2, [pc, #48] @ (8002e28 ) movs r3, #0 - 8002b7a: 2300 movs r3, #0 + 8002df6: 2300 movs r3, #0 b LoopCopyDataInit - 8002b7c: e002 b.n 8002b84 + 8002df8: e002 b.n 8002e00 -08002b7e : +08002dfa : CopyDataInit: ldr r4, [r2, r3] - 8002b7e: 58d4 ldr r4, [r2, r3] + 8002dfa: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] - 8002b80: 50c4 str r4, [r0, r3] + 8002dfc: 50c4 str r4, [r0, r3] adds r3, r3, #4 - 8002b82: 3304 adds r3, #4 + 8002dfe: 3304 adds r3, #4 -08002b84 : +08002e00 : LoopCopyDataInit: adds r4, r0, r3 - 8002b84: 18c4 adds r4, r0, r3 + 8002e00: 18c4 adds r4, r0, r3 cmp r4, r1 - 8002b86: 428c cmp r4, r1 + 8002e02: 428c cmp r4, r1 bcc CopyDataInit - 8002b88: d3f9 bcc.n 8002b7e + 8002e04: d3f9 bcc.n 8002dfa /* Zero fill the bss segment. */ ldr r2, =_sbss - 8002b8a: 4a09 ldr r2, [pc, #36] @ (8002bb0 ) + 8002e06: 4a09 ldr r2, [pc, #36] @ (8002e2c ) ldr r4, =_ebss - 8002b8c: 4c09 ldr r4, [pc, #36] @ (8002bb4 ) + 8002e08: 4c09 ldr r4, [pc, #36] @ (8002e30 ) movs r3, #0 - 8002b8e: 2300 movs r3, #0 + 8002e0a: 2300 movs r3, #0 b LoopFillZerobss - 8002b90: e001 b.n 8002b96 + 8002e0c: e001 b.n 8002e12 -08002b92 : +08002e0e : FillZerobss: str r3, [r2] - 8002b92: 6013 str r3, [r2, #0] + 8002e0e: 6013 str r3, [r2, #0] adds r2, r2, #4 - 8002b94: 3204 adds r2, #4 + 8002e10: 3204 adds r2, #4 -08002b96 : +08002e12 : LoopFillZerobss: cmp r2, r4 - 8002b96: 42a2 cmp r2, r4 + 8002e12: 42a2 cmp r2, r4 bcc FillZerobss - 8002b98: d3fb bcc.n 8002b92 + 8002e14: d3fb bcc.n 8002e0e /* Call static constructors */ bl __libc_init_array - 8002b9a: f003 fb53 bl 8006244 <__libc_init_array> + 8002e16: f003 fb53 bl 80064c0 <__libc_init_array> /* Call the application's entry point.*/ bl main - 8002b9e: f7ff faf5 bl 800218c
+ 8002e1a: f7ff fa4d bl 80022b8
bx lr - 8002ba2: 4770 bx lr + 8002e1e: 4770 bx lr ldr r0, =_sdata - 8002ba4: 20000000 .word 0x20000000 + 8002e20: 20000000 .word 0x20000000 ldr r1, =_edata - 8002ba8: 20000074 .word 0x20000074 + 8002e24: 20000090 .word 0x20000090 ldr r2, =_sidata - 8002bac: 080064ac .word 0x080064ac + 8002e28: 08006828 .word 0x08006828 ldr r2, =_sbss - 8002bb0: 20000078 .word 0x20000078 + 8002e2c: 20000090 .word 0x20000090 ldr r4, =_ebss - 8002bb4: 20000848 .word 0x20000848 + 8002e30: 200008c0 .word 0x200008c0 -08002bb8 : +08002e34 : * @retval : None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop - 8002bb8: e7fe b.n 8002bb8 + 8002e34: e7fe b.n 8002e34 ... -08002bbc : +08002e38 : * need to ensure that the SysTick time base is always set to 1 millisecond * to have correct HAL operation. * @retval HAL status */ HAL_StatusTypeDef HAL_Init(void) { - 8002bbc: b580 push {r7, lr} - 8002bbe: af00 add r7, sp, #0 + 8002e38: b580 push {r7, lr} + 8002e3a: af00 add r7, sp, #0 defined(STM32F102x6) || defined(STM32F102xB) || \ defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || \ defined(STM32F105xC) || defined(STM32F107xC) /* Prefetch buffer is not available on value line devices */ __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); - 8002bc0: 4b08 ldr r3, [pc, #32] @ (8002be4 ) - 8002bc2: 681b ldr r3, [r3, #0] - 8002bc4: 4a07 ldr r2, [pc, #28] @ (8002be4 ) - 8002bc6: f043 0310 orr.w r3, r3, #16 - 8002bca: 6013 str r3, [r2, #0] + 8002e3c: 4b08 ldr r3, [pc, #32] @ (8002e60 ) + 8002e3e: 681b ldr r3, [r3, #0] + 8002e40: 4a07 ldr r2, [pc, #28] @ (8002e60 ) + 8002e42: f043 0310 orr.w r3, r3, #16 + 8002e46: 6013 str r3, [r2, #0] #endif #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - 8002bcc: 2003 movs r0, #3 - 8002bce: f000 fb59 bl 8003284 + 8002e48: 2003 movs r0, #3 + 8002e4a: f000 fb59 bl 8003500 /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); - 8002bd2: 200f movs r0, #15 - 8002bd4: f000 f808 bl 8002be8 + 8002e4e: 200f movs r0, #15 + 8002e50: f000 f808 bl 8002e64 /* Init the low level hardware */ HAL_MspInit(); - 8002bd8: f7ff fede bl 8002998 + 8002e54: f7ff fede bl 8002c14 /* Return function status */ return HAL_OK; - 8002bdc: 2300 movs r3, #0 + 8002e58: 2300 movs r3, #0 } - 8002bde: 4618 mov r0, r3 - 8002be0: bd80 pop {r7, pc} - 8002be2: bf00 nop - 8002be4: 40022000 .word 0x40022000 + 8002e5a: 4618 mov r0, r3 + 8002e5c: bd80 pop {r7, pc} + 8002e5e: bf00 nop + 8002e60: 40022000 .word 0x40022000 -08002be8 : +08002e64 : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { - 8002be8: b580 push {r7, lr} - 8002bea: b082 sub sp, #8 - 8002bec: af00 add r7, sp, #0 - 8002bee: 6078 str r0, [r7, #4] + 8002e64: b580 push {r7, lr} + 8002e66: b082 sub sp, #8 + 8002e68: af00 add r7, sp, #0 + 8002e6a: 6078 str r0, [r7, #4] /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) - 8002bf0: 4b12 ldr r3, [pc, #72] @ (8002c3c ) - 8002bf2: 681a ldr r2, [r3, #0] - 8002bf4: 4b12 ldr r3, [pc, #72] @ (8002c40 ) - 8002bf6: 781b ldrb r3, [r3, #0] - 8002bf8: 4619 mov r1, r3 - 8002bfa: f44f 737a mov.w r3, #1000 @ 0x3e8 - 8002bfe: fbb3 f3f1 udiv r3, r3, r1 - 8002c02: fbb2 f3f3 udiv r3, r2, r3 - 8002c06: 4618 mov r0, r3 - 8002c08: f000 fb71 bl 80032ee - 8002c0c: 4603 mov r3, r0 - 8002c0e: 2b00 cmp r3, #0 - 8002c10: d001 beq.n 8002c16 + 8002e6c: 4b12 ldr r3, [pc, #72] @ (8002eb8 ) + 8002e6e: 681a ldr r2, [r3, #0] + 8002e70: 4b12 ldr r3, [pc, #72] @ (8002ebc ) + 8002e72: 781b ldrb r3, [r3, #0] + 8002e74: 4619 mov r1, r3 + 8002e76: f44f 737a mov.w r3, #1000 @ 0x3e8 + 8002e7a: fbb3 f3f1 udiv r3, r3, r1 + 8002e7e: fbb2 f3f3 udiv r3, r2, r3 + 8002e82: 4618 mov r0, r3 + 8002e84: f000 fb71 bl 800356a + 8002e88: 4603 mov r3, r0 + 8002e8a: 2b00 cmp r3, #0 + 8002e8c: d001 beq.n 8002e92 { return HAL_ERROR; - 8002c12: 2301 movs r3, #1 - 8002c14: e00e b.n 8002c34 + 8002e8e: 2301 movs r3, #1 + 8002e90: e00e b.n 8002eb0 } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 8002c16: 687b ldr r3, [r7, #4] - 8002c18: 2b0f cmp r3, #15 - 8002c1a: d80a bhi.n 8002c32 + 8002e92: 687b ldr r3, [r7, #4] + 8002e94: 2b0f cmp r3, #15 + 8002e96: d80a bhi.n 8002eae { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); - 8002c1c: 2200 movs r2, #0 - 8002c1e: 6879 ldr r1, [r7, #4] - 8002c20: f04f 30ff mov.w r0, #4294967295 - 8002c24: f000 fb39 bl 800329a + 8002e98: 2200 movs r2, #0 + 8002e9a: 6879 ldr r1, [r7, #4] + 8002e9c: f04f 30ff mov.w r0, #4294967295 + 8002ea0: f000 fb39 bl 8003516 uwTickPrio = TickPriority; - 8002c28: 4a06 ldr r2, [pc, #24] @ (8002c44 ) - 8002c2a: 687b ldr r3, [r7, #4] - 8002c2c: 6013 str r3, [r2, #0] + 8002ea4: 4a06 ldr r2, [pc, #24] @ (8002ec0 ) + 8002ea6: 687b ldr r3, [r7, #4] + 8002ea8: 6013 str r3, [r2, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; - 8002c2e: 2300 movs r3, #0 - 8002c30: e000 b.n 8002c34 + 8002eaa: 2300 movs r3, #0 + 8002eac: e000 b.n 8002eb0 return HAL_ERROR; - 8002c32: 2301 movs r3, #1 + 8002eae: 2301 movs r3, #1 } - 8002c34: 4618 mov r0, r3 - 8002c36: 3708 adds r7, #8 - 8002c38: 46bd mov sp, r7 - 8002c3a: bd80 pop {r7, pc} - 8002c3c: 20000018 .word 0x20000018 - 8002c40: 20000020 .word 0x20000020 - 8002c44: 2000001c .word 0x2000001c + 8002eb0: 4618 mov r0, r3 + 8002eb2: 3708 adds r7, #8 + 8002eb4: 46bd mov sp, r7 + 8002eb6: bd80 pop {r7, pc} + 8002eb8: 20000034 .word 0x20000034 + 8002ebc: 2000003c .word 0x2000003c + 8002ec0: 20000038 .word 0x20000038 -08002c48 : +08002ec4 : * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval None */ __weak void HAL_IncTick(void) { - 8002c48: b480 push {r7} - 8002c4a: af00 add r7, sp, #0 + 8002ec4: b480 push {r7} + 8002ec6: af00 add r7, sp, #0 uwTick += uwTickFreq; - 8002c4c: 4b05 ldr r3, [pc, #20] @ (8002c64 ) - 8002c4e: 781b ldrb r3, [r3, #0] - 8002c50: 461a mov r2, r3 - 8002c52: 4b05 ldr r3, [pc, #20] @ (8002c68 ) - 8002c54: 681b ldr r3, [r3, #0] - 8002c56: 4413 add r3, r2 - 8002c58: 4a03 ldr r2, [pc, #12] @ (8002c68 ) - 8002c5a: 6013 str r3, [r2, #0] + 8002ec8: 4b05 ldr r3, [pc, #20] @ (8002ee0 ) + 8002eca: 781b ldrb r3, [r3, #0] + 8002ecc: 461a mov r2, r3 + 8002ece: 4b05 ldr r3, [pc, #20] @ (8002ee4 ) + 8002ed0: 681b ldr r3, [r3, #0] + 8002ed2: 4413 add r3, r2 + 8002ed4: 4a03 ldr r2, [pc, #12] @ (8002ee4 ) + 8002ed6: 6013 str r3, [r2, #0] } - 8002c5c: bf00 nop - 8002c5e: 46bd mov sp, r7 - 8002c60: bc80 pop {r7} - 8002c62: 4770 bx lr - 8002c64: 20000020 .word 0x20000020 - 8002c68: 200006ec .word 0x200006ec + 8002ed8: bf00 nop + 8002eda: 46bd mov sp, r7 + 8002edc: bc80 pop {r7} + 8002ede: 4770 bx lr + 8002ee0: 2000003c .word 0x2000003c + 8002ee4: 20000764 .word 0x20000764 -08002c6c : +08002ee8 : * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval tick value */ __weak uint32_t HAL_GetTick(void) { - 8002c6c: b480 push {r7} - 8002c6e: af00 add r7, sp, #0 + 8002ee8: b480 push {r7} + 8002eea: af00 add r7, sp, #0 return uwTick; - 8002c70: 4b02 ldr r3, [pc, #8] @ (8002c7c ) - 8002c72: 681b ldr r3, [r3, #0] + 8002eec: 4b02 ldr r3, [pc, #8] @ (8002ef8 ) + 8002eee: 681b ldr r3, [r3, #0] } - 8002c74: 4618 mov r0, r3 - 8002c76: 46bd mov sp, r7 - 8002c78: bc80 pop {r7} - 8002c7a: 4770 bx lr - 8002c7c: 200006ec .word 0x200006ec + 8002ef0: 4618 mov r0, r3 + 8002ef2: 46bd mov sp, r7 + 8002ef4: bc80 pop {r7} + 8002ef6: 4770 bx lr + 8002ef8: 20000764 .word 0x20000764 -08002c80 : +08002efc : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { - 8002c80: b580 push {r7, lr} - 8002c82: b084 sub sp, #16 - 8002c84: af00 add r7, sp, #0 - 8002c86: 6078 str r0, [r7, #4] + 8002efc: b580 push {r7, lr} + 8002efe: b084 sub sp, #16 + 8002f00: af00 add r7, sp, #0 + 8002f02: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); - 8002c88: f7ff fff0 bl 8002c6c - 8002c8c: 60b8 str r0, [r7, #8] + 8002f04: f7ff fff0 bl 8002ee8 + 8002f08: 60b8 str r0, [r7, #8] uint32_t wait = Delay; - 8002c8e: 687b ldr r3, [r7, #4] - 8002c90: 60fb str r3, [r7, #12] + 8002f0a: 687b ldr r3, [r7, #4] + 8002f0c: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) - 8002c92: 68fb ldr r3, [r7, #12] - 8002c94: f1b3 3fff cmp.w r3, #4294967295 - 8002c98: d005 beq.n 8002ca6 + 8002f0e: 68fb ldr r3, [r7, #12] + 8002f10: f1b3 3fff cmp.w r3, #4294967295 + 8002f14: d005 beq.n 8002f22 { wait += (uint32_t)(uwTickFreq); - 8002c9a: 4b0a ldr r3, [pc, #40] @ (8002cc4 ) - 8002c9c: 781b ldrb r3, [r3, #0] - 8002c9e: 461a mov r2, r3 - 8002ca0: 68fb ldr r3, [r7, #12] - 8002ca2: 4413 add r3, r2 - 8002ca4: 60fb str r3, [r7, #12] + 8002f16: 4b0a ldr r3, [pc, #40] @ (8002f40 ) + 8002f18: 781b ldrb r3, [r3, #0] + 8002f1a: 461a mov r2, r3 + 8002f1c: 68fb ldr r3, [r7, #12] + 8002f1e: 4413 add r3, r2 + 8002f20: 60fb str r3, [r7, #12] } while ((HAL_GetTick() - tickstart) < wait) - 8002ca6: bf00 nop - 8002ca8: f7ff ffe0 bl 8002c6c - 8002cac: 4602 mov r2, r0 - 8002cae: 68bb ldr r3, [r7, #8] - 8002cb0: 1ad3 subs r3, r2, r3 - 8002cb2: 68fa ldr r2, [r7, #12] - 8002cb4: 429a cmp r2, r3 - 8002cb6: d8f7 bhi.n 8002ca8 + 8002f22: bf00 nop + 8002f24: f7ff ffe0 bl 8002ee8 + 8002f28: 4602 mov r2, r0 + 8002f2a: 68bb ldr r3, [r7, #8] + 8002f2c: 1ad3 subs r3, r2, r3 + 8002f2e: 68fa ldr r2, [r7, #12] + 8002f30: 429a cmp r2, r3 + 8002f32: d8f7 bhi.n 8002f24 { } } - 8002cb8: bf00 nop - 8002cba: bf00 nop - 8002cbc: 3710 adds r7, #16 - 8002cbe: 46bd mov sp, r7 - 8002cc0: bd80 pop {r7, pc} - 8002cc2: bf00 nop - 8002cc4: 20000020 .word 0x20000020 + 8002f34: bf00 nop + 8002f36: bf00 nop + 8002f38: 3710 adds r7, #16 + 8002f3a: 46bd mov sp, r7 + 8002f3c: bd80 pop {r7, pc} + 8002f3e: bf00 nop + 8002f40: 2000003c .word 0x2000003c -08002cc8 : +08002f44 : * of structure "ADC_InitTypeDef". * @param hadc: ADC handle * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc) { - 8002cc8: b580 push {r7, lr} - 8002cca: b086 sub sp, #24 - 8002ccc: af00 add r7, sp, #0 - 8002cce: 6078 str r0, [r7, #4] + 8002f44: b580 push {r7, lr} + 8002f46: b086 sub sp, #24 + 8002f48: af00 add r7, sp, #0 + 8002f4a: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 8002cd0: 2300 movs r3, #0 - 8002cd2: 75fb strb r3, [r7, #23] + 8002f4c: 2300 movs r3, #0 + 8002f4e: 75fb strb r3, [r7, #23] uint32_t tmp_cr1 = 0U; - 8002cd4: 2300 movs r3, #0 - 8002cd6: 613b str r3, [r7, #16] + 8002f50: 2300 movs r3, #0 + 8002f52: 613b str r3, [r7, #16] uint32_t tmp_cr2 = 0U; - 8002cd8: 2300 movs r3, #0 - 8002cda: 60bb str r3, [r7, #8] + 8002f54: 2300 movs r3, #0 + 8002f56: 60bb str r3, [r7, #8] uint32_t tmp_sqr1 = 0U; - 8002cdc: 2300 movs r3, #0 - 8002cde: 60fb str r3, [r7, #12] + 8002f58: 2300 movs r3, #0 + 8002f5a: 60fb str r3, [r7, #12] /* Check ADC handle */ if(hadc == NULL) - 8002ce0: 687b ldr r3, [r7, #4] - 8002ce2: 2b00 cmp r3, #0 - 8002ce4: d101 bne.n 8002cea + 8002f5c: 687b ldr r3, [r7, #4] + 8002f5e: 2b00 cmp r3, #0 + 8002f60: d101 bne.n 8002f66 { return HAL_ERROR; - 8002ce6: 2301 movs r3, #1 - 8002ce8: e0be b.n 8002e68 + 8002f62: 2301 movs r3, #1 + 8002f64: e0be b.n 80030e4 assert_param(IS_ADC_DATA_ALIGN(hadc->Init.DataAlign)); assert_param(IS_ADC_SCAN_MODE(hadc->Init.ScanConvMode)); assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); assert_param(IS_ADC_EXTTRIG(hadc->Init.ExternalTrigConv)); if(hadc->Init.ScanConvMode != ADC_SCAN_DISABLE) - 8002cea: 687b ldr r3, [r7, #4] - 8002cec: 689b ldr r3, [r3, #8] - 8002cee: 2b00 cmp r3, #0 + 8002f66: 687b ldr r3, [r7, #4] + 8002f68: 689b ldr r3, [r3, #8] + 8002f6a: 2b00 cmp r3, #0 /* Refer to header of this file for more details on clock enabling */ /* procedure. */ /* Actions performed only if ADC is coming from state reset: */ /* - Initialization of ADC MSP */ if (hadc->State == HAL_ADC_STATE_RESET) - 8002cf0: 687b ldr r3, [r7, #4] - 8002cf2: 6a9b ldr r3, [r3, #40] @ 0x28 - 8002cf4: 2b00 cmp r3, #0 - 8002cf6: d109 bne.n 8002d0c + 8002f6c: 687b ldr r3, [r7, #4] + 8002f6e: 6a9b ldr r3, [r3, #40] @ 0x28 + 8002f70: 2b00 cmp r3, #0 + 8002f72: d109 bne.n 8002f88 { /* Initialize ADC error code */ ADC_CLEAR_ERRORCODE(hadc); - 8002cf8: 687b ldr r3, [r7, #4] - 8002cfa: 2200 movs r2, #0 - 8002cfc: 62da str r2, [r3, #44] @ 0x2c + 8002f74: 687b ldr r3, [r7, #4] + 8002f76: 2200 movs r2, #0 + 8002f78: 62da str r2, [r3, #44] @ 0x2c /* Allocate lock resource and initialize it */ hadc->Lock = HAL_UNLOCKED; - 8002cfe: 687b ldr r3, [r7, #4] - 8002d00: 2200 movs r2, #0 - 8002d02: f883 2024 strb.w r2, [r3, #36] @ 0x24 + 8002f7a: 687b ldr r3, [r7, #4] + 8002f7c: 2200 movs r2, #0 + 8002f7e: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Init the low level hardware */ hadc->MspInitCallback(hadc); #else /* Init the low level hardware */ HAL_ADC_MspInit(hadc); - 8002d06: 6878 ldr r0, [r7, #4] - 8002d08: f7fe fe3c bl 8001984 + 8002f82: 6878 ldr r0, [r7, #4] + 8002f84: f7fe fce4 bl 8001950 /* Stop potential conversion on going, on regular and injected groups */ /* Disable ADC peripheral */ /* Note: In case of ADC already enabled, precaution to not launch an */ /* unwanted conversion while modifying register CR2 by writing 1 to */ /* bit ADON. */ tmp_hal_status = ADC_ConversionStop_Disable(hadc); - 8002d0c: 6878 ldr r0, [r7, #4] - 8002d0e: f000 f9ab bl 8003068 - 8002d12: 4603 mov r3, r0 - 8002d14: 75fb strb r3, [r7, #23] + 8002f88: 6878 ldr r0, [r7, #4] + 8002f8a: f000 f9ab bl 80032e4 + 8002f8e: 4603 mov r3, r0 + 8002f90: 75fb strb r3, [r7, #23] /* Configuration of ADC parameters if previous preliminary actions are */ /* correctly completed. */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL) && - 8002d16: 687b ldr r3, [r7, #4] - 8002d18: 6a9b ldr r3, [r3, #40] @ 0x28 - 8002d1a: f003 0310 and.w r3, r3, #16 - 8002d1e: 2b00 cmp r3, #0 - 8002d20: f040 8099 bne.w 8002e56 - 8002d24: 7dfb ldrb r3, [r7, #23] - 8002d26: 2b00 cmp r3, #0 - 8002d28: f040 8095 bne.w 8002e56 + 8002f92: 687b ldr r3, [r7, #4] + 8002f94: 6a9b ldr r3, [r3, #40] @ 0x28 + 8002f96: f003 0310 and.w r3, r3, #16 + 8002f9a: 2b00 cmp r3, #0 + 8002f9c: f040 8099 bne.w 80030d2 + 8002fa0: 7dfb ldrb r3, [r7, #23] + 8002fa2: 2b00 cmp r3, #0 + 8002fa4: f040 8095 bne.w 80030d2 (tmp_hal_status == HAL_OK) ) { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, - 8002d2c: 687b ldr r3, [r7, #4] - 8002d2e: 6a9b ldr r3, [r3, #40] @ 0x28 - 8002d30: f423 5388 bic.w r3, r3, #4352 @ 0x1100 - 8002d34: f023 0302 bic.w r3, r3, #2 - 8002d38: f043 0202 orr.w r2, r3, #2 - 8002d3c: 687b ldr r3, [r7, #4] - 8002d3e: 629a str r2, [r3, #40] @ 0x28 + 8002fa8: 687b ldr r3, [r7, #4] + 8002faa: 6a9b ldr r3, [r3, #40] @ 0x28 + 8002fac: f423 5388 bic.w r3, r3, #4352 @ 0x1100 + 8002fb0: f023 0302 bic.w r3, r3, #2 + 8002fb4: f043 0202 orr.w r2, r3, #2 + 8002fb8: 687b ldr r3, [r7, #4] + 8002fba: 629a str r2, [r3, #40] @ 0x28 /* - continuous conversion mode */ /* Note: External trigger polarity (ADC_CR2_EXTTRIG) is set into */ /* HAL_ADC_Start_xxx functions because if set in this function, */ /* a conversion on injected group would start a conversion also on */ /* regular group after ADC enabling. */ tmp_cr2 |= (hadc->Init.DataAlign | - 8002d40: 687b ldr r3, [r7, #4] - 8002d42: 685a ldr r2, [r3, #4] + 8002fbc: 687b ldr r3, [r7, #4] + 8002fbe: 685a ldr r2, [r3, #4] ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) | - 8002d44: 687b ldr r3, [r7, #4] - 8002d46: 69db ldr r3, [r3, #28] + 8002fc0: 687b ldr r3, [r7, #4] + 8002fc2: 69db ldr r3, [r3, #28] tmp_cr2 |= (hadc->Init.DataAlign | - 8002d48: 431a orrs r2, r3 + 8002fc4: 431a orrs r2, r3 ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) ); - 8002d4a: 687b ldr r3, [r7, #4] - 8002d4c: 7b1b ldrb r3, [r3, #12] - 8002d4e: 005b lsls r3, r3, #1 + 8002fc6: 687b ldr r3, [r7, #4] + 8002fc8: 7b1b ldrb r3, [r3, #12] + 8002fca: 005b lsls r3, r3, #1 ADC_CFGR_EXTSEL(hadc, hadc->Init.ExternalTrigConv) | - 8002d50: 4313 orrs r3, r2 + 8002fcc: 4313 orrs r3, r2 tmp_cr2 |= (hadc->Init.DataAlign | - 8002d52: 68ba ldr r2, [r7, #8] - 8002d54: 4313 orrs r3, r2 - 8002d56: 60bb str r3, [r7, #8] + 8002fce: 68ba ldr r2, [r7, #8] + 8002fd0: 4313 orrs r3, r2 + 8002fd2: 60bb str r3, [r7, #8] /* Configuration of ADC: */ /* - scan mode */ /* - discontinuous mode disable/enable */ /* - discontinuous mode number of conversions */ tmp_cr1 |= (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode)); - 8002d58: 687b ldr r3, [r7, #4] - 8002d5a: 689b ldr r3, [r3, #8] - 8002d5c: f5b3 7f80 cmp.w r3, #256 @ 0x100 - 8002d60: d003 beq.n 8002d6a - 8002d62: 687b ldr r3, [r7, #4] - 8002d64: 689b ldr r3, [r3, #8] - 8002d66: 2b01 cmp r3, #1 - 8002d68: d102 bne.n 8002d70 - 8002d6a: f44f 7380 mov.w r3, #256 @ 0x100 - 8002d6e: e000 b.n 8002d72 - 8002d70: 2300 movs r3, #0 - 8002d72: 693a ldr r2, [r7, #16] - 8002d74: 4313 orrs r3, r2 - 8002d76: 613b str r3, [r7, #16] + 8002fd4: 687b ldr r3, [r7, #4] + 8002fd6: 689b ldr r3, [r3, #8] + 8002fd8: f5b3 7f80 cmp.w r3, #256 @ 0x100 + 8002fdc: d003 beq.n 8002fe6 + 8002fde: 687b ldr r3, [r7, #4] + 8002fe0: 689b ldr r3, [r3, #8] + 8002fe2: 2b01 cmp r3, #1 + 8002fe4: d102 bne.n 8002fec + 8002fe6: f44f 7380 mov.w r3, #256 @ 0x100 + 8002fea: e000 b.n 8002fee + 8002fec: 2300 movs r3, #0 + 8002fee: 693a ldr r2, [r7, #16] + 8002ff0: 4313 orrs r3, r2 + 8002ff2: 613b str r3, [r7, #16] /* Enable discontinuous mode only if continuous mode is disabled */ /* Note: If parameter "Init.ScanConvMode" is set to disable, parameter */ /* discontinuous is set anyway, but will have no effect on ADC HW. */ if (hadc->Init.DiscontinuousConvMode == ENABLE) - 8002d78: 687b ldr r3, [r7, #4] - 8002d7a: 7d1b ldrb r3, [r3, #20] - 8002d7c: 2b01 cmp r3, #1 - 8002d7e: d119 bne.n 8002db4 + 8002ff4: 687b ldr r3, [r7, #4] + 8002ff6: 7d1b ldrb r3, [r3, #20] + 8002ff8: 2b01 cmp r3, #1 + 8002ffa: d119 bne.n 8003030 { if (hadc->Init.ContinuousConvMode == DISABLE) - 8002d80: 687b ldr r3, [r7, #4] - 8002d82: 7b1b ldrb r3, [r3, #12] - 8002d84: 2b00 cmp r3, #0 - 8002d86: d109 bne.n 8002d9c + 8002ffc: 687b ldr r3, [r7, #4] + 8002ffe: 7b1b ldrb r3, [r3, #12] + 8003000: 2b00 cmp r3, #0 + 8003002: d109 bne.n 8003018 { /* Enable the selected ADC regular discontinuous mode */ /* Set the number of channels to be converted in discontinuous mode */ SET_BIT(tmp_cr1, ADC_CR1_DISCEN | - 8002d88: 687b ldr r3, [r7, #4] - 8002d8a: 699b ldr r3, [r3, #24] - 8002d8c: 3b01 subs r3, #1 - 8002d8e: 035a lsls r2, r3, #13 - 8002d90: 693b ldr r3, [r7, #16] - 8002d92: 4313 orrs r3, r2 - 8002d94: f443 6300 orr.w r3, r3, #2048 @ 0x800 - 8002d98: 613b str r3, [r7, #16] - 8002d9a: e00b b.n 8002db4 + 8003004: 687b ldr r3, [r7, #4] + 8003006: 699b ldr r3, [r3, #24] + 8003008: 3b01 subs r3, #1 + 800300a: 035a lsls r2, r3, #13 + 800300c: 693b ldr r3, [r7, #16] + 800300e: 4313 orrs r3, r2 + 8003010: f443 6300 orr.w r3, r3, #2048 @ 0x800 + 8003014: 613b str r3, [r7, #16] + 8003016: e00b b.n 8003030 { /* ADC regular group settings continuous and sequencer discontinuous*/ /* cannot be enabled simultaneously. */ /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 8002d9c: 687b ldr r3, [r7, #4] - 8002d9e: 6a9b ldr r3, [r3, #40] @ 0x28 - 8002da0: f043 0220 orr.w r2, r3, #32 - 8002da4: 687b ldr r3, [r7, #4] - 8002da6: 629a str r2, [r3, #40] @ 0x28 + 8003018: 687b ldr r3, [r7, #4] + 800301a: 6a9b ldr r3, [r3, #40] @ 0x28 + 800301c: f043 0220 orr.w r2, r3, #32 + 8003020: 687b ldr r3, [r7, #4] + 8003022: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 8002da8: 687b ldr r3, [r7, #4] - 8002daa: 6adb ldr r3, [r3, #44] @ 0x2c - 8002dac: f043 0201 orr.w r2, r3, #1 - 8002db0: 687b ldr r3, [r7, #4] - 8002db2: 62da str r2, [r3, #44] @ 0x2c + 8003024: 687b ldr r3, [r7, #4] + 8003026: 6adb ldr r3, [r3, #44] @ 0x2c + 8003028: f043 0201 orr.w r2, r3, #1 + 800302c: 687b ldr r3, [r7, #4] + 800302e: 62da str r2, [r3, #44] @ 0x2c } } /* Update ADC configuration register CR1 with previous settings */ MODIFY_REG(hadc->Instance->CR1, - 8002db4: 687b ldr r3, [r7, #4] - 8002db6: 681b ldr r3, [r3, #0] - 8002db8: 685b ldr r3, [r3, #4] - 8002dba: f423 4169 bic.w r1, r3, #59648 @ 0xe900 - 8002dbe: 687b ldr r3, [r7, #4] - 8002dc0: 681b ldr r3, [r3, #0] - 8002dc2: 693a ldr r2, [r7, #16] - 8002dc4: 430a orrs r2, r1 - 8002dc6: 605a str r2, [r3, #4] + 8003030: 687b ldr r3, [r7, #4] + 8003032: 681b ldr r3, [r3, #0] + 8003034: 685b ldr r3, [r3, #4] + 8003036: f423 4169 bic.w r1, r3, #59648 @ 0xe900 + 800303a: 687b ldr r3, [r7, #4] + 800303c: 681b ldr r3, [r3, #0] + 800303e: 693a ldr r2, [r7, #16] + 8003040: 430a orrs r2, r1 + 8003042: 605a str r2, [r3, #4] ADC_CR1_DISCEN | ADC_CR1_DISCNUM , tmp_cr1 ); /* Update ADC configuration register CR2 with previous settings */ MODIFY_REG(hadc->Instance->CR2, - 8002dc8: 687b ldr r3, [r7, #4] - 8002dca: 681b ldr r3, [r3, #0] - 8002dcc: 689a ldr r2, [r3, #8] - 8002dce: 4b28 ldr r3, [pc, #160] @ (8002e70 ) - 8002dd0: 4013 ands r3, r2 - 8002dd2: 687a ldr r2, [r7, #4] - 8002dd4: 6812 ldr r2, [r2, #0] - 8002dd6: 68b9 ldr r1, [r7, #8] - 8002dd8: 430b orrs r3, r1 - 8002dda: 6093 str r3, [r2, #8] + 8003044: 687b ldr r3, [r7, #4] + 8003046: 681b ldr r3, [r3, #0] + 8003048: 689a ldr r2, [r3, #8] + 800304a: 4b28 ldr r3, [pc, #160] @ (80030ec ) + 800304c: 4013 ands r3, r2 + 800304e: 687a ldr r2, [r7, #4] + 8003050: 6812 ldr r2, [r2, #0] + 8003052: 68b9 ldr r1, [r7, #8] + 8003054: 430b orrs r3, r1 + 8003056: 6093 str r3, [r2, #8] /* Note: Scan mode is present by hardware on this device and, if */ /* disabled, discards automatically nb of conversions. Anyway, nb of */ /* conversions is forced to 0x00 for alignment over all STM32 devices. */ /* - if scan mode is enabled, regular channels sequence length is set to */ /* parameter "NbrOfConversion" */ if (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode) == ADC_SCAN_ENABLE) - 8002ddc: 687b ldr r3, [r7, #4] - 8002dde: 689b ldr r3, [r3, #8] - 8002de0: f5b3 7f80 cmp.w r3, #256 @ 0x100 - 8002de4: d003 beq.n 8002dee - 8002de6: 687b ldr r3, [r7, #4] - 8002de8: 689b ldr r3, [r3, #8] - 8002dea: 2b01 cmp r3, #1 - 8002dec: d104 bne.n 8002df8 + 8003058: 687b ldr r3, [r7, #4] + 800305a: 689b ldr r3, [r3, #8] + 800305c: f5b3 7f80 cmp.w r3, #256 @ 0x100 + 8003060: d003 beq.n 800306a + 8003062: 687b ldr r3, [r7, #4] + 8003064: 689b ldr r3, [r3, #8] + 8003066: 2b01 cmp r3, #1 + 8003068: d104 bne.n 8003074 { tmp_sqr1 = ADC_SQR1_L_SHIFT(hadc->Init.NbrOfConversion); - 8002dee: 687b ldr r3, [r7, #4] - 8002df0: 691b ldr r3, [r3, #16] - 8002df2: 3b01 subs r3, #1 - 8002df4: 051b lsls r3, r3, #20 - 8002df6: 60fb str r3, [r7, #12] + 800306a: 687b ldr r3, [r7, #4] + 800306c: 691b ldr r3, [r3, #16] + 800306e: 3b01 subs r3, #1 + 8003070: 051b lsls r3, r3, #20 + 8003072: 60fb str r3, [r7, #12] } MODIFY_REG(hadc->Instance->SQR1, - 8002df8: 687b ldr r3, [r7, #4] - 8002dfa: 681b ldr r3, [r3, #0] - 8002dfc: 6adb ldr r3, [r3, #44] @ 0x2c - 8002dfe: f423 0170 bic.w r1, r3, #15728640 @ 0xf00000 - 8002e02: 687b ldr r3, [r7, #4] - 8002e04: 681b ldr r3, [r3, #0] - 8002e06: 68fa ldr r2, [r7, #12] - 8002e08: 430a orrs r2, r1 - 8002e0a: 62da str r2, [r3, #44] @ 0x2c + 8003074: 687b ldr r3, [r7, #4] + 8003076: 681b ldr r3, [r3, #0] + 8003078: 6adb ldr r3, [r3, #44] @ 0x2c + 800307a: f423 0170 bic.w r1, r3, #15728640 @ 0xf00000 + 800307e: 687b ldr r3, [r7, #4] + 8003080: 681b ldr r3, [r3, #0] + 8003082: 68fa ldr r2, [r7, #12] + 8003084: 430a orrs r2, r1 + 8003086: 62da str r2, [r3, #44] @ 0x2c /* ensure of no potential problem of ADC core IP clocking. */ /* Check through register CR2 (excluding bits set in other functions: */ /* execution control bits (ADON, JSWSTART, SWSTART), regular group bits */ /* (DMA), injected group bits (JEXTTRIG and JEXTSEL), channel internal */ /* measurement path bit (TSVREFE). */ if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA | - 8002e0c: 687b ldr r3, [r7, #4] - 8002e0e: 681b ldr r3, [r3, #0] - 8002e10: 689a ldr r2, [r3, #8] - 8002e12: 4b18 ldr r3, [pc, #96] @ (8002e74 ) - 8002e14: 4013 ands r3, r2 - 8002e16: 68ba ldr r2, [r7, #8] - 8002e18: 429a cmp r2, r3 - 8002e1a: d10b bne.n 8002e34 + 8003088: 687b ldr r3, [r7, #4] + 800308a: 681b ldr r3, [r3, #0] + 800308c: 689a ldr r2, [r3, #8] + 800308e: 4b18 ldr r3, [pc, #96] @ (80030f0 ) + 8003090: 4013 ands r3, r2 + 8003092: 68ba ldr r2, [r7, #8] + 8003094: 429a cmp r2, r3 + 8003096: d10b bne.n 80030b0 ADC_CR2_JEXTTRIG | ADC_CR2_JEXTSEL | ADC_CR2_TSVREFE )) == tmp_cr2) { /* Set ADC error code to none */ ADC_CLEAR_ERRORCODE(hadc); - 8002e1c: 687b ldr r3, [r7, #4] - 8002e1e: 2200 movs r2, #0 - 8002e20: 62da str r2, [r3, #44] @ 0x2c + 8003098: 687b ldr r3, [r7, #4] + 800309a: 2200 movs r2, #0 + 800309c: 62da str r2, [r3, #44] @ 0x2c /* Set the ADC state */ ADC_STATE_CLR_SET(hadc->State, - 8002e22: 687b ldr r3, [r7, #4] - 8002e24: 6a9b ldr r3, [r3, #40] @ 0x28 - 8002e26: f023 0303 bic.w r3, r3, #3 - 8002e2a: f043 0201 orr.w r2, r3, #1 - 8002e2e: 687b ldr r3, [r7, #4] - 8002e30: 629a str r2, [r3, #40] @ 0x28 + 800309e: 687b ldr r3, [r7, #4] + 80030a0: 6a9b ldr r3, [r3, #40] @ 0x28 + 80030a2: f023 0303 bic.w r3, r3, #3 + 80030a6: f043 0201 orr.w r2, r3, #1 + 80030aa: 687b ldr r3, [r7, #4] + 80030ac: 629a str r2, [r3, #40] @ 0x28 if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA | - 8002e32: e018 b.n 8002e66 + 80030ae: e018 b.n 80030e2 HAL_ADC_STATE_READY); } else { /* Update ADC state machine to error */ ADC_STATE_CLR_SET(hadc->State, - 8002e34: 687b ldr r3, [r7, #4] - 8002e36: 6a9b ldr r3, [r3, #40] @ 0x28 - 8002e38: f023 0312 bic.w r3, r3, #18 - 8002e3c: f043 0210 orr.w r2, r3, #16 - 8002e40: 687b ldr r3, [r7, #4] - 8002e42: 629a str r2, [r3, #40] @ 0x28 + 80030b0: 687b ldr r3, [r7, #4] + 80030b2: 6a9b ldr r3, [r3, #40] @ 0x28 + 80030b4: f023 0312 bic.w r3, r3, #18 + 80030b8: f043 0210 orr.w r2, r3, #16 + 80030bc: 687b ldr r3, [r7, #4] + 80030be: 629a str r2, [r3, #40] @ 0x28 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_ERROR_INTERNAL); /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 8002e44: 687b ldr r3, [r7, #4] - 8002e46: 6adb ldr r3, [r3, #44] @ 0x2c - 8002e48: f043 0201 orr.w r2, r3, #1 - 8002e4c: 687b ldr r3, [r7, #4] - 8002e4e: 62da str r2, [r3, #44] @ 0x2c + 80030c0: 687b ldr r3, [r7, #4] + 80030c2: 6adb ldr r3, [r3, #44] @ 0x2c + 80030c4: f043 0201 orr.w r2, r3, #1 + 80030c8: 687b ldr r3, [r7, #4] + 80030ca: 62da str r2, [r3, #44] @ 0x2c tmp_hal_status = HAL_ERROR; - 8002e50: 2301 movs r3, #1 - 8002e52: 75fb strb r3, [r7, #23] + 80030cc: 2301 movs r3, #1 + 80030ce: 75fb strb r3, [r7, #23] if (READ_BIT(hadc->Instance->CR2, ~(ADC_CR2_ADON | ADC_CR2_DMA | - 8002e54: e007 b.n 8002e66 + 80030d0: e007 b.n 80030e2 } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 8002e56: 687b ldr r3, [r7, #4] - 8002e58: 6a9b ldr r3, [r3, #40] @ 0x28 - 8002e5a: f043 0210 orr.w r2, r3, #16 - 8002e5e: 687b ldr r3, [r7, #4] - 8002e60: 629a str r2, [r3, #40] @ 0x28 + 80030d2: 687b ldr r3, [r7, #4] + 80030d4: 6a9b ldr r3, [r3, #40] @ 0x28 + 80030d6: f043 0210 orr.w r2, r3, #16 + 80030da: 687b ldr r3, [r7, #4] + 80030dc: 629a str r2, [r3, #40] @ 0x28 tmp_hal_status = HAL_ERROR; - 8002e62: 2301 movs r3, #1 - 8002e64: 75fb strb r3, [r7, #23] + 80030de: 2301 movs r3, #1 + 80030e0: 75fb strb r3, [r7, #23] } /* Return function status */ return tmp_hal_status; - 8002e66: 7dfb ldrb r3, [r7, #23] + 80030e2: 7dfb ldrb r3, [r7, #23] } - 8002e68: 4618 mov r0, r3 - 8002e6a: 3718 adds r7, #24 - 8002e6c: 46bd mov sp, r7 - 8002e6e: bd80 pop {r7, pc} - 8002e70: ffe1f7fd .word 0xffe1f7fd - 8002e74: ff1f0efe .word 0xff1f0efe + 80030e4: 4618 mov r0, r3 + 80030e6: 3718 adds r7, #24 + 80030e8: 46bd mov sp, r7 + 80030ea: bd80 pop {r7, pc} + 80030ec: ffe1f7fd .word 0xffe1f7fd + 80030f0: ff1f0efe .word 0xff1f0efe -08002e78 : +080030f4 : * @param hadc: ADC handle * @param sConfig: Structure of ADC channel for regular group. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig) { - 8002e78: b480 push {r7} - 8002e7a: b085 sub sp, #20 - 8002e7c: af00 add r7, sp, #0 - 8002e7e: 6078 str r0, [r7, #4] - 8002e80: 6039 str r1, [r7, #0] + 80030f4: b480 push {r7} + 80030f6: b085 sub sp, #20 + 80030f8: af00 add r7, sp, #0 + 80030fa: 6078 str r0, [r7, #4] + 80030fc: 6039 str r1, [r7, #0] HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 8002e82: 2300 movs r3, #0 - 8002e84: 73fb strb r3, [r7, #15] + 80030fe: 2300 movs r3, #0 + 8003100: 73fb strb r3, [r7, #15] __IO uint32_t wait_loop_index = 0U; - 8002e86: 2300 movs r3, #0 - 8002e88: 60bb str r3, [r7, #8] + 8003102: 2300 movs r3, #0 + 8003104: 60bb str r3, [r7, #8] assert_param(IS_ADC_CHANNEL(sConfig->Channel)); assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank)); assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime)); /* Process locked */ __HAL_LOCK(hadc); - 8002e8a: 687b ldr r3, [r7, #4] - 8002e8c: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 - 8002e90: 2b01 cmp r3, #1 - 8002e92: d101 bne.n 8002e98 - 8002e94: 2302 movs r3, #2 - 8002e96: e0dc b.n 8003052 - 8002e98: 687b ldr r3, [r7, #4] - 8002e9a: 2201 movs r2, #1 - 8002e9c: f883 2024 strb.w r2, [r3, #36] @ 0x24 + 8003106: 687b ldr r3, [r7, #4] + 8003108: f893 3024 ldrb.w r3, [r3, #36] @ 0x24 + 800310c: 2b01 cmp r3, #1 + 800310e: d101 bne.n 8003114 + 8003110: 2302 movs r3, #2 + 8003112: e0dc b.n 80032ce + 8003114: 687b ldr r3, [r7, #4] + 8003116: 2201 movs r2, #1 + 8003118: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Regular sequence configuration */ /* For Rank 1 to 6 */ if (sConfig->Rank < 7U) - 8002ea0: 683b ldr r3, [r7, #0] - 8002ea2: 685b ldr r3, [r3, #4] - 8002ea4: 2b06 cmp r3, #6 - 8002ea6: d81c bhi.n 8002ee2 + 800311c: 683b ldr r3, [r7, #0] + 800311e: 685b ldr r3, [r3, #4] + 8003120: 2b06 cmp r3, #6 + 8003122: d81c bhi.n 800315e { MODIFY_REG(hadc->Instance->SQR3 , - 8002ea8: 687b ldr r3, [r7, #4] - 8002eaa: 681b ldr r3, [r3, #0] - 8002eac: 6b59 ldr r1, [r3, #52] @ 0x34 - 8002eae: 683b ldr r3, [r7, #0] - 8002eb0: 685a ldr r2, [r3, #4] - 8002eb2: 4613 mov r3, r2 - 8002eb4: 009b lsls r3, r3, #2 - 8002eb6: 4413 add r3, r2 - 8002eb8: 3b05 subs r3, #5 - 8002eba: 221f movs r2, #31 - 8002ebc: fa02 f303 lsl.w r3, r2, r3 - 8002ec0: 43db mvns r3, r3 - 8002ec2: 4019 ands r1, r3 - 8002ec4: 683b ldr r3, [r7, #0] - 8002ec6: 6818 ldr r0, [r3, #0] - 8002ec8: 683b ldr r3, [r7, #0] - 8002eca: 685a ldr r2, [r3, #4] - 8002ecc: 4613 mov r3, r2 - 8002ece: 009b lsls r3, r3, #2 - 8002ed0: 4413 add r3, r2 - 8002ed2: 3b05 subs r3, #5 - 8002ed4: fa00 f203 lsl.w r2, r0, r3 - 8002ed8: 687b ldr r3, [r7, #4] - 8002eda: 681b ldr r3, [r3, #0] - 8002edc: 430a orrs r2, r1 - 8002ede: 635a str r2, [r3, #52] @ 0x34 - 8002ee0: e03c b.n 8002f5c + 8003124: 687b ldr r3, [r7, #4] + 8003126: 681b ldr r3, [r3, #0] + 8003128: 6b59 ldr r1, [r3, #52] @ 0x34 + 800312a: 683b ldr r3, [r7, #0] + 800312c: 685a ldr r2, [r3, #4] + 800312e: 4613 mov r3, r2 + 8003130: 009b lsls r3, r3, #2 + 8003132: 4413 add r3, r2 + 8003134: 3b05 subs r3, #5 + 8003136: 221f movs r2, #31 + 8003138: fa02 f303 lsl.w r3, r2, r3 + 800313c: 43db mvns r3, r3 + 800313e: 4019 ands r1, r3 + 8003140: 683b ldr r3, [r7, #0] + 8003142: 6818 ldr r0, [r3, #0] + 8003144: 683b ldr r3, [r7, #0] + 8003146: 685a ldr r2, [r3, #4] + 8003148: 4613 mov r3, r2 + 800314a: 009b lsls r3, r3, #2 + 800314c: 4413 add r3, r2 + 800314e: 3b05 subs r3, #5 + 8003150: fa00 f203 lsl.w r2, r0, r3 + 8003154: 687b ldr r3, [r7, #4] + 8003156: 681b ldr r3, [r3, #0] + 8003158: 430a orrs r2, r1 + 800315a: 635a str r2, [r3, #52] @ 0x34 + 800315c: e03c b.n 80031d8 ADC_SQR3_RK(ADC_SQR3_SQ1, sConfig->Rank) , ADC_SQR3_RK(sConfig->Channel, sConfig->Rank) ); } /* For Rank 7 to 12 */ else if (sConfig->Rank < 13U) - 8002ee2: 683b ldr r3, [r7, #0] - 8002ee4: 685b ldr r3, [r3, #4] - 8002ee6: 2b0c cmp r3, #12 - 8002ee8: d81c bhi.n 8002f24 + 800315e: 683b ldr r3, [r7, #0] + 8003160: 685b ldr r3, [r3, #4] + 8003162: 2b0c cmp r3, #12 + 8003164: d81c bhi.n 80031a0 { MODIFY_REG(hadc->Instance->SQR2 , - 8002eea: 687b ldr r3, [r7, #4] - 8002eec: 681b ldr r3, [r3, #0] - 8002eee: 6b19 ldr r1, [r3, #48] @ 0x30 - 8002ef0: 683b ldr r3, [r7, #0] - 8002ef2: 685a ldr r2, [r3, #4] - 8002ef4: 4613 mov r3, r2 - 8002ef6: 009b lsls r3, r3, #2 - 8002ef8: 4413 add r3, r2 - 8002efa: 3b23 subs r3, #35 @ 0x23 - 8002efc: 221f movs r2, #31 - 8002efe: fa02 f303 lsl.w r3, r2, r3 - 8002f02: 43db mvns r3, r3 - 8002f04: 4019 ands r1, r3 - 8002f06: 683b ldr r3, [r7, #0] - 8002f08: 6818 ldr r0, [r3, #0] - 8002f0a: 683b ldr r3, [r7, #0] - 8002f0c: 685a ldr r2, [r3, #4] - 8002f0e: 4613 mov r3, r2 - 8002f10: 009b lsls r3, r3, #2 - 8002f12: 4413 add r3, r2 - 8002f14: 3b23 subs r3, #35 @ 0x23 - 8002f16: fa00 f203 lsl.w r2, r0, r3 - 8002f1a: 687b ldr r3, [r7, #4] - 8002f1c: 681b ldr r3, [r3, #0] - 8002f1e: 430a orrs r2, r1 - 8002f20: 631a str r2, [r3, #48] @ 0x30 - 8002f22: e01b b.n 8002f5c + 8003166: 687b ldr r3, [r7, #4] + 8003168: 681b ldr r3, [r3, #0] + 800316a: 6b19 ldr r1, [r3, #48] @ 0x30 + 800316c: 683b ldr r3, [r7, #0] + 800316e: 685a ldr r2, [r3, #4] + 8003170: 4613 mov r3, r2 + 8003172: 009b lsls r3, r3, #2 + 8003174: 4413 add r3, r2 + 8003176: 3b23 subs r3, #35 @ 0x23 + 8003178: 221f movs r2, #31 + 800317a: fa02 f303 lsl.w r3, r2, r3 + 800317e: 43db mvns r3, r3 + 8003180: 4019 ands r1, r3 + 8003182: 683b ldr r3, [r7, #0] + 8003184: 6818 ldr r0, [r3, #0] + 8003186: 683b ldr r3, [r7, #0] + 8003188: 685a ldr r2, [r3, #4] + 800318a: 4613 mov r3, r2 + 800318c: 009b lsls r3, r3, #2 + 800318e: 4413 add r3, r2 + 8003190: 3b23 subs r3, #35 @ 0x23 + 8003192: fa00 f203 lsl.w r2, r0, r3 + 8003196: 687b ldr r3, [r7, #4] + 8003198: 681b ldr r3, [r3, #0] + 800319a: 430a orrs r2, r1 + 800319c: 631a str r2, [r3, #48] @ 0x30 + 800319e: e01b b.n 80031d8 ADC_SQR2_RK(sConfig->Channel, sConfig->Rank) ); } /* For Rank 13 to 16 */ else { MODIFY_REG(hadc->Instance->SQR1 , - 8002f24: 687b ldr r3, [r7, #4] - 8002f26: 681b ldr r3, [r3, #0] - 8002f28: 6ad9 ldr r1, [r3, #44] @ 0x2c - 8002f2a: 683b ldr r3, [r7, #0] - 8002f2c: 685a ldr r2, [r3, #4] - 8002f2e: 4613 mov r3, r2 - 8002f30: 009b lsls r3, r3, #2 - 8002f32: 4413 add r3, r2 - 8002f34: 3b41 subs r3, #65 @ 0x41 - 8002f36: 221f movs r2, #31 - 8002f38: fa02 f303 lsl.w r3, r2, r3 - 8002f3c: 43db mvns r3, r3 - 8002f3e: 4019 ands r1, r3 - 8002f40: 683b ldr r3, [r7, #0] - 8002f42: 6818 ldr r0, [r3, #0] - 8002f44: 683b ldr r3, [r7, #0] - 8002f46: 685a ldr r2, [r3, #4] - 8002f48: 4613 mov r3, r2 - 8002f4a: 009b lsls r3, r3, #2 - 8002f4c: 4413 add r3, r2 - 8002f4e: 3b41 subs r3, #65 @ 0x41 - 8002f50: fa00 f203 lsl.w r2, r0, r3 - 8002f54: 687b ldr r3, [r7, #4] - 8002f56: 681b ldr r3, [r3, #0] - 8002f58: 430a orrs r2, r1 - 8002f5a: 62da str r2, [r3, #44] @ 0x2c + 80031a0: 687b ldr r3, [r7, #4] + 80031a2: 681b ldr r3, [r3, #0] + 80031a4: 6ad9 ldr r1, [r3, #44] @ 0x2c + 80031a6: 683b ldr r3, [r7, #0] + 80031a8: 685a ldr r2, [r3, #4] + 80031aa: 4613 mov r3, r2 + 80031ac: 009b lsls r3, r3, #2 + 80031ae: 4413 add r3, r2 + 80031b0: 3b41 subs r3, #65 @ 0x41 + 80031b2: 221f movs r2, #31 + 80031b4: fa02 f303 lsl.w r3, r2, r3 + 80031b8: 43db mvns r3, r3 + 80031ba: 4019 ands r1, r3 + 80031bc: 683b ldr r3, [r7, #0] + 80031be: 6818 ldr r0, [r3, #0] + 80031c0: 683b ldr r3, [r7, #0] + 80031c2: 685a ldr r2, [r3, #4] + 80031c4: 4613 mov r3, r2 + 80031c6: 009b lsls r3, r3, #2 + 80031c8: 4413 add r3, r2 + 80031ca: 3b41 subs r3, #65 @ 0x41 + 80031cc: fa00 f203 lsl.w r2, r0, r3 + 80031d0: 687b ldr r3, [r7, #4] + 80031d2: 681b ldr r3, [r3, #0] + 80031d4: 430a orrs r2, r1 + 80031d6: 62da str r2, [r3, #44] @ 0x2c } /* Channel sampling time configuration */ /* For channels 10 to 17 */ if (sConfig->Channel >= ADC_CHANNEL_10) - 8002f5c: 683b ldr r3, [r7, #0] - 8002f5e: 681b ldr r3, [r3, #0] - 8002f60: 2b09 cmp r3, #9 - 8002f62: d91c bls.n 8002f9e + 80031d8: 683b ldr r3, [r7, #0] + 80031da: 681b ldr r3, [r3, #0] + 80031dc: 2b09 cmp r3, #9 + 80031de: d91c bls.n 800321a { MODIFY_REG(hadc->Instance->SMPR1 , - 8002f64: 687b ldr r3, [r7, #4] - 8002f66: 681b ldr r3, [r3, #0] - 8002f68: 68d9 ldr r1, [r3, #12] - 8002f6a: 683b ldr r3, [r7, #0] - 8002f6c: 681a ldr r2, [r3, #0] - 8002f6e: 4613 mov r3, r2 - 8002f70: 005b lsls r3, r3, #1 - 8002f72: 4413 add r3, r2 - 8002f74: 3b1e subs r3, #30 - 8002f76: 2207 movs r2, #7 - 8002f78: fa02 f303 lsl.w r3, r2, r3 - 8002f7c: 43db mvns r3, r3 - 8002f7e: 4019 ands r1, r3 - 8002f80: 683b ldr r3, [r7, #0] - 8002f82: 6898 ldr r0, [r3, #8] - 8002f84: 683b ldr r3, [r7, #0] - 8002f86: 681a ldr r2, [r3, #0] - 8002f88: 4613 mov r3, r2 - 8002f8a: 005b lsls r3, r3, #1 - 8002f8c: 4413 add r3, r2 - 8002f8e: 3b1e subs r3, #30 - 8002f90: fa00 f203 lsl.w r2, r0, r3 - 8002f94: 687b ldr r3, [r7, #4] - 8002f96: 681b ldr r3, [r3, #0] - 8002f98: 430a orrs r2, r1 - 8002f9a: 60da str r2, [r3, #12] - 8002f9c: e019 b.n 8002fd2 + 80031e0: 687b ldr r3, [r7, #4] + 80031e2: 681b ldr r3, [r3, #0] + 80031e4: 68d9 ldr r1, [r3, #12] + 80031e6: 683b ldr r3, [r7, #0] + 80031e8: 681a ldr r2, [r3, #0] + 80031ea: 4613 mov r3, r2 + 80031ec: 005b lsls r3, r3, #1 + 80031ee: 4413 add r3, r2 + 80031f0: 3b1e subs r3, #30 + 80031f2: 2207 movs r2, #7 + 80031f4: fa02 f303 lsl.w r3, r2, r3 + 80031f8: 43db mvns r3, r3 + 80031fa: 4019 ands r1, r3 + 80031fc: 683b ldr r3, [r7, #0] + 80031fe: 6898 ldr r0, [r3, #8] + 8003200: 683b ldr r3, [r7, #0] + 8003202: 681a ldr r2, [r3, #0] + 8003204: 4613 mov r3, r2 + 8003206: 005b lsls r3, r3, #1 + 8003208: 4413 add r3, r2 + 800320a: 3b1e subs r3, #30 + 800320c: fa00 f203 lsl.w r2, r0, r3 + 8003210: 687b ldr r3, [r7, #4] + 8003212: 681b ldr r3, [r3, #0] + 8003214: 430a orrs r2, r1 + 8003216: 60da str r2, [r3, #12] + 8003218: e019 b.n 800324e ADC_SMPR1(ADC_SMPR1_SMP10, sConfig->Channel) , ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel) ); } else /* For channels 0 to 9 */ { MODIFY_REG(hadc->Instance->SMPR2 , - 8002f9e: 687b ldr r3, [r7, #4] - 8002fa0: 681b ldr r3, [r3, #0] - 8002fa2: 6919 ldr r1, [r3, #16] - 8002fa4: 683b ldr r3, [r7, #0] - 8002fa6: 681a ldr r2, [r3, #0] - 8002fa8: 4613 mov r3, r2 - 8002faa: 005b lsls r3, r3, #1 - 8002fac: 4413 add r3, r2 - 8002fae: 2207 movs r2, #7 - 8002fb0: fa02 f303 lsl.w r3, r2, r3 - 8002fb4: 43db mvns r3, r3 - 8002fb6: 4019 ands r1, r3 - 8002fb8: 683b ldr r3, [r7, #0] - 8002fba: 6898 ldr r0, [r3, #8] - 8002fbc: 683b ldr r3, [r7, #0] - 8002fbe: 681a ldr r2, [r3, #0] - 8002fc0: 4613 mov r3, r2 - 8002fc2: 005b lsls r3, r3, #1 - 8002fc4: 4413 add r3, r2 - 8002fc6: fa00 f203 lsl.w r2, r0, r3 - 8002fca: 687b ldr r3, [r7, #4] - 8002fcc: 681b ldr r3, [r3, #0] - 8002fce: 430a orrs r2, r1 - 8002fd0: 611a str r2, [r3, #16] + 800321a: 687b ldr r3, [r7, #4] + 800321c: 681b ldr r3, [r3, #0] + 800321e: 6919 ldr r1, [r3, #16] + 8003220: 683b ldr r3, [r7, #0] + 8003222: 681a ldr r2, [r3, #0] + 8003224: 4613 mov r3, r2 + 8003226: 005b lsls r3, r3, #1 + 8003228: 4413 add r3, r2 + 800322a: 2207 movs r2, #7 + 800322c: fa02 f303 lsl.w r3, r2, r3 + 8003230: 43db mvns r3, r3 + 8003232: 4019 ands r1, r3 + 8003234: 683b ldr r3, [r7, #0] + 8003236: 6898 ldr r0, [r3, #8] + 8003238: 683b ldr r3, [r7, #0] + 800323a: 681a ldr r2, [r3, #0] + 800323c: 4613 mov r3, r2 + 800323e: 005b lsls r3, r3, #1 + 8003240: 4413 add r3, r2 + 8003242: fa00 f203 lsl.w r2, r0, r3 + 8003246: 687b ldr r3, [r7, #4] + 8003248: 681b ldr r3, [r3, #0] + 800324a: 430a orrs r2, r1 + 800324c: 611a str r2, [r3, #16] ADC_SMPR2(sConfig->SamplingTime, sConfig->Channel) ); } /* If ADC1 Channel_16 or Channel_17 is selected, enable Temperature sensor */ /* and VREFINT measurement path. */ if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) || - 8002fd2: 683b ldr r3, [r7, #0] - 8002fd4: 681b ldr r3, [r3, #0] - 8002fd6: 2b10 cmp r3, #16 - 8002fd8: d003 beq.n 8002fe2 + 800324e: 683b ldr r3, [r7, #0] + 8003250: 681b ldr r3, [r3, #0] + 8003252: 2b10 cmp r3, #16 + 8003254: d003 beq.n 800325e (sConfig->Channel == ADC_CHANNEL_VREFINT) ) - 8002fda: 683b ldr r3, [r7, #0] - 8002fdc: 681b ldr r3, [r3, #0] + 8003256: 683b ldr r3, [r7, #0] + 8003258: 681b ldr r3, [r3, #0] if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) || - 8002fde: 2b11 cmp r3, #17 - 8002fe0: d132 bne.n 8003048 + 800325a: 2b11 cmp r3, #17 + 800325c: d132 bne.n 80032c4 { /* For STM32F1 devices with several ADC: Only ADC1 can access internal */ /* measurement channels (VrefInt/TempSensor). If these channels are */ /* intended to be set on other ADC instances, an error is reported. */ if (hadc->Instance == ADC1) - 8002fe2: 687b ldr r3, [r7, #4] - 8002fe4: 681b ldr r3, [r3, #0] - 8002fe6: 4a1d ldr r2, [pc, #116] @ (800305c ) - 8002fe8: 4293 cmp r3, r2 - 8002fea: d125 bne.n 8003038 + 800325e: 687b ldr r3, [r7, #4] + 8003260: 681b ldr r3, [r3, #0] + 8003262: 4a1d ldr r2, [pc, #116] @ (80032d8 ) + 8003264: 4293 cmp r3, r2 + 8003266: d125 bne.n 80032b4 { if (READ_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE) == RESET) - 8002fec: 687b ldr r3, [r7, #4] - 8002fee: 681b ldr r3, [r3, #0] - 8002ff0: 689b ldr r3, [r3, #8] - 8002ff2: f403 0300 and.w r3, r3, #8388608 @ 0x800000 - 8002ff6: 2b00 cmp r3, #0 - 8002ff8: d126 bne.n 8003048 + 8003268: 687b ldr r3, [r7, #4] + 800326a: 681b ldr r3, [r3, #0] + 800326c: 689b ldr r3, [r3, #8] + 800326e: f403 0300 and.w r3, r3, #8388608 @ 0x800000 + 8003272: 2b00 cmp r3, #0 + 8003274: d126 bne.n 80032c4 { SET_BIT(hadc->Instance->CR2, ADC_CR2_TSVREFE); - 8002ffa: 687b ldr r3, [r7, #4] - 8002ffc: 681b ldr r3, [r3, #0] - 8002ffe: 689a ldr r2, [r3, #8] - 8003000: 687b ldr r3, [r7, #4] - 8003002: 681b ldr r3, [r3, #0] - 8003004: f442 0200 orr.w r2, r2, #8388608 @ 0x800000 - 8003008: 609a str r2, [r3, #8] + 8003276: 687b ldr r3, [r7, #4] + 8003278: 681b ldr r3, [r3, #0] + 800327a: 689a ldr r2, [r3, #8] + 800327c: 687b ldr r3, [r7, #4] + 800327e: 681b ldr r3, [r3, #0] + 8003280: f442 0200 orr.w r2, r2, #8388608 @ 0x800000 + 8003284: 609a str r2, [r3, #8] if (sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) - 800300a: 683b ldr r3, [r7, #0] - 800300c: 681b ldr r3, [r3, #0] - 800300e: 2b10 cmp r3, #16 - 8003010: d11a bne.n 8003048 + 8003286: 683b ldr r3, [r7, #0] + 8003288: 681b ldr r3, [r3, #0] + 800328a: 2b10 cmp r3, #16 + 800328c: d11a bne.n 80032c4 { /* Delay for temperature sensor stabilization time */ /* Compute number of CPU cycles to wait for */ wait_loop_index = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000U)); - 8003012: 4b13 ldr r3, [pc, #76] @ (8003060 ) - 8003014: 681b ldr r3, [r3, #0] - 8003016: 4a13 ldr r2, [pc, #76] @ (8003064 ) - 8003018: fba2 2303 umull r2, r3, r2, r3 - 800301c: 0c9a lsrs r2, r3, #18 - 800301e: 4613 mov r3, r2 - 8003020: 009b lsls r3, r3, #2 - 8003022: 4413 add r3, r2 - 8003024: 005b lsls r3, r3, #1 - 8003026: 60bb str r3, [r7, #8] + 800328e: 4b13 ldr r3, [pc, #76] @ (80032dc ) + 8003290: 681b ldr r3, [r3, #0] + 8003292: 4a13 ldr r2, [pc, #76] @ (80032e0 ) + 8003294: fba2 2303 umull r2, r3, r2, r3 + 8003298: 0c9a lsrs r2, r3, #18 + 800329a: 4613 mov r3, r2 + 800329c: 009b lsls r3, r3, #2 + 800329e: 4413 add r3, r2 + 80032a0: 005b lsls r3, r3, #1 + 80032a2: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) - 8003028: e002 b.n 8003030 + 80032a4: e002 b.n 80032ac { wait_loop_index--; - 800302a: 68bb ldr r3, [r7, #8] - 800302c: 3b01 subs r3, #1 - 800302e: 60bb str r3, [r7, #8] + 80032a6: 68bb ldr r3, [r7, #8] + 80032a8: 3b01 subs r3, #1 + 80032aa: 60bb str r3, [r7, #8] while(wait_loop_index != 0U) - 8003030: 68bb ldr r3, [r7, #8] - 8003032: 2b00 cmp r3, #0 - 8003034: d1f9 bne.n 800302a - 8003036: e007 b.n 8003048 + 80032ac: 68bb ldr r3, [r7, #8] + 80032ae: 2b00 cmp r3, #0 + 80032b0: d1f9 bne.n 80032a6 + 80032b2: e007 b.n 80032c4 } } else { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG); - 8003038: 687b ldr r3, [r7, #4] - 800303a: 6a9b ldr r3, [r3, #40] @ 0x28 - 800303c: f043 0220 orr.w r2, r3, #32 - 8003040: 687b ldr r3, [r7, #4] - 8003042: 629a str r2, [r3, #40] @ 0x28 + 80032b4: 687b ldr r3, [r7, #4] + 80032b6: 6a9b ldr r3, [r3, #40] @ 0x28 + 80032b8: f043 0220 orr.w r2, r3, #32 + 80032bc: 687b ldr r3, [r7, #4] + 80032be: 629a str r2, [r3, #40] @ 0x28 tmp_hal_status = HAL_ERROR; - 8003044: 2301 movs r3, #1 - 8003046: 73fb strb r3, [r7, #15] + 80032c0: 2301 movs r3, #1 + 80032c2: 73fb strb r3, [r7, #15] } } /* Process unlocked */ __HAL_UNLOCK(hadc); - 8003048: 687b ldr r3, [r7, #4] - 800304a: 2200 movs r2, #0 - 800304c: f883 2024 strb.w r2, [r3, #36] @ 0x24 + 80032c4: 687b ldr r3, [r7, #4] + 80032c6: 2200 movs r2, #0 + 80032c8: f883 2024 strb.w r2, [r3, #36] @ 0x24 /* Return function status */ return tmp_hal_status; - 8003050: 7bfb ldrb r3, [r7, #15] + 80032cc: 7bfb ldrb r3, [r7, #15] } - 8003052: 4618 mov r0, r3 - 8003054: 3714 adds r7, #20 - 8003056: 46bd mov sp, r7 - 8003058: bc80 pop {r7} - 800305a: 4770 bx lr - 800305c: 40012400 .word 0x40012400 - 8003060: 20000018 .word 0x20000018 - 8003064: 431bde83 .word 0x431bde83 + 80032ce: 4618 mov r0, r3 + 80032d0: 3714 adds r7, #20 + 80032d2: 46bd mov sp, r7 + 80032d4: bc80 pop {r7} + 80032d6: 4770 bx lr + 80032d8: 40012400 .word 0x40012400 + 80032dc: 20000034 .word 0x20000034 + 80032e0: 431bde83 .word 0x431bde83 -08003068 : +080032e4 : * stopped to disable the ADC. * @param hadc: ADC handle * @retval HAL status. */ HAL_StatusTypeDef ADC_ConversionStop_Disable(ADC_HandleTypeDef* hadc) { - 8003068: b580 push {r7, lr} - 800306a: b084 sub sp, #16 - 800306c: af00 add r7, sp, #0 - 800306e: 6078 str r0, [r7, #4] + 80032e4: b580 push {r7, lr} + 80032e6: b084 sub sp, #16 + 80032e8: af00 add r7, sp, #0 + 80032ea: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; - 8003070: 2300 movs r3, #0 - 8003072: 60fb str r3, [r7, #12] + 80032ec: 2300 movs r3, #0 + 80032ee: 60fb str r3, [r7, #12] /* Verification if ADC is not already disabled */ if (ADC_IS_ENABLE(hadc) != RESET) - 8003074: 687b ldr r3, [r7, #4] - 8003076: 681b ldr r3, [r3, #0] - 8003078: 689b ldr r3, [r3, #8] - 800307a: f003 0301 and.w r3, r3, #1 - 800307e: 2b01 cmp r3, #1 - 8003080: d12e bne.n 80030e0 + 80032f0: 687b ldr r3, [r7, #4] + 80032f2: 681b ldr r3, [r3, #0] + 80032f4: 689b ldr r3, [r3, #8] + 80032f6: f003 0301 and.w r3, r3, #1 + 80032fa: 2b01 cmp r3, #1 + 80032fc: d12e bne.n 800335c { /* Disable the ADC peripheral */ __HAL_ADC_DISABLE(hadc); - 8003082: 687b ldr r3, [r7, #4] - 8003084: 681b ldr r3, [r3, #0] - 8003086: 689a ldr r2, [r3, #8] - 8003088: 687b ldr r3, [r7, #4] - 800308a: 681b ldr r3, [r3, #0] - 800308c: f022 0201 bic.w r2, r2, #1 - 8003090: 609a str r2, [r3, #8] + 80032fe: 687b ldr r3, [r7, #4] + 8003300: 681b ldr r3, [r3, #0] + 8003302: 689a ldr r2, [r3, #8] + 8003304: 687b ldr r3, [r7, #4] + 8003306: 681b ldr r3, [r3, #0] + 8003308: f022 0201 bic.w r2, r2, #1 + 800330c: 609a str r2, [r3, #8] /* Get tick count */ tickstart = HAL_GetTick(); - 8003092: f7ff fdeb bl 8002c6c - 8003096: 60f8 str r0, [r7, #12] + 800330e: f7ff fdeb bl 8002ee8 + 8003312: 60f8 str r0, [r7, #12] /* Wait for ADC effectively disabled */ while(ADC_IS_ENABLE(hadc) != RESET) - 8003098: e01b b.n 80030d2 + 8003314: e01b b.n 800334e { if((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT) - 800309a: f7ff fde7 bl 8002c6c - 800309e: 4602 mov r2, r0 - 80030a0: 68fb ldr r3, [r7, #12] - 80030a2: 1ad3 subs r3, r2, r3 - 80030a4: 2b02 cmp r3, #2 - 80030a6: d914 bls.n 80030d2 + 8003316: f7ff fde7 bl 8002ee8 + 800331a: 4602 mov r2, r0 + 800331c: 68fb ldr r3, [r7, #12] + 800331e: 1ad3 subs r3, r2, r3 + 8003320: 2b02 cmp r3, #2 + 8003322: d914 bls.n 800334e { /* New check to avoid false timeout detection in case of preemption */ if(ADC_IS_ENABLE(hadc) != RESET) - 80030a8: 687b ldr r3, [r7, #4] - 80030aa: 681b ldr r3, [r3, #0] - 80030ac: 689b ldr r3, [r3, #8] - 80030ae: f003 0301 and.w r3, r3, #1 - 80030b2: 2b01 cmp r3, #1 - 80030b4: d10d bne.n 80030d2 + 8003324: 687b ldr r3, [r7, #4] + 8003326: 681b ldr r3, [r3, #0] + 8003328: 689b ldr r3, [r3, #8] + 800332a: f003 0301 and.w r3, r3, #1 + 800332e: 2b01 cmp r3, #1 + 8003330: d10d bne.n 800334e { /* Update ADC state machine to error */ SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL); - 80030b6: 687b ldr r3, [r7, #4] - 80030b8: 6a9b ldr r3, [r3, #40] @ 0x28 - 80030ba: f043 0210 orr.w r2, r3, #16 - 80030be: 687b ldr r3, [r7, #4] - 80030c0: 629a str r2, [r3, #40] @ 0x28 + 8003332: 687b ldr r3, [r7, #4] + 8003334: 6a9b ldr r3, [r3, #40] @ 0x28 + 8003336: f043 0210 orr.w r2, r3, #16 + 800333a: 687b ldr r3, [r7, #4] + 800333c: 629a str r2, [r3, #40] @ 0x28 /* Set ADC error code to ADC IP internal error */ SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL); - 80030c2: 687b ldr r3, [r7, #4] - 80030c4: 6adb ldr r3, [r3, #44] @ 0x2c - 80030c6: f043 0201 orr.w r2, r3, #1 - 80030ca: 687b ldr r3, [r7, #4] - 80030cc: 62da str r2, [r3, #44] @ 0x2c + 800333e: 687b ldr r3, [r7, #4] + 8003340: 6adb ldr r3, [r3, #44] @ 0x2c + 8003342: f043 0201 orr.w r2, r3, #1 + 8003346: 687b ldr r3, [r7, #4] + 8003348: 62da str r2, [r3, #44] @ 0x2c return HAL_ERROR; - 80030ce: 2301 movs r3, #1 - 80030d0: e007 b.n 80030e2 + 800334a: 2301 movs r3, #1 + 800334c: e007 b.n 800335e while(ADC_IS_ENABLE(hadc) != RESET) - 80030d2: 687b ldr r3, [r7, #4] - 80030d4: 681b ldr r3, [r3, #0] - 80030d6: 689b ldr r3, [r3, #8] - 80030d8: f003 0301 and.w r3, r3, #1 - 80030dc: 2b01 cmp r3, #1 - 80030de: d0dc beq.n 800309a + 800334e: 687b ldr r3, [r7, #4] + 8003350: 681b ldr r3, [r3, #0] + 8003352: 689b ldr r3, [r3, #8] + 8003354: f003 0301 and.w r3, r3, #1 + 8003358: 2b01 cmp r3, #1 + 800335a: d0dc beq.n 8003316 } } } /* Return HAL status */ return HAL_OK; - 80030e0: 2300 movs r3, #0 + 800335c: 2300 movs r3, #0 } - 80030e2: 4618 mov r0, r3 - 80030e4: 3710 adds r7, #16 - 80030e6: 46bd mov sp, r7 - 80030e8: bd80 pop {r7, pc} + 800335e: 4618 mov r0, r3 + 8003360: 3710 adds r7, #16 + 8003362: 46bd mov sp, r7 + 8003364: bd80 pop {r7, pc} ... -080030ec <__NVIC_SetPriorityGrouping>: +08003368 <__NVIC_SetPriorityGrouping>: In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { - 80030ec: b480 push {r7} - 80030ee: b085 sub sp, #20 - 80030f0: af00 add r7, sp, #0 - 80030f2: 6078 str r0, [r7, #4] + 8003368: b480 push {r7} + 800336a: b085 sub sp, #20 + 800336c: af00 add r7, sp, #0 + 800336e: 6078 str r0, [r7, #4] uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 80030f4: 687b ldr r3, [r7, #4] - 80030f6: f003 0307 and.w r3, r3, #7 - 80030fa: 60fb str r3, [r7, #12] + 8003370: 687b ldr r3, [r7, #4] + 8003372: f003 0307 and.w r3, r3, #7 + 8003376: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ - 80030fc: 4b0c ldr r3, [pc, #48] @ (8003130 <__NVIC_SetPriorityGrouping+0x44>) - 80030fe: 68db ldr r3, [r3, #12] - 8003100: 60bb str r3, [r7, #8] + 8003378: 4b0c ldr r3, [pc, #48] @ (80033ac <__NVIC_SetPriorityGrouping+0x44>) + 800337a: 68db ldr r3, [r3, #12] + 800337c: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - 8003102: 68ba ldr r2, [r7, #8] - 8003104: f64f 03ff movw r3, #63743 @ 0xf8ff - 8003108: 4013 ands r3, r2 - 800310a: 60bb str r3, [r7, #8] + 800337e: 68ba ldr r2, [r7, #8] + 8003380: f64f 03ff movw r3, #63743 @ 0xf8ff + 8003384: 4013 ands r3, r2 + 8003386: 60bb str r3, [r7, #8] reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - 800310c: 68fb ldr r3, [r7, #12] - 800310e: 021a lsls r2, r3, #8 + 8003388: 68fb ldr r3, [r7, #12] + 800338a: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 8003110: 68bb ldr r3, [r7, #8] - 8003112: 4313 orrs r3, r2 + 800338c: 68bb ldr r3, [r7, #8] + 800338e: 4313 orrs r3, r2 reg_value = (reg_value | - 8003114: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 - 8003118: f443 3300 orr.w r3, r3, #131072 @ 0x20000 - 800311c: 60bb str r3, [r7, #8] + 8003390: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 + 8003394: f443 3300 orr.w r3, r3, #131072 @ 0x20000 + 8003398: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; - 800311e: 4a04 ldr r2, [pc, #16] @ (8003130 <__NVIC_SetPriorityGrouping+0x44>) - 8003120: 68bb ldr r3, [r7, #8] - 8003122: 60d3 str r3, [r2, #12] + 800339a: 4a04 ldr r2, [pc, #16] @ (80033ac <__NVIC_SetPriorityGrouping+0x44>) + 800339c: 68bb ldr r3, [r7, #8] + 800339e: 60d3 str r3, [r2, #12] } - 8003124: bf00 nop - 8003126: 3714 adds r7, #20 - 8003128: 46bd mov sp, r7 - 800312a: bc80 pop {r7} - 800312c: 4770 bx lr - 800312e: bf00 nop - 8003130: e000ed00 .word 0xe000ed00 + 80033a0: bf00 nop + 80033a2: 3714 adds r7, #20 + 80033a4: 46bd mov sp, r7 + 80033a6: bc80 pop {r7} + 80033a8: 4770 bx lr + 80033aa: bf00 nop + 80033ac: e000ed00 .word 0xe000ed00 -08003134 <__NVIC_GetPriorityGrouping>: +080033b0 <__NVIC_GetPriorityGrouping>: \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { - 8003134: b480 push {r7} - 8003136: af00 add r7, sp, #0 + 80033b0: b480 push {r7} + 80033b2: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); - 8003138: 4b04 ldr r3, [pc, #16] @ (800314c <__NVIC_GetPriorityGrouping+0x18>) - 800313a: 68db ldr r3, [r3, #12] - 800313c: 0a1b lsrs r3, r3, #8 - 800313e: f003 0307 and.w r3, r3, #7 + 80033b4: 4b04 ldr r3, [pc, #16] @ (80033c8 <__NVIC_GetPriorityGrouping+0x18>) + 80033b6: 68db ldr r3, [r3, #12] + 80033b8: 0a1b lsrs r3, r3, #8 + 80033ba: f003 0307 and.w r3, r3, #7 } - 8003142: 4618 mov r0, r3 - 8003144: 46bd mov sp, r7 - 8003146: bc80 pop {r7} - 8003148: 4770 bx lr - 800314a: bf00 nop - 800314c: e000ed00 .word 0xe000ed00 + 80033be: 4618 mov r0, r3 + 80033c0: 46bd mov sp, r7 + 80033c2: bc80 pop {r7} + 80033c4: 4770 bx lr + 80033c6: bf00 nop + 80033c8: e000ed00 .word 0xe000ed00 -08003150 <__NVIC_EnableIRQ>: +080033cc <__NVIC_EnableIRQ>: \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { - 8003150: b480 push {r7} - 8003152: b083 sub sp, #12 - 8003154: af00 add r7, sp, #0 - 8003156: 4603 mov r3, r0 - 8003158: 71fb strb r3, [r7, #7] + 80033cc: b480 push {r7} + 80033ce: b083 sub sp, #12 + 80033d0: af00 add r7, sp, #0 + 80033d2: 4603 mov r3, r0 + 80033d4: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 800315a: f997 3007 ldrsb.w r3, [r7, #7] - 800315e: 2b00 cmp r3, #0 - 8003160: db0b blt.n 800317a <__NVIC_EnableIRQ+0x2a> + 80033d6: f997 3007 ldrsb.w r3, [r7, #7] + 80033da: 2b00 cmp r3, #0 + 80033dc: db0b blt.n 80033f6 <__NVIC_EnableIRQ+0x2a> { NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - 8003162: 79fb ldrb r3, [r7, #7] - 8003164: f003 021f and.w r2, r3, #31 - 8003168: 4906 ldr r1, [pc, #24] @ (8003184 <__NVIC_EnableIRQ+0x34>) - 800316a: f997 3007 ldrsb.w r3, [r7, #7] - 800316e: 095b lsrs r3, r3, #5 - 8003170: 2001 movs r0, #1 - 8003172: fa00 f202 lsl.w r2, r0, r2 - 8003176: f841 2023 str.w r2, [r1, r3, lsl #2] + 80033de: 79fb ldrb r3, [r7, #7] + 80033e0: f003 021f and.w r2, r3, #31 + 80033e4: 4906 ldr r1, [pc, #24] @ (8003400 <__NVIC_EnableIRQ+0x34>) + 80033e6: f997 3007 ldrsb.w r3, [r7, #7] + 80033ea: 095b lsrs r3, r3, #5 + 80033ec: 2001 movs r0, #1 + 80033ee: fa00 f202 lsl.w r2, r0, r2 + 80033f2: f841 2023 str.w r2, [r1, r3, lsl #2] } } - 800317a: bf00 nop - 800317c: 370c adds r7, #12 - 800317e: 46bd mov sp, r7 - 8003180: bc80 pop {r7} - 8003182: 4770 bx lr - 8003184: e000e100 .word 0xe000e100 + 80033f6: bf00 nop + 80033f8: 370c adds r7, #12 + 80033fa: 46bd mov sp, r7 + 80033fc: bc80 pop {r7} + 80033fe: 4770 bx lr + 8003400: e000e100 .word 0xe000e100 -08003188 <__NVIC_SetPriority>: +08003404 <__NVIC_SetPriority>: \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { - 8003188: b480 push {r7} - 800318a: b083 sub sp, #12 - 800318c: af00 add r7, sp, #0 - 800318e: 4603 mov r3, r0 - 8003190: 6039 str r1, [r7, #0] - 8003192: 71fb strb r3, [r7, #7] + 8003404: b480 push {r7} + 8003406: b083 sub sp, #12 + 8003408: af00 add r7, sp, #0 + 800340a: 4603 mov r3, r0 + 800340c: 6039 str r1, [r7, #0] + 800340e: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8003194: f997 3007 ldrsb.w r3, [r7, #7] - 8003198: 2b00 cmp r3, #0 - 800319a: db0a blt.n 80031b2 <__NVIC_SetPriority+0x2a> + 8003410: f997 3007 ldrsb.w r3, [r7, #7] + 8003414: 2b00 cmp r3, #0 + 8003416: db0a blt.n 800342e <__NVIC_SetPriority+0x2a> { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 800319c: 683b ldr r3, [r7, #0] - 800319e: b2da uxtb r2, r3 - 80031a0: 490c ldr r1, [pc, #48] @ (80031d4 <__NVIC_SetPriority+0x4c>) - 80031a2: f997 3007 ldrsb.w r3, [r7, #7] - 80031a6: 0112 lsls r2, r2, #4 - 80031a8: b2d2 uxtb r2, r2 - 80031aa: 440b add r3, r1 - 80031ac: f883 2300 strb.w r2, [r3, #768] @ 0x300 + 8003418: 683b ldr r3, [r7, #0] + 800341a: b2da uxtb r2, r3 + 800341c: 490c ldr r1, [pc, #48] @ (8003450 <__NVIC_SetPriority+0x4c>) + 800341e: f997 3007 ldrsb.w r3, [r7, #7] + 8003422: 0112 lsls r2, r2, #4 + 8003424: b2d2 uxtb r2, r2 + 8003426: 440b add r3, r1 + 8003428: f883 2300 strb.w r2, [r3, #768] @ 0x300 } else { SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } - 80031b0: e00a b.n 80031c8 <__NVIC_SetPriority+0x40> + 800342c: e00a b.n 8003444 <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 80031b2: 683b ldr r3, [r7, #0] - 80031b4: b2da uxtb r2, r3 - 80031b6: 4908 ldr r1, [pc, #32] @ (80031d8 <__NVIC_SetPriority+0x50>) - 80031b8: 79fb ldrb r3, [r7, #7] - 80031ba: f003 030f and.w r3, r3, #15 - 80031be: 3b04 subs r3, #4 - 80031c0: 0112 lsls r2, r2, #4 - 80031c2: b2d2 uxtb r2, r2 - 80031c4: 440b add r3, r1 - 80031c6: 761a strb r2, [r3, #24] + 800342e: 683b ldr r3, [r7, #0] + 8003430: b2da uxtb r2, r3 + 8003432: 4908 ldr r1, [pc, #32] @ (8003454 <__NVIC_SetPriority+0x50>) + 8003434: 79fb ldrb r3, [r7, #7] + 8003436: f003 030f and.w r3, r3, #15 + 800343a: 3b04 subs r3, #4 + 800343c: 0112 lsls r2, r2, #4 + 800343e: b2d2 uxtb r2, r2 + 8003440: 440b add r3, r1 + 8003442: 761a strb r2, [r3, #24] } - 80031c8: bf00 nop - 80031ca: 370c adds r7, #12 - 80031cc: 46bd mov sp, r7 - 80031ce: bc80 pop {r7} - 80031d0: 4770 bx lr - 80031d2: bf00 nop - 80031d4: e000e100 .word 0xe000e100 - 80031d8: e000ed00 .word 0xe000ed00 + 8003444: bf00 nop + 8003446: 370c adds r7, #12 + 8003448: 46bd mov sp, r7 + 800344a: bc80 pop {r7} + 800344c: 4770 bx lr + 800344e: bf00 nop + 8003450: e000e100 .word 0xe000e100 + 8003454: e000ed00 .word 0xe000ed00 -080031dc : +08003458 : \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { - 80031dc: b480 push {r7} - 80031de: b089 sub sp, #36 @ 0x24 - 80031e0: af00 add r7, sp, #0 - 80031e2: 60f8 str r0, [r7, #12] - 80031e4: 60b9 str r1, [r7, #8] - 80031e6: 607a str r2, [r7, #4] + 8003458: b480 push {r7} + 800345a: b089 sub sp, #36 @ 0x24 + 800345c: af00 add r7, sp, #0 + 800345e: 60f8 str r0, [r7, #12] + 8003460: 60b9 str r1, [r7, #8] + 8003462: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 80031e8: 68fb ldr r3, [r7, #12] - 80031ea: f003 0307 and.w r3, r3, #7 - 80031ee: 61fb str r3, [r7, #28] + 8003464: 68fb ldr r3, [r7, #12] + 8003466: f003 0307 and.w r3, r3, #7 + 800346a: 61fb str r3, [r7, #28] uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - 80031f0: 69fb ldr r3, [r7, #28] - 80031f2: f1c3 0307 rsb r3, r3, #7 - 80031f6: 2b04 cmp r3, #4 - 80031f8: bf28 it cs - 80031fa: 2304 movcs r3, #4 - 80031fc: 61bb str r3, [r7, #24] + 800346c: 69fb ldr r3, [r7, #28] + 800346e: f1c3 0307 rsb r3, r3, #7 + 8003472: 2b04 cmp r3, #4 + 8003474: bf28 it cs + 8003476: 2304 movcs r3, #4 + 8003478: 61bb str r3, [r7, #24] SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - 80031fe: 69fb ldr r3, [r7, #28] - 8003200: 3304 adds r3, #4 - 8003202: 2b06 cmp r3, #6 - 8003204: d902 bls.n 800320c - 8003206: 69fb ldr r3, [r7, #28] - 8003208: 3b03 subs r3, #3 - 800320a: e000 b.n 800320e - 800320c: 2300 movs r3, #0 - 800320e: 617b str r3, [r7, #20] + 800347a: 69fb ldr r3, [r7, #28] + 800347c: 3304 adds r3, #4 + 800347e: 2b06 cmp r3, #6 + 8003480: d902 bls.n 8003488 + 8003482: 69fb ldr r3, [r7, #28] + 8003484: 3b03 subs r3, #3 + 8003486: e000 b.n 800348a + 8003488: 2300 movs r3, #0 + 800348a: 617b str r3, [r7, #20] return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8003210: f04f 32ff mov.w r2, #4294967295 - 8003214: 69bb ldr r3, [r7, #24] - 8003216: fa02 f303 lsl.w r3, r2, r3 - 800321a: 43da mvns r2, r3 - 800321c: 68bb ldr r3, [r7, #8] - 800321e: 401a ands r2, r3 - 8003220: 697b ldr r3, [r7, #20] - 8003222: 409a lsls r2, r3 + 800348c: f04f 32ff mov.w r2, #4294967295 + 8003490: 69bb ldr r3, [r7, #24] + 8003492: fa02 f303 lsl.w r3, r2, r3 + 8003496: 43da mvns r2, r3 + 8003498: 68bb ldr r3, [r7, #8] + 800349a: 401a ands r2, r3 + 800349c: 697b ldr r3, [r7, #20] + 800349e: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - 8003224: f04f 31ff mov.w r1, #4294967295 - 8003228: 697b ldr r3, [r7, #20] - 800322a: fa01 f303 lsl.w r3, r1, r3 - 800322e: 43d9 mvns r1, r3 - 8003230: 687b ldr r3, [r7, #4] - 8003232: 400b ands r3, r1 + 80034a0: f04f 31ff mov.w r1, #4294967295 + 80034a4: 697b ldr r3, [r7, #20] + 80034a6: fa01 f303 lsl.w r3, r1, r3 + 80034aa: 43d9 mvns r1, r3 + 80034ac: 687b ldr r3, [r7, #4] + 80034ae: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8003234: 4313 orrs r3, r2 + 80034b0: 4313 orrs r3, r2 ); } - 8003236: 4618 mov r0, r3 - 8003238: 3724 adds r7, #36 @ 0x24 - 800323a: 46bd mov sp, r7 - 800323c: bc80 pop {r7} - 800323e: 4770 bx lr + 80034b2: 4618 mov r0, r3 + 80034b4: 3724 adds r7, #36 @ 0x24 + 80034b6: 46bd mov sp, r7 + 80034b8: bc80 pop {r7} + 80034ba: 4770 bx lr -08003240 : +080034bc : \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { - 8003240: b580 push {r7, lr} - 8003242: b082 sub sp, #8 - 8003244: af00 add r7, sp, #0 - 8003246: 6078 str r0, [r7, #4] + 80034bc: b580 push {r7, lr} + 80034be: b082 sub sp, #8 + 80034c0: af00 add r7, sp, #0 + 80034c2: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - 8003248: 687b ldr r3, [r7, #4] - 800324a: 3b01 subs r3, #1 - 800324c: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 - 8003250: d301 bcc.n 8003256 + 80034c4: 687b ldr r3, [r7, #4] + 80034c6: 3b01 subs r3, #1 + 80034c8: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 + 80034cc: d301 bcc.n 80034d2 { return (1UL); /* Reload value impossible */ - 8003252: 2301 movs r3, #1 - 8003254: e00f b.n 8003276 + 80034ce: 2301 movs r3, #1 + 80034d0: e00f b.n 80034f2 } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - 8003256: 4a0a ldr r2, [pc, #40] @ (8003280 ) - 8003258: 687b ldr r3, [r7, #4] - 800325a: 3b01 subs r3, #1 - 800325c: 6053 str r3, [r2, #4] + 80034d2: 4a0a ldr r2, [pc, #40] @ (80034fc ) + 80034d4: 687b ldr r3, [r7, #4] + 80034d6: 3b01 subs r3, #1 + 80034d8: 6053 str r3, [r2, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - 800325e: 210f movs r1, #15 - 8003260: f04f 30ff mov.w r0, #4294967295 - 8003264: f7ff ff90 bl 8003188 <__NVIC_SetPriority> + 80034da: 210f movs r1, #15 + 80034dc: f04f 30ff mov.w r0, #4294967295 + 80034e0: f7ff ff90 bl 8003404 <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - 8003268: 4b05 ldr r3, [pc, #20] @ (8003280 ) - 800326a: 2200 movs r2, #0 - 800326c: 609a str r2, [r3, #8] + 80034e4: 4b05 ldr r3, [pc, #20] @ (80034fc ) + 80034e6: 2200 movs r2, #0 + 80034e8: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - 800326e: 4b04 ldr r3, [pc, #16] @ (8003280 ) - 8003270: 2207 movs r2, #7 - 8003272: 601a str r2, [r3, #0] + 80034ea: 4b04 ldr r3, [pc, #16] @ (80034fc ) + 80034ec: 2207 movs r2, #7 + 80034ee: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ - 8003274: 2300 movs r3, #0 + 80034f0: 2300 movs r3, #0 } - 8003276: 4618 mov r0, r3 - 8003278: 3708 adds r7, #8 - 800327a: 46bd mov sp, r7 - 800327c: bd80 pop {r7, pc} - 800327e: bf00 nop - 8003280: e000e010 .word 0xe000e010 + 80034f2: 4618 mov r0, r3 + 80034f4: 3708 adds r7, #8 + 80034f6: 46bd mov sp, r7 + 80034f8: bd80 pop {r7, pc} + 80034fa: bf00 nop + 80034fc: e000e010 .word 0xe000e010 -08003284 : +08003500 : * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible. * The pending IRQ priority will be managed only by the subpriority. * @retval None */ void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { - 8003284: b580 push {r7, lr} - 8003286: b082 sub sp, #8 - 8003288: af00 add r7, sp, #0 - 800328a: 6078 str r0, [r7, #4] + 8003500: b580 push {r7, lr} + 8003502: b082 sub sp, #8 + 8003504: af00 add r7, sp, #0 + 8003506: 6078 str r0, [r7, #4] /* Check the parameters */ assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup)); /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */ NVIC_SetPriorityGrouping(PriorityGroup); - 800328c: 6878 ldr r0, [r7, #4] - 800328e: f7ff ff2d bl 80030ec <__NVIC_SetPriorityGrouping> + 8003508: 6878 ldr r0, [r7, #4] + 800350a: f7ff ff2d bl 8003368 <__NVIC_SetPriorityGrouping> } - 8003292: bf00 nop - 8003294: 3708 adds r7, #8 - 8003296: 46bd mov sp, r7 - 8003298: bd80 pop {r7, pc} + 800350e: bf00 nop + 8003510: 3708 adds r7, #8 + 8003512: 46bd mov sp, r7 + 8003514: bd80 pop {r7, pc} -0800329a : +08003516 : * This parameter can be a value between 0 and 15 * A lower priority value indicates a higher priority. * @retval None */ void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority) { - 800329a: b580 push {r7, lr} - 800329c: b086 sub sp, #24 - 800329e: af00 add r7, sp, #0 - 80032a0: 4603 mov r3, r0 - 80032a2: 60b9 str r1, [r7, #8] - 80032a4: 607a str r2, [r7, #4] - 80032a6: 73fb strb r3, [r7, #15] + 8003516: b580 push {r7, lr} + 8003518: b086 sub sp, #24 + 800351a: af00 add r7, sp, #0 + 800351c: 4603 mov r3, r0 + 800351e: 60b9 str r1, [r7, #8] + 8003520: 607a str r2, [r7, #4] + 8003522: 73fb strb r3, [r7, #15] uint32_t prioritygroup = 0x00U; - 80032a8: 2300 movs r3, #0 - 80032aa: 617b str r3, [r7, #20] + 8003524: 2300 movs r3, #0 + 8003526: 617b str r3, [r7, #20] /* Check the parameters */ assert_param(IS_NVIC_SUB_PRIORITY(SubPriority)); assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); prioritygroup = NVIC_GetPriorityGrouping(); - 80032ac: f7ff ff42 bl 8003134 <__NVIC_GetPriorityGrouping> - 80032b0: 6178 str r0, [r7, #20] + 8003528: f7ff ff42 bl 80033b0 <__NVIC_GetPriorityGrouping> + 800352c: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); - 80032b2: 687a ldr r2, [r7, #4] - 80032b4: 68b9 ldr r1, [r7, #8] - 80032b6: 6978 ldr r0, [r7, #20] - 80032b8: f7ff ff90 bl 80031dc - 80032bc: 4602 mov r2, r0 - 80032be: f997 300f ldrsb.w r3, [r7, #15] - 80032c2: 4611 mov r1, r2 - 80032c4: 4618 mov r0, r3 - 80032c6: f7ff ff5f bl 8003188 <__NVIC_SetPriority> + 800352e: 687a ldr r2, [r7, #4] + 8003530: 68b9 ldr r1, [r7, #8] + 8003532: 6978 ldr r0, [r7, #20] + 8003534: f7ff ff90 bl 8003458 + 8003538: 4602 mov r2, r0 + 800353a: f997 300f ldrsb.w r3, [r7, #15] + 800353e: 4611 mov r1, r2 + 8003540: 4618 mov r0, r3 + 8003542: f7ff ff5f bl 8003404 <__NVIC_SetPriority> } - 80032ca: bf00 nop - 80032cc: 3718 adds r7, #24 - 80032ce: 46bd mov sp, r7 - 80032d0: bd80 pop {r7, pc} + 8003546: bf00 nop + 8003548: 3718 adds r7, #24 + 800354a: 46bd mov sp, r7 + 800354c: bd80 pop {r7, pc} -080032d2 : +0800354e : * This parameter can be an enumerator of IRQn_Type enumeration * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f10xxx.h)) * @retval None */ void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) { - 80032d2: b580 push {r7, lr} - 80032d4: b082 sub sp, #8 - 80032d6: af00 add r7, sp, #0 - 80032d8: 4603 mov r3, r0 - 80032da: 71fb strb r3, [r7, #7] + 800354e: b580 push {r7, lr} + 8003550: b082 sub sp, #8 + 8003552: af00 add r7, sp, #0 + 8003554: 4603 mov r3, r0 + 8003556: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Enable interrupt */ NVIC_EnableIRQ(IRQn); - 80032dc: f997 3007 ldrsb.w r3, [r7, #7] - 80032e0: 4618 mov r0, r3 - 80032e2: f7ff ff35 bl 8003150 <__NVIC_EnableIRQ> + 8003558: f997 3007 ldrsb.w r3, [r7, #7] + 800355c: 4618 mov r0, r3 + 800355e: f7ff ff35 bl 80033cc <__NVIC_EnableIRQ> } - 80032e6: bf00 nop - 80032e8: 3708 adds r7, #8 - 80032ea: 46bd mov sp, r7 - 80032ec: bd80 pop {r7, pc} + 8003562: bf00 nop + 8003564: 3708 adds r7, #8 + 8003566: 46bd mov sp, r7 + 8003568: bd80 pop {r7, pc} -080032ee : +0800356a : * @param TicksNumb: Specifies the ticks Number of ticks between two interrupts. * @retval status: - 0 Function succeeded. * - 1 Function failed. */ uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb) { - 80032ee: b580 push {r7, lr} - 80032f0: b082 sub sp, #8 - 80032f2: af00 add r7, sp, #0 - 80032f4: 6078 str r0, [r7, #4] + 800356a: b580 push {r7, lr} + 800356c: b082 sub sp, #8 + 800356e: af00 add r7, sp, #0 + 8003570: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); - 80032f6: 6878 ldr r0, [r7, #4] - 80032f8: f7ff ffa2 bl 8003240 - 80032fc: 4603 mov r3, r0 + 8003572: 6878 ldr r0, [r7, #4] + 8003574: f7ff ffa2 bl 80034bc + 8003578: 4603 mov r3, r0 } - 80032fe: 4618 mov r0, r3 - 8003300: 3708 adds r7, #8 - 8003302: 46bd mov sp, r7 - 8003304: bd80 pop {r7, pc} + 800357a: 4618 mov r0, r3 + 800357c: 3708 adds r7, #8 + 800357e: 46bd mov sp, r7 + 8003580: bd80 pop {r7, pc} -08003306 : +08003582 : * @param hdma: pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Channel. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma) { - 8003306: b480 push {r7} - 8003308: b085 sub sp, #20 - 800330a: af00 add r7, sp, #0 - 800330c: 6078 str r0, [r7, #4] + 8003582: b480 push {r7} + 8003584: b085 sub sp, #20 + 8003586: af00 add r7, sp, #0 + 8003588: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 800330e: 2300 movs r3, #0 - 8003310: 73fb strb r3, [r7, #15] + 800358a: 2300 movs r3, #0 + 800358c: 73fb strb r3, [r7, #15] if(hdma->State != HAL_DMA_STATE_BUSY) - 8003312: 687b ldr r3, [r7, #4] - 8003314: f893 3021 ldrb.w r3, [r3, #33] @ 0x21 - 8003318: b2db uxtb r3, r3 - 800331a: 2b02 cmp r3, #2 - 800331c: d008 beq.n 8003330 + 800358e: 687b ldr r3, [r7, #4] + 8003590: f893 3021 ldrb.w r3, [r3, #33] @ 0x21 + 8003594: b2db uxtb r3, r3 + 8003596: 2b02 cmp r3, #2 + 8003598: d008 beq.n 80035ac { /* no transfer ongoing */ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 800331e: 687b ldr r3, [r7, #4] - 8003320: 2204 movs r2, #4 - 8003322: 639a str r2, [r3, #56] @ 0x38 + 800359a: 687b ldr r3, [r7, #4] + 800359c: 2204 movs r2, #4 + 800359e: 639a str r2, [r3, #56] @ 0x38 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 8003324: 687b ldr r3, [r7, #4] - 8003326: 2200 movs r2, #0 - 8003328: f883 2020 strb.w r2, [r3, #32] + 80035a0: 687b ldr r3, [r7, #4] + 80035a2: 2200 movs r2, #0 + 80035a4: f883 2020 strb.w r2, [r3, #32] return HAL_ERROR; - 800332c: 2301 movs r3, #1 - 800332e: e020 b.n 8003372 + 80035a8: 2301 movs r3, #1 + 80035aa: e020 b.n 80035ee } else { /* Disable DMA IT */ __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); - 8003330: 687b ldr r3, [r7, #4] - 8003332: 681b ldr r3, [r3, #0] - 8003334: 681a ldr r2, [r3, #0] - 8003336: 687b ldr r3, [r7, #4] - 8003338: 681b ldr r3, [r3, #0] - 800333a: f022 020e bic.w r2, r2, #14 - 800333e: 601a str r2, [r3, #0] + 80035ac: 687b ldr r3, [r7, #4] + 80035ae: 681b ldr r3, [r3, #0] + 80035b0: 681a ldr r2, [r3, #0] + 80035b2: 687b ldr r3, [r7, #4] + 80035b4: 681b ldr r3, [r3, #0] + 80035b6: f022 020e bic.w r2, r2, #14 + 80035ba: 601a str r2, [r3, #0] /* Disable the channel */ __HAL_DMA_DISABLE(hdma); - 8003340: 687b ldr r3, [r7, #4] - 8003342: 681b ldr r3, [r3, #0] - 8003344: 681a ldr r2, [r3, #0] - 8003346: 687b ldr r3, [r7, #4] - 8003348: 681b ldr r3, [r3, #0] - 800334a: f022 0201 bic.w r2, r2, #1 - 800334e: 601a str r2, [r3, #0] + 80035bc: 687b ldr r3, [r7, #4] + 80035be: 681b ldr r3, [r3, #0] + 80035c0: 681a ldr r2, [r3, #0] + 80035c2: 687b ldr r3, [r7, #4] + 80035c4: 681b ldr r3, [r3, #0] + 80035c6: f022 0201 bic.w r2, r2, #1 + 80035ca: 601a str r2, [r3, #0] /* Clear all flags */ hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << hdma->ChannelIndex); - 8003350: 687b ldr r3, [r7, #4] - 8003352: 6c1a ldr r2, [r3, #64] @ 0x40 - 8003354: 687b ldr r3, [r7, #4] - 8003356: 6bdb ldr r3, [r3, #60] @ 0x3c - 8003358: 2101 movs r1, #1 - 800335a: fa01 f202 lsl.w r2, r1, r2 - 800335e: 605a str r2, [r3, #4] + 80035cc: 687b ldr r3, [r7, #4] + 80035ce: 6c1a ldr r2, [r3, #64] @ 0x40 + 80035d0: 687b ldr r3, [r7, #4] + 80035d2: 6bdb ldr r3, [r3, #60] @ 0x3c + 80035d4: 2101 movs r1, #1 + 80035d6: fa01 f202 lsl.w r2, r1, r2 + 80035da: 605a str r2, [r3, #4] } /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 8003360: 687b ldr r3, [r7, #4] - 8003362: 2201 movs r2, #1 - 8003364: f883 2021 strb.w r2, [r3, #33] @ 0x21 + 80035dc: 687b ldr r3, [r7, #4] + 80035de: 2201 movs r2, #1 + 80035e0: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 8003368: 687b ldr r3, [r7, #4] - 800336a: 2200 movs r2, #0 - 800336c: f883 2020 strb.w r2, [r3, #32] + 80035e4: 687b ldr r3, [r7, #4] + 80035e6: 2200 movs r2, #0 + 80035e8: f883 2020 strb.w r2, [r3, #32] return status; - 8003370: 7bfb ldrb r3, [r7, #15] + 80035ec: 7bfb ldrb r3, [r7, #15] } - 8003372: 4618 mov r0, r3 - 8003374: 3714 adds r7, #20 - 8003376: 46bd mov sp, r7 - 8003378: bc80 pop {r7} - 800337a: 4770 bx lr + 80035ee: 4618 mov r0, r3 + 80035f0: 3714 adds r7, #20 + 80035f2: 46bd mov sp, r7 + 80035f4: bc80 pop {r7} + 80035f6: 4770 bx lr -0800337c : +080035f8 : * @param hdma : pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Channel. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma) { - 800337c: b580 push {r7, lr} - 800337e: b084 sub sp, #16 - 8003380: af00 add r7, sp, #0 - 8003382: 6078 str r0, [r7, #4] + 80035f8: b580 push {r7, lr} + 80035fa: b084 sub sp, #16 + 80035fc: af00 add r7, sp, #0 + 80035fe: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 8003384: 2300 movs r3, #0 - 8003386: 73fb strb r3, [r7, #15] + 8003600: 2300 movs r3, #0 + 8003602: 73fb strb r3, [r7, #15] if(HAL_DMA_STATE_BUSY != hdma->State) - 8003388: 687b ldr r3, [r7, #4] - 800338a: f893 3021 ldrb.w r3, [r3, #33] @ 0x21 - 800338e: b2db uxtb r3, r3 - 8003390: 2b02 cmp r3, #2 - 8003392: d005 beq.n 80033a0 + 8003604: 687b ldr r3, [r7, #4] + 8003606: f893 3021 ldrb.w r3, [r3, #33] @ 0x21 + 800360a: b2db uxtb r3, r3 + 800360c: 2b02 cmp r3, #2 + 800360e: d005 beq.n 800361c { /* no transfer ongoing */ hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 8003394: 687b ldr r3, [r7, #4] - 8003396: 2204 movs r2, #4 - 8003398: 639a str r2, [r3, #56] @ 0x38 + 8003610: 687b ldr r3, [r7, #4] + 8003612: 2204 movs r2, #4 + 8003614: 639a str r2, [r3, #56] @ 0x38 status = HAL_ERROR; - 800339a: 2301 movs r3, #1 - 800339c: 73fb strb r3, [r7, #15] - 800339e: e051 b.n 8003444 + 8003616: 2301 movs r3, #1 + 8003618: 73fb strb r3, [r7, #15] + 800361a: e051 b.n 80036c0 } else { /* Disable DMA IT */ __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE)); - 80033a0: 687b ldr r3, [r7, #4] - 80033a2: 681b ldr r3, [r3, #0] - 80033a4: 681a ldr r2, [r3, #0] - 80033a6: 687b ldr r3, [r7, #4] - 80033a8: 681b ldr r3, [r3, #0] - 80033aa: f022 020e bic.w r2, r2, #14 - 80033ae: 601a str r2, [r3, #0] + 800361c: 687b ldr r3, [r7, #4] + 800361e: 681b ldr r3, [r3, #0] + 8003620: 681a ldr r2, [r3, #0] + 8003622: 687b ldr r3, [r7, #4] + 8003624: 681b ldr r3, [r3, #0] + 8003626: f022 020e bic.w r2, r2, #14 + 800362a: 601a str r2, [r3, #0] /* Disable the channel */ __HAL_DMA_DISABLE(hdma); - 80033b0: 687b ldr r3, [r7, #4] - 80033b2: 681b ldr r3, [r3, #0] - 80033b4: 681a ldr r2, [r3, #0] - 80033b6: 687b ldr r3, [r7, #4] - 80033b8: 681b ldr r3, [r3, #0] - 80033ba: f022 0201 bic.w r2, r2, #1 - 80033be: 601a str r2, [r3, #0] + 800362c: 687b ldr r3, [r7, #4] + 800362e: 681b ldr r3, [r3, #0] + 8003630: 681a ldr r2, [r3, #0] + 8003632: 687b ldr r3, [r7, #4] + 8003634: 681b ldr r3, [r3, #0] + 8003636: f022 0201 bic.w r2, r2, #1 + 800363a: 601a str r2, [r3, #0] /* Clear all flags */ __HAL_DMA_CLEAR_FLAG(hdma, __HAL_DMA_GET_GI_FLAG_INDEX(hdma)); - 80033c0: 687b ldr r3, [r7, #4] - 80033c2: 681b ldr r3, [r3, #0] - 80033c4: 4a22 ldr r2, [pc, #136] @ (8003450 ) - 80033c6: 4293 cmp r3, r2 - 80033c8: d029 beq.n 800341e - 80033ca: 687b ldr r3, [r7, #4] - 80033cc: 681b ldr r3, [r3, #0] - 80033ce: 4a21 ldr r2, [pc, #132] @ (8003454 ) - 80033d0: 4293 cmp r3, r2 - 80033d2: d022 beq.n 800341a - 80033d4: 687b ldr r3, [r7, #4] - 80033d6: 681b ldr r3, [r3, #0] - 80033d8: 4a1f ldr r2, [pc, #124] @ (8003458 ) - 80033da: 4293 cmp r3, r2 - 80033dc: d01a beq.n 8003414 - 80033de: 687b ldr r3, [r7, #4] - 80033e0: 681b ldr r3, [r3, #0] - 80033e2: 4a1e ldr r2, [pc, #120] @ (800345c ) - 80033e4: 4293 cmp r3, r2 - 80033e6: d012 beq.n 800340e - 80033e8: 687b ldr r3, [r7, #4] - 80033ea: 681b ldr r3, [r3, #0] - 80033ec: 4a1c ldr r2, [pc, #112] @ (8003460 ) - 80033ee: 4293 cmp r3, r2 - 80033f0: d00a beq.n 8003408 - 80033f2: 687b ldr r3, [r7, #4] - 80033f4: 681b ldr r3, [r3, #0] - 80033f6: 4a1b ldr r2, [pc, #108] @ (8003464 ) - 80033f8: 4293 cmp r3, r2 - 80033fa: d102 bne.n 8003402 - 80033fc: f44f 1380 mov.w r3, #1048576 @ 0x100000 - 8003400: e00e b.n 8003420 - 8003402: f04f 7380 mov.w r3, #16777216 @ 0x1000000 - 8003406: e00b b.n 8003420 - 8003408: f44f 3380 mov.w r3, #65536 @ 0x10000 - 800340c: e008 b.n 8003420 - 800340e: f44f 5380 mov.w r3, #4096 @ 0x1000 - 8003412: e005 b.n 8003420 - 8003414: f44f 7380 mov.w r3, #256 @ 0x100 - 8003418: e002 b.n 8003420 - 800341a: 2310 movs r3, #16 - 800341c: e000 b.n 8003420 - 800341e: 2301 movs r3, #1 - 8003420: 4a11 ldr r2, [pc, #68] @ (8003468 ) - 8003422: 6053 str r3, [r2, #4] + 800363c: 687b ldr r3, [r7, #4] + 800363e: 681b ldr r3, [r3, #0] + 8003640: 4a22 ldr r2, [pc, #136] @ (80036cc ) + 8003642: 4293 cmp r3, r2 + 8003644: d029 beq.n 800369a + 8003646: 687b ldr r3, [r7, #4] + 8003648: 681b ldr r3, [r3, #0] + 800364a: 4a21 ldr r2, [pc, #132] @ (80036d0 ) + 800364c: 4293 cmp r3, r2 + 800364e: d022 beq.n 8003696 + 8003650: 687b ldr r3, [r7, #4] + 8003652: 681b ldr r3, [r3, #0] + 8003654: 4a1f ldr r2, [pc, #124] @ (80036d4 ) + 8003656: 4293 cmp r3, r2 + 8003658: d01a beq.n 8003690 + 800365a: 687b ldr r3, [r7, #4] + 800365c: 681b ldr r3, [r3, #0] + 800365e: 4a1e ldr r2, [pc, #120] @ (80036d8 ) + 8003660: 4293 cmp r3, r2 + 8003662: d012 beq.n 800368a + 8003664: 687b ldr r3, [r7, #4] + 8003666: 681b ldr r3, [r3, #0] + 8003668: 4a1c ldr r2, [pc, #112] @ (80036dc ) + 800366a: 4293 cmp r3, r2 + 800366c: d00a beq.n 8003684 + 800366e: 687b ldr r3, [r7, #4] + 8003670: 681b ldr r3, [r3, #0] + 8003672: 4a1b ldr r2, [pc, #108] @ (80036e0 ) + 8003674: 4293 cmp r3, r2 + 8003676: d102 bne.n 800367e + 8003678: f44f 1380 mov.w r3, #1048576 @ 0x100000 + 800367c: e00e b.n 800369c + 800367e: f04f 7380 mov.w r3, #16777216 @ 0x1000000 + 8003682: e00b b.n 800369c + 8003684: f44f 3380 mov.w r3, #65536 @ 0x10000 + 8003688: e008 b.n 800369c + 800368a: f44f 5380 mov.w r3, #4096 @ 0x1000 + 800368e: e005 b.n 800369c + 8003690: f44f 7380 mov.w r3, #256 @ 0x100 + 8003694: e002 b.n 800369c + 8003696: 2310 movs r3, #16 + 8003698: e000 b.n 800369c + 800369a: 2301 movs r3, #1 + 800369c: 4a11 ldr r2, [pc, #68] @ (80036e4 ) + 800369e: 6053 str r3, [r2, #4] /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 8003424: 687b ldr r3, [r7, #4] - 8003426: 2201 movs r2, #1 - 8003428: f883 2021 strb.w r2, [r3, #33] @ 0x21 + 80036a0: 687b ldr r3, [r7, #4] + 80036a2: 2201 movs r2, #1 + 80036a4: f883 2021 strb.w r2, [r3, #33] @ 0x21 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 800342c: 687b ldr r3, [r7, #4] - 800342e: 2200 movs r2, #0 - 8003430: f883 2020 strb.w r2, [r3, #32] + 80036a8: 687b ldr r3, [r7, #4] + 80036aa: 2200 movs r2, #0 + 80036ac: f883 2020 strb.w r2, [r3, #32] /* Call User Abort callback */ if(hdma->XferAbortCallback != NULL) - 8003434: 687b ldr r3, [r7, #4] - 8003436: 6b5b ldr r3, [r3, #52] @ 0x34 - 8003438: 2b00 cmp r3, #0 - 800343a: d003 beq.n 8003444 + 80036b0: 687b ldr r3, [r7, #4] + 80036b2: 6b5b ldr r3, [r3, #52] @ 0x34 + 80036b4: 2b00 cmp r3, #0 + 80036b6: d003 beq.n 80036c0 { hdma->XferAbortCallback(hdma); - 800343c: 687b ldr r3, [r7, #4] - 800343e: 6b5b ldr r3, [r3, #52] @ 0x34 - 8003440: 6878 ldr r0, [r7, #4] - 8003442: 4798 blx r3 + 80036b8: 687b ldr r3, [r7, #4] + 80036ba: 6b5b ldr r3, [r3, #52] @ 0x34 + 80036bc: 6878 ldr r0, [r7, #4] + 80036be: 4798 blx r3 } } return status; - 8003444: 7bfb ldrb r3, [r7, #15] + 80036c0: 7bfb ldrb r3, [r7, #15] } - 8003446: 4618 mov r0, r3 - 8003448: 3710 adds r7, #16 - 800344a: 46bd mov sp, r7 - 800344c: bd80 pop {r7, pc} - 800344e: bf00 nop - 8003450: 40020008 .word 0x40020008 - 8003454: 4002001c .word 0x4002001c - 8003458: 40020030 .word 0x40020030 - 800345c: 40020044 .word 0x40020044 - 8003460: 40020058 .word 0x40020058 - 8003464: 4002006c .word 0x4002006c - 8003468: 40020000 .word 0x40020000 + 80036c2: 4618 mov r0, r3 + 80036c4: 3710 adds r7, #16 + 80036c6: 46bd mov sp, r7 + 80036c8: bd80 pop {r7, pc} + 80036ca: bf00 nop + 80036cc: 40020008 .word 0x40020008 + 80036d0: 4002001c .word 0x4002001c + 80036d4: 40020030 .word 0x40020030 + 80036d8: 40020044 .word 0x40020044 + 80036dc: 40020058 .word 0x40020058 + 80036e0: 4002006c .word 0x4002006c + 80036e4: 40020000 .word 0x40020000 -0800346c : +080036e8 : * @param Data: Specifies the data to be programmed * * @retval HAL_StatusTypeDef HAL Status */ HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data) { - 800346c: b5f0 push {r4, r5, r6, r7, lr} - 800346e: b087 sub sp, #28 - 8003470: af00 add r7, sp, #0 - 8003472: 60f8 str r0, [r7, #12] - 8003474: 60b9 str r1, [r7, #8] - 8003476: e9c7 2300 strd r2, r3, [r7] + 80036e8: b5f0 push {r4, r5, r6, r7, lr} + 80036ea: b087 sub sp, #28 + 80036ec: af00 add r7, sp, #0 + 80036ee: 60f8 str r0, [r7, #12] + 80036f0: 60b9 str r1, [r7, #8] + 80036f2: e9c7 2300 strd r2, r3, [r7] HAL_StatusTypeDef status = HAL_ERROR; - 800347a: 2301 movs r3, #1 - 800347c: 75fb strb r3, [r7, #23] + 80036f6: 2301 movs r3, #1 + 80036f8: 75fb strb r3, [r7, #23] uint8_t index = 0; - 800347e: 2300 movs r3, #0 - 8003480: 75bb strb r3, [r7, #22] + 80036fa: 2300 movs r3, #0 + 80036fc: 75bb strb r3, [r7, #22] uint8_t nbiterations = 0; - 8003482: 2300 movs r3, #0 - 8003484: 757b strb r3, [r7, #21] + 80036fe: 2300 movs r3, #0 + 8003700: 757b strb r3, [r7, #21] /* Process Locked */ __HAL_LOCK(&pFlash); - 8003486: 4b2f ldr r3, [pc, #188] @ (8003544 ) - 8003488: 7e1b ldrb r3, [r3, #24] - 800348a: 2b01 cmp r3, #1 - 800348c: d101 bne.n 8003492 - 800348e: 2302 movs r3, #2 - 8003490: e054 b.n 800353c - 8003492: 4b2c ldr r3, [pc, #176] @ (8003544 ) - 8003494: 2201 movs r2, #1 - 8003496: 761a strb r2, [r3, #24] + 8003702: 4b2f ldr r3, [pc, #188] @ (80037c0 ) + 8003704: 7e1b ldrb r3, [r3, #24] + 8003706: 2b01 cmp r3, #1 + 8003708: d101 bne.n 800370e + 800370a: 2302 movs r3, #2 + 800370c: e054 b.n 80037b8 + 800370e: 4b2c ldr r3, [pc, #176] @ (80037c0 ) + 8003710: 2201 movs r2, #1 + 8003712: 761a strb r2, [r3, #24] #if defined(FLASH_BANK2_END) if(Address <= FLASH_BANK1_END) { #endif /* FLASH_BANK2_END */ /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE); - 8003498: f24c 3050 movw r0, #50000 @ 0xc350 - 800349c: f000 f8a8 bl 80035f0 - 80034a0: 4603 mov r3, r0 - 80034a2: 75fb strb r3, [r7, #23] + 8003714: f24c 3050 movw r0, #50000 @ 0xc350 + 8003718: f000 f8a8 bl 800386c + 800371c: 4603 mov r3, r0 + 800371e: 75fb strb r3, [r7, #23] /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperationBank2(FLASH_TIMEOUT_VALUE); } #endif /* FLASH_BANK2_END */ if(status == HAL_OK) - 80034a4: 7dfb ldrb r3, [r7, #23] - 80034a6: 2b00 cmp r3, #0 - 80034a8: d144 bne.n 8003534 + 8003720: 7dfb ldrb r3, [r7, #23] + 8003722: 2b00 cmp r3, #0 + 8003724: d144 bne.n 80037b0 { if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD) - 80034aa: 68fb ldr r3, [r7, #12] - 80034ac: 2b01 cmp r3, #1 - 80034ae: d102 bne.n 80034b6 + 8003726: 68fb ldr r3, [r7, #12] + 8003728: 2b01 cmp r3, #1 + 800372a: d102 bne.n 8003732 { /* Program halfword (16-bit) at a specified address. */ nbiterations = 1U; - 80034b0: 2301 movs r3, #1 - 80034b2: 757b strb r3, [r7, #21] - 80034b4: e007 b.n 80034c6 + 800372c: 2301 movs r3, #1 + 800372e: 757b strb r3, [r7, #21] + 8003730: e007 b.n 8003742 } else if(TypeProgram == FLASH_TYPEPROGRAM_WORD) - 80034b6: 68fb ldr r3, [r7, #12] - 80034b8: 2b02 cmp r3, #2 - 80034ba: d102 bne.n 80034c2 + 8003732: 68fb ldr r3, [r7, #12] + 8003734: 2b02 cmp r3, #2 + 8003736: d102 bne.n 800373e { /* Program word (32-bit = 2*16-bit) at a specified address. */ nbiterations = 2U; - 80034bc: 2302 movs r3, #2 - 80034be: 757b strb r3, [r7, #21] - 80034c0: e001 b.n 80034c6 + 8003738: 2302 movs r3, #2 + 800373a: 757b strb r3, [r7, #21] + 800373c: e001 b.n 8003742 } else { /* Program double word (64-bit = 4*16-bit) at a specified address. */ nbiterations = 4U; - 80034c2: 2304 movs r3, #4 - 80034c4: 757b strb r3, [r7, #21] + 800373e: 2304 movs r3, #4 + 8003740: 757b strb r3, [r7, #21] } for (index = 0U; index < nbiterations; index++) - 80034c6: 2300 movs r3, #0 - 80034c8: 75bb strb r3, [r7, #22] - 80034ca: e02d b.n 8003528 + 8003742: 2300 movs r3, #0 + 8003744: 75bb strb r3, [r7, #22] + 8003746: e02d b.n 80037a4 { FLASH_Program_HalfWord((Address + (2U*index)), (uint16_t)(Data >> (16U*index))); - 80034cc: 7dbb ldrb r3, [r7, #22] - 80034ce: 005a lsls r2, r3, #1 - 80034d0: 68bb ldr r3, [r7, #8] - 80034d2: eb02 0c03 add.w ip, r2, r3 - 80034d6: 7dbb ldrb r3, [r7, #22] - 80034d8: 0119 lsls r1, r3, #4 - 80034da: e9d7 2300 ldrd r2, r3, [r7] - 80034de: f1c1 0620 rsb r6, r1, #32 - 80034e2: f1a1 0020 sub.w r0, r1, #32 - 80034e6: fa22 f401 lsr.w r4, r2, r1 - 80034ea: fa03 f606 lsl.w r6, r3, r6 - 80034ee: 4334 orrs r4, r6 - 80034f0: fa23 f000 lsr.w r0, r3, r0 - 80034f4: 4304 orrs r4, r0 - 80034f6: fa23 f501 lsr.w r5, r3, r1 - 80034fa: b2a3 uxth r3, r4 - 80034fc: 4619 mov r1, r3 - 80034fe: 4660 mov r0, ip - 8003500: f000 f85a bl 80035b8 + 8003748: 7dbb ldrb r3, [r7, #22] + 800374a: 005a lsls r2, r3, #1 + 800374c: 68bb ldr r3, [r7, #8] + 800374e: eb02 0c03 add.w ip, r2, r3 + 8003752: 7dbb ldrb r3, [r7, #22] + 8003754: 0119 lsls r1, r3, #4 + 8003756: e9d7 2300 ldrd r2, r3, [r7] + 800375a: f1c1 0620 rsb r6, r1, #32 + 800375e: f1a1 0020 sub.w r0, r1, #32 + 8003762: fa22 f401 lsr.w r4, r2, r1 + 8003766: fa03 f606 lsl.w r6, r3, r6 + 800376a: 4334 orrs r4, r6 + 800376c: fa23 f000 lsr.w r0, r3, r0 + 8003770: 4304 orrs r4, r0 + 8003772: fa23 f501 lsr.w r5, r3, r1 + 8003776: b2a3 uxth r3, r4 + 8003778: 4619 mov r1, r3 + 800377a: 4660 mov r0, ip + 800377c: f000 f85a bl 8003834 #if defined(FLASH_BANK2_END) if(Address <= FLASH_BANK1_END) { #endif /* FLASH_BANK2_END */ /* Wait for last operation to be completed */ status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE); - 8003504: f24c 3050 movw r0, #50000 @ 0xc350 - 8003508: f000 f872 bl 80035f0 - 800350c: 4603 mov r3, r0 - 800350e: 75fb strb r3, [r7, #23] + 8003780: f24c 3050 movw r0, #50000 @ 0xc350 + 8003784: f000 f872 bl 800386c + 8003788: 4603 mov r3, r0 + 800378a: 75fb strb r3, [r7, #23] /* If the program operation is completed, disable the PG Bit */ CLEAR_BIT(FLASH->CR, FLASH_CR_PG); - 8003510: 4b0d ldr r3, [pc, #52] @ (8003548 ) - 8003512: 691b ldr r3, [r3, #16] - 8003514: 4a0c ldr r2, [pc, #48] @ (8003548 ) - 8003516: f023 0301 bic.w r3, r3, #1 - 800351a: 6113 str r3, [r2, #16] + 800378c: 4b0d ldr r3, [pc, #52] @ (80037c4 ) + 800378e: 691b ldr r3, [r3, #16] + 8003790: 4a0c ldr r2, [pc, #48] @ (80037c4 ) + 8003792: f023 0301 bic.w r3, r3, #1 + 8003796: 6113 str r3, [r2, #16] /* If the program operation is completed, disable the PG Bit */ CLEAR_BIT(FLASH->CR2, FLASH_CR2_PG); } #endif /* FLASH_BANK2_END */ /* In case of error, stop programation procedure */ if (status != HAL_OK) - 800351c: 7dfb ldrb r3, [r7, #23] - 800351e: 2b00 cmp r3, #0 - 8003520: d107 bne.n 8003532 + 8003798: 7dfb ldrb r3, [r7, #23] + 800379a: 2b00 cmp r3, #0 + 800379c: d107 bne.n 80037ae for (index = 0U; index < nbiterations; index++) - 8003522: 7dbb ldrb r3, [r7, #22] - 8003524: 3301 adds r3, #1 - 8003526: 75bb strb r3, [r7, #22] - 8003528: 7dba ldrb r2, [r7, #22] - 800352a: 7d7b ldrb r3, [r7, #21] - 800352c: 429a cmp r2, r3 - 800352e: d3cd bcc.n 80034cc - 8003530: e000 b.n 8003534 + 800379e: 7dbb ldrb r3, [r7, #22] + 80037a0: 3301 adds r3, #1 + 80037a2: 75bb strb r3, [r7, #22] + 80037a4: 7dba ldrb r2, [r7, #22] + 80037a6: 7d7b ldrb r3, [r7, #21] + 80037a8: 429a cmp r2, r3 + 80037aa: d3cd bcc.n 8003748 + 80037ac: e000 b.n 80037b0 { break; - 8003532: bf00 nop + 80037ae: bf00 nop } } } /* Process Unlocked */ __HAL_UNLOCK(&pFlash); - 8003534: 4b03 ldr r3, [pc, #12] @ (8003544 ) - 8003536: 2200 movs r2, #0 - 8003538: 761a strb r2, [r3, #24] + 80037b0: 4b03 ldr r3, [pc, #12] @ (80037c0 ) + 80037b2: 2200 movs r2, #0 + 80037b4: 761a strb r2, [r3, #24] return status; - 800353a: 7dfb ldrb r3, [r7, #23] + 80037b6: 7dfb ldrb r3, [r7, #23] } - 800353c: 4618 mov r0, r3 - 800353e: 371c adds r7, #28 - 8003540: 46bd mov sp, r7 - 8003542: bdf0 pop {r4, r5, r6, r7, pc} - 8003544: 200006f0 .word 0x200006f0 - 8003548: 40022000 .word 0x40022000 + 80037b8: 4618 mov r0, r3 + 80037ba: 371c adds r7, #28 + 80037bc: 46bd mov sp, r7 + 80037be: bdf0 pop {r4, r5, r6, r7, pc} + 80037c0: 20000768 .word 0x20000768 + 80037c4: 40022000 .word 0x40022000 -0800354c : +080037c8 : /** * @brief Unlock the FLASH control register access * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASH_Unlock(void) { - 800354c: b480 push {r7} - 800354e: b083 sub sp, #12 - 8003550: af00 add r7, sp, #0 + 80037c8: b480 push {r7} + 80037ca: b083 sub sp, #12 + 80037cc: af00 add r7, sp, #0 HAL_StatusTypeDef status = HAL_OK; - 8003552: 2300 movs r3, #0 - 8003554: 71fb strb r3, [r7, #7] + 80037ce: 2300 movs r3, #0 + 80037d0: 71fb strb r3, [r7, #7] if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET) - 8003556: 4b0d ldr r3, [pc, #52] @ (800358c ) - 8003558: 691b ldr r3, [r3, #16] - 800355a: f003 0380 and.w r3, r3, #128 @ 0x80 - 800355e: 2b00 cmp r3, #0 - 8003560: d00d beq.n 800357e + 80037d2: 4b0d ldr r3, [pc, #52] @ (8003808 ) + 80037d4: 691b ldr r3, [r3, #16] + 80037d6: f003 0380 and.w r3, r3, #128 @ 0x80 + 80037da: 2b00 cmp r3, #0 + 80037dc: d00d beq.n 80037fa { /* Authorize the FLASH Registers access */ WRITE_REG(FLASH->KEYR, FLASH_KEY1); - 8003562: 4b0a ldr r3, [pc, #40] @ (800358c ) - 8003564: 4a0a ldr r2, [pc, #40] @ (8003590 ) - 8003566: 605a str r2, [r3, #4] + 80037de: 4b0a ldr r3, [pc, #40] @ (8003808 ) + 80037e0: 4a0a ldr r2, [pc, #40] @ (800380c ) + 80037e2: 605a str r2, [r3, #4] WRITE_REG(FLASH->KEYR, FLASH_KEY2); - 8003568: 4b08 ldr r3, [pc, #32] @ (800358c ) - 800356a: 4a0a ldr r2, [pc, #40] @ (8003594 ) - 800356c: 605a str r2, [r3, #4] + 80037e4: 4b08 ldr r3, [pc, #32] @ (8003808 ) + 80037e6: 4a0a ldr r2, [pc, #40] @ (8003810 ) + 80037e8: 605a str r2, [r3, #4] /* Verify Flash is unlocked */ if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET) - 800356e: 4b07 ldr r3, [pc, #28] @ (800358c ) - 8003570: 691b ldr r3, [r3, #16] - 8003572: f003 0380 and.w r3, r3, #128 @ 0x80 - 8003576: 2b00 cmp r3, #0 - 8003578: d001 beq.n 800357e + 80037ea: 4b07 ldr r3, [pc, #28] @ (8003808 ) + 80037ec: 691b ldr r3, [r3, #16] + 80037ee: f003 0380 and.w r3, r3, #128 @ 0x80 + 80037f2: 2b00 cmp r3, #0 + 80037f4: d001 beq.n 80037fa { status = HAL_ERROR; - 800357a: 2301 movs r3, #1 - 800357c: 71fb strb r3, [r7, #7] + 80037f6: 2301 movs r3, #1 + 80037f8: 71fb strb r3, [r7, #7] status = HAL_ERROR; } } #endif /* FLASH_BANK2_END */ return status; - 800357e: 79fb ldrb r3, [r7, #7] + 80037fa: 79fb ldrb r3, [r7, #7] } - 8003580: 4618 mov r0, r3 - 8003582: 370c adds r7, #12 - 8003584: 46bd mov sp, r7 - 8003586: bc80 pop {r7} - 8003588: 4770 bx lr - 800358a: bf00 nop - 800358c: 40022000 .word 0x40022000 - 8003590: 45670123 .word 0x45670123 - 8003594: cdef89ab .word 0xcdef89ab + 80037fc: 4618 mov r0, r3 + 80037fe: 370c adds r7, #12 + 8003800: 46bd mov sp, r7 + 8003802: bc80 pop {r7} + 8003804: 4770 bx lr + 8003806: bf00 nop + 8003808: 40022000 .word 0x40022000 + 800380c: 45670123 .word 0x45670123 + 8003810: cdef89ab .word 0xcdef89ab -08003598 : +08003814 : /** * @brief Locks the FLASH control register access * @retval HAL Status */ HAL_StatusTypeDef HAL_FLASH_Lock(void) { - 8003598: b480 push {r7} - 800359a: af00 add r7, sp, #0 + 8003814: b480 push {r7} + 8003816: af00 add r7, sp, #0 /* Set the LOCK Bit to lock the FLASH Registers access */ SET_BIT(FLASH->CR, FLASH_CR_LOCK); - 800359c: 4b05 ldr r3, [pc, #20] @ (80035b4 ) - 800359e: 691b ldr r3, [r3, #16] - 80035a0: 4a04 ldr r2, [pc, #16] @ (80035b4 ) - 80035a2: f043 0380 orr.w r3, r3, #128 @ 0x80 - 80035a6: 6113 str r3, [r2, #16] + 8003818: 4b05 ldr r3, [pc, #20] @ (8003830 ) + 800381a: 691b ldr r3, [r3, #16] + 800381c: 4a04 ldr r2, [pc, #16] @ (8003830 ) + 800381e: f043 0380 orr.w r3, r3, #128 @ 0x80 + 8003822: 6113 str r3, [r2, #16] #if defined(FLASH_BANK2_END) /* Set the LOCK Bit to lock the FLASH BANK2 Registers access */ SET_BIT(FLASH->CR2, FLASH_CR2_LOCK); #endif /* FLASH_BANK2_END */ return HAL_OK; - 80035a8: 2300 movs r3, #0 + 8003824: 2300 movs r3, #0 } - 80035aa: 4618 mov r0, r3 - 80035ac: 46bd mov sp, r7 - 80035ae: bc80 pop {r7} - 80035b0: 4770 bx lr - 80035b2: bf00 nop - 80035b4: 40022000 .word 0x40022000 + 8003826: 4618 mov r0, r3 + 8003828: 46bd mov sp, r7 + 800382a: bc80 pop {r7} + 800382c: 4770 bx lr + 800382e: bf00 nop + 8003830: 40022000 .word 0x40022000 -080035b8 : +08003834 : * @param Address specify the address to be programmed. * @param Data specify the data to be programmed. * @retval None */ static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data) { - 80035b8: b480 push {r7} - 80035ba: b083 sub sp, #12 - 80035bc: af00 add r7, sp, #0 - 80035be: 6078 str r0, [r7, #4] - 80035c0: 460b mov r3, r1 - 80035c2: 807b strh r3, [r7, #2] + 8003834: b480 push {r7} + 8003836: b083 sub sp, #12 + 8003838: af00 add r7, sp, #0 + 800383a: 6078 str r0, [r7, #4] + 800383c: 460b mov r3, r1 + 800383e: 807b strh r3, [r7, #2] /* Clean the error context */ pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 80035c4: 4b08 ldr r3, [pc, #32] @ (80035e8 ) - 80035c6: 2200 movs r2, #0 - 80035c8: 61da str r2, [r3, #28] + 8003840: 4b08 ldr r3, [pc, #32] @ (8003864 ) + 8003842: 2200 movs r2, #0 + 8003844: 61da str r2, [r3, #28] #if defined(FLASH_BANK2_END) if(Address <= FLASH_BANK1_END) { #endif /* FLASH_BANK2_END */ /* Proceed to program the new data */ SET_BIT(FLASH->CR, FLASH_CR_PG); - 80035ca: 4b08 ldr r3, [pc, #32] @ (80035ec ) - 80035cc: 691b ldr r3, [r3, #16] - 80035ce: 4a07 ldr r2, [pc, #28] @ (80035ec ) - 80035d0: f043 0301 orr.w r3, r3, #1 - 80035d4: 6113 str r3, [r2, #16] + 8003846: 4b08 ldr r3, [pc, #32] @ (8003868 ) + 8003848: 691b ldr r3, [r3, #16] + 800384a: 4a07 ldr r2, [pc, #28] @ (8003868 ) + 800384c: f043 0301 orr.w r3, r3, #1 + 8003850: 6113 str r3, [r2, #16] SET_BIT(FLASH->CR2, FLASH_CR2_PG); } #endif /* FLASH_BANK2_END */ /* Write data in the address */ *(__IO uint16_t*)Address = Data; - 80035d6: 687b ldr r3, [r7, #4] - 80035d8: 887a ldrh r2, [r7, #2] - 80035da: 801a strh r2, [r3, #0] -} - 80035dc: bf00 nop - 80035de: 370c adds r7, #12 - 80035e0: 46bd mov sp, r7 - 80035e2: bc80 pop {r7} - 80035e4: 4770 bx lr - 80035e6: bf00 nop - 80035e8: 200006f0 .word 0x200006f0 - 80035ec: 40022000 .word 0x40022000 - -080035f0 : - * @brief Wait for a FLASH operation to complete. - * @param Timeout maximum flash operation timeout - * @retval HAL Status - */ -HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout) -{ - 80035f0: b580 push {r7, lr} - 80035f2: b084 sub sp, #16 - 80035f4: af00 add r7, sp, #0 - 80035f6: 6078 str r0, [r7, #4] - /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset. - Even if the FLASH operation fails, the BUSY flag will be reset and an error - flag will be set */ - - uint32_t tickstart = HAL_GetTick(); - 80035f8: f7ff fb38 bl 8002c6c - 80035fc: 60f8 str r0, [r7, #12] - - while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY)) - 80035fe: e010 b.n 8003622 - { - if (Timeout != HAL_MAX_DELAY) - 8003600: 687b ldr r3, [r7, #4] - 8003602: f1b3 3fff cmp.w r3, #4294967295 - 8003606: d00c beq.n 8003622 - { - if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout)) - 8003608: 687b ldr r3, [r7, #4] - 800360a: 2b00 cmp r3, #0 - 800360c: d007 beq.n 800361e - 800360e: f7ff fb2d bl 8002c6c - 8003612: 4602 mov r2, r0 - 8003614: 68fb ldr r3, [r7, #12] - 8003616: 1ad3 subs r3, r2, r3 - 8003618: 687a ldr r2, [r7, #4] - 800361a: 429a cmp r2, r3 - 800361c: d201 bcs.n 8003622 - { - return HAL_TIMEOUT; - 800361e: 2303 movs r3, #3 - 8003620: e025 b.n 800366e - while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY)) - 8003622: 4b15 ldr r3, [pc, #84] @ (8003678 ) - 8003624: 68db ldr r3, [r3, #12] - 8003626: f003 0301 and.w r3, r3, #1 - 800362a: 2b00 cmp r3, #0 - 800362c: d1e8 bne.n 8003600 - } - } - } - - /* Check FLASH End of Operation flag */ - if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP)) - 800362e: 4b12 ldr r3, [pc, #72] @ (8003678 ) - 8003630: 68db ldr r3, [r3, #12] - 8003632: f003 0320 and.w r3, r3, #32 - 8003636: 2b00 cmp r3, #0 - 8003638: d002 beq.n 8003640 - { - /* Clear FLASH End of Operation pending bit */ - __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP); - 800363a: 4b0f ldr r3, [pc, #60] @ (8003678 ) - 800363c: 2220 movs r2, #32 - 800363e: 60da str r2, [r3, #12] - } - - if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || - 8003640: 4b0d ldr r3, [pc, #52] @ (8003678 ) - 8003642: 68db ldr r3, [r3, #12] - 8003644: f003 0310 and.w r3, r3, #16 - 8003648: 2b00 cmp r3, #0 - 800364a: d10b bne.n 8003664 - __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) || - 800364c: 4b0a ldr r3, [pc, #40] @ (8003678 ) - 800364e: 69db ldr r3, [r3, #28] - 8003650: f003 0301 and.w r3, r3, #1 - if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || - 8003654: 2b00 cmp r3, #0 - 8003656: d105 bne.n 8003664 - __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) - 8003658: 4b07 ldr r3, [pc, #28] @ (8003678 ) - 800365a: 68db ldr r3, [r3, #12] - 800365c: f003 0304 and.w r3, r3, #4 - __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) || - 8003660: 2b00 cmp r3, #0 - 8003662: d003 beq.n 800366c - { - /*Save the error code*/ - FLASH_SetErrorCode(); - 8003664: f000 f80a bl 800367c - return HAL_ERROR; - 8003668: 2301 movs r3, #1 - 800366a: e000 b.n 800366e - } - - /* There is no error flag set */ - return HAL_OK; - 800366c: 2300 movs r3, #0 -} - 800366e: 4618 mov r0, r3 - 8003670: 3710 adds r7, #16 - 8003672: 46bd mov sp, r7 - 8003674: bd80 pop {r7, pc} - 8003676: bf00 nop - 8003678: 40022000 .word 0x40022000 - -0800367c : -/** - * @brief Set the specific FLASH error flag. - * @retval None - */ -static void FLASH_SetErrorCode(void) -{ - 800367c: b480 push {r7} - 800367e: b083 sub sp, #12 - 8003680: af00 add r7, sp, #0 - uint32_t flags = 0U; - 8003682: 2300 movs r3, #0 - 8003684: 607b str r3, [r7, #4] - -#if defined(FLASH_BANK2_END) - if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR_BANK2)) -#else - if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR)) - 8003686: 4b23 ldr r3, [pc, #140] @ (8003714 ) - 8003688: 68db ldr r3, [r3, #12] - 800368a: f003 0310 and.w r3, r3, #16 - 800368e: 2b00 cmp r3, #0 - 8003690: d009 beq.n 80036a6 -#endif /* FLASH_BANK2_END */ - { - pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP; - 8003692: 4b21 ldr r3, [pc, #132] @ (8003718 ) - 8003694: 69db ldr r3, [r3, #28] - 8003696: f043 0302 orr.w r3, r3, #2 - 800369a: 4a1f ldr r2, [pc, #124] @ (8003718 ) - 800369c: 61d3 str r3, [r2, #28] -#if defined(FLASH_BANK2_END) - flags |= FLASH_FLAG_WRPERR | FLASH_FLAG_WRPERR_BANK2; -#else - flags |= FLASH_FLAG_WRPERR; - 800369e: 687b ldr r3, [r7, #4] - 80036a0: f043 0310 orr.w r3, r3, #16 - 80036a4: 607b str r3, [r7, #4] -#endif /* FLASH_BANK2_END */ - } -#if defined(FLASH_BANK2_END) - if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR_BANK2)) -#else - if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) - 80036a6: 4b1b ldr r3, [pc, #108] @ (8003714 ) - 80036a8: 68db ldr r3, [r3, #12] - 80036aa: f003 0304 and.w r3, r3, #4 - 80036ae: 2b00 cmp r3, #0 - 80036b0: d009 beq.n 80036c6 -#endif /* FLASH_BANK2_END */ - { - pFlash.ErrorCode |= HAL_FLASH_ERROR_PROG; - 80036b2: 4b19 ldr r3, [pc, #100] @ (8003718 ) - 80036b4: 69db ldr r3, [r3, #28] - 80036b6: f043 0301 orr.w r3, r3, #1 - 80036ba: 4a17 ldr r2, [pc, #92] @ (8003718 ) - 80036bc: 61d3 str r3, [r2, #28] -#if defined(FLASH_BANK2_END) - flags |= FLASH_FLAG_PGERR | FLASH_FLAG_PGERR_BANK2; -#else - flags |= FLASH_FLAG_PGERR; - 80036be: 687b ldr r3, [r7, #4] - 80036c0: f043 0304 orr.w r3, r3, #4 - 80036c4: 607b str r3, [r7, #4] -#endif /* FLASH_BANK2_END */ - } - if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR)) - 80036c6: 4b13 ldr r3, [pc, #76] @ (8003714 ) - 80036c8: 69db ldr r3, [r3, #28] - 80036ca: f003 0301 and.w r3, r3, #1 - 80036ce: 2b00 cmp r3, #0 - 80036d0: d00b beq.n 80036ea - { - pFlash.ErrorCode |= HAL_FLASH_ERROR_OPTV; - 80036d2: 4b11 ldr r3, [pc, #68] @ (8003718 ) - 80036d4: 69db ldr r3, [r3, #28] - 80036d6: f043 0304 orr.w r3, r3, #4 - 80036da: 4a0f ldr r2, [pc, #60] @ (8003718 ) - 80036dc: 61d3 str r3, [r2, #28] - __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR); - 80036de: 4b0d ldr r3, [pc, #52] @ (8003714 ) - 80036e0: 69db ldr r3, [r3, #28] - 80036e2: 4a0c ldr r2, [pc, #48] @ (8003714 ) - 80036e4: f023 0301 bic.w r3, r3, #1 - 80036e8: 61d3 str r3, [r2, #28] - } - - /* Clear FLASH error pending bits */ - __HAL_FLASH_CLEAR_FLAG(flags); - 80036ea: 687b ldr r3, [r7, #4] - 80036ec: f240 1201 movw r2, #257 @ 0x101 - 80036f0: 4293 cmp r3, r2 - 80036f2: d106 bne.n 8003702 - 80036f4: 4b07 ldr r3, [pc, #28] @ (8003714 ) - 80036f6: 69db ldr r3, [r3, #28] - 80036f8: 4a06 ldr r2, [pc, #24] @ (8003714 ) - 80036fa: f023 0301 bic.w r3, r3, #1 - 80036fe: 61d3 str r3, [r2, #28] -} - 8003700: e002 b.n 8003708 - __HAL_FLASH_CLEAR_FLAG(flags); - 8003702: 4a04 ldr r2, [pc, #16] @ (8003714 ) - 8003704: 687b ldr r3, [r7, #4] - 8003706: 60d3 str r3, [r2, #12] -} - 8003708: bf00 nop - 800370a: 370c adds r7, #12 - 800370c: 46bd mov sp, r7 - 800370e: bc80 pop {r7} - 8003710: 4770 bx lr - 8003712: bf00 nop - 8003714: 40022000 .word 0x40022000 - 8003718: 200006f0 .word 0x200006f0 - -0800371c : - * (0xFFFFFFFF means that all the pages have been correctly erased) - * - * @retval HAL_StatusTypeDef HAL Status - */ -HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError) -{ - 800371c: b580 push {r7, lr} - 800371e: b084 sub sp, #16 - 8003720: af00 add r7, sp, #0 - 8003722: 6078 str r0, [r7, #4] - 8003724: 6039 str r1, [r7, #0] - HAL_StatusTypeDef status = HAL_ERROR; - 8003726: 2301 movs r3, #1 - 8003728: 73fb strb r3, [r7, #15] - uint32_t address = 0U; - 800372a: 2300 movs r3, #0 - 800372c: 60bb str r3, [r7, #8] - - /* Process Locked */ - __HAL_LOCK(&pFlash); - 800372e: 4b2f ldr r3, [pc, #188] @ (80037ec ) - 8003730: 7e1b ldrb r3, [r3, #24] - 8003732: 2b01 cmp r3, #1 - 8003734: d101 bne.n 800373a - 8003736: 2302 movs r3, #2 - 8003738: e053 b.n 80037e2 - 800373a: 4b2c ldr r3, [pc, #176] @ (80037ec ) - 800373c: 2201 movs r2, #1 - 800373e: 761a strb r2, [r3, #24] - - /* Check the parameters */ - assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase)); - - if (pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE) - 8003740: 687b ldr r3, [r7, #4] - 8003742: 681b ldr r3, [r3, #0] - 8003744: 2b02 cmp r3, #2 - 8003746: d116 bne.n 8003776 - else -#endif /* FLASH_BANK2_END */ - { - /* Mass Erase requested for Bank1 */ - /* Wait for last operation to be completed */ - if (FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE) == HAL_OK) - 8003748: f24c 3050 movw r0, #50000 @ 0xc350 - 800374c: f7ff ff50 bl 80035f0 - 8003750: 4603 mov r3, r0 - 8003752: 2b00 cmp r3, #0 - 8003754: d141 bne.n 80037da - { - /*Mass erase to be done*/ - FLASH_MassErase(FLASH_BANK_1); - 8003756: 2001 movs r0, #1 - 8003758: f000 f84c bl 80037f4 - - /* Wait for last operation to be completed */ - status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 800375c: f24c 3050 movw r0, #50000 @ 0xc350 - 8003760: f7ff ff46 bl 80035f0 - 8003764: 4603 mov r3, r0 - 8003766: 73fb strb r3, [r7, #15] - - /* If the erase operation is completed, disable the MER Bit */ - CLEAR_BIT(FLASH->CR, FLASH_CR_MER); - 8003768: 4b21 ldr r3, [pc, #132] @ (80037f0 ) - 800376a: 691b ldr r3, [r3, #16] - 800376c: 4a20 ldr r2, [pc, #128] @ (80037f0 ) - 800376e: f023 0304 bic.w r3, r3, #4 - 8003772: 6113 str r3, [r2, #16] - 8003774: e031 b.n 80037da - else -#endif /* FLASH_BANK2_END */ - { - /* Page Erase requested on address located on bank1 */ - /* Wait for last operation to be completed */ - if (FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE) == HAL_OK) - 8003776: f24c 3050 movw r0, #50000 @ 0xc350 - 800377a: f7ff ff39 bl 80035f0 - 800377e: 4603 mov r3, r0 - 8003780: 2b00 cmp r3, #0 - 8003782: d12a bne.n 80037da - { - /*Initialization of PageError variable*/ - *PageError = 0xFFFFFFFFU; - 8003784: 683b ldr r3, [r7, #0] - 8003786: f04f 32ff mov.w r2, #4294967295 - 800378a: 601a str r2, [r3, #0] - - /* Erase page by page to be done*/ - for(address = pEraseInit->PageAddress; - 800378c: 687b ldr r3, [r7, #4] - 800378e: 689b ldr r3, [r3, #8] - 8003790: 60bb str r3, [r7, #8] - 8003792: e019 b.n 80037c8 - address < ((pEraseInit->NbPages * FLASH_PAGE_SIZE) + pEraseInit->PageAddress); - address += FLASH_PAGE_SIZE) - { - FLASH_PageErase(address); - 8003794: 68b8 ldr r0, [r7, #8] - 8003796: f000 f849 bl 800382c - - /* Wait for last operation to be completed */ - status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); - 800379a: f24c 3050 movw r0, #50000 @ 0xc350 - 800379e: f7ff ff27 bl 80035f0 - 80037a2: 4603 mov r3, r0 - 80037a4: 73fb strb r3, [r7, #15] - - /* If the erase operation is completed, disable the PER Bit */ - CLEAR_BIT(FLASH->CR, FLASH_CR_PER); - 80037a6: 4b12 ldr r3, [pc, #72] @ (80037f0 ) - 80037a8: 691b ldr r3, [r3, #16] - 80037aa: 4a11 ldr r2, [pc, #68] @ (80037f0 ) - 80037ac: f023 0302 bic.w r3, r3, #2 - 80037b0: 6113 str r3, [r2, #16] - - if (status != HAL_OK) - 80037b2: 7bfb ldrb r3, [r7, #15] - 80037b4: 2b00 cmp r3, #0 - 80037b6: d003 beq.n 80037c0 - { - /* In case of error, stop erase procedure and return the faulty address */ - *PageError = address; - 80037b8: 683b ldr r3, [r7, #0] - 80037ba: 68ba ldr r2, [r7, #8] - 80037bc: 601a str r2, [r3, #0] - break; - 80037be: e00c b.n 80037da - address += FLASH_PAGE_SIZE) - 80037c0: 68bb ldr r3, [r7, #8] - 80037c2: f503 6380 add.w r3, r3, #1024 @ 0x400 - 80037c6: 60bb str r3, [r7, #8] - address < ((pEraseInit->NbPages * FLASH_PAGE_SIZE) + pEraseInit->PageAddress); - 80037c8: 687b ldr r3, [r7, #4] - 80037ca: 68db ldr r3, [r3, #12] - 80037cc: 029a lsls r2, r3, #10 - 80037ce: 687b ldr r3, [r7, #4] - 80037d0: 689b ldr r3, [r3, #8] - 80037d2: 4413 add r3, r2 - 80037d4: 68ba ldr r2, [r7, #8] - 80037d6: 429a cmp r2, r3 - 80037d8: d3dc bcc.n 8003794 - } - } - } - - /* Process Unlocked */ - __HAL_UNLOCK(&pFlash); - 80037da: 4b04 ldr r3, [pc, #16] @ (80037ec ) - 80037dc: 2200 movs r2, #0 - 80037de: 761a strb r2, [r3, #24] - - return status; - 80037e0: 7bfb ldrb r3, [r7, #15] -} - 80037e2: 4618 mov r0, r3 - 80037e4: 3710 adds r7, #16 - 80037e6: 46bd mov sp, r7 - 80037e8: bd80 pop {r7, pc} - 80037ea: bf00 nop - 80037ec: 200006f0 .word 0x200006f0 - 80037f0: 40022000 .word 0x40022000 - -080037f4 : - @endif - * - * @retval None - */ -static void FLASH_MassErase(uint32_t Banks) -{ - 80037f4: b480 push {r7} - 80037f6: b083 sub sp, #12 - 80037f8: af00 add r7, sp, #0 - 80037fa: 6078 str r0, [r7, #4] - /* Check the parameters */ - assert_param(IS_FLASH_BANK(Banks)); - - /* Clean the error context */ - pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 80037fc: 4b09 ldr r3, [pc, #36] @ (8003824 ) - 80037fe: 2200 movs r2, #0 - 8003800: 61da str r2, [r3, #28] -#if !defined(FLASH_BANK2_END) - /* Prevent unused argument(s) compilation warning */ - UNUSED(Banks); -#endif /* FLASH_BANK2_END */ - /* Only bank1 will be erased*/ - SET_BIT(FLASH->CR, FLASH_CR_MER); - 8003802: 4b09 ldr r3, [pc, #36] @ (8003828 ) - 8003804: 691b ldr r3, [r3, #16] - 8003806: 4a08 ldr r2, [pc, #32] @ (8003828 ) - 8003808: f043 0304 orr.w r3, r3, #4 - 800380c: 6113 str r3, [r2, #16] - SET_BIT(FLASH->CR, FLASH_CR_STRT); - 800380e: 4b06 ldr r3, [pc, #24] @ (8003828 ) - 8003810: 691b ldr r3, [r3, #16] - 8003812: 4a05 ldr r2, [pc, #20] @ (8003828 ) - 8003814: f043 0340 orr.w r3, r3, #64 @ 0x40 - 8003818: 6113 str r3, [r2, #16] -#if defined(FLASH_BANK2_END) - } -#endif /* FLASH_BANK2_END */ -} - 800381a: bf00 nop - 800381c: 370c adds r7, #12 - 800381e: 46bd mov sp, r7 - 8003820: bc80 pop {r7} - 8003822: 4770 bx lr - 8003824: 200006f0 .word 0x200006f0 - 8003828: 40022000 .word 0x40022000 - -0800382c : - * The value of this parameter depend on device used within the same series - * - * @retval None - */ -void FLASH_PageErase(uint32_t PageAddress) -{ - 800382c: b480 push {r7} - 800382e: b083 sub sp, #12 - 8003830: af00 add r7, sp, #0 - 8003832: 6078 str r0, [r7, #4] - /* Clean the error context */ - pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 8003834: 4b0b ldr r3, [pc, #44] @ (8003864 ) - 8003836: 2200 movs r2, #0 - 8003838: 61da str r2, [r3, #28] - } - else - { -#endif /* FLASH_BANK2_END */ - /* Proceed to erase the page */ - SET_BIT(FLASH->CR, FLASH_CR_PER); - 800383a: 4b0b ldr r3, [pc, #44] @ (8003868 ) - 800383c: 691b ldr r3, [r3, #16] - 800383e: 4a0a ldr r2, [pc, #40] @ (8003868 ) - 8003840: f043 0302 orr.w r3, r3, #2 - 8003844: 6113 str r3, [r2, #16] - WRITE_REG(FLASH->AR, PageAddress); - 8003846: 4a08 ldr r2, [pc, #32] @ (8003868 ) - 8003848: 687b ldr r3, [r7, #4] - 800384a: 6153 str r3, [r2, #20] - SET_BIT(FLASH->CR, FLASH_CR_STRT); - 800384c: 4b06 ldr r3, [pc, #24] @ (8003868 ) - 800384e: 691b ldr r3, [r3, #16] - 8003850: 4a05 ldr r2, [pc, #20] @ (8003868 ) - 8003852: f043 0340 orr.w r3, r3, #64 @ 0x40 - 8003856: 6113 str r3, [r2, #16] -#if defined(FLASH_BANK2_END) - } -#endif /* FLASH_BANK2_END */ + 8003852: 687b ldr r3, [r7, #4] + 8003854: 887a ldrh r2, [r7, #2] + 8003856: 801a strh r2, [r3, #0] } 8003858: bf00 nop 800385a: 370c adds r7, #12 @@ -8516,7448 +8364,7931 @@ void FLASH_PageErase(uint32_t PageAddress) 800385e: bc80 pop {r7} 8003860: 4770 bx lr 8003862: bf00 nop - 8003864: 200006f0 .word 0x200006f0 + 8003864: 20000768 .word 0x20000768 8003868: 40022000 .word 0x40022000 -0800386c : +0800386c : + * @brief Wait for a FLASH operation to complete. + * @param Timeout maximum flash operation timeout + * @retval HAL Status + */ +HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout) +{ + 800386c: b580 push {r7, lr} + 800386e: b084 sub sp, #16 + 8003870: af00 add r7, sp, #0 + 8003872: 6078 str r0, [r7, #4] + /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset. + Even if the FLASH operation fails, the BUSY flag will be reset and an error + flag will be set */ + + uint32_t tickstart = HAL_GetTick(); + 8003874: f7ff fb38 bl 8002ee8 + 8003878: 60f8 str r0, [r7, #12] + + while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY)) + 800387a: e010 b.n 800389e + { + if (Timeout != HAL_MAX_DELAY) + 800387c: 687b ldr r3, [r7, #4] + 800387e: f1b3 3fff cmp.w r3, #4294967295 + 8003882: d00c beq.n 800389e + { + if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout)) + 8003884: 687b ldr r3, [r7, #4] + 8003886: 2b00 cmp r3, #0 + 8003888: d007 beq.n 800389a + 800388a: f7ff fb2d bl 8002ee8 + 800388e: 4602 mov r2, r0 + 8003890: 68fb ldr r3, [r7, #12] + 8003892: 1ad3 subs r3, r2, r3 + 8003894: 687a ldr r2, [r7, #4] + 8003896: 429a cmp r2, r3 + 8003898: d201 bcs.n 800389e + { + return HAL_TIMEOUT; + 800389a: 2303 movs r3, #3 + 800389c: e025 b.n 80038ea + while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY)) + 800389e: 4b15 ldr r3, [pc, #84] @ (80038f4 ) + 80038a0: 68db ldr r3, [r3, #12] + 80038a2: f003 0301 and.w r3, r3, #1 + 80038a6: 2b00 cmp r3, #0 + 80038a8: d1e8 bne.n 800387c + } + } + } + + /* Check FLASH End of Operation flag */ + if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP)) + 80038aa: 4b12 ldr r3, [pc, #72] @ (80038f4 ) + 80038ac: 68db ldr r3, [r3, #12] + 80038ae: f003 0320 and.w r3, r3, #32 + 80038b2: 2b00 cmp r3, #0 + 80038b4: d002 beq.n 80038bc + { + /* Clear FLASH End of Operation pending bit */ + __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP); + 80038b6: 4b0f ldr r3, [pc, #60] @ (80038f4 ) + 80038b8: 2220 movs r2, #32 + 80038ba: 60da str r2, [r3, #12] + } + + if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || + 80038bc: 4b0d ldr r3, [pc, #52] @ (80038f4 ) + 80038be: 68db ldr r3, [r3, #12] + 80038c0: f003 0310 and.w r3, r3, #16 + 80038c4: 2b00 cmp r3, #0 + 80038c6: d10b bne.n 80038e0 + __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) || + 80038c8: 4b0a ldr r3, [pc, #40] @ (80038f4 ) + 80038ca: 69db ldr r3, [r3, #28] + 80038cc: f003 0301 and.w r3, r3, #1 + if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || + 80038d0: 2b00 cmp r3, #0 + 80038d2: d105 bne.n 80038e0 + __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) + 80038d4: 4b07 ldr r3, [pc, #28] @ (80038f4 ) + 80038d6: 68db ldr r3, [r3, #12] + 80038d8: f003 0304 and.w r3, r3, #4 + __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) || + 80038dc: 2b00 cmp r3, #0 + 80038de: d003 beq.n 80038e8 + { + /*Save the error code*/ + FLASH_SetErrorCode(); + 80038e0: f000 f80a bl 80038f8 + return HAL_ERROR; + 80038e4: 2301 movs r3, #1 + 80038e6: e000 b.n 80038ea + } + + /* There is no error flag set */ + return HAL_OK; + 80038e8: 2300 movs r3, #0 +} + 80038ea: 4618 mov r0, r3 + 80038ec: 3710 adds r7, #16 + 80038ee: 46bd mov sp, r7 + 80038f0: bd80 pop {r7, pc} + 80038f2: bf00 nop + 80038f4: 40022000 .word 0x40022000 + +080038f8 : +/** + * @brief Set the specific FLASH error flag. + * @retval None + */ +static void FLASH_SetErrorCode(void) +{ + 80038f8: b480 push {r7} + 80038fa: b083 sub sp, #12 + 80038fc: af00 add r7, sp, #0 + uint32_t flags = 0U; + 80038fe: 2300 movs r3, #0 + 8003900: 607b str r3, [r7, #4] + +#if defined(FLASH_BANK2_END) + if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR_BANK2)) +#else + if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR)) + 8003902: 4b23 ldr r3, [pc, #140] @ (8003990 ) + 8003904: 68db ldr r3, [r3, #12] + 8003906: f003 0310 and.w r3, r3, #16 + 800390a: 2b00 cmp r3, #0 + 800390c: d009 beq.n 8003922 +#endif /* FLASH_BANK2_END */ + { + pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP; + 800390e: 4b21 ldr r3, [pc, #132] @ (8003994 ) + 8003910: 69db ldr r3, [r3, #28] + 8003912: f043 0302 orr.w r3, r3, #2 + 8003916: 4a1f ldr r2, [pc, #124] @ (8003994 ) + 8003918: 61d3 str r3, [r2, #28] +#if defined(FLASH_BANK2_END) + flags |= FLASH_FLAG_WRPERR | FLASH_FLAG_WRPERR_BANK2; +#else + flags |= FLASH_FLAG_WRPERR; + 800391a: 687b ldr r3, [r7, #4] + 800391c: f043 0310 orr.w r3, r3, #16 + 8003920: 607b str r3, [r7, #4] +#endif /* FLASH_BANK2_END */ + } +#if defined(FLASH_BANK2_END) + if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR_BANK2)) +#else + if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) + 8003922: 4b1b ldr r3, [pc, #108] @ (8003990 ) + 8003924: 68db ldr r3, [r3, #12] + 8003926: f003 0304 and.w r3, r3, #4 + 800392a: 2b00 cmp r3, #0 + 800392c: d009 beq.n 8003942 +#endif /* FLASH_BANK2_END */ + { + pFlash.ErrorCode |= HAL_FLASH_ERROR_PROG; + 800392e: 4b19 ldr r3, [pc, #100] @ (8003994 ) + 8003930: 69db ldr r3, [r3, #28] + 8003932: f043 0301 orr.w r3, r3, #1 + 8003936: 4a17 ldr r2, [pc, #92] @ (8003994 ) + 8003938: 61d3 str r3, [r2, #28] +#if defined(FLASH_BANK2_END) + flags |= FLASH_FLAG_PGERR | FLASH_FLAG_PGERR_BANK2; +#else + flags |= FLASH_FLAG_PGERR; + 800393a: 687b ldr r3, [r7, #4] + 800393c: f043 0304 orr.w r3, r3, #4 + 8003940: 607b str r3, [r7, #4] +#endif /* FLASH_BANK2_END */ + } + if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR)) + 8003942: 4b13 ldr r3, [pc, #76] @ (8003990 ) + 8003944: 69db ldr r3, [r3, #28] + 8003946: f003 0301 and.w r3, r3, #1 + 800394a: 2b00 cmp r3, #0 + 800394c: d00b beq.n 8003966 + { + pFlash.ErrorCode |= HAL_FLASH_ERROR_OPTV; + 800394e: 4b11 ldr r3, [pc, #68] @ (8003994 ) + 8003950: 69db ldr r3, [r3, #28] + 8003952: f043 0304 orr.w r3, r3, #4 + 8003956: 4a0f ldr r2, [pc, #60] @ (8003994 ) + 8003958: 61d3 str r3, [r2, #28] + __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR); + 800395a: 4b0d ldr r3, [pc, #52] @ (8003990 ) + 800395c: 69db ldr r3, [r3, #28] + 800395e: 4a0c ldr r2, [pc, #48] @ (8003990 ) + 8003960: f023 0301 bic.w r3, r3, #1 + 8003964: 61d3 str r3, [r2, #28] + } + + /* Clear FLASH error pending bits */ + __HAL_FLASH_CLEAR_FLAG(flags); + 8003966: 687b ldr r3, [r7, #4] + 8003968: f240 1201 movw r2, #257 @ 0x101 + 800396c: 4293 cmp r3, r2 + 800396e: d106 bne.n 800397e + 8003970: 4b07 ldr r3, [pc, #28] @ (8003990 ) + 8003972: 69db ldr r3, [r3, #28] + 8003974: 4a06 ldr r2, [pc, #24] @ (8003990 ) + 8003976: f023 0301 bic.w r3, r3, #1 + 800397a: 61d3 str r3, [r2, #28] +} + 800397c: e002 b.n 8003984 + __HAL_FLASH_CLEAR_FLAG(flags); + 800397e: 4a04 ldr r2, [pc, #16] @ (8003990 ) + 8003980: 687b ldr r3, [r7, #4] + 8003982: 60d3 str r3, [r2, #12] +} + 8003984: bf00 nop + 8003986: 370c adds r7, #12 + 8003988: 46bd mov sp, r7 + 800398a: bc80 pop {r7} + 800398c: 4770 bx lr + 800398e: bf00 nop + 8003990: 40022000 .word 0x40022000 + 8003994: 20000768 .word 0x20000768 + +08003998 : + * (0xFFFFFFFF means that all the pages have been correctly erased) + * + * @retval HAL_StatusTypeDef HAL Status + */ +HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *PageError) +{ + 8003998: b580 push {r7, lr} + 800399a: b084 sub sp, #16 + 800399c: af00 add r7, sp, #0 + 800399e: 6078 str r0, [r7, #4] + 80039a0: 6039 str r1, [r7, #0] + HAL_StatusTypeDef status = HAL_ERROR; + 80039a2: 2301 movs r3, #1 + 80039a4: 73fb strb r3, [r7, #15] + uint32_t address = 0U; + 80039a6: 2300 movs r3, #0 + 80039a8: 60bb str r3, [r7, #8] + + /* Process Locked */ + __HAL_LOCK(&pFlash); + 80039aa: 4b2f ldr r3, [pc, #188] @ (8003a68 ) + 80039ac: 7e1b ldrb r3, [r3, #24] + 80039ae: 2b01 cmp r3, #1 + 80039b0: d101 bne.n 80039b6 + 80039b2: 2302 movs r3, #2 + 80039b4: e053 b.n 8003a5e + 80039b6: 4b2c ldr r3, [pc, #176] @ (8003a68 ) + 80039b8: 2201 movs r2, #1 + 80039ba: 761a strb r2, [r3, #24] + + /* Check the parameters */ + assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase)); + + if (pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE) + 80039bc: 687b ldr r3, [r7, #4] + 80039be: 681b ldr r3, [r3, #0] + 80039c0: 2b02 cmp r3, #2 + 80039c2: d116 bne.n 80039f2 + else +#endif /* FLASH_BANK2_END */ + { + /* Mass Erase requested for Bank1 */ + /* Wait for last operation to be completed */ + if (FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE) == HAL_OK) + 80039c4: f24c 3050 movw r0, #50000 @ 0xc350 + 80039c8: f7ff ff50 bl 800386c + 80039cc: 4603 mov r3, r0 + 80039ce: 2b00 cmp r3, #0 + 80039d0: d141 bne.n 8003a56 + { + /*Mass erase to be done*/ + FLASH_MassErase(FLASH_BANK_1); + 80039d2: 2001 movs r0, #1 + 80039d4: f000 f84c bl 8003a70 + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); + 80039d8: f24c 3050 movw r0, #50000 @ 0xc350 + 80039dc: f7ff ff46 bl 800386c + 80039e0: 4603 mov r3, r0 + 80039e2: 73fb strb r3, [r7, #15] + + /* If the erase operation is completed, disable the MER Bit */ + CLEAR_BIT(FLASH->CR, FLASH_CR_MER); + 80039e4: 4b21 ldr r3, [pc, #132] @ (8003a6c ) + 80039e6: 691b ldr r3, [r3, #16] + 80039e8: 4a20 ldr r2, [pc, #128] @ (8003a6c ) + 80039ea: f023 0304 bic.w r3, r3, #4 + 80039ee: 6113 str r3, [r2, #16] + 80039f0: e031 b.n 8003a56 + else +#endif /* FLASH_BANK2_END */ + { + /* Page Erase requested on address located on bank1 */ + /* Wait for last operation to be completed */ + if (FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE) == HAL_OK) + 80039f2: f24c 3050 movw r0, #50000 @ 0xc350 + 80039f6: f7ff ff39 bl 800386c + 80039fa: 4603 mov r3, r0 + 80039fc: 2b00 cmp r3, #0 + 80039fe: d12a bne.n 8003a56 + { + /*Initialization of PageError variable*/ + *PageError = 0xFFFFFFFFU; + 8003a00: 683b ldr r3, [r7, #0] + 8003a02: f04f 32ff mov.w r2, #4294967295 + 8003a06: 601a str r2, [r3, #0] + + /* Erase page by page to be done*/ + for(address = pEraseInit->PageAddress; + 8003a08: 687b ldr r3, [r7, #4] + 8003a0a: 689b ldr r3, [r3, #8] + 8003a0c: 60bb str r3, [r7, #8] + 8003a0e: e019 b.n 8003a44 + address < ((pEraseInit->NbPages * FLASH_PAGE_SIZE) + pEraseInit->PageAddress); + address += FLASH_PAGE_SIZE) + { + FLASH_PageErase(address); + 8003a10: 68b8 ldr r0, [r7, #8] + 8003a12: f000 f849 bl 8003aa8 + + /* Wait for last operation to be completed */ + status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE); + 8003a16: f24c 3050 movw r0, #50000 @ 0xc350 + 8003a1a: f7ff ff27 bl 800386c + 8003a1e: 4603 mov r3, r0 + 8003a20: 73fb strb r3, [r7, #15] + + /* If the erase operation is completed, disable the PER Bit */ + CLEAR_BIT(FLASH->CR, FLASH_CR_PER); + 8003a22: 4b12 ldr r3, [pc, #72] @ (8003a6c ) + 8003a24: 691b ldr r3, [r3, #16] + 8003a26: 4a11 ldr r2, [pc, #68] @ (8003a6c ) + 8003a28: f023 0302 bic.w r3, r3, #2 + 8003a2c: 6113 str r3, [r2, #16] + + if (status != HAL_OK) + 8003a2e: 7bfb ldrb r3, [r7, #15] + 8003a30: 2b00 cmp r3, #0 + 8003a32: d003 beq.n 8003a3c + { + /* In case of error, stop erase procedure and return the faulty address */ + *PageError = address; + 8003a34: 683b ldr r3, [r7, #0] + 8003a36: 68ba ldr r2, [r7, #8] + 8003a38: 601a str r2, [r3, #0] + break; + 8003a3a: e00c b.n 8003a56 + address += FLASH_PAGE_SIZE) + 8003a3c: 68bb ldr r3, [r7, #8] + 8003a3e: f503 6380 add.w r3, r3, #1024 @ 0x400 + 8003a42: 60bb str r3, [r7, #8] + address < ((pEraseInit->NbPages * FLASH_PAGE_SIZE) + pEraseInit->PageAddress); + 8003a44: 687b ldr r3, [r7, #4] + 8003a46: 68db ldr r3, [r3, #12] + 8003a48: 029a lsls r2, r3, #10 + 8003a4a: 687b ldr r3, [r7, #4] + 8003a4c: 689b ldr r3, [r3, #8] + 8003a4e: 4413 add r3, r2 + 8003a50: 68ba ldr r2, [r7, #8] + 8003a52: 429a cmp r2, r3 + 8003a54: d3dc bcc.n 8003a10 + } + } + } + + /* Process Unlocked */ + __HAL_UNLOCK(&pFlash); + 8003a56: 4b04 ldr r3, [pc, #16] @ (8003a68 ) + 8003a58: 2200 movs r2, #0 + 8003a5a: 761a strb r2, [r3, #24] + + return status; + 8003a5c: 7bfb ldrb r3, [r7, #15] +} + 8003a5e: 4618 mov r0, r3 + 8003a60: 3710 adds r7, #16 + 8003a62: 46bd mov sp, r7 + 8003a64: bd80 pop {r7, pc} + 8003a66: bf00 nop + 8003a68: 20000768 .word 0x20000768 + 8003a6c: 40022000 .word 0x40022000 + +08003a70 : + @endif + * + * @retval None + */ +static void FLASH_MassErase(uint32_t Banks) +{ + 8003a70: b480 push {r7} + 8003a72: b083 sub sp, #12 + 8003a74: af00 add r7, sp, #0 + 8003a76: 6078 str r0, [r7, #4] + /* Check the parameters */ + assert_param(IS_FLASH_BANK(Banks)); + + /* Clean the error context */ + pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; + 8003a78: 4b09 ldr r3, [pc, #36] @ (8003aa0 ) + 8003a7a: 2200 movs r2, #0 + 8003a7c: 61da str r2, [r3, #28] +#if !defined(FLASH_BANK2_END) + /* Prevent unused argument(s) compilation warning */ + UNUSED(Banks); +#endif /* FLASH_BANK2_END */ + /* Only bank1 will be erased*/ + SET_BIT(FLASH->CR, FLASH_CR_MER); + 8003a7e: 4b09 ldr r3, [pc, #36] @ (8003aa4 ) + 8003a80: 691b ldr r3, [r3, #16] + 8003a82: 4a08 ldr r2, [pc, #32] @ (8003aa4 ) + 8003a84: f043 0304 orr.w r3, r3, #4 + 8003a88: 6113 str r3, [r2, #16] + SET_BIT(FLASH->CR, FLASH_CR_STRT); + 8003a8a: 4b06 ldr r3, [pc, #24] @ (8003aa4 ) + 8003a8c: 691b ldr r3, [r3, #16] + 8003a8e: 4a05 ldr r2, [pc, #20] @ (8003aa4 ) + 8003a90: f043 0340 orr.w r3, r3, #64 @ 0x40 + 8003a94: 6113 str r3, [r2, #16] +#if defined(FLASH_BANK2_END) + } +#endif /* FLASH_BANK2_END */ +} + 8003a96: bf00 nop + 8003a98: 370c adds r7, #12 + 8003a9a: 46bd mov sp, r7 + 8003a9c: bc80 pop {r7} + 8003a9e: 4770 bx lr + 8003aa0: 20000768 .word 0x20000768 + 8003aa4: 40022000 .word 0x40022000 + +08003aa8 : + * The value of this parameter depend on device used within the same series + * + * @retval None + */ +void FLASH_PageErase(uint32_t PageAddress) +{ + 8003aa8: b480 push {r7} + 8003aaa: b083 sub sp, #12 + 8003aac: af00 add r7, sp, #0 + 8003aae: 6078 str r0, [r7, #4] + /* Clean the error context */ + pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; + 8003ab0: 4b0b ldr r3, [pc, #44] @ (8003ae0 ) + 8003ab2: 2200 movs r2, #0 + 8003ab4: 61da str r2, [r3, #28] + } + else + { +#endif /* FLASH_BANK2_END */ + /* Proceed to erase the page */ + SET_BIT(FLASH->CR, FLASH_CR_PER); + 8003ab6: 4b0b ldr r3, [pc, #44] @ (8003ae4 ) + 8003ab8: 691b ldr r3, [r3, #16] + 8003aba: 4a0a ldr r2, [pc, #40] @ (8003ae4 ) + 8003abc: f043 0302 orr.w r3, r3, #2 + 8003ac0: 6113 str r3, [r2, #16] + WRITE_REG(FLASH->AR, PageAddress); + 8003ac2: 4a08 ldr r2, [pc, #32] @ (8003ae4 ) + 8003ac4: 687b ldr r3, [r7, #4] + 8003ac6: 6153 str r3, [r2, #20] + SET_BIT(FLASH->CR, FLASH_CR_STRT); + 8003ac8: 4b06 ldr r3, [pc, #24] @ (8003ae4 ) + 8003aca: 691b ldr r3, [r3, #16] + 8003acc: 4a05 ldr r2, [pc, #20] @ (8003ae4 ) + 8003ace: f043 0340 orr.w r3, r3, #64 @ 0x40 + 8003ad2: 6113 str r3, [r2, #16] +#if defined(FLASH_BANK2_END) + } +#endif /* FLASH_BANK2_END */ +} + 8003ad4: bf00 nop + 8003ad6: 370c adds r7, #12 + 8003ad8: 46bd mov sp, r7 + 8003ada: bc80 pop {r7} + 8003adc: 4770 bx lr + 8003ade: bf00 nop + 8003ae0: 20000768 .word 0x20000768 + 8003ae4: 40022000 .word 0x40022000 + +08003ae8 : * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains * the configuration information for the specified GPIO peripheral. * @retval None */ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) { - 800386c: b480 push {r7} - 800386e: b08b sub sp, #44 @ 0x2c - 8003870: af00 add r7, sp, #0 - 8003872: 6078 str r0, [r7, #4] - 8003874: 6039 str r1, [r7, #0] + 8003ae8: b480 push {r7} + 8003aea: b08b sub sp, #44 @ 0x2c + 8003aec: af00 add r7, sp, #0 + 8003aee: 6078 str r0, [r7, #4] + 8003af0: 6039 str r1, [r7, #0] uint32_t position = 0x00u; - 8003876: 2300 movs r3, #0 - 8003878: 627b str r3, [r7, #36] @ 0x24 + 8003af2: 2300 movs r3, #0 + 8003af4: 627b str r3, [r7, #36] @ 0x24 uint32_t ioposition; uint32_t iocurrent; uint32_t temp; uint32_t config = 0x00u; - 800387a: 2300 movs r3, #0 - 800387c: 623b str r3, [r7, #32] + 8003af6: 2300 movs r3, #0 + 8003af8: 623b str r3, [r7, #32] assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); /* Configure the port pins */ while (((GPIO_Init->Pin) >> position) != 0x00u) - 800387e: e169 b.n 8003b54 + 8003afa: e169 b.n 8003dd0 { /* Get the IO position */ ioposition = (0x01uL << position); - 8003880: 2201 movs r2, #1 - 8003882: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003884: fa02 f303 lsl.w r3, r2, r3 - 8003888: 61fb str r3, [r7, #28] + 8003afc: 2201 movs r2, #1 + 8003afe: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003b00: fa02 f303 lsl.w r3, r2, r3 + 8003b04: 61fb str r3, [r7, #28] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; - 800388a: 683b ldr r3, [r7, #0] - 800388c: 681b ldr r3, [r3, #0] - 800388e: 69fa ldr r2, [r7, #28] - 8003890: 4013 ands r3, r2 - 8003892: 61bb str r3, [r7, #24] + 8003b06: 683b ldr r3, [r7, #0] + 8003b08: 681b ldr r3, [r3, #0] + 8003b0a: 69fa ldr r2, [r7, #28] + 8003b0c: 4013 ands r3, r2 + 8003b0e: 61bb str r3, [r7, #24] if (iocurrent == ioposition) - 8003894: 69ba ldr r2, [r7, #24] - 8003896: 69fb ldr r3, [r7, #28] - 8003898: 429a cmp r2, r3 - 800389a: f040 8158 bne.w 8003b4e + 8003b10: 69ba ldr r2, [r7, #24] + 8003b12: 69fb ldr r3, [r7, #28] + 8003b14: 429a cmp r2, r3 + 8003b16: f040 8158 bne.w 8003dca { /* Check the Alternate function parameters */ assert_param(IS_GPIO_AF_INSTANCE(GPIOx)); /* Based on the required mode, filling config variable with MODEy[1:0] and CNFy[3:2] corresponding bits */ switch (GPIO_Init->Mode) - 800389e: 683b ldr r3, [r7, #0] - 80038a0: 685b ldr r3, [r3, #4] - 80038a2: 4a9a ldr r2, [pc, #616] @ (8003b0c ) - 80038a4: 4293 cmp r3, r2 - 80038a6: d05e beq.n 8003966 - 80038a8: 4a98 ldr r2, [pc, #608] @ (8003b0c ) - 80038aa: 4293 cmp r3, r2 - 80038ac: d875 bhi.n 800399a - 80038ae: 4a98 ldr r2, [pc, #608] @ (8003b10 ) - 80038b0: 4293 cmp r3, r2 - 80038b2: d058 beq.n 8003966 - 80038b4: 4a96 ldr r2, [pc, #600] @ (8003b10 ) - 80038b6: 4293 cmp r3, r2 - 80038b8: d86f bhi.n 800399a - 80038ba: 4a96 ldr r2, [pc, #600] @ (8003b14 ) - 80038bc: 4293 cmp r3, r2 - 80038be: d052 beq.n 8003966 - 80038c0: 4a94 ldr r2, [pc, #592] @ (8003b14 ) - 80038c2: 4293 cmp r3, r2 - 80038c4: d869 bhi.n 800399a - 80038c6: 4a94 ldr r2, [pc, #592] @ (8003b18 ) - 80038c8: 4293 cmp r3, r2 - 80038ca: d04c beq.n 8003966 - 80038cc: 4a92 ldr r2, [pc, #584] @ (8003b18 ) - 80038ce: 4293 cmp r3, r2 - 80038d0: d863 bhi.n 800399a - 80038d2: 4a92 ldr r2, [pc, #584] @ (8003b1c ) - 80038d4: 4293 cmp r3, r2 - 80038d6: d046 beq.n 8003966 - 80038d8: 4a90 ldr r2, [pc, #576] @ (8003b1c ) - 80038da: 4293 cmp r3, r2 - 80038dc: d85d bhi.n 800399a - 80038de: 2b12 cmp r3, #18 - 80038e0: d82a bhi.n 8003938 - 80038e2: 2b12 cmp r3, #18 - 80038e4: d859 bhi.n 800399a - 80038e6: a201 add r2, pc, #4 @ (adr r2, 80038ec ) - 80038e8: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 80038ec: 08003967 .word 0x08003967 - 80038f0: 08003941 .word 0x08003941 - 80038f4: 08003953 .word 0x08003953 - 80038f8: 08003995 .word 0x08003995 - 80038fc: 0800399b .word 0x0800399b - 8003900: 0800399b .word 0x0800399b - 8003904: 0800399b .word 0x0800399b - 8003908: 0800399b .word 0x0800399b - 800390c: 0800399b .word 0x0800399b - 8003910: 0800399b .word 0x0800399b - 8003914: 0800399b .word 0x0800399b - 8003918: 0800399b .word 0x0800399b - 800391c: 0800399b .word 0x0800399b - 8003920: 0800399b .word 0x0800399b - 8003924: 0800399b .word 0x0800399b - 8003928: 0800399b .word 0x0800399b - 800392c: 0800399b .word 0x0800399b - 8003930: 08003949 .word 0x08003949 - 8003934: 0800395d .word 0x0800395d - 8003938: 4a79 ldr r2, [pc, #484] @ (8003b20 ) - 800393a: 4293 cmp r3, r2 - 800393c: d013 beq.n 8003966 + 8003b1a: 683b ldr r3, [r7, #0] + 8003b1c: 685b ldr r3, [r3, #4] + 8003b1e: 4a9a ldr r2, [pc, #616] @ (8003d88 ) + 8003b20: 4293 cmp r3, r2 + 8003b22: d05e beq.n 8003be2 + 8003b24: 4a98 ldr r2, [pc, #608] @ (8003d88 ) + 8003b26: 4293 cmp r3, r2 + 8003b28: d875 bhi.n 8003c16 + 8003b2a: 4a98 ldr r2, [pc, #608] @ (8003d8c ) + 8003b2c: 4293 cmp r3, r2 + 8003b2e: d058 beq.n 8003be2 + 8003b30: 4a96 ldr r2, [pc, #600] @ (8003d8c ) + 8003b32: 4293 cmp r3, r2 + 8003b34: d86f bhi.n 8003c16 + 8003b36: 4a96 ldr r2, [pc, #600] @ (8003d90 ) + 8003b38: 4293 cmp r3, r2 + 8003b3a: d052 beq.n 8003be2 + 8003b3c: 4a94 ldr r2, [pc, #592] @ (8003d90 ) + 8003b3e: 4293 cmp r3, r2 + 8003b40: d869 bhi.n 8003c16 + 8003b42: 4a94 ldr r2, [pc, #592] @ (8003d94 ) + 8003b44: 4293 cmp r3, r2 + 8003b46: d04c beq.n 8003be2 + 8003b48: 4a92 ldr r2, [pc, #584] @ (8003d94 ) + 8003b4a: 4293 cmp r3, r2 + 8003b4c: d863 bhi.n 8003c16 + 8003b4e: 4a92 ldr r2, [pc, #584] @ (8003d98 ) + 8003b50: 4293 cmp r3, r2 + 8003b52: d046 beq.n 8003be2 + 8003b54: 4a90 ldr r2, [pc, #576] @ (8003d98 ) + 8003b56: 4293 cmp r3, r2 + 8003b58: d85d bhi.n 8003c16 + 8003b5a: 2b12 cmp r3, #18 + 8003b5c: d82a bhi.n 8003bb4 + 8003b5e: 2b12 cmp r3, #18 + 8003b60: d859 bhi.n 8003c16 + 8003b62: a201 add r2, pc, #4 @ (adr r2, 8003b68 ) + 8003b64: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8003b68: 08003be3 .word 0x08003be3 + 8003b6c: 08003bbd .word 0x08003bbd + 8003b70: 08003bcf .word 0x08003bcf + 8003b74: 08003c11 .word 0x08003c11 + 8003b78: 08003c17 .word 0x08003c17 + 8003b7c: 08003c17 .word 0x08003c17 + 8003b80: 08003c17 .word 0x08003c17 + 8003b84: 08003c17 .word 0x08003c17 + 8003b88: 08003c17 .word 0x08003c17 + 8003b8c: 08003c17 .word 0x08003c17 + 8003b90: 08003c17 .word 0x08003c17 + 8003b94: 08003c17 .word 0x08003c17 + 8003b98: 08003c17 .word 0x08003c17 + 8003b9c: 08003c17 .word 0x08003c17 + 8003ba0: 08003c17 .word 0x08003c17 + 8003ba4: 08003c17 .word 0x08003c17 + 8003ba8: 08003c17 .word 0x08003c17 + 8003bac: 08003bc5 .word 0x08003bc5 + 8003bb0: 08003bd9 .word 0x08003bd9 + 8003bb4: 4a79 ldr r2, [pc, #484] @ (8003d9c ) + 8003bb6: 4293 cmp r3, r2 + 8003bb8: d013 beq.n 8003be2 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; break; /* Parameters are checked with assert_param */ default: break; - 800393e: e02c b.n 800399a + 8003bba: e02c b.n 8003c16 config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP; - 8003940: 683b ldr r3, [r7, #0] - 8003942: 68db ldr r3, [r3, #12] - 8003944: 623b str r3, [r7, #32] + 8003bbc: 683b ldr r3, [r7, #0] + 8003bbe: 68db ldr r3, [r3, #12] + 8003bc0: 623b str r3, [r7, #32] break; - 8003946: e029 b.n 800399c + 8003bc2: e029 b.n 8003c18 config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD; - 8003948: 683b ldr r3, [r7, #0] - 800394a: 68db ldr r3, [r3, #12] - 800394c: 3304 adds r3, #4 - 800394e: 623b str r3, [r7, #32] + 8003bc4: 683b ldr r3, [r7, #0] + 8003bc6: 68db ldr r3, [r3, #12] + 8003bc8: 3304 adds r3, #4 + 8003bca: 623b str r3, [r7, #32] break; - 8003950: e024 b.n 800399c + 8003bcc: e024 b.n 8003c18 config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP; - 8003952: 683b ldr r3, [r7, #0] - 8003954: 68db ldr r3, [r3, #12] - 8003956: 3308 adds r3, #8 - 8003958: 623b str r3, [r7, #32] + 8003bce: 683b ldr r3, [r7, #0] + 8003bd0: 68db ldr r3, [r3, #12] + 8003bd2: 3308 adds r3, #8 + 8003bd4: 623b str r3, [r7, #32] break; - 800395a: e01f b.n 800399c + 8003bd6: e01f b.n 8003c18 config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD; - 800395c: 683b ldr r3, [r7, #0] - 800395e: 68db ldr r3, [r3, #12] - 8003960: 330c adds r3, #12 - 8003962: 623b str r3, [r7, #32] + 8003bd8: 683b ldr r3, [r7, #0] + 8003bda: 68db ldr r3, [r3, #12] + 8003bdc: 330c adds r3, #12 + 8003bde: 623b str r3, [r7, #32] break; - 8003964: e01a b.n 800399c + 8003be0: e01a b.n 8003c18 if (GPIO_Init->Pull == GPIO_NOPULL) - 8003966: 683b ldr r3, [r7, #0] - 8003968: 689b ldr r3, [r3, #8] - 800396a: 2b00 cmp r3, #0 - 800396c: d102 bne.n 8003974 + 8003be2: 683b ldr r3, [r7, #0] + 8003be4: 689b ldr r3, [r3, #8] + 8003be6: 2b00 cmp r3, #0 + 8003be8: d102 bne.n 8003bf0 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING; - 800396e: 2304 movs r3, #4 - 8003970: 623b str r3, [r7, #32] + 8003bea: 2304 movs r3, #4 + 8003bec: 623b str r3, [r7, #32] break; - 8003972: e013 b.n 800399c + 8003bee: e013 b.n 8003c18 else if (GPIO_Init->Pull == GPIO_PULLUP) - 8003974: 683b ldr r3, [r7, #0] - 8003976: 689b ldr r3, [r3, #8] - 8003978: 2b01 cmp r3, #1 - 800397a: d105 bne.n 8003988 + 8003bf0: 683b ldr r3, [r7, #0] + 8003bf2: 689b ldr r3, [r3, #8] + 8003bf4: 2b01 cmp r3, #1 + 8003bf6: d105 bne.n 8003c04 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; - 800397c: 2308 movs r3, #8 - 800397e: 623b str r3, [r7, #32] + 8003bf8: 2308 movs r3, #8 + 8003bfa: 623b str r3, [r7, #32] GPIOx->BSRR = ioposition; - 8003980: 687b ldr r3, [r7, #4] - 8003982: 69fa ldr r2, [r7, #28] - 8003984: 611a str r2, [r3, #16] + 8003bfc: 687b ldr r3, [r7, #4] + 8003bfe: 69fa ldr r2, [r7, #28] + 8003c00: 611a str r2, [r3, #16] break; - 8003986: e009 b.n 800399c + 8003c02: e009 b.n 8003c18 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; - 8003988: 2308 movs r3, #8 - 800398a: 623b str r3, [r7, #32] + 8003c04: 2308 movs r3, #8 + 8003c06: 623b str r3, [r7, #32] GPIOx->BRR = ioposition; - 800398c: 687b ldr r3, [r7, #4] - 800398e: 69fa ldr r2, [r7, #28] - 8003990: 615a str r2, [r3, #20] + 8003c08: 687b ldr r3, [r7, #4] + 8003c0a: 69fa ldr r2, [r7, #28] + 8003c0c: 615a str r2, [r3, #20] break; - 8003992: e003 b.n 800399c + 8003c0e: e003 b.n 8003c18 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; - 8003994: 2300 movs r3, #0 - 8003996: 623b str r3, [r7, #32] + 8003c10: 2300 movs r3, #0 + 8003c12: 623b str r3, [r7, #32] break; - 8003998: e000 b.n 800399c + 8003c14: e000 b.n 8003c18 break; - 800399a: bf00 nop + 8003c16: bf00 nop } /* Check if the current bit belongs to first half or last half of the pin count number in order to address CRH or CRL register*/ configregister = (iocurrent < GPIO_PIN_8) ? &GPIOx->CRL : &GPIOx->CRH; - 800399c: 69bb ldr r3, [r7, #24] - 800399e: 2bff cmp r3, #255 @ 0xff - 80039a0: d801 bhi.n 80039a6 - 80039a2: 687b ldr r3, [r7, #4] - 80039a4: e001 b.n 80039aa - 80039a6: 687b ldr r3, [r7, #4] - 80039a8: 3304 adds r3, #4 - 80039aa: 617b str r3, [r7, #20] + 8003c18: 69bb ldr r3, [r7, #24] + 8003c1a: 2bff cmp r3, #255 @ 0xff + 8003c1c: d801 bhi.n 8003c22 + 8003c1e: 687b ldr r3, [r7, #4] + 8003c20: e001 b.n 8003c26 + 8003c22: 687b ldr r3, [r7, #4] + 8003c24: 3304 adds r3, #4 + 8003c26: 617b str r3, [r7, #20] registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); - 80039ac: 69bb ldr r3, [r7, #24] - 80039ae: 2bff cmp r3, #255 @ 0xff - 80039b0: d802 bhi.n 80039b8 - 80039b2: 6a7b ldr r3, [r7, #36] @ 0x24 - 80039b4: 009b lsls r3, r3, #2 - 80039b6: e002 b.n 80039be - 80039b8: 6a7b ldr r3, [r7, #36] @ 0x24 - 80039ba: 3b08 subs r3, #8 - 80039bc: 009b lsls r3, r3, #2 - 80039be: 613b str r3, [r7, #16] + 8003c28: 69bb ldr r3, [r7, #24] + 8003c2a: 2bff cmp r3, #255 @ 0xff + 8003c2c: d802 bhi.n 8003c34 + 8003c2e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003c30: 009b lsls r3, r3, #2 + 8003c32: e002 b.n 8003c3a + 8003c34: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003c36: 3b08 subs r3, #8 + 8003c38: 009b lsls r3, r3, #2 + 8003c3a: 613b str r3, [r7, #16] /* Apply the new configuration of the pin to the register */ MODIFY_REG((*configregister), ((GPIO_CRL_MODE0 | GPIO_CRL_CNF0) << registeroffset), (config << registeroffset)); - 80039c0: 697b ldr r3, [r7, #20] - 80039c2: 681a ldr r2, [r3, #0] - 80039c4: 210f movs r1, #15 - 80039c6: 693b ldr r3, [r7, #16] - 80039c8: fa01 f303 lsl.w r3, r1, r3 - 80039cc: 43db mvns r3, r3 - 80039ce: 401a ands r2, r3 - 80039d0: 6a39 ldr r1, [r7, #32] - 80039d2: 693b ldr r3, [r7, #16] - 80039d4: fa01 f303 lsl.w r3, r1, r3 - 80039d8: 431a orrs r2, r3 - 80039da: 697b ldr r3, [r7, #20] - 80039dc: 601a str r2, [r3, #0] + 8003c3c: 697b ldr r3, [r7, #20] + 8003c3e: 681a ldr r2, [r3, #0] + 8003c40: 210f movs r1, #15 + 8003c42: 693b ldr r3, [r7, #16] + 8003c44: fa01 f303 lsl.w r3, r1, r3 + 8003c48: 43db mvns r3, r3 + 8003c4a: 401a ands r2, r3 + 8003c4c: 6a39 ldr r1, [r7, #32] + 8003c4e: 693b ldr r3, [r7, #16] + 8003c50: fa01 f303 lsl.w r3, r1, r3 + 8003c54: 431a orrs r2, r3 + 8003c56: 697b ldr r3, [r7, #20] + 8003c58: 601a str r2, [r3, #0] /*--------------------- EXTI Mode Configuration ------------------------*/ /* Configure the External Interrupt or event for the current IO */ if ((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE) - 80039de: 683b ldr r3, [r7, #0] - 80039e0: 685b ldr r3, [r3, #4] - 80039e2: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 80039e6: 2b00 cmp r3, #0 - 80039e8: f000 80b1 beq.w 8003b4e + 8003c5a: 683b ldr r3, [r7, #0] + 8003c5c: 685b ldr r3, [r3, #4] + 8003c5e: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8003c62: 2b00 cmp r3, #0 + 8003c64: f000 80b1 beq.w 8003dca { /* Enable AFIO Clock */ __HAL_RCC_AFIO_CLK_ENABLE(); - 80039ec: 4b4d ldr r3, [pc, #308] @ (8003b24 ) - 80039ee: 699b ldr r3, [r3, #24] - 80039f0: 4a4c ldr r2, [pc, #304] @ (8003b24 ) - 80039f2: f043 0301 orr.w r3, r3, #1 - 80039f6: 6193 str r3, [r2, #24] - 80039f8: 4b4a ldr r3, [pc, #296] @ (8003b24 ) - 80039fa: 699b ldr r3, [r3, #24] - 80039fc: f003 0301 and.w r3, r3, #1 - 8003a00: 60bb str r3, [r7, #8] - 8003a02: 68bb ldr r3, [r7, #8] + 8003c68: 4b4d ldr r3, [pc, #308] @ (8003da0 ) + 8003c6a: 699b ldr r3, [r3, #24] + 8003c6c: 4a4c ldr r2, [pc, #304] @ (8003da0 ) + 8003c6e: f043 0301 orr.w r3, r3, #1 + 8003c72: 6193 str r3, [r2, #24] + 8003c74: 4b4a ldr r3, [pc, #296] @ (8003da0 ) + 8003c76: 699b ldr r3, [r3, #24] + 8003c78: f003 0301 and.w r3, r3, #1 + 8003c7c: 60bb str r3, [r7, #8] + 8003c7e: 68bb ldr r3, [r7, #8] temp = AFIO->EXTICR[position >> 2u]; - 8003a04: 4a48 ldr r2, [pc, #288] @ (8003b28 ) - 8003a06: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003a08: 089b lsrs r3, r3, #2 - 8003a0a: 3302 adds r3, #2 - 8003a0c: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8003a10: 60fb str r3, [r7, #12] + 8003c80: 4a48 ldr r2, [pc, #288] @ (8003da4 ) + 8003c82: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003c84: 089b lsrs r3, r3, #2 + 8003c86: 3302 adds r3, #2 + 8003c88: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8003c8c: 60fb str r3, [r7, #12] CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u))); - 8003a12: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003a14: f003 0303 and.w r3, r3, #3 - 8003a18: 009b lsls r3, r3, #2 - 8003a1a: 220f movs r2, #15 - 8003a1c: fa02 f303 lsl.w r3, r2, r3 - 8003a20: 43db mvns r3, r3 - 8003a22: 68fa ldr r2, [r7, #12] - 8003a24: 4013 ands r3, r2 - 8003a26: 60fb str r3, [r7, #12] + 8003c8e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003c90: f003 0303 and.w r3, r3, #3 + 8003c94: 009b lsls r3, r3, #2 + 8003c96: 220f movs r2, #15 + 8003c98: fa02 f303 lsl.w r3, r2, r3 + 8003c9c: 43db mvns r3, r3 + 8003c9e: 68fa ldr r2, [r7, #12] + 8003ca0: 4013 ands r3, r2 + 8003ca2: 60fb str r3, [r7, #12] SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u))); - 8003a28: 687b ldr r3, [r7, #4] - 8003a2a: 4a40 ldr r2, [pc, #256] @ (8003b2c ) - 8003a2c: 4293 cmp r3, r2 - 8003a2e: d013 beq.n 8003a58 - 8003a30: 687b ldr r3, [r7, #4] - 8003a32: 4a3f ldr r2, [pc, #252] @ (8003b30 ) - 8003a34: 4293 cmp r3, r2 - 8003a36: d00d beq.n 8003a54 - 8003a38: 687b ldr r3, [r7, #4] - 8003a3a: 4a3e ldr r2, [pc, #248] @ (8003b34 ) - 8003a3c: 4293 cmp r3, r2 - 8003a3e: d007 beq.n 8003a50 - 8003a40: 687b ldr r3, [r7, #4] - 8003a42: 4a3d ldr r2, [pc, #244] @ (8003b38 ) - 8003a44: 4293 cmp r3, r2 - 8003a46: d101 bne.n 8003a4c - 8003a48: 2303 movs r3, #3 - 8003a4a: e006 b.n 8003a5a - 8003a4c: 2304 movs r3, #4 - 8003a4e: e004 b.n 8003a5a - 8003a50: 2302 movs r3, #2 - 8003a52: e002 b.n 8003a5a - 8003a54: 2301 movs r3, #1 - 8003a56: e000 b.n 8003a5a - 8003a58: 2300 movs r3, #0 - 8003a5a: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003a5c: f002 0203 and.w r2, r2, #3 - 8003a60: 0092 lsls r2, r2, #2 - 8003a62: 4093 lsls r3, r2 - 8003a64: 68fa ldr r2, [r7, #12] - 8003a66: 4313 orrs r3, r2 - 8003a68: 60fb str r3, [r7, #12] + 8003ca4: 687b ldr r3, [r7, #4] + 8003ca6: 4a40 ldr r2, [pc, #256] @ (8003da8 ) + 8003ca8: 4293 cmp r3, r2 + 8003caa: d013 beq.n 8003cd4 + 8003cac: 687b ldr r3, [r7, #4] + 8003cae: 4a3f ldr r2, [pc, #252] @ (8003dac ) + 8003cb0: 4293 cmp r3, r2 + 8003cb2: d00d beq.n 8003cd0 + 8003cb4: 687b ldr r3, [r7, #4] + 8003cb6: 4a3e ldr r2, [pc, #248] @ (8003db0 ) + 8003cb8: 4293 cmp r3, r2 + 8003cba: d007 beq.n 8003ccc + 8003cbc: 687b ldr r3, [r7, #4] + 8003cbe: 4a3d ldr r2, [pc, #244] @ (8003db4 ) + 8003cc0: 4293 cmp r3, r2 + 8003cc2: d101 bne.n 8003cc8 + 8003cc4: 2303 movs r3, #3 + 8003cc6: e006 b.n 8003cd6 + 8003cc8: 2304 movs r3, #4 + 8003cca: e004 b.n 8003cd6 + 8003ccc: 2302 movs r3, #2 + 8003cce: e002 b.n 8003cd6 + 8003cd0: 2301 movs r3, #1 + 8003cd2: e000 b.n 8003cd6 + 8003cd4: 2300 movs r3, #0 + 8003cd6: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003cd8: f002 0203 and.w r2, r2, #3 + 8003cdc: 0092 lsls r2, r2, #2 + 8003cde: 4093 lsls r3, r2 + 8003ce0: 68fa ldr r2, [r7, #12] + 8003ce2: 4313 orrs r3, r2 + 8003ce4: 60fb str r3, [r7, #12] AFIO->EXTICR[position >> 2u] = temp; - 8003a6a: 492f ldr r1, [pc, #188] @ (8003b28 ) - 8003a6c: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003a6e: 089b lsrs r3, r3, #2 - 8003a70: 3302 adds r3, #2 - 8003a72: 68fa ldr r2, [r7, #12] - 8003a74: f841 2023 str.w r2, [r1, r3, lsl #2] + 8003ce6: 492f ldr r1, [pc, #188] @ (8003da4 ) + 8003ce8: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003cea: 089b lsrs r3, r3, #2 + 8003cec: 3302 adds r3, #2 + 8003cee: 68fa ldr r2, [r7, #12] + 8003cf0: f841 2023 str.w r2, [r1, r3, lsl #2] /* Enable or disable the rising trigger */ if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) - 8003a78: 683b ldr r3, [r7, #0] - 8003a7a: 685b ldr r3, [r3, #4] - 8003a7c: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 8003a80: 2b00 cmp r3, #0 - 8003a82: d006 beq.n 8003a92 + 8003cf4: 683b ldr r3, [r7, #0] + 8003cf6: 685b ldr r3, [r3, #4] + 8003cf8: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 8003cfc: 2b00 cmp r3, #0 + 8003cfe: d006 beq.n 8003d0e { SET_BIT(EXTI->RTSR, iocurrent); - 8003a84: 4b2d ldr r3, [pc, #180] @ (8003b3c ) - 8003a86: 689a ldr r2, [r3, #8] - 8003a88: 492c ldr r1, [pc, #176] @ (8003b3c ) - 8003a8a: 69bb ldr r3, [r7, #24] - 8003a8c: 4313 orrs r3, r2 - 8003a8e: 608b str r3, [r1, #8] - 8003a90: e006 b.n 8003aa0 + 8003d00: 4b2d ldr r3, [pc, #180] @ (8003db8 ) + 8003d02: 689a ldr r2, [r3, #8] + 8003d04: 492c ldr r1, [pc, #176] @ (8003db8 ) + 8003d06: 69bb ldr r3, [r7, #24] + 8003d08: 4313 orrs r3, r2 + 8003d0a: 608b str r3, [r1, #8] + 8003d0c: e006 b.n 8003d1c } else { CLEAR_BIT(EXTI->RTSR, iocurrent); - 8003a92: 4b2a ldr r3, [pc, #168] @ (8003b3c ) - 8003a94: 689a ldr r2, [r3, #8] - 8003a96: 69bb ldr r3, [r7, #24] - 8003a98: 43db mvns r3, r3 - 8003a9a: 4928 ldr r1, [pc, #160] @ (8003b3c ) - 8003a9c: 4013 ands r3, r2 - 8003a9e: 608b str r3, [r1, #8] + 8003d0e: 4b2a ldr r3, [pc, #168] @ (8003db8 ) + 8003d10: 689a ldr r2, [r3, #8] + 8003d12: 69bb ldr r3, [r7, #24] + 8003d14: 43db mvns r3, r3 + 8003d16: 4928 ldr r1, [pc, #160] @ (8003db8 ) + 8003d18: 4013 ands r3, r2 + 8003d1a: 608b str r3, [r1, #8] } /* Enable or disable the falling trigger */ if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) - 8003aa0: 683b ldr r3, [r7, #0] - 8003aa2: 685b ldr r3, [r3, #4] - 8003aa4: f403 1300 and.w r3, r3, #2097152 @ 0x200000 - 8003aa8: 2b00 cmp r3, #0 - 8003aaa: d006 beq.n 8003aba + 8003d1c: 683b ldr r3, [r7, #0] + 8003d1e: 685b ldr r3, [r3, #4] + 8003d20: f403 1300 and.w r3, r3, #2097152 @ 0x200000 + 8003d24: 2b00 cmp r3, #0 + 8003d26: d006 beq.n 8003d36 { SET_BIT(EXTI->FTSR, iocurrent); - 8003aac: 4b23 ldr r3, [pc, #140] @ (8003b3c ) - 8003aae: 68da ldr r2, [r3, #12] - 8003ab0: 4922 ldr r1, [pc, #136] @ (8003b3c ) - 8003ab2: 69bb ldr r3, [r7, #24] - 8003ab4: 4313 orrs r3, r2 - 8003ab6: 60cb str r3, [r1, #12] - 8003ab8: e006 b.n 8003ac8 + 8003d28: 4b23 ldr r3, [pc, #140] @ (8003db8 ) + 8003d2a: 68da ldr r2, [r3, #12] + 8003d2c: 4922 ldr r1, [pc, #136] @ (8003db8 ) + 8003d2e: 69bb ldr r3, [r7, #24] + 8003d30: 4313 orrs r3, r2 + 8003d32: 60cb str r3, [r1, #12] + 8003d34: e006 b.n 8003d44 } else { CLEAR_BIT(EXTI->FTSR, iocurrent); - 8003aba: 4b20 ldr r3, [pc, #128] @ (8003b3c ) - 8003abc: 68da ldr r2, [r3, #12] - 8003abe: 69bb ldr r3, [r7, #24] - 8003ac0: 43db mvns r3, r3 - 8003ac2: 491e ldr r1, [pc, #120] @ (8003b3c ) - 8003ac4: 4013 ands r3, r2 - 8003ac6: 60cb str r3, [r1, #12] + 8003d36: 4b20 ldr r3, [pc, #128] @ (8003db8 ) + 8003d38: 68da ldr r2, [r3, #12] + 8003d3a: 69bb ldr r3, [r7, #24] + 8003d3c: 43db mvns r3, r3 + 8003d3e: 491e ldr r1, [pc, #120] @ (8003db8 ) + 8003d40: 4013 ands r3, r2 + 8003d42: 60cb str r3, [r1, #12] } /* Configure the event mask */ if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) - 8003ac8: 683b ldr r3, [r7, #0] - 8003aca: 685b ldr r3, [r3, #4] - 8003acc: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8003ad0: 2b00 cmp r3, #0 - 8003ad2: d006 beq.n 8003ae2 + 8003d44: 683b ldr r3, [r7, #0] + 8003d46: 685b ldr r3, [r3, #4] + 8003d48: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8003d4c: 2b00 cmp r3, #0 + 8003d4e: d006 beq.n 8003d5e { SET_BIT(EXTI->EMR, iocurrent); - 8003ad4: 4b19 ldr r3, [pc, #100] @ (8003b3c ) - 8003ad6: 685a ldr r2, [r3, #4] - 8003ad8: 4918 ldr r1, [pc, #96] @ (8003b3c ) - 8003ada: 69bb ldr r3, [r7, #24] - 8003adc: 4313 orrs r3, r2 - 8003ade: 604b str r3, [r1, #4] - 8003ae0: e006 b.n 8003af0 + 8003d50: 4b19 ldr r3, [pc, #100] @ (8003db8 ) + 8003d52: 685a ldr r2, [r3, #4] + 8003d54: 4918 ldr r1, [pc, #96] @ (8003db8 ) + 8003d56: 69bb ldr r3, [r7, #24] + 8003d58: 4313 orrs r3, r2 + 8003d5a: 604b str r3, [r1, #4] + 8003d5c: e006 b.n 8003d6c } else { CLEAR_BIT(EXTI->EMR, iocurrent); - 8003ae2: 4b16 ldr r3, [pc, #88] @ (8003b3c ) - 8003ae4: 685a ldr r2, [r3, #4] - 8003ae6: 69bb ldr r3, [r7, #24] - 8003ae8: 43db mvns r3, r3 - 8003aea: 4914 ldr r1, [pc, #80] @ (8003b3c ) - 8003aec: 4013 ands r3, r2 - 8003aee: 604b str r3, [r1, #4] + 8003d5e: 4b16 ldr r3, [pc, #88] @ (8003db8 ) + 8003d60: 685a ldr r2, [r3, #4] + 8003d62: 69bb ldr r3, [r7, #24] + 8003d64: 43db mvns r3, r3 + 8003d66: 4914 ldr r1, [pc, #80] @ (8003db8 ) + 8003d68: 4013 ands r3, r2 + 8003d6a: 604b str r3, [r1, #4] } /* Configure the interrupt mask */ if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) - 8003af0: 683b ldr r3, [r7, #0] - 8003af2: 685b ldr r3, [r3, #4] - 8003af4: f403 3380 and.w r3, r3, #65536 @ 0x10000 - 8003af8: 2b00 cmp r3, #0 - 8003afa: d021 beq.n 8003b40 + 8003d6c: 683b ldr r3, [r7, #0] + 8003d6e: 685b ldr r3, [r3, #4] + 8003d70: f403 3380 and.w r3, r3, #65536 @ 0x10000 + 8003d74: 2b00 cmp r3, #0 + 8003d76: d021 beq.n 8003dbc { SET_BIT(EXTI->IMR, iocurrent); - 8003afc: 4b0f ldr r3, [pc, #60] @ (8003b3c ) - 8003afe: 681a ldr r2, [r3, #0] - 8003b00: 490e ldr r1, [pc, #56] @ (8003b3c ) - 8003b02: 69bb ldr r3, [r7, #24] - 8003b04: 4313 orrs r3, r2 - 8003b06: 600b str r3, [r1, #0] - 8003b08: e021 b.n 8003b4e - 8003b0a: bf00 nop - 8003b0c: 10320000 .word 0x10320000 - 8003b10: 10310000 .word 0x10310000 - 8003b14: 10220000 .word 0x10220000 - 8003b18: 10210000 .word 0x10210000 - 8003b1c: 10120000 .word 0x10120000 - 8003b20: 10110000 .word 0x10110000 - 8003b24: 40021000 .word 0x40021000 - 8003b28: 40010000 .word 0x40010000 - 8003b2c: 40010800 .word 0x40010800 - 8003b30: 40010c00 .word 0x40010c00 - 8003b34: 40011000 .word 0x40011000 - 8003b38: 40011400 .word 0x40011400 - 8003b3c: 40010400 .word 0x40010400 + 8003d78: 4b0f ldr r3, [pc, #60] @ (8003db8 ) + 8003d7a: 681a ldr r2, [r3, #0] + 8003d7c: 490e ldr r1, [pc, #56] @ (8003db8 ) + 8003d7e: 69bb ldr r3, [r7, #24] + 8003d80: 4313 orrs r3, r2 + 8003d82: 600b str r3, [r1, #0] + 8003d84: e021 b.n 8003dca + 8003d86: bf00 nop + 8003d88: 10320000 .word 0x10320000 + 8003d8c: 10310000 .word 0x10310000 + 8003d90: 10220000 .word 0x10220000 + 8003d94: 10210000 .word 0x10210000 + 8003d98: 10120000 .word 0x10120000 + 8003d9c: 10110000 .word 0x10110000 + 8003da0: 40021000 .word 0x40021000 + 8003da4: 40010000 .word 0x40010000 + 8003da8: 40010800 .word 0x40010800 + 8003dac: 40010c00 .word 0x40010c00 + 8003db0: 40011000 .word 0x40011000 + 8003db4: 40011400 .word 0x40011400 + 8003db8: 40010400 .word 0x40010400 } else { CLEAR_BIT(EXTI->IMR, iocurrent); - 8003b40: 4b0b ldr r3, [pc, #44] @ (8003b70 ) - 8003b42: 681a ldr r2, [r3, #0] - 8003b44: 69bb ldr r3, [r7, #24] - 8003b46: 43db mvns r3, r3 - 8003b48: 4909 ldr r1, [pc, #36] @ (8003b70 ) - 8003b4a: 4013 ands r3, r2 - 8003b4c: 600b str r3, [r1, #0] + 8003dbc: 4b0b ldr r3, [pc, #44] @ (8003dec ) + 8003dbe: 681a ldr r2, [r3, #0] + 8003dc0: 69bb ldr r3, [r7, #24] + 8003dc2: 43db mvns r3, r3 + 8003dc4: 4909 ldr r1, [pc, #36] @ (8003dec ) + 8003dc6: 4013 ands r3, r2 + 8003dc8: 600b str r3, [r1, #0] } } } position++; - 8003b4e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003b50: 3301 adds r3, #1 - 8003b52: 627b str r3, [r7, #36] @ 0x24 + 8003dca: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003dcc: 3301 adds r3, #1 + 8003dce: 627b str r3, [r7, #36] @ 0x24 while (((GPIO_Init->Pin) >> position) != 0x00u) - 8003b54: 683b ldr r3, [r7, #0] - 8003b56: 681a ldr r2, [r3, #0] - 8003b58: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003b5a: fa22 f303 lsr.w r3, r2, r3 - 8003b5e: 2b00 cmp r3, #0 - 8003b60: f47f ae8e bne.w 8003880 + 8003dd0: 683b ldr r3, [r7, #0] + 8003dd2: 681a ldr r2, [r3, #0] + 8003dd4: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003dd6: fa22 f303 lsr.w r3, r2, r3 + 8003dda: 2b00 cmp r3, #0 + 8003ddc: f47f ae8e bne.w 8003afc } } - 8003b64: bf00 nop - 8003b66: bf00 nop - 8003b68: 372c adds r7, #44 @ 0x2c - 8003b6a: 46bd mov sp, r7 - 8003b6c: bc80 pop {r7} - 8003b6e: 4770 bx lr - 8003b70: 40010400 .word 0x40010400 + 8003de0: bf00 nop + 8003de2: bf00 nop + 8003de4: 372c adds r7, #44 @ 0x2c + 8003de6: 46bd mov sp, r7 + 8003de8: bc80 pop {r7} + 8003dea: 4770 bx lr + 8003dec: 40010400 .word 0x40010400 -08003b74 : +08003df0 : * @param GPIO_Pin: specifies the port bit to read. * This parameter can be GPIO_PIN_x where x can be (0..15). * @retval The input port pin value. */ GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) { - 8003b74: b480 push {r7} - 8003b76: b085 sub sp, #20 - 8003b78: af00 add r7, sp, #0 - 8003b7a: 6078 str r0, [r7, #4] - 8003b7c: 460b mov r3, r1 - 8003b7e: 807b strh r3, [r7, #2] + 8003df0: b480 push {r7} + 8003df2: b085 sub sp, #20 + 8003df4: af00 add r7, sp, #0 + 8003df6: 6078 str r0, [r7, #4] + 8003df8: 460b mov r3, r1 + 8003dfa: 807b strh r3, [r7, #2] GPIO_PinState bitstatus; /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); if ((GPIOx->IDR & GPIO_Pin) != (uint32_t)GPIO_PIN_RESET) - 8003b80: 687b ldr r3, [r7, #4] - 8003b82: 689a ldr r2, [r3, #8] - 8003b84: 887b ldrh r3, [r7, #2] - 8003b86: 4013 ands r3, r2 - 8003b88: 2b00 cmp r3, #0 - 8003b8a: d002 beq.n 8003b92 + 8003dfc: 687b ldr r3, [r7, #4] + 8003dfe: 689a ldr r2, [r3, #8] + 8003e00: 887b ldrh r3, [r7, #2] + 8003e02: 4013 ands r3, r2 + 8003e04: 2b00 cmp r3, #0 + 8003e06: d002 beq.n 8003e0e { bitstatus = GPIO_PIN_SET; - 8003b8c: 2301 movs r3, #1 - 8003b8e: 73fb strb r3, [r7, #15] - 8003b90: e001 b.n 8003b96 + 8003e08: 2301 movs r3, #1 + 8003e0a: 73fb strb r3, [r7, #15] + 8003e0c: e001 b.n 8003e12 } else { bitstatus = GPIO_PIN_RESET; - 8003b92: 2300 movs r3, #0 - 8003b94: 73fb strb r3, [r7, #15] + 8003e0e: 2300 movs r3, #0 + 8003e10: 73fb strb r3, [r7, #15] } return bitstatus; - 8003b96: 7bfb ldrb r3, [r7, #15] + 8003e12: 7bfb ldrb r3, [r7, #15] } - 8003b98: 4618 mov r0, r3 - 8003b9a: 3714 adds r7, #20 - 8003b9c: 46bd mov sp, r7 - 8003b9e: bc80 pop {r7} - 8003ba0: 4770 bx lr + 8003e14: 4618 mov r0, r3 + 8003e16: 3714 adds r7, #20 + 8003e18: 46bd mov sp, r7 + 8003e1a: bc80 pop {r7} + 8003e1c: 4770 bx lr -08003ba2 : +08003e1e : * @arg GPIO_PIN_RESET: to clear the port pin * @arg GPIO_PIN_SET: to set the port pin * @retval None */ void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState) { - 8003ba2: b480 push {r7} - 8003ba4: b083 sub sp, #12 - 8003ba6: af00 add r7, sp, #0 - 8003ba8: 6078 str r0, [r7, #4] - 8003baa: 460b mov r3, r1 - 8003bac: 807b strh r3, [r7, #2] - 8003bae: 4613 mov r3, r2 - 8003bb0: 707b strb r3, [r7, #1] + 8003e1e: b480 push {r7} + 8003e20: b083 sub sp, #12 + 8003e22: af00 add r7, sp, #0 + 8003e24: 6078 str r0, [r7, #4] + 8003e26: 460b mov r3, r1 + 8003e28: 807b strh r3, [r7, #2] + 8003e2a: 4613 mov r3, r2 + 8003e2c: 707b strb r3, [r7, #1] /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); assert_param(IS_GPIO_PIN_ACTION(PinState)); if (PinState != GPIO_PIN_RESET) - 8003bb2: 787b ldrb r3, [r7, #1] - 8003bb4: 2b00 cmp r3, #0 - 8003bb6: d003 beq.n 8003bc0 + 8003e2e: 787b ldrb r3, [r7, #1] + 8003e30: 2b00 cmp r3, #0 + 8003e32: d003 beq.n 8003e3c { GPIOx->BSRR = GPIO_Pin; - 8003bb8: 887a ldrh r2, [r7, #2] - 8003bba: 687b ldr r3, [r7, #4] - 8003bbc: 611a str r2, [r3, #16] + 8003e34: 887a ldrh r2, [r7, #2] + 8003e36: 687b ldr r3, [r7, #4] + 8003e38: 611a str r2, [r3, #16] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; } } - 8003bbe: e003 b.n 8003bc8 + 8003e3a: e003 b.n 8003e44 GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; - 8003bc0: 887b ldrh r3, [r7, #2] - 8003bc2: 041a lsls r2, r3, #16 - 8003bc4: 687b ldr r3, [r7, #4] - 8003bc6: 611a str r2, [r3, #16] + 8003e3c: 887b ldrh r3, [r7, #2] + 8003e3e: 041a lsls r2, r3, #16 + 8003e40: 687b ldr r3, [r7, #4] + 8003e42: 611a str r2, [r3, #16] } - 8003bc8: bf00 nop - 8003bca: 370c adds r7, #12 - 8003bcc: 46bd mov sp, r7 - 8003bce: bc80 pop {r7} - 8003bd0: 4770 bx lr + 8003e44: bf00 nop + 8003e46: 370c adds r7, #12 + 8003e48: 46bd mov sp, r7 + 8003e4a: bc80 pop {r7} + 8003e4c: 4770 bx lr -08003bd2 : +08003e4e : * @param GPIOx: where x can be (A..G depending on device used) to select the GPIO peripheral * @param GPIO_Pin: Specifies the pins to be toggled. * @retval None */ void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) { - 8003bd2: b480 push {r7} - 8003bd4: b085 sub sp, #20 - 8003bd6: af00 add r7, sp, #0 - 8003bd8: 6078 str r0, [r7, #4] - 8003bda: 460b mov r3, r1 - 8003bdc: 807b strh r3, [r7, #2] + 8003e4e: b480 push {r7} + 8003e50: b085 sub sp, #20 + 8003e52: af00 add r7, sp, #0 + 8003e54: 6078 str r0, [r7, #4] + 8003e56: 460b mov r3, r1 + 8003e58: 807b strh r3, [r7, #2] /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); /* get current Output Data Register value */ odr = GPIOx->ODR; - 8003bde: 687b ldr r3, [r7, #4] - 8003be0: 68db ldr r3, [r3, #12] - 8003be2: 60fb str r3, [r7, #12] + 8003e5a: 687b ldr r3, [r7, #4] + 8003e5c: 68db ldr r3, [r3, #12] + 8003e5e: 60fb str r3, [r7, #12] /* Set selected pins that were at low level, and reset ones that were high */ GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin); - 8003be4: 887a ldrh r2, [r7, #2] - 8003be6: 68fb ldr r3, [r7, #12] - 8003be8: 4013 ands r3, r2 - 8003bea: 041a lsls r2, r3, #16 - 8003bec: 68fb ldr r3, [r7, #12] - 8003bee: 43d9 mvns r1, r3 - 8003bf0: 887b ldrh r3, [r7, #2] - 8003bf2: 400b ands r3, r1 - 8003bf4: 431a orrs r2, r3 - 8003bf6: 687b ldr r3, [r7, #4] - 8003bf8: 611a str r2, [r3, #16] + 8003e60: 887a ldrh r2, [r7, #2] + 8003e62: 68fb ldr r3, [r7, #12] + 8003e64: 4013 ands r3, r2 + 8003e66: 041a lsls r2, r3, #16 + 8003e68: 68fb ldr r3, [r7, #12] + 8003e6a: 43d9 mvns r1, r3 + 8003e6c: 887b ldrh r3, [r7, #2] + 8003e6e: 400b ands r3, r1 + 8003e70: 431a orrs r2, r3 + 8003e72: 687b ldr r3, [r7, #4] + 8003e74: 611a str r2, [r3, #16] } - 8003bfa: bf00 nop - 8003bfc: 3714 adds r7, #20 - 8003bfe: 46bd mov sp, r7 - 8003c00: bc80 pop {r7} - 8003c02: 4770 bx lr + 8003e76: bf00 nop + 8003e78: 3714 adds r7, #20 + 8003e7a: 46bd mov sp, r7 + 8003e7c: bc80 pop {r7} + 8003e7e: 4770 bx lr -08003c04 : +08003e80 : * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c) { - 8003c04: b580 push {r7, lr} - 8003c06: b084 sub sp, #16 - 8003c08: af00 add r7, sp, #0 - 8003c0a: 6078 str r0, [r7, #4] + 8003e80: b580 push {r7, lr} + 8003e82: b084 sub sp, #16 + 8003e84: af00 add r7, sp, #0 + 8003e86: 6078 str r0, [r7, #4] uint32_t freqrange; uint32_t pclk1; /* Check the I2C handle allocation */ if (hi2c == NULL) - 8003c0c: 687b ldr r3, [r7, #4] - 8003c0e: 2b00 cmp r3, #0 - 8003c10: d101 bne.n 8003c16 + 8003e88: 687b ldr r3, [r7, #4] + 8003e8a: 2b00 cmp r3, #0 + 8003e8c: d101 bne.n 8003e92 { return HAL_ERROR; - 8003c12: 2301 movs r3, #1 - 8003c14: e12b b.n 8003e6e + 8003e8e: 2301 movs r3, #1 + 8003e90: e12b b.n 80040ea assert_param(IS_I2C_DUAL_ADDRESS(hi2c->Init.DualAddressMode)); assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2)); assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode)); assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode)); if (hi2c->State == HAL_I2C_STATE_RESET) - 8003c16: 687b ldr r3, [r7, #4] - 8003c18: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 8003c1c: b2db uxtb r3, r3 - 8003c1e: 2b00 cmp r3, #0 - 8003c20: d106 bne.n 8003c30 + 8003e92: 687b ldr r3, [r7, #4] + 8003e94: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 8003e98: b2db uxtb r3, r3 + 8003e9a: 2b00 cmp r3, #0 + 8003e9c: d106 bne.n 8003eac { /* Allocate lock resource and initialize it */ hi2c->Lock = HAL_UNLOCKED; - 8003c22: 687b ldr r3, [r7, #4] - 8003c24: 2200 movs r2, #0 - 8003c26: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8003e9e: 687b ldr r3, [r7, #4] + 8003ea0: 2200 movs r2, #0 + 8003ea2: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Init the low level hardware : GPIO, CLOCK, NVIC */ hi2c->MspInitCallback(hi2c); #else /* Init the low level hardware : GPIO, CLOCK, NVIC */ HAL_I2C_MspInit(hi2c); - 8003c2a: 6878 ldr r0, [r7, #4] - 8003c2c: f7fe fa42 bl 80020b4 + 8003ea6: 6878 ldr r0, [r7, #4] + 8003ea8: f7fe f99a bl 80021e0 #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } hi2c->State = HAL_I2C_STATE_BUSY; - 8003c30: 687b ldr r3, [r7, #4] - 8003c32: 2224 movs r2, #36 @ 0x24 - 8003c34: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8003eac: 687b ldr r3, [r7, #4] + 8003eae: 2224 movs r2, #36 @ 0x24 + 8003eb0: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); - 8003c38: 687b ldr r3, [r7, #4] - 8003c3a: 681b ldr r3, [r3, #0] - 8003c3c: 681a ldr r2, [r3, #0] - 8003c3e: 687b ldr r3, [r7, #4] - 8003c40: 681b ldr r3, [r3, #0] - 8003c42: f022 0201 bic.w r2, r2, #1 - 8003c46: 601a str r2, [r3, #0] + 8003eb4: 687b ldr r3, [r7, #4] + 8003eb6: 681b ldr r3, [r3, #0] + 8003eb8: 681a ldr r2, [r3, #0] + 8003eba: 687b ldr r3, [r7, #4] + 8003ebc: 681b ldr r3, [r3, #0] + 8003ebe: f022 0201 bic.w r2, r2, #1 + 8003ec2: 601a str r2, [r3, #0] /*Reset I2C*/ hi2c->Instance->CR1 |= I2C_CR1_SWRST; - 8003c48: 687b ldr r3, [r7, #4] - 8003c4a: 681b ldr r3, [r3, #0] - 8003c4c: 681a ldr r2, [r3, #0] - 8003c4e: 687b ldr r3, [r7, #4] - 8003c50: 681b ldr r3, [r3, #0] - 8003c52: f442 4200 orr.w r2, r2, #32768 @ 0x8000 - 8003c56: 601a str r2, [r3, #0] + 8003ec4: 687b ldr r3, [r7, #4] + 8003ec6: 681b ldr r3, [r3, #0] + 8003ec8: 681a ldr r2, [r3, #0] + 8003eca: 687b ldr r3, [r7, #4] + 8003ecc: 681b ldr r3, [r3, #0] + 8003ece: f442 4200 orr.w r2, r2, #32768 @ 0x8000 + 8003ed2: 601a str r2, [r3, #0] hi2c->Instance->CR1 &= ~I2C_CR1_SWRST; - 8003c58: 687b ldr r3, [r7, #4] - 8003c5a: 681b ldr r3, [r3, #0] - 8003c5c: 681a ldr r2, [r3, #0] - 8003c5e: 687b ldr r3, [r7, #4] - 8003c60: 681b ldr r3, [r3, #0] - 8003c62: f422 4200 bic.w r2, r2, #32768 @ 0x8000 - 8003c66: 601a str r2, [r3, #0] + 8003ed4: 687b ldr r3, [r7, #4] + 8003ed6: 681b ldr r3, [r3, #0] + 8003ed8: 681a ldr r2, [r3, #0] + 8003eda: 687b ldr r3, [r7, #4] + 8003edc: 681b ldr r3, [r3, #0] + 8003ede: f422 4200 bic.w r2, r2, #32768 @ 0x8000 + 8003ee2: 601a str r2, [r3, #0] /* Get PCLK1 frequency */ pclk1 = HAL_RCC_GetPCLK1Freq(); - 8003c68: f001 fbcc bl 8005404 - 8003c6c: 60f8 str r0, [r7, #12] + 8003ee4: f001 fbcc bl 8005680 + 8003ee8: 60f8 str r0, [r7, #12] /* Check the minimum allowed PCLK1 frequency */ if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U) - 8003c6e: 687b ldr r3, [r7, #4] - 8003c70: 685b ldr r3, [r3, #4] - 8003c72: 4a81 ldr r2, [pc, #516] @ (8003e78 ) - 8003c74: 4293 cmp r3, r2 - 8003c76: d807 bhi.n 8003c88 - 8003c78: 68fb ldr r3, [r7, #12] - 8003c7a: 4a80 ldr r2, [pc, #512] @ (8003e7c ) - 8003c7c: 4293 cmp r3, r2 - 8003c7e: bf94 ite ls - 8003c80: 2301 movls r3, #1 - 8003c82: 2300 movhi r3, #0 - 8003c84: b2db uxtb r3, r3 - 8003c86: e006 b.n 8003c96 - 8003c88: 68fb ldr r3, [r7, #12] - 8003c8a: 4a7d ldr r2, [pc, #500] @ (8003e80 ) - 8003c8c: 4293 cmp r3, r2 - 8003c8e: bf94 ite ls - 8003c90: 2301 movls r3, #1 - 8003c92: 2300 movhi r3, #0 - 8003c94: b2db uxtb r3, r3 - 8003c96: 2b00 cmp r3, #0 - 8003c98: d001 beq.n 8003c9e + 8003eea: 687b ldr r3, [r7, #4] + 8003eec: 685b ldr r3, [r3, #4] + 8003eee: 4a81 ldr r2, [pc, #516] @ (80040f4 ) + 8003ef0: 4293 cmp r3, r2 + 8003ef2: d807 bhi.n 8003f04 + 8003ef4: 68fb ldr r3, [r7, #12] + 8003ef6: 4a80 ldr r2, [pc, #512] @ (80040f8 ) + 8003ef8: 4293 cmp r3, r2 + 8003efa: bf94 ite ls + 8003efc: 2301 movls r3, #1 + 8003efe: 2300 movhi r3, #0 + 8003f00: b2db uxtb r3, r3 + 8003f02: e006 b.n 8003f12 + 8003f04: 68fb ldr r3, [r7, #12] + 8003f06: 4a7d ldr r2, [pc, #500] @ (80040fc ) + 8003f08: 4293 cmp r3, r2 + 8003f0a: bf94 ite ls + 8003f0c: 2301 movls r3, #1 + 8003f0e: 2300 movhi r3, #0 + 8003f10: b2db uxtb r3, r3 + 8003f12: 2b00 cmp r3, #0 + 8003f14: d001 beq.n 8003f1a { return HAL_ERROR; - 8003c9a: 2301 movs r3, #1 - 8003c9c: e0e7 b.n 8003e6e + 8003f16: 2301 movs r3, #1 + 8003f18: e0e7 b.n 80040ea } /* Calculate frequency range */ freqrange = I2C_FREQRANGE(pclk1); - 8003c9e: 68fb ldr r3, [r7, #12] - 8003ca0: 4a78 ldr r2, [pc, #480] @ (8003e84 ) - 8003ca2: fba2 2303 umull r2, r3, r2, r3 - 8003ca6: 0c9b lsrs r3, r3, #18 - 8003ca8: 60bb str r3, [r7, #8] + 8003f1a: 68fb ldr r3, [r7, #12] + 8003f1c: 4a78 ldr r2, [pc, #480] @ (8004100 ) + 8003f1e: fba2 2303 umull r2, r3, r2, r3 + 8003f22: 0c9b lsrs r3, r3, #18 + 8003f24: 60bb str r3, [r7, #8] /*---------------------------- I2Cx CR2 Configuration ----------------------*/ /* Configure I2Cx: Frequency range */ MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange); - 8003caa: 687b ldr r3, [r7, #4] - 8003cac: 681b ldr r3, [r3, #0] - 8003cae: 685b ldr r3, [r3, #4] - 8003cb0: f023 013f bic.w r1, r3, #63 @ 0x3f - 8003cb4: 687b ldr r3, [r7, #4] - 8003cb6: 681b ldr r3, [r3, #0] - 8003cb8: 68ba ldr r2, [r7, #8] - 8003cba: 430a orrs r2, r1 - 8003cbc: 605a str r2, [r3, #4] + 8003f26: 687b ldr r3, [r7, #4] + 8003f28: 681b ldr r3, [r3, #0] + 8003f2a: 685b ldr r3, [r3, #4] + 8003f2c: f023 013f bic.w r1, r3, #63 @ 0x3f + 8003f30: 687b ldr r3, [r7, #4] + 8003f32: 681b ldr r3, [r3, #0] + 8003f34: 68ba ldr r2, [r7, #8] + 8003f36: 430a orrs r2, r1 + 8003f38: 605a str r2, [r3, #4] /*---------------------------- I2Cx TRISE Configuration --------------------*/ /* Configure I2Cx: Rise Time */ MODIFY_REG(hi2c->Instance->TRISE, I2C_TRISE_TRISE, I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed)); - 8003cbe: 687b ldr r3, [r7, #4] - 8003cc0: 681b ldr r3, [r3, #0] - 8003cc2: 6a1b ldr r3, [r3, #32] - 8003cc4: f023 013f bic.w r1, r3, #63 @ 0x3f - 8003cc8: 687b ldr r3, [r7, #4] - 8003cca: 685b ldr r3, [r3, #4] - 8003ccc: 4a6a ldr r2, [pc, #424] @ (8003e78 ) - 8003cce: 4293 cmp r3, r2 - 8003cd0: d802 bhi.n 8003cd8 - 8003cd2: 68bb ldr r3, [r7, #8] - 8003cd4: 3301 adds r3, #1 - 8003cd6: e009 b.n 8003cec - 8003cd8: 68bb ldr r3, [r7, #8] - 8003cda: f44f 7296 mov.w r2, #300 @ 0x12c - 8003cde: fb02 f303 mul.w r3, r2, r3 - 8003ce2: 4a69 ldr r2, [pc, #420] @ (8003e88 ) - 8003ce4: fba2 2303 umull r2, r3, r2, r3 - 8003ce8: 099b lsrs r3, r3, #6 - 8003cea: 3301 adds r3, #1 - 8003cec: 687a ldr r2, [r7, #4] - 8003cee: 6812 ldr r2, [r2, #0] - 8003cf0: 430b orrs r3, r1 - 8003cf2: 6213 str r3, [r2, #32] + 8003f3a: 687b ldr r3, [r7, #4] + 8003f3c: 681b ldr r3, [r3, #0] + 8003f3e: 6a1b ldr r3, [r3, #32] + 8003f40: f023 013f bic.w r1, r3, #63 @ 0x3f + 8003f44: 687b ldr r3, [r7, #4] + 8003f46: 685b ldr r3, [r3, #4] + 8003f48: 4a6a ldr r2, [pc, #424] @ (80040f4 ) + 8003f4a: 4293 cmp r3, r2 + 8003f4c: d802 bhi.n 8003f54 + 8003f4e: 68bb ldr r3, [r7, #8] + 8003f50: 3301 adds r3, #1 + 8003f52: e009 b.n 8003f68 + 8003f54: 68bb ldr r3, [r7, #8] + 8003f56: f44f 7296 mov.w r2, #300 @ 0x12c + 8003f5a: fb02 f303 mul.w r3, r2, r3 + 8003f5e: 4a69 ldr r2, [pc, #420] @ (8004104 ) + 8003f60: fba2 2303 umull r2, r3, r2, r3 + 8003f64: 099b lsrs r3, r3, #6 + 8003f66: 3301 adds r3, #1 + 8003f68: 687a ldr r2, [r7, #4] + 8003f6a: 6812 ldr r2, [r2, #0] + 8003f6c: 430b orrs r3, r1 + 8003f6e: 6213 str r3, [r2, #32] /*---------------------------- I2Cx CCR Configuration ----------------------*/ /* Configure I2Cx: Speed */ MODIFY_REG(hi2c->Instance->CCR, (I2C_CCR_FS | I2C_CCR_DUTY | I2C_CCR_CCR), I2C_SPEED(pclk1, hi2c->Init.ClockSpeed, hi2c->Init.DutyCycle)); - 8003cf4: 687b ldr r3, [r7, #4] - 8003cf6: 681b ldr r3, [r3, #0] - 8003cf8: 69db ldr r3, [r3, #28] - 8003cfa: f423 424f bic.w r2, r3, #52992 @ 0xcf00 - 8003cfe: f022 02ff bic.w r2, r2, #255 @ 0xff - 8003d02: 687b ldr r3, [r7, #4] - 8003d04: 685b ldr r3, [r3, #4] - 8003d06: 495c ldr r1, [pc, #368] @ (8003e78 ) - 8003d08: 428b cmp r3, r1 - 8003d0a: d819 bhi.n 8003d40 - 8003d0c: 68fb ldr r3, [r7, #12] - 8003d0e: 1e59 subs r1, r3, #1 - 8003d10: 687b ldr r3, [r7, #4] - 8003d12: 685b ldr r3, [r3, #4] - 8003d14: 005b lsls r3, r3, #1 - 8003d16: fbb1 f3f3 udiv r3, r1, r3 - 8003d1a: 1c59 adds r1, r3, #1 - 8003d1c: f640 73fc movw r3, #4092 @ 0xffc - 8003d20: 400b ands r3, r1 - 8003d22: 2b00 cmp r3, #0 - 8003d24: d00a beq.n 8003d3c - 8003d26: 68fb ldr r3, [r7, #12] - 8003d28: 1e59 subs r1, r3, #1 - 8003d2a: 687b ldr r3, [r7, #4] - 8003d2c: 685b ldr r3, [r3, #4] - 8003d2e: 005b lsls r3, r3, #1 - 8003d30: fbb1 f3f3 udiv r3, r1, r3 - 8003d34: 3301 adds r3, #1 - 8003d36: f3c3 030b ubfx r3, r3, #0, #12 - 8003d3a: e051 b.n 8003de0 - 8003d3c: 2304 movs r3, #4 - 8003d3e: e04f b.n 8003de0 - 8003d40: 687b ldr r3, [r7, #4] - 8003d42: 689b ldr r3, [r3, #8] - 8003d44: 2b00 cmp r3, #0 - 8003d46: d111 bne.n 8003d6c - 8003d48: 68fb ldr r3, [r7, #12] - 8003d4a: 1e58 subs r0, r3, #1 - 8003d4c: 687b ldr r3, [r7, #4] - 8003d4e: 6859 ldr r1, [r3, #4] - 8003d50: 460b mov r3, r1 - 8003d52: 005b lsls r3, r3, #1 - 8003d54: 440b add r3, r1 - 8003d56: fbb0 f3f3 udiv r3, r0, r3 - 8003d5a: 3301 adds r3, #1 - 8003d5c: f3c3 030b ubfx r3, r3, #0, #12 - 8003d60: 2b00 cmp r3, #0 - 8003d62: bf0c ite eq - 8003d64: 2301 moveq r3, #1 - 8003d66: 2300 movne r3, #0 - 8003d68: b2db uxtb r3, r3 - 8003d6a: e012 b.n 8003d92 - 8003d6c: 68fb ldr r3, [r7, #12] - 8003d6e: 1e58 subs r0, r3, #1 - 8003d70: 687b ldr r3, [r7, #4] - 8003d72: 6859 ldr r1, [r3, #4] - 8003d74: 460b mov r3, r1 - 8003d76: 009b lsls r3, r3, #2 - 8003d78: 440b add r3, r1 - 8003d7a: 0099 lsls r1, r3, #2 - 8003d7c: 440b add r3, r1 - 8003d7e: fbb0 f3f3 udiv r3, r0, r3 - 8003d82: 3301 adds r3, #1 - 8003d84: f3c3 030b ubfx r3, r3, #0, #12 - 8003d88: 2b00 cmp r3, #0 - 8003d8a: bf0c ite eq - 8003d8c: 2301 moveq r3, #1 - 8003d8e: 2300 movne r3, #0 - 8003d90: b2db uxtb r3, r3 - 8003d92: 2b00 cmp r3, #0 - 8003d94: d001 beq.n 8003d9a - 8003d96: 2301 movs r3, #1 - 8003d98: e022 b.n 8003de0 - 8003d9a: 687b ldr r3, [r7, #4] - 8003d9c: 689b ldr r3, [r3, #8] - 8003d9e: 2b00 cmp r3, #0 - 8003da0: d10e bne.n 8003dc0 - 8003da2: 68fb ldr r3, [r7, #12] - 8003da4: 1e58 subs r0, r3, #1 - 8003da6: 687b ldr r3, [r7, #4] - 8003da8: 6859 ldr r1, [r3, #4] - 8003daa: 460b mov r3, r1 - 8003dac: 005b lsls r3, r3, #1 - 8003dae: 440b add r3, r1 - 8003db0: fbb0 f3f3 udiv r3, r0, r3 - 8003db4: 3301 adds r3, #1 - 8003db6: f3c3 030b ubfx r3, r3, #0, #12 - 8003dba: f443 4300 orr.w r3, r3, #32768 @ 0x8000 - 8003dbe: e00f b.n 8003de0 - 8003dc0: 68fb ldr r3, [r7, #12] - 8003dc2: 1e58 subs r0, r3, #1 - 8003dc4: 687b ldr r3, [r7, #4] - 8003dc6: 6859 ldr r1, [r3, #4] - 8003dc8: 460b mov r3, r1 - 8003dca: 009b lsls r3, r3, #2 - 8003dcc: 440b add r3, r1 - 8003dce: 0099 lsls r1, r3, #2 - 8003dd0: 440b add r3, r1 - 8003dd2: fbb0 f3f3 udiv r3, r0, r3 - 8003dd6: 3301 adds r3, #1 - 8003dd8: f3c3 030b ubfx r3, r3, #0, #12 - 8003ddc: f443 4340 orr.w r3, r3, #49152 @ 0xc000 - 8003de0: 6879 ldr r1, [r7, #4] - 8003de2: 6809 ldr r1, [r1, #0] - 8003de4: 4313 orrs r3, r2 - 8003de6: 61cb str r3, [r1, #28] + 8003f70: 687b ldr r3, [r7, #4] + 8003f72: 681b ldr r3, [r3, #0] + 8003f74: 69db ldr r3, [r3, #28] + 8003f76: f423 424f bic.w r2, r3, #52992 @ 0xcf00 + 8003f7a: f022 02ff bic.w r2, r2, #255 @ 0xff + 8003f7e: 687b ldr r3, [r7, #4] + 8003f80: 685b ldr r3, [r3, #4] + 8003f82: 495c ldr r1, [pc, #368] @ (80040f4 ) + 8003f84: 428b cmp r3, r1 + 8003f86: d819 bhi.n 8003fbc + 8003f88: 68fb ldr r3, [r7, #12] + 8003f8a: 1e59 subs r1, r3, #1 + 8003f8c: 687b ldr r3, [r7, #4] + 8003f8e: 685b ldr r3, [r3, #4] + 8003f90: 005b lsls r3, r3, #1 + 8003f92: fbb1 f3f3 udiv r3, r1, r3 + 8003f96: 1c59 adds r1, r3, #1 + 8003f98: f640 73fc movw r3, #4092 @ 0xffc + 8003f9c: 400b ands r3, r1 + 8003f9e: 2b00 cmp r3, #0 + 8003fa0: d00a beq.n 8003fb8 + 8003fa2: 68fb ldr r3, [r7, #12] + 8003fa4: 1e59 subs r1, r3, #1 + 8003fa6: 687b ldr r3, [r7, #4] + 8003fa8: 685b ldr r3, [r3, #4] + 8003faa: 005b lsls r3, r3, #1 + 8003fac: fbb1 f3f3 udiv r3, r1, r3 + 8003fb0: 3301 adds r3, #1 + 8003fb2: f3c3 030b ubfx r3, r3, #0, #12 + 8003fb6: e051 b.n 800405c + 8003fb8: 2304 movs r3, #4 + 8003fba: e04f b.n 800405c + 8003fbc: 687b ldr r3, [r7, #4] + 8003fbe: 689b ldr r3, [r3, #8] + 8003fc0: 2b00 cmp r3, #0 + 8003fc2: d111 bne.n 8003fe8 + 8003fc4: 68fb ldr r3, [r7, #12] + 8003fc6: 1e58 subs r0, r3, #1 + 8003fc8: 687b ldr r3, [r7, #4] + 8003fca: 6859 ldr r1, [r3, #4] + 8003fcc: 460b mov r3, r1 + 8003fce: 005b lsls r3, r3, #1 + 8003fd0: 440b add r3, r1 + 8003fd2: fbb0 f3f3 udiv r3, r0, r3 + 8003fd6: 3301 adds r3, #1 + 8003fd8: f3c3 030b ubfx r3, r3, #0, #12 + 8003fdc: 2b00 cmp r3, #0 + 8003fde: bf0c ite eq + 8003fe0: 2301 moveq r3, #1 + 8003fe2: 2300 movne r3, #0 + 8003fe4: b2db uxtb r3, r3 + 8003fe6: e012 b.n 800400e + 8003fe8: 68fb ldr r3, [r7, #12] + 8003fea: 1e58 subs r0, r3, #1 + 8003fec: 687b ldr r3, [r7, #4] + 8003fee: 6859 ldr r1, [r3, #4] + 8003ff0: 460b mov r3, r1 + 8003ff2: 009b lsls r3, r3, #2 + 8003ff4: 440b add r3, r1 + 8003ff6: 0099 lsls r1, r3, #2 + 8003ff8: 440b add r3, r1 + 8003ffa: fbb0 f3f3 udiv r3, r0, r3 + 8003ffe: 3301 adds r3, #1 + 8004000: f3c3 030b ubfx r3, r3, #0, #12 + 8004004: 2b00 cmp r3, #0 + 8004006: bf0c ite eq + 8004008: 2301 moveq r3, #1 + 800400a: 2300 movne r3, #0 + 800400c: b2db uxtb r3, r3 + 800400e: 2b00 cmp r3, #0 + 8004010: d001 beq.n 8004016 + 8004012: 2301 movs r3, #1 + 8004014: e022 b.n 800405c + 8004016: 687b ldr r3, [r7, #4] + 8004018: 689b ldr r3, [r3, #8] + 800401a: 2b00 cmp r3, #0 + 800401c: d10e bne.n 800403c + 800401e: 68fb ldr r3, [r7, #12] + 8004020: 1e58 subs r0, r3, #1 + 8004022: 687b ldr r3, [r7, #4] + 8004024: 6859 ldr r1, [r3, #4] + 8004026: 460b mov r3, r1 + 8004028: 005b lsls r3, r3, #1 + 800402a: 440b add r3, r1 + 800402c: fbb0 f3f3 udiv r3, r0, r3 + 8004030: 3301 adds r3, #1 + 8004032: f3c3 030b ubfx r3, r3, #0, #12 + 8004036: f443 4300 orr.w r3, r3, #32768 @ 0x8000 + 800403a: e00f b.n 800405c + 800403c: 68fb ldr r3, [r7, #12] + 800403e: 1e58 subs r0, r3, #1 + 8004040: 687b ldr r3, [r7, #4] + 8004042: 6859 ldr r1, [r3, #4] + 8004044: 460b mov r3, r1 + 8004046: 009b lsls r3, r3, #2 + 8004048: 440b add r3, r1 + 800404a: 0099 lsls r1, r3, #2 + 800404c: 440b add r3, r1 + 800404e: fbb0 f3f3 udiv r3, r0, r3 + 8004052: 3301 adds r3, #1 + 8004054: f3c3 030b ubfx r3, r3, #0, #12 + 8004058: f443 4340 orr.w r3, r3, #49152 @ 0xc000 + 800405c: 6879 ldr r1, [r7, #4] + 800405e: 6809 ldr r1, [r1, #0] + 8004060: 4313 orrs r3, r2 + 8004062: 61cb str r3, [r1, #28] /*---------------------------- I2Cx CR1 Configuration ----------------------*/ /* Configure I2Cx: Generalcall and NoStretch mode */ MODIFY_REG(hi2c->Instance->CR1, (I2C_CR1_ENGC | I2C_CR1_NOSTRETCH), (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode)); - 8003de8: 687b ldr r3, [r7, #4] - 8003dea: 681b ldr r3, [r3, #0] - 8003dec: 681b ldr r3, [r3, #0] - 8003dee: f023 01c0 bic.w r1, r3, #192 @ 0xc0 - 8003df2: 687b ldr r3, [r7, #4] - 8003df4: 69da ldr r2, [r3, #28] - 8003df6: 687b ldr r3, [r7, #4] - 8003df8: 6a1b ldr r3, [r3, #32] - 8003dfa: 431a orrs r2, r3 - 8003dfc: 687b ldr r3, [r7, #4] - 8003dfe: 681b ldr r3, [r3, #0] - 8003e00: 430a orrs r2, r1 - 8003e02: 601a str r2, [r3, #0] + 8004064: 687b ldr r3, [r7, #4] + 8004066: 681b ldr r3, [r3, #0] + 8004068: 681b ldr r3, [r3, #0] + 800406a: f023 01c0 bic.w r1, r3, #192 @ 0xc0 + 800406e: 687b ldr r3, [r7, #4] + 8004070: 69da ldr r2, [r3, #28] + 8004072: 687b ldr r3, [r7, #4] + 8004074: 6a1b ldr r3, [r3, #32] + 8004076: 431a orrs r2, r3 + 8004078: 687b ldr r3, [r7, #4] + 800407a: 681b ldr r3, [r3, #0] + 800407c: 430a orrs r2, r1 + 800407e: 601a str r2, [r3, #0] /*---------------------------- I2Cx OAR1 Configuration ---------------------*/ /* Configure I2Cx: Own Address1 and addressing mode */ MODIFY_REG(hi2c->Instance->OAR1, (I2C_OAR1_ADDMODE | I2C_OAR1_ADD8_9 | I2C_OAR1_ADD1_7 | I2C_OAR1_ADD0), (hi2c->Init.AddressingMode | hi2c->Init.OwnAddress1)); - 8003e04: 687b ldr r3, [r7, #4] - 8003e06: 681b ldr r3, [r3, #0] - 8003e08: 689b ldr r3, [r3, #8] - 8003e0a: f423 4303 bic.w r3, r3, #33536 @ 0x8300 - 8003e0e: f023 03ff bic.w r3, r3, #255 @ 0xff - 8003e12: 687a ldr r2, [r7, #4] - 8003e14: 6911 ldr r1, [r2, #16] - 8003e16: 687a ldr r2, [r7, #4] - 8003e18: 68d2 ldr r2, [r2, #12] - 8003e1a: 4311 orrs r1, r2 - 8003e1c: 687a ldr r2, [r7, #4] - 8003e1e: 6812 ldr r2, [r2, #0] - 8003e20: 430b orrs r3, r1 - 8003e22: 6093 str r3, [r2, #8] + 8004080: 687b ldr r3, [r7, #4] + 8004082: 681b ldr r3, [r3, #0] + 8004084: 689b ldr r3, [r3, #8] + 8004086: f423 4303 bic.w r3, r3, #33536 @ 0x8300 + 800408a: f023 03ff bic.w r3, r3, #255 @ 0xff + 800408e: 687a ldr r2, [r7, #4] + 8004090: 6911 ldr r1, [r2, #16] + 8004092: 687a ldr r2, [r7, #4] + 8004094: 68d2 ldr r2, [r2, #12] + 8004096: 4311 orrs r1, r2 + 8004098: 687a ldr r2, [r7, #4] + 800409a: 6812 ldr r2, [r2, #0] + 800409c: 430b orrs r3, r1 + 800409e: 6093 str r3, [r2, #8] /*---------------------------- I2Cx OAR2 Configuration ---------------------*/ /* Configure I2Cx: Dual mode and Own Address2 */ MODIFY_REG(hi2c->Instance->OAR2, (I2C_OAR2_ENDUAL | I2C_OAR2_ADD2), (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2)); - 8003e24: 687b ldr r3, [r7, #4] - 8003e26: 681b ldr r3, [r3, #0] - 8003e28: 68db ldr r3, [r3, #12] - 8003e2a: f023 01ff bic.w r1, r3, #255 @ 0xff - 8003e2e: 687b ldr r3, [r7, #4] - 8003e30: 695a ldr r2, [r3, #20] - 8003e32: 687b ldr r3, [r7, #4] - 8003e34: 699b ldr r3, [r3, #24] - 8003e36: 431a orrs r2, r3 - 8003e38: 687b ldr r3, [r7, #4] - 8003e3a: 681b ldr r3, [r3, #0] - 8003e3c: 430a orrs r2, r1 - 8003e3e: 60da str r2, [r3, #12] + 80040a0: 687b ldr r3, [r7, #4] + 80040a2: 681b ldr r3, [r3, #0] + 80040a4: 68db ldr r3, [r3, #12] + 80040a6: f023 01ff bic.w r1, r3, #255 @ 0xff + 80040aa: 687b ldr r3, [r7, #4] + 80040ac: 695a ldr r2, [r3, #20] + 80040ae: 687b ldr r3, [r7, #4] + 80040b0: 699b ldr r3, [r3, #24] + 80040b2: 431a orrs r2, r3 + 80040b4: 687b ldr r3, [r7, #4] + 80040b6: 681b ldr r3, [r3, #0] + 80040b8: 430a orrs r2, r1 + 80040ba: 60da str r2, [r3, #12] /* Enable the selected I2C peripheral */ __HAL_I2C_ENABLE(hi2c); - 8003e40: 687b ldr r3, [r7, #4] - 8003e42: 681b ldr r3, [r3, #0] - 8003e44: 681a ldr r2, [r3, #0] - 8003e46: 687b ldr r3, [r7, #4] - 8003e48: 681b ldr r3, [r3, #0] - 8003e4a: f042 0201 orr.w r2, r2, #1 - 8003e4e: 601a str r2, [r3, #0] + 80040bc: 687b ldr r3, [r7, #4] + 80040be: 681b ldr r3, [r3, #0] + 80040c0: 681a ldr r2, [r3, #0] + 80040c2: 687b ldr r3, [r7, #4] + 80040c4: 681b ldr r3, [r3, #0] + 80040c6: f042 0201 orr.w r2, r2, #1 + 80040ca: 601a str r2, [r3, #0] hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8003e50: 687b ldr r3, [r7, #4] - 8003e52: 2200 movs r2, #0 - 8003e54: 641a str r2, [r3, #64] @ 0x40 + 80040cc: 687b ldr r3, [r7, #4] + 80040ce: 2200 movs r2, #0 + 80040d0: 641a str r2, [r3, #64] @ 0x40 hi2c->State = HAL_I2C_STATE_READY; - 8003e56: 687b ldr r3, [r7, #4] - 8003e58: 2220 movs r2, #32 - 8003e5a: f883 203d strb.w r2, [r3, #61] @ 0x3d + 80040d2: 687b ldr r3, [r7, #4] + 80040d4: 2220 movs r2, #32 + 80040d6: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->PreviousState = I2C_STATE_NONE; - 8003e5e: 687b ldr r3, [r7, #4] - 8003e60: 2200 movs r2, #0 - 8003e62: 631a str r2, [r3, #48] @ 0x30 + 80040da: 687b ldr r3, [r7, #4] + 80040dc: 2200 movs r2, #0 + 80040de: 631a str r2, [r3, #48] @ 0x30 hi2c->Mode = HAL_I2C_MODE_NONE; - 8003e64: 687b ldr r3, [r7, #4] - 8003e66: 2200 movs r2, #0 - 8003e68: f883 203e strb.w r2, [r3, #62] @ 0x3e + 80040e0: 687b ldr r3, [r7, #4] + 80040e2: 2200 movs r2, #0 + 80040e4: f883 203e strb.w r2, [r3, #62] @ 0x3e return HAL_OK; - 8003e6c: 2300 movs r3, #0 + 80040e8: 2300 movs r3, #0 } - 8003e6e: 4618 mov r0, r3 - 8003e70: 3710 adds r7, #16 - 8003e72: 46bd mov sp, r7 - 8003e74: bd80 pop {r7, pc} - 8003e76: bf00 nop - 8003e78: 000186a0 .word 0x000186a0 - 8003e7c: 001e847f .word 0x001e847f - 8003e80: 003d08ff .word 0x003d08ff - 8003e84: 431bde83 .word 0x431bde83 - 8003e88: 10624dd3 .word 0x10624dd3 + 80040ea: 4618 mov r0, r3 + 80040ec: 3710 adds r7, #16 + 80040ee: 46bd mov sp, r7 + 80040f0: bd80 pop {r7, pc} + 80040f2: bf00 nop + 80040f4: 000186a0 .word 0x000186a0 + 80040f8: 001e847f .word 0x001e847f + 80040fc: 003d08ff .word 0x003d08ff + 8004100: 431bde83 .word 0x431bde83 + 8004104: 10624dd3 .word 0x10624dd3 -08003e8c : +08004108 : * @param Size Amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Master_Transmit(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout) { - 8003e8c: b580 push {r7, lr} - 8003e8e: b088 sub sp, #32 - 8003e90: af02 add r7, sp, #8 - 8003e92: 60f8 str r0, [r7, #12] - 8003e94: 607a str r2, [r7, #4] - 8003e96: 461a mov r2, r3 - 8003e98: 460b mov r3, r1 - 8003e9a: 817b strh r3, [r7, #10] - 8003e9c: 4613 mov r3, r2 - 8003e9e: 813b strh r3, [r7, #8] + 8004108: b580 push {r7, lr} + 800410a: b088 sub sp, #32 + 800410c: af02 add r7, sp, #8 + 800410e: 60f8 str r0, [r7, #12] + 8004110: 607a str r2, [r7, #4] + 8004112: 461a mov r2, r3 + 8004114: 460b mov r3, r1 + 8004116: 817b strh r3, [r7, #10] + 8004118: 4613 mov r3, r2 + 800411a: 813b strh r3, [r7, #8] /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); - 8003ea0: f7fe fee4 bl 8002c6c - 8003ea4: 6178 str r0, [r7, #20] + 800411c: f7fe fee4 bl 8002ee8 + 8004120: 6178 str r0, [r7, #20] if (hi2c->State == HAL_I2C_STATE_READY) - 8003ea6: 68fb ldr r3, [r7, #12] - 8003ea8: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 8003eac: b2db uxtb r3, r3 - 8003eae: 2b20 cmp r3, #32 - 8003eb0: f040 80e0 bne.w 8004074 + 8004122: 68fb ldr r3, [r7, #12] + 8004124: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 8004128: b2db uxtb r3, r3 + 800412a: 2b20 cmp r3, #32 + 800412c: f040 80e0 bne.w 80042f0 { /* Wait until BUSY flag is reset */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) - 8003eb4: 697b ldr r3, [r7, #20] - 8003eb6: 9300 str r3, [sp, #0] - 8003eb8: 2319 movs r3, #25 - 8003eba: 2201 movs r2, #1 - 8003ebc: 4970 ldr r1, [pc, #448] @ (8004080 ) - 8003ebe: 68f8 ldr r0, [r7, #12] - 8003ec0: f000 fc9e bl 8004800 - 8003ec4: 4603 mov r3, r0 - 8003ec6: 2b00 cmp r3, #0 - 8003ec8: d001 beq.n 8003ece + 8004130: 697b ldr r3, [r7, #20] + 8004132: 9300 str r3, [sp, #0] + 8004134: 2319 movs r3, #25 + 8004136: 2201 movs r2, #1 + 8004138: 4970 ldr r1, [pc, #448] @ (80042fc ) + 800413a: 68f8 ldr r0, [r7, #12] + 800413c: f000 fc9e bl 8004a7c + 8004140: 4603 mov r3, r0 + 8004142: 2b00 cmp r3, #0 + 8004144: d001 beq.n 800414a { return HAL_BUSY; - 8003eca: 2302 movs r3, #2 - 8003ecc: e0d3 b.n 8004076 + 8004146: 2302 movs r3, #2 + 8004148: e0d3 b.n 80042f2 } /* Process Locked */ __HAL_LOCK(hi2c); - 8003ece: 68fb ldr r3, [r7, #12] - 8003ed0: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 8003ed4: 2b01 cmp r3, #1 - 8003ed6: d101 bne.n 8003edc - 8003ed8: 2302 movs r3, #2 - 8003eda: e0cc b.n 8004076 - 8003edc: 68fb ldr r3, [r7, #12] - 8003ede: 2201 movs r2, #1 - 8003ee0: f883 203c strb.w r2, [r3, #60] @ 0x3c + 800414a: 68fb ldr r3, [r7, #12] + 800414c: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 8004150: 2b01 cmp r3, #1 + 8004152: d101 bne.n 8004158 + 8004154: 2302 movs r3, #2 + 8004156: e0cc b.n 80042f2 + 8004158: 68fb ldr r3, [r7, #12] + 800415a: 2201 movs r2, #1 + 800415c: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) - 8003ee4: 68fb ldr r3, [r7, #12] - 8003ee6: 681b ldr r3, [r3, #0] - 8003ee8: 681b ldr r3, [r3, #0] - 8003eea: f003 0301 and.w r3, r3, #1 - 8003eee: 2b01 cmp r3, #1 - 8003ef0: d007 beq.n 8003f02 + 8004160: 68fb ldr r3, [r7, #12] + 8004162: 681b ldr r3, [r3, #0] + 8004164: 681b ldr r3, [r3, #0] + 8004166: f003 0301 and.w r3, r3, #1 + 800416a: 2b01 cmp r3, #1 + 800416c: d007 beq.n 800417e { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); - 8003ef2: 68fb ldr r3, [r7, #12] - 8003ef4: 681b ldr r3, [r3, #0] - 8003ef6: 681a ldr r2, [r3, #0] - 8003ef8: 68fb ldr r3, [r7, #12] - 8003efa: 681b ldr r3, [r3, #0] - 8003efc: f042 0201 orr.w r2, r2, #1 - 8003f00: 601a str r2, [r3, #0] + 800416e: 68fb ldr r3, [r7, #12] + 8004170: 681b ldr r3, [r3, #0] + 8004172: 681a ldr r2, [r3, #0] + 8004174: 68fb ldr r3, [r7, #12] + 8004176: 681b ldr r3, [r3, #0] + 8004178: f042 0201 orr.w r2, r2, #1 + 800417c: 601a str r2, [r3, #0] } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); - 8003f02: 68fb ldr r3, [r7, #12] - 8003f04: 681b ldr r3, [r3, #0] - 8003f06: 681a ldr r2, [r3, #0] - 8003f08: 68fb ldr r3, [r7, #12] - 8003f0a: 681b ldr r3, [r3, #0] - 8003f0c: f422 6200 bic.w r2, r2, #2048 @ 0x800 - 8003f10: 601a str r2, [r3, #0] + 800417e: 68fb ldr r3, [r7, #12] + 8004180: 681b ldr r3, [r3, #0] + 8004182: 681a ldr r2, [r3, #0] + 8004184: 68fb ldr r3, [r7, #12] + 8004186: 681b ldr r3, [r3, #0] + 8004188: f422 6200 bic.w r2, r2, #2048 @ 0x800 + 800418c: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_BUSY_TX; - 8003f12: 68fb ldr r3, [r7, #12] - 8003f14: 2221 movs r2, #33 @ 0x21 - 8003f16: f883 203d strb.w r2, [r3, #61] @ 0x3d + 800418e: 68fb ldr r3, [r7, #12] + 8004190: 2221 movs r2, #33 @ 0x21 + 8004192: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->Mode = HAL_I2C_MODE_MASTER; - 8003f1a: 68fb ldr r3, [r7, #12] - 8003f1c: 2210 movs r2, #16 - 8003f1e: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8004196: 68fb ldr r3, [r7, #12] + 8004198: 2210 movs r2, #16 + 800419a: f883 203e strb.w r2, [r3, #62] @ 0x3e hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8003f22: 68fb ldr r3, [r7, #12] - 8003f24: 2200 movs r2, #0 - 8003f26: 641a str r2, [r3, #64] @ 0x40 + 800419e: 68fb ldr r3, [r7, #12] + 80041a0: 2200 movs r2, #0 + 80041a2: 641a str r2, [r3, #64] @ 0x40 /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; - 8003f28: 68fb ldr r3, [r7, #12] - 8003f2a: 687a ldr r2, [r7, #4] - 8003f2c: 625a str r2, [r3, #36] @ 0x24 + 80041a4: 68fb ldr r3, [r7, #12] + 80041a6: 687a ldr r2, [r7, #4] + 80041a8: 625a str r2, [r3, #36] @ 0x24 hi2c->XferCount = Size; - 8003f2e: 68fb ldr r3, [r7, #12] - 8003f30: 893a ldrh r2, [r7, #8] - 8003f32: 855a strh r2, [r3, #42] @ 0x2a + 80041aa: 68fb ldr r3, [r7, #12] + 80041ac: 893a ldrh r2, [r7, #8] + 80041ae: 855a strh r2, [r3, #42] @ 0x2a hi2c->XferSize = hi2c->XferCount; - 8003f34: 68fb ldr r3, [r7, #12] - 8003f36: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8003f38: b29a uxth r2, r3 - 8003f3a: 68fb ldr r3, [r7, #12] - 8003f3c: 851a strh r2, [r3, #40] @ 0x28 + 80041b0: 68fb ldr r3, [r7, #12] + 80041b2: 8d5b ldrh r3, [r3, #42] @ 0x2a + 80041b4: b29a uxth r2, r3 + 80041b6: 68fb ldr r3, [r7, #12] + 80041b8: 851a strh r2, [r3, #40] @ 0x28 hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 8003f3e: 68fb ldr r3, [r7, #12] - 8003f40: 4a50 ldr r2, [pc, #320] @ (8004084 ) - 8003f42: 62da str r2, [r3, #44] @ 0x2c + 80041ba: 68fb ldr r3, [r7, #12] + 80041bc: 4a50 ldr r2, [pc, #320] @ (8004300 ) + 80041be: 62da str r2, [r3, #44] @ 0x2c /* Send Slave Address */ if (I2C_MasterRequestWrite(hi2c, DevAddress, Timeout, tickstart) != HAL_OK) - 8003f44: 8979 ldrh r1, [r7, #10] - 8003f46: 697b ldr r3, [r7, #20] - 8003f48: 6a3a ldr r2, [r7, #32] - 8003f4a: 68f8 ldr r0, [r7, #12] - 8003f4c: f000 fb08 bl 8004560 - 8003f50: 4603 mov r3, r0 - 8003f52: 2b00 cmp r3, #0 - 8003f54: d001 beq.n 8003f5a + 80041c0: 8979 ldrh r1, [r7, #10] + 80041c2: 697b ldr r3, [r7, #20] + 80041c4: 6a3a ldr r2, [r7, #32] + 80041c6: 68f8 ldr r0, [r7, #12] + 80041c8: f000 fb08 bl 80047dc + 80041cc: 4603 mov r3, r0 + 80041ce: 2b00 cmp r3, #0 + 80041d0: d001 beq.n 80041d6 { return HAL_ERROR; - 8003f56: 2301 movs r3, #1 - 8003f58: e08d b.n 8004076 + 80041d2: 2301 movs r3, #1 + 80041d4: e08d b.n 80042f2 } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); - 8003f5a: 2300 movs r3, #0 - 8003f5c: 613b str r3, [r7, #16] - 8003f5e: 68fb ldr r3, [r7, #12] - 8003f60: 681b ldr r3, [r3, #0] - 8003f62: 695b ldr r3, [r3, #20] - 8003f64: 613b str r3, [r7, #16] - 8003f66: 68fb ldr r3, [r7, #12] - 8003f68: 681b ldr r3, [r3, #0] - 8003f6a: 699b ldr r3, [r3, #24] - 8003f6c: 613b str r3, [r7, #16] - 8003f6e: 693b ldr r3, [r7, #16] + 80041d6: 2300 movs r3, #0 + 80041d8: 613b str r3, [r7, #16] + 80041da: 68fb ldr r3, [r7, #12] + 80041dc: 681b ldr r3, [r3, #0] + 80041de: 695b ldr r3, [r3, #20] + 80041e0: 613b str r3, [r7, #16] + 80041e2: 68fb ldr r3, [r7, #12] + 80041e4: 681b ldr r3, [r3, #0] + 80041e6: 699b ldr r3, [r3, #24] + 80041e8: 613b str r3, [r7, #16] + 80041ea: 693b ldr r3, [r7, #16] while (hi2c->XferSize > 0U) - 8003f70: e066 b.n 8004040 + 80041ec: e066 b.n 80042bc { /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 8003f72: 697a ldr r2, [r7, #20] - 8003f74: 6a39 ldr r1, [r7, #32] - 8003f76: 68f8 ldr r0, [r7, #12] - 8003f78: f000 fd5c bl 8004a34 - 8003f7c: 4603 mov r3, r0 - 8003f7e: 2b00 cmp r3, #0 - 8003f80: d00d beq.n 8003f9e + 80041ee: 697a ldr r2, [r7, #20] + 80041f0: 6a39 ldr r1, [r7, #32] + 80041f2: 68f8 ldr r0, [r7, #12] + 80041f4: f000 fd5c bl 8004cb0 + 80041f8: 4603 mov r3, r0 + 80041fa: 2b00 cmp r3, #0 + 80041fc: d00d beq.n 800421a { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 8003f82: 68fb ldr r3, [r7, #12] - 8003f84: 6c1b ldr r3, [r3, #64] @ 0x40 - 8003f86: 2b04 cmp r3, #4 - 8003f88: d107 bne.n 8003f9a + 80041fe: 68fb ldr r3, [r7, #12] + 8004200: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004202: 2b04 cmp r3, #4 + 8004204: d107 bne.n 8004216 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8003f8a: 68fb ldr r3, [r7, #12] - 8003f8c: 681b ldr r3, [r3, #0] - 8003f8e: 681a ldr r2, [r3, #0] - 8003f90: 68fb ldr r3, [r7, #12] - 8003f92: 681b ldr r3, [r3, #0] - 8003f94: f442 7200 orr.w r2, r2, #512 @ 0x200 - 8003f98: 601a str r2, [r3, #0] + 8004206: 68fb ldr r3, [r7, #12] + 8004208: 681b ldr r3, [r3, #0] + 800420a: 681a ldr r2, [r3, #0] + 800420c: 68fb ldr r3, [r7, #12] + 800420e: 681b ldr r3, [r3, #0] + 8004210: f442 7200 orr.w r2, r2, #512 @ 0x200 + 8004214: 601a str r2, [r3, #0] } return HAL_ERROR; - 8003f9a: 2301 movs r3, #1 - 8003f9c: e06b b.n 8004076 + 8004216: 2301 movs r3, #1 + 8004218: e06b b.n 80042f2 } /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; - 8003f9e: 68fb ldr r3, [r7, #12] - 8003fa0: 6a5b ldr r3, [r3, #36] @ 0x24 - 8003fa2: 781a ldrb r2, [r3, #0] - 8003fa4: 68fb ldr r3, [r7, #12] - 8003fa6: 681b ldr r3, [r3, #0] - 8003fa8: 611a str r2, [r3, #16] + 800421a: 68fb ldr r3, [r7, #12] + 800421c: 6a5b ldr r3, [r3, #36] @ 0x24 + 800421e: 781a ldrb r2, [r3, #0] + 8004220: 68fb ldr r3, [r7, #12] + 8004222: 681b ldr r3, [r3, #0] + 8004224: 611a str r2, [r3, #16] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8003faa: 68fb ldr r3, [r7, #12] - 8003fac: 6a5b ldr r3, [r3, #36] @ 0x24 - 8003fae: 1c5a adds r2, r3, #1 - 8003fb0: 68fb ldr r3, [r7, #12] - 8003fb2: 625a str r2, [r3, #36] @ 0x24 + 8004226: 68fb ldr r3, [r7, #12] + 8004228: 6a5b ldr r3, [r3, #36] @ 0x24 + 800422a: 1c5a adds r2, r3, #1 + 800422c: 68fb ldr r3, [r7, #12] + 800422e: 625a str r2, [r3, #36] @ 0x24 /* Update counter */ hi2c->XferCount--; - 8003fb4: 68fb ldr r3, [r7, #12] - 8003fb6: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8003fb8: b29b uxth r3, r3 - 8003fba: 3b01 subs r3, #1 - 8003fbc: b29a uxth r2, r3 - 8003fbe: 68fb ldr r3, [r7, #12] - 8003fc0: 855a strh r2, [r3, #42] @ 0x2a + 8004230: 68fb ldr r3, [r7, #12] + 8004232: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004234: b29b uxth r3, r3 + 8004236: 3b01 subs r3, #1 + 8004238: b29a uxth r2, r3 + 800423a: 68fb ldr r3, [r7, #12] + 800423c: 855a strh r2, [r3, #42] @ 0x2a hi2c->XferSize--; - 8003fc2: 68fb ldr r3, [r7, #12] - 8003fc4: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8003fc6: 3b01 subs r3, #1 - 8003fc8: b29a uxth r2, r3 - 8003fca: 68fb ldr r3, [r7, #12] - 8003fcc: 851a strh r2, [r3, #40] @ 0x28 + 800423e: 68fb ldr r3, [r7, #12] + 8004240: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004242: 3b01 subs r3, #1 + 8004244: b29a uxth r2, r3 + 8004246: 68fb ldr r3, [r7, #12] + 8004248: 851a strh r2, [r3, #40] @ 0x28 if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U)) - 8003fce: 68fb ldr r3, [r7, #12] - 8003fd0: 681b ldr r3, [r3, #0] - 8003fd2: 695b ldr r3, [r3, #20] - 8003fd4: f003 0304 and.w r3, r3, #4 - 8003fd8: 2b04 cmp r3, #4 - 8003fda: d11b bne.n 8004014 - 8003fdc: 68fb ldr r3, [r7, #12] - 8003fde: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8003fe0: 2b00 cmp r3, #0 - 8003fe2: d017 beq.n 8004014 + 800424a: 68fb ldr r3, [r7, #12] + 800424c: 681b ldr r3, [r3, #0] + 800424e: 695b ldr r3, [r3, #20] + 8004250: f003 0304 and.w r3, r3, #4 + 8004254: 2b04 cmp r3, #4 + 8004256: d11b bne.n 8004290 + 8004258: 68fb ldr r3, [r7, #12] + 800425a: 8d1b ldrh r3, [r3, #40] @ 0x28 + 800425c: 2b00 cmp r3, #0 + 800425e: d017 beq.n 8004290 { /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; - 8003fe4: 68fb ldr r3, [r7, #12] - 8003fe6: 6a5b ldr r3, [r3, #36] @ 0x24 - 8003fe8: 781a ldrb r2, [r3, #0] - 8003fea: 68fb ldr r3, [r7, #12] - 8003fec: 681b ldr r3, [r3, #0] - 8003fee: 611a str r2, [r3, #16] + 8004260: 68fb ldr r3, [r7, #12] + 8004262: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004264: 781a ldrb r2, [r3, #0] + 8004266: 68fb ldr r3, [r7, #12] + 8004268: 681b ldr r3, [r3, #0] + 800426a: 611a str r2, [r3, #16] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8003ff0: 68fb ldr r3, [r7, #12] - 8003ff2: 6a5b ldr r3, [r3, #36] @ 0x24 - 8003ff4: 1c5a adds r2, r3, #1 - 8003ff6: 68fb ldr r3, [r7, #12] - 8003ff8: 625a str r2, [r3, #36] @ 0x24 + 800426c: 68fb ldr r3, [r7, #12] + 800426e: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004270: 1c5a adds r2, r3, #1 + 8004272: 68fb ldr r3, [r7, #12] + 8004274: 625a str r2, [r3, #36] @ 0x24 /* Update counter */ hi2c->XferCount--; - 8003ffa: 68fb ldr r3, [r7, #12] - 8003ffc: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8003ffe: b29b uxth r3, r3 - 8004000: 3b01 subs r3, #1 - 8004002: b29a uxth r2, r3 - 8004004: 68fb ldr r3, [r7, #12] - 8004006: 855a strh r2, [r3, #42] @ 0x2a + 8004276: 68fb ldr r3, [r7, #12] + 8004278: 8d5b ldrh r3, [r3, #42] @ 0x2a + 800427a: b29b uxth r3, r3 + 800427c: 3b01 subs r3, #1 + 800427e: b29a uxth r2, r3 + 8004280: 68fb ldr r3, [r7, #12] + 8004282: 855a strh r2, [r3, #42] @ 0x2a hi2c->XferSize--; - 8004008: 68fb ldr r3, [r7, #12] - 800400a: 8d1b ldrh r3, [r3, #40] @ 0x28 - 800400c: 3b01 subs r3, #1 - 800400e: b29a uxth r2, r3 - 8004010: 68fb ldr r3, [r7, #12] - 8004012: 851a strh r2, [r3, #40] @ 0x28 + 8004284: 68fb ldr r3, [r7, #12] + 8004286: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004288: 3b01 subs r3, #1 + 800428a: b29a uxth r2, r3 + 800428c: 68fb ldr r3, [r7, #12] + 800428e: 851a strh r2, [r3, #40] @ 0x28 } /* Wait until BTF flag is set */ if (I2C_WaitOnBTFFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 8004014: 697a ldr r2, [r7, #20] - 8004016: 6a39 ldr r1, [r7, #32] - 8004018: 68f8 ldr r0, [r7, #12] - 800401a: f000 fd53 bl 8004ac4 - 800401e: 4603 mov r3, r0 - 8004020: 2b00 cmp r3, #0 - 8004022: d00d beq.n 8004040 + 8004290: 697a ldr r2, [r7, #20] + 8004292: 6a39 ldr r1, [r7, #32] + 8004294: 68f8 ldr r0, [r7, #12] + 8004296: f000 fd53 bl 8004d40 + 800429a: 4603 mov r3, r0 + 800429c: 2b00 cmp r3, #0 + 800429e: d00d beq.n 80042bc { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 8004024: 68fb ldr r3, [r7, #12] - 8004026: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004028: 2b04 cmp r3, #4 - 800402a: d107 bne.n 800403c + 80042a0: 68fb ldr r3, [r7, #12] + 80042a2: 6c1b ldr r3, [r3, #64] @ 0x40 + 80042a4: 2b04 cmp r3, #4 + 80042a6: d107 bne.n 80042b8 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 800402c: 68fb ldr r3, [r7, #12] - 800402e: 681b ldr r3, [r3, #0] - 8004030: 681a ldr r2, [r3, #0] - 8004032: 68fb ldr r3, [r7, #12] - 8004034: 681b ldr r3, [r3, #0] - 8004036: f442 7200 orr.w r2, r2, #512 @ 0x200 - 800403a: 601a str r2, [r3, #0] + 80042a8: 68fb ldr r3, [r7, #12] + 80042aa: 681b ldr r3, [r3, #0] + 80042ac: 681a ldr r2, [r3, #0] + 80042ae: 68fb ldr r3, [r7, #12] + 80042b0: 681b ldr r3, [r3, #0] + 80042b2: f442 7200 orr.w r2, r2, #512 @ 0x200 + 80042b6: 601a str r2, [r3, #0] } return HAL_ERROR; - 800403c: 2301 movs r3, #1 - 800403e: e01a b.n 8004076 + 80042b8: 2301 movs r3, #1 + 80042ba: e01a b.n 80042f2 while (hi2c->XferSize > 0U) - 8004040: 68fb ldr r3, [r7, #12] - 8004042: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004044: 2b00 cmp r3, #0 - 8004046: d194 bne.n 8003f72 + 80042bc: 68fb ldr r3, [r7, #12] + 80042be: 8d1b ldrh r3, [r3, #40] @ 0x28 + 80042c0: 2b00 cmp r3, #0 + 80042c2: d194 bne.n 80041ee } } /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8004048: 68fb ldr r3, [r7, #12] - 800404a: 681b ldr r3, [r3, #0] - 800404c: 681a ldr r2, [r3, #0] - 800404e: 68fb ldr r3, [r7, #12] - 8004050: 681b ldr r3, [r3, #0] - 8004052: f442 7200 orr.w r2, r2, #512 @ 0x200 - 8004056: 601a str r2, [r3, #0] + 80042c4: 68fb ldr r3, [r7, #12] + 80042c6: 681b ldr r3, [r3, #0] + 80042c8: 681a ldr r2, [r3, #0] + 80042ca: 68fb ldr r3, [r7, #12] + 80042cc: 681b ldr r3, [r3, #0] + 80042ce: f442 7200 orr.w r2, r2, #512 @ 0x200 + 80042d2: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_READY; - 8004058: 68fb ldr r3, [r7, #12] - 800405a: 2220 movs r2, #32 - 800405c: f883 203d strb.w r2, [r3, #61] @ 0x3d + 80042d4: 68fb ldr r3, [r7, #12] + 80042d6: 2220 movs r2, #32 + 80042d8: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8004060: 68fb ldr r3, [r7, #12] - 8004062: 2200 movs r2, #0 - 8004064: f883 203e strb.w r2, [r3, #62] @ 0x3e + 80042dc: 68fb ldr r3, [r7, #12] + 80042de: 2200 movs r2, #0 + 80042e0: f883 203e strb.w r2, [r3, #62] @ 0x3e /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8004068: 68fb ldr r3, [r7, #12] - 800406a: 2200 movs r2, #0 - 800406c: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80042e4: 68fb ldr r3, [r7, #12] + 80042e6: 2200 movs r2, #0 + 80042e8: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_OK; - 8004070: 2300 movs r3, #0 - 8004072: e000 b.n 8004076 + 80042ec: 2300 movs r3, #0 + 80042ee: e000 b.n 80042f2 } else { return HAL_BUSY; - 8004074: 2302 movs r3, #2 + 80042f0: 2302 movs r3, #2 } } - 8004076: 4618 mov r0, r3 - 8004078: 3718 adds r7, #24 - 800407a: 46bd mov sp, r7 - 800407c: bd80 pop {r7, pc} - 800407e: bf00 nop - 8004080: 00100002 .word 0x00100002 - 8004084: ffff0000 .word 0xffff0000 + 80042f2: 4618 mov r0, r3 + 80042f4: 3718 adds r7, #24 + 80042f6: 46bd mov sp, r7 + 80042f8: bd80 pop {r7, pc} + 80042fa: bf00 nop + 80042fc: 00100002 .word 0x00100002 + 8004300: ffff0000 .word 0xffff0000 -08004088 : +08004304 : * @param Size Amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Master_Receive(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout) { - 8004088: b580 push {r7, lr} - 800408a: b08c sub sp, #48 @ 0x30 - 800408c: af02 add r7, sp, #8 - 800408e: 60f8 str r0, [r7, #12] - 8004090: 607a str r2, [r7, #4] - 8004092: 461a mov r2, r3 - 8004094: 460b mov r3, r1 - 8004096: 817b strh r3, [r7, #10] - 8004098: 4613 mov r3, r2 - 800409a: 813b strh r3, [r7, #8] + 8004304: b580 push {r7, lr} + 8004306: b08c sub sp, #48 @ 0x30 + 8004308: af02 add r7, sp, #8 + 800430a: 60f8 str r0, [r7, #12] + 800430c: 607a str r2, [r7, #4] + 800430e: 461a mov r2, r3 + 8004310: 460b mov r3, r1 + 8004312: 817b strh r3, [r7, #10] + 8004314: 4613 mov r3, r2 + 8004316: 813b strh r3, [r7, #8] __IO uint32_t count = 0U; - 800409c: 2300 movs r3, #0 - 800409e: 623b str r3, [r7, #32] + 8004318: 2300 movs r3, #0 + 800431a: 623b str r3, [r7, #32] /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); - 80040a0: f7fe fde4 bl 8002c6c - 80040a4: 6278 str r0, [r7, #36] @ 0x24 + 800431c: f7fe fde4 bl 8002ee8 + 8004320: 6278 str r0, [r7, #36] @ 0x24 if (hi2c->State == HAL_I2C_STATE_READY) - 80040a6: 68fb ldr r3, [r7, #12] - 80040a8: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 80040ac: b2db uxtb r3, r3 - 80040ae: 2b20 cmp r3, #32 - 80040b0: f040 824b bne.w 800454a + 8004322: 68fb ldr r3, [r7, #12] + 8004324: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 8004328: b2db uxtb r3, r3 + 800432a: 2b20 cmp r3, #32 + 800432c: f040 824b bne.w 80047c6 { /* Wait until BUSY flag is reset */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) - 80040b4: 6a7b ldr r3, [r7, #36] @ 0x24 - 80040b6: 9300 str r3, [sp, #0] - 80040b8: 2319 movs r3, #25 - 80040ba: 2201 movs r2, #1 - 80040bc: 497f ldr r1, [pc, #508] @ (80042bc ) - 80040be: 68f8 ldr r0, [r7, #12] - 80040c0: f000 fb9e bl 8004800 - 80040c4: 4603 mov r3, r0 - 80040c6: 2b00 cmp r3, #0 - 80040c8: d001 beq.n 80040ce + 8004330: 6a7b ldr r3, [r7, #36] @ 0x24 + 8004332: 9300 str r3, [sp, #0] + 8004334: 2319 movs r3, #25 + 8004336: 2201 movs r2, #1 + 8004338: 497f ldr r1, [pc, #508] @ (8004538 ) + 800433a: 68f8 ldr r0, [r7, #12] + 800433c: f000 fb9e bl 8004a7c + 8004340: 4603 mov r3, r0 + 8004342: 2b00 cmp r3, #0 + 8004344: d001 beq.n 800434a { return HAL_BUSY; - 80040ca: 2302 movs r3, #2 - 80040cc: e23e b.n 800454c + 8004346: 2302 movs r3, #2 + 8004348: e23e b.n 80047c8 } /* Process Locked */ __HAL_LOCK(hi2c); - 80040ce: 68fb ldr r3, [r7, #12] - 80040d0: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 80040d4: 2b01 cmp r3, #1 - 80040d6: d101 bne.n 80040dc - 80040d8: 2302 movs r3, #2 - 80040da: e237 b.n 800454c - 80040dc: 68fb ldr r3, [r7, #12] - 80040de: 2201 movs r2, #1 - 80040e0: f883 203c strb.w r2, [r3, #60] @ 0x3c + 800434a: 68fb ldr r3, [r7, #12] + 800434c: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 8004350: 2b01 cmp r3, #1 + 8004352: d101 bne.n 8004358 + 8004354: 2302 movs r3, #2 + 8004356: e237 b.n 80047c8 + 8004358: 68fb ldr r3, [r7, #12] + 800435a: 2201 movs r2, #1 + 800435c: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) - 80040e4: 68fb ldr r3, [r7, #12] - 80040e6: 681b ldr r3, [r3, #0] - 80040e8: 681b ldr r3, [r3, #0] - 80040ea: f003 0301 and.w r3, r3, #1 - 80040ee: 2b01 cmp r3, #1 - 80040f0: d007 beq.n 8004102 + 8004360: 68fb ldr r3, [r7, #12] + 8004362: 681b ldr r3, [r3, #0] + 8004364: 681b ldr r3, [r3, #0] + 8004366: f003 0301 and.w r3, r3, #1 + 800436a: 2b01 cmp r3, #1 + 800436c: d007 beq.n 800437e { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); - 80040f2: 68fb ldr r3, [r7, #12] - 80040f4: 681b ldr r3, [r3, #0] - 80040f6: 681a ldr r2, [r3, #0] - 80040f8: 68fb ldr r3, [r7, #12] - 80040fa: 681b ldr r3, [r3, #0] - 80040fc: f042 0201 orr.w r2, r2, #1 - 8004100: 601a str r2, [r3, #0] + 800436e: 68fb ldr r3, [r7, #12] + 8004370: 681b ldr r3, [r3, #0] + 8004372: 681a ldr r2, [r3, #0] + 8004374: 68fb ldr r3, [r7, #12] + 8004376: 681b ldr r3, [r3, #0] + 8004378: f042 0201 orr.w r2, r2, #1 + 800437c: 601a str r2, [r3, #0] } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); - 8004102: 68fb ldr r3, [r7, #12] - 8004104: 681b ldr r3, [r3, #0] - 8004106: 681a ldr r2, [r3, #0] - 8004108: 68fb ldr r3, [r7, #12] - 800410a: 681b ldr r3, [r3, #0] - 800410c: f422 6200 bic.w r2, r2, #2048 @ 0x800 - 8004110: 601a str r2, [r3, #0] + 800437e: 68fb ldr r3, [r7, #12] + 8004380: 681b ldr r3, [r3, #0] + 8004382: 681a ldr r2, [r3, #0] + 8004384: 68fb ldr r3, [r7, #12] + 8004386: 681b ldr r3, [r3, #0] + 8004388: f422 6200 bic.w r2, r2, #2048 @ 0x800 + 800438c: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_BUSY_RX; - 8004112: 68fb ldr r3, [r7, #12] - 8004114: 2222 movs r2, #34 @ 0x22 - 8004116: f883 203d strb.w r2, [r3, #61] @ 0x3d + 800438e: 68fb ldr r3, [r7, #12] + 8004390: 2222 movs r2, #34 @ 0x22 + 8004392: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->Mode = HAL_I2C_MODE_MASTER; - 800411a: 68fb ldr r3, [r7, #12] - 800411c: 2210 movs r2, #16 - 800411e: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8004396: 68fb ldr r3, [r7, #12] + 8004398: 2210 movs r2, #16 + 800439a: f883 203e strb.w r2, [r3, #62] @ 0x3e hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8004122: 68fb ldr r3, [r7, #12] - 8004124: 2200 movs r2, #0 - 8004126: 641a str r2, [r3, #64] @ 0x40 + 800439e: 68fb ldr r3, [r7, #12] + 80043a0: 2200 movs r2, #0 + 80043a2: 641a str r2, [r3, #64] @ 0x40 /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; - 8004128: 68fb ldr r3, [r7, #12] - 800412a: 687a ldr r2, [r7, #4] - 800412c: 625a str r2, [r3, #36] @ 0x24 + 80043a4: 68fb ldr r3, [r7, #12] + 80043a6: 687a ldr r2, [r7, #4] + 80043a8: 625a str r2, [r3, #36] @ 0x24 hi2c->XferCount = Size; - 800412e: 68fb ldr r3, [r7, #12] - 8004130: 893a ldrh r2, [r7, #8] - 8004132: 855a strh r2, [r3, #42] @ 0x2a + 80043aa: 68fb ldr r3, [r7, #12] + 80043ac: 893a ldrh r2, [r7, #8] + 80043ae: 855a strh r2, [r3, #42] @ 0x2a hi2c->XferSize = hi2c->XferCount; - 8004134: 68fb ldr r3, [r7, #12] - 8004136: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004138: b29a uxth r2, r3 - 800413a: 68fb ldr r3, [r7, #12] - 800413c: 851a strh r2, [r3, #40] @ 0x28 + 80043b0: 68fb ldr r3, [r7, #12] + 80043b2: 8d5b ldrh r3, [r3, #42] @ 0x2a + 80043b4: b29a uxth r2, r3 + 80043b6: 68fb ldr r3, [r7, #12] + 80043b8: 851a strh r2, [r3, #40] @ 0x28 hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 800413e: 68fb ldr r3, [r7, #12] - 8004140: 4a5f ldr r2, [pc, #380] @ (80042c0 ) - 8004142: 62da str r2, [r3, #44] @ 0x2c + 80043ba: 68fb ldr r3, [r7, #12] + 80043bc: 4a5f ldr r2, [pc, #380] @ (800453c ) + 80043be: 62da str r2, [r3, #44] @ 0x2c /* Send Slave Address */ if (I2C_MasterRequestRead(hi2c, DevAddress, Timeout, tickstart) != HAL_OK) - 8004144: 8979 ldrh r1, [r7, #10] - 8004146: 6a7b ldr r3, [r7, #36] @ 0x24 - 8004148: 6b3a ldr r2, [r7, #48] @ 0x30 - 800414a: 68f8 ldr r0, [r7, #12] - 800414c: f000 fa8a bl 8004664 - 8004150: 4603 mov r3, r0 - 8004152: 2b00 cmp r3, #0 - 8004154: d001 beq.n 800415a + 80043c0: 8979 ldrh r1, [r7, #10] + 80043c2: 6a7b ldr r3, [r7, #36] @ 0x24 + 80043c4: 6b3a ldr r2, [r7, #48] @ 0x30 + 80043c6: 68f8 ldr r0, [r7, #12] + 80043c8: f000 fa8a bl 80048e0 + 80043cc: 4603 mov r3, r0 + 80043ce: 2b00 cmp r3, #0 + 80043d0: d001 beq.n 80043d6 { return HAL_ERROR; - 8004156: 2301 movs r3, #1 - 8004158: e1f8 b.n 800454c + 80043d2: 2301 movs r3, #1 + 80043d4: e1f8 b.n 80047c8 } if (hi2c->XferSize == 0U) - 800415a: 68fb ldr r3, [r7, #12] - 800415c: 8d1b ldrh r3, [r3, #40] @ 0x28 - 800415e: 2b00 cmp r3, #0 - 8004160: d113 bne.n 800418a + 80043d6: 68fb ldr r3, [r7, #12] + 80043d8: 8d1b ldrh r3, [r3, #40] @ 0x28 + 80043da: 2b00 cmp r3, #0 + 80043dc: d113 bne.n 8004406 { /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); - 8004162: 2300 movs r3, #0 - 8004164: 61fb str r3, [r7, #28] - 8004166: 68fb ldr r3, [r7, #12] - 8004168: 681b ldr r3, [r3, #0] - 800416a: 695b ldr r3, [r3, #20] - 800416c: 61fb str r3, [r7, #28] - 800416e: 68fb ldr r3, [r7, #12] - 8004170: 681b ldr r3, [r3, #0] - 8004172: 699b ldr r3, [r3, #24] - 8004174: 61fb str r3, [r7, #28] - 8004176: 69fb ldr r3, [r7, #28] + 80043de: 2300 movs r3, #0 + 80043e0: 61fb str r3, [r7, #28] + 80043e2: 68fb ldr r3, [r7, #12] + 80043e4: 681b ldr r3, [r3, #0] + 80043e6: 695b ldr r3, [r3, #20] + 80043e8: 61fb str r3, [r7, #28] + 80043ea: 68fb ldr r3, [r7, #12] + 80043ec: 681b ldr r3, [r3, #0] + 80043ee: 699b ldr r3, [r3, #24] + 80043f0: 61fb str r3, [r7, #28] + 80043f2: 69fb ldr r3, [r7, #28] /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8004178: 68fb ldr r3, [r7, #12] - 800417a: 681b ldr r3, [r3, #0] - 800417c: 681a ldr r2, [r3, #0] - 800417e: 68fb ldr r3, [r7, #12] - 8004180: 681b ldr r3, [r3, #0] - 8004182: f442 7200 orr.w r2, r2, #512 @ 0x200 - 8004186: 601a str r2, [r3, #0] - 8004188: e1cc b.n 8004524 + 80043f4: 68fb ldr r3, [r7, #12] + 80043f6: 681b ldr r3, [r3, #0] + 80043f8: 681a ldr r2, [r3, #0] + 80043fa: 68fb ldr r3, [r7, #12] + 80043fc: 681b ldr r3, [r3, #0] + 80043fe: f442 7200 orr.w r2, r2, #512 @ 0x200 + 8004402: 601a str r2, [r3, #0] + 8004404: e1cc b.n 80047a0 } else if (hi2c->XferSize == 1U) - 800418a: 68fb ldr r3, [r7, #12] - 800418c: 8d1b ldrh r3, [r3, #40] @ 0x28 - 800418e: 2b01 cmp r3, #1 - 8004190: d11e bne.n 80041d0 + 8004406: 68fb ldr r3, [r7, #12] + 8004408: 8d1b ldrh r3, [r3, #40] @ 0x28 + 800440a: 2b01 cmp r3, #1 + 800440c: d11e bne.n 800444c { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); - 8004192: 68fb ldr r3, [r7, #12] - 8004194: 681b ldr r3, [r3, #0] - 8004196: 681a ldr r2, [r3, #0] - 8004198: 68fb ldr r3, [r7, #12] - 800419a: 681b ldr r3, [r3, #0] - 800419c: f422 6280 bic.w r2, r2, #1024 @ 0x400 - 80041a0: 601a str r2, [r3, #0] + 800440e: 68fb ldr r3, [r7, #12] + 8004410: 681b ldr r3, [r3, #0] + 8004412: 681a ldr r2, [r3, #0] + 8004414: 68fb ldr r3, [r7, #12] + 8004416: 681b ldr r3, [r3, #0] + 8004418: f422 6280 bic.w r2, r2, #1024 @ 0x400 + 800441c: 601a str r2, [r3, #0] __ASM volatile ("cpsid i" : : : "memory"); - 80041a2: b672 cpsid i + 800441e: b672 cpsid i } - 80041a4: bf00 nop + 8004420: bf00 nop /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 software sequence must complete before the current byte end of transfer */ __disable_irq(); /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); - 80041a6: 2300 movs r3, #0 - 80041a8: 61bb str r3, [r7, #24] - 80041aa: 68fb ldr r3, [r7, #12] - 80041ac: 681b ldr r3, [r3, #0] - 80041ae: 695b ldr r3, [r3, #20] - 80041b0: 61bb str r3, [r7, #24] - 80041b2: 68fb ldr r3, [r7, #12] - 80041b4: 681b ldr r3, [r3, #0] - 80041b6: 699b ldr r3, [r3, #24] - 80041b8: 61bb str r3, [r7, #24] - 80041ba: 69bb ldr r3, [r7, #24] + 8004422: 2300 movs r3, #0 + 8004424: 61bb str r3, [r7, #24] + 8004426: 68fb ldr r3, [r7, #12] + 8004428: 681b ldr r3, [r3, #0] + 800442a: 695b ldr r3, [r3, #20] + 800442c: 61bb str r3, [r7, #24] + 800442e: 68fb ldr r3, [r7, #12] + 8004430: 681b ldr r3, [r3, #0] + 8004432: 699b ldr r3, [r3, #24] + 8004434: 61bb str r3, [r7, #24] + 8004436: 69bb ldr r3, [r7, #24] /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 80041bc: 68fb ldr r3, [r7, #12] - 80041be: 681b ldr r3, [r3, #0] - 80041c0: 681a ldr r2, [r3, #0] - 80041c2: 68fb ldr r3, [r7, #12] - 80041c4: 681b ldr r3, [r3, #0] - 80041c6: f442 7200 orr.w r2, r2, #512 @ 0x200 - 80041ca: 601a str r2, [r3, #0] + 8004438: 68fb ldr r3, [r7, #12] + 800443a: 681b ldr r3, [r3, #0] + 800443c: 681a ldr r2, [r3, #0] + 800443e: 68fb ldr r3, [r7, #12] + 8004440: 681b ldr r3, [r3, #0] + 8004442: f442 7200 orr.w r2, r2, #512 @ 0x200 + 8004446: 601a str r2, [r3, #0] __ASM volatile ("cpsie i" : : : "memory"); - 80041cc: b662 cpsie i + 8004448: b662 cpsie i } - 80041ce: e035 b.n 800423c + 800444a: e035 b.n 80044b8 /* Re-enable IRQs */ __enable_irq(); } else if (hi2c->XferSize == 2U) - 80041d0: 68fb ldr r3, [r7, #12] - 80041d2: 8d1b ldrh r3, [r3, #40] @ 0x28 - 80041d4: 2b02 cmp r3, #2 - 80041d6: d11e bne.n 8004216 + 800444c: 68fb ldr r3, [r7, #12] + 800444e: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004450: 2b02 cmp r3, #2 + 8004452: d11e bne.n 8004492 { /* Enable Pos */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); - 80041d8: 68fb ldr r3, [r7, #12] - 80041da: 681b ldr r3, [r3, #0] - 80041dc: 681a ldr r2, [r3, #0] - 80041de: 68fb ldr r3, [r7, #12] - 80041e0: 681b ldr r3, [r3, #0] - 80041e2: f442 6200 orr.w r2, r2, #2048 @ 0x800 - 80041e6: 601a str r2, [r3, #0] + 8004454: 68fb ldr r3, [r7, #12] + 8004456: 681b ldr r3, [r3, #0] + 8004458: 681a ldr r2, [r3, #0] + 800445a: 68fb ldr r3, [r7, #12] + 800445c: 681b ldr r3, [r3, #0] + 800445e: f442 6200 orr.w r2, r2, #2048 @ 0x800 + 8004462: 601a str r2, [r3, #0] __ASM volatile ("cpsid i" : : : "memory"); - 80041e8: b672 cpsid i + 8004464: b672 cpsid i } - 80041ea: bf00 nop + 8004466: bf00 nop /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 software sequence must complete before the current byte end of transfer */ __disable_irq(); /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); - 80041ec: 2300 movs r3, #0 - 80041ee: 617b str r3, [r7, #20] - 80041f0: 68fb ldr r3, [r7, #12] - 80041f2: 681b ldr r3, [r3, #0] - 80041f4: 695b ldr r3, [r3, #20] - 80041f6: 617b str r3, [r7, #20] - 80041f8: 68fb ldr r3, [r7, #12] - 80041fa: 681b ldr r3, [r3, #0] - 80041fc: 699b ldr r3, [r3, #24] - 80041fe: 617b str r3, [r7, #20] - 8004200: 697b ldr r3, [r7, #20] + 8004468: 2300 movs r3, #0 + 800446a: 617b str r3, [r7, #20] + 800446c: 68fb ldr r3, [r7, #12] + 800446e: 681b ldr r3, [r3, #0] + 8004470: 695b ldr r3, [r3, #20] + 8004472: 617b str r3, [r7, #20] + 8004474: 68fb ldr r3, [r7, #12] + 8004476: 681b ldr r3, [r3, #0] + 8004478: 699b ldr r3, [r3, #24] + 800447a: 617b str r3, [r7, #20] + 800447c: 697b ldr r3, [r7, #20] /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); - 8004202: 68fb ldr r3, [r7, #12] - 8004204: 681b ldr r3, [r3, #0] - 8004206: 681a ldr r2, [r3, #0] - 8004208: 68fb ldr r3, [r7, #12] - 800420a: 681b ldr r3, [r3, #0] - 800420c: f422 6280 bic.w r2, r2, #1024 @ 0x400 - 8004210: 601a str r2, [r3, #0] + 800447e: 68fb ldr r3, [r7, #12] + 8004480: 681b ldr r3, [r3, #0] + 8004482: 681a ldr r2, [r3, #0] + 8004484: 68fb ldr r3, [r7, #12] + 8004486: 681b ldr r3, [r3, #0] + 8004488: f422 6280 bic.w r2, r2, #1024 @ 0x400 + 800448c: 601a str r2, [r3, #0] __ASM volatile ("cpsie i" : : : "memory"); - 8004212: b662 cpsie i + 800448e: b662 cpsie i } - 8004214: e012 b.n 800423c + 8004490: e012 b.n 80044b8 __enable_irq(); } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); - 8004216: 68fb ldr r3, [r7, #12] - 8004218: 681b ldr r3, [r3, #0] - 800421a: 681a ldr r2, [r3, #0] - 800421c: 68fb ldr r3, [r7, #12] - 800421e: 681b ldr r3, [r3, #0] - 8004220: f442 6280 orr.w r2, r2, #1024 @ 0x400 - 8004224: 601a str r2, [r3, #0] + 8004492: 68fb ldr r3, [r7, #12] + 8004494: 681b ldr r3, [r3, #0] + 8004496: 681a ldr r2, [r3, #0] + 8004498: 68fb ldr r3, [r7, #12] + 800449a: 681b ldr r3, [r3, #0] + 800449c: f442 6280 orr.w r2, r2, #1024 @ 0x400 + 80044a0: 601a str r2, [r3, #0] /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); - 8004226: 2300 movs r3, #0 - 8004228: 613b str r3, [r7, #16] - 800422a: 68fb ldr r3, [r7, #12] - 800422c: 681b ldr r3, [r3, #0] - 800422e: 695b ldr r3, [r3, #20] - 8004230: 613b str r3, [r7, #16] - 8004232: 68fb ldr r3, [r7, #12] - 8004234: 681b ldr r3, [r3, #0] - 8004236: 699b ldr r3, [r3, #24] - 8004238: 613b str r3, [r7, #16] - 800423a: 693b ldr r3, [r7, #16] + 80044a2: 2300 movs r3, #0 + 80044a4: 613b str r3, [r7, #16] + 80044a6: 68fb ldr r3, [r7, #12] + 80044a8: 681b ldr r3, [r3, #0] + 80044aa: 695b ldr r3, [r3, #20] + 80044ac: 613b str r3, [r7, #16] + 80044ae: 68fb ldr r3, [r7, #12] + 80044b0: 681b ldr r3, [r3, #0] + 80044b2: 699b ldr r3, [r3, #24] + 80044b4: 613b str r3, [r7, #16] + 80044b6: 693b ldr r3, [r7, #16] } while (hi2c->XferSize > 0U) - 800423c: e172 b.n 8004524 + 80044b8: e172 b.n 80047a0 { if (hi2c->XferSize <= 3U) - 800423e: 68fb ldr r3, [r7, #12] - 8004240: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004242: 2b03 cmp r3, #3 - 8004244: f200 811f bhi.w 8004486 + 80044ba: 68fb ldr r3, [r7, #12] + 80044bc: 8d1b ldrh r3, [r3, #40] @ 0x28 + 80044be: 2b03 cmp r3, #3 + 80044c0: f200 811f bhi.w 8004702 { /* One byte */ if (hi2c->XferSize == 1U) - 8004248: 68fb ldr r3, [r7, #12] - 800424a: 8d1b ldrh r3, [r3, #40] @ 0x28 - 800424c: 2b01 cmp r3, #1 - 800424e: d123 bne.n 8004298 + 80044c4: 68fb ldr r3, [r7, #12] + 80044c6: 8d1b ldrh r3, [r3, #40] @ 0x28 + 80044c8: 2b01 cmp r3, #1 + 80044ca: d123 bne.n 8004514 { /* Wait until RXNE flag is set */ if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 8004250: 6a7a ldr r2, [r7, #36] @ 0x24 - 8004252: 6b39 ldr r1, [r7, #48] @ 0x30 - 8004254: 68f8 ldr r0, [r7, #12] - 8004256: f000 fc7d bl 8004b54 - 800425a: 4603 mov r3, r0 - 800425c: 2b00 cmp r3, #0 - 800425e: d001 beq.n 8004264 + 80044cc: 6a7a ldr r2, [r7, #36] @ 0x24 + 80044ce: 6b39 ldr r1, [r7, #48] @ 0x30 + 80044d0: 68f8 ldr r0, [r7, #12] + 80044d2: f000 fc7d bl 8004dd0 + 80044d6: 4603 mov r3, r0 + 80044d8: 2b00 cmp r3, #0 + 80044da: d001 beq.n 80044e0 { return HAL_ERROR; - 8004260: 2301 movs r3, #1 - 8004262: e173 b.n 800454c + 80044dc: 2301 movs r3, #1 + 80044de: e173 b.n 80047c8 } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 8004264: 68fb ldr r3, [r7, #12] - 8004266: 681b ldr r3, [r3, #0] - 8004268: 691a ldr r2, [r3, #16] - 800426a: 68fb ldr r3, [r7, #12] - 800426c: 6a5b ldr r3, [r3, #36] @ 0x24 - 800426e: b2d2 uxtb r2, r2 - 8004270: 701a strb r2, [r3, #0] + 80044e0: 68fb ldr r3, [r7, #12] + 80044e2: 681b ldr r3, [r3, #0] + 80044e4: 691a ldr r2, [r3, #16] + 80044e6: 68fb ldr r3, [r7, #12] + 80044e8: 6a5b ldr r3, [r3, #36] @ 0x24 + 80044ea: b2d2 uxtb r2, r2 + 80044ec: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8004272: 68fb ldr r3, [r7, #12] - 8004274: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004276: 1c5a adds r2, r3, #1 - 8004278: 68fb ldr r3, [r7, #12] - 800427a: 625a str r2, [r3, #36] @ 0x24 + 80044ee: 68fb ldr r3, [r7, #12] + 80044f0: 6a5b ldr r3, [r3, #36] @ 0x24 + 80044f2: 1c5a adds r2, r3, #1 + 80044f4: 68fb ldr r3, [r7, #12] + 80044f6: 625a str r2, [r3, #36] @ 0x24 /* Update counter */ hi2c->XferSize--; - 800427c: 68fb ldr r3, [r7, #12] - 800427e: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004280: 3b01 subs r3, #1 - 8004282: b29a uxth r2, r3 - 8004284: 68fb ldr r3, [r7, #12] - 8004286: 851a strh r2, [r3, #40] @ 0x28 + 80044f8: 68fb ldr r3, [r7, #12] + 80044fa: 8d1b ldrh r3, [r3, #40] @ 0x28 + 80044fc: 3b01 subs r3, #1 + 80044fe: b29a uxth r2, r3 + 8004500: 68fb ldr r3, [r7, #12] + 8004502: 851a strh r2, [r3, #40] @ 0x28 hi2c->XferCount--; - 8004288: 68fb ldr r3, [r7, #12] - 800428a: 8d5b ldrh r3, [r3, #42] @ 0x2a - 800428c: b29b uxth r3, r3 - 800428e: 3b01 subs r3, #1 - 8004290: b29a uxth r2, r3 - 8004292: 68fb ldr r3, [r7, #12] - 8004294: 855a strh r2, [r3, #42] @ 0x2a - 8004296: e145 b.n 8004524 + 8004504: 68fb ldr r3, [r7, #12] + 8004506: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004508: b29b uxth r3, r3 + 800450a: 3b01 subs r3, #1 + 800450c: b29a uxth r2, r3 + 800450e: 68fb ldr r3, [r7, #12] + 8004510: 855a strh r2, [r3, #42] @ 0x2a + 8004512: e145 b.n 80047a0 } /* Two bytes */ else if (hi2c->XferSize == 2U) - 8004298: 68fb ldr r3, [r7, #12] - 800429a: 8d1b ldrh r3, [r3, #40] @ 0x28 - 800429c: 2b02 cmp r3, #2 - 800429e: d152 bne.n 8004346 + 8004514: 68fb ldr r3, [r7, #12] + 8004516: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004518: 2b02 cmp r3, #2 + 800451a: d152 bne.n 80045c2 { /* Wait until BTF flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) - 80042a0: 6a7b ldr r3, [r7, #36] @ 0x24 - 80042a2: 9300 str r3, [sp, #0] - 80042a4: 6b3b ldr r3, [r7, #48] @ 0x30 - 80042a6: 2200 movs r2, #0 - 80042a8: 4906 ldr r1, [pc, #24] @ (80042c4 ) - 80042aa: 68f8 ldr r0, [r7, #12] - 80042ac: f000 faa8 bl 8004800 - 80042b0: 4603 mov r3, r0 - 80042b2: 2b00 cmp r3, #0 - 80042b4: d008 beq.n 80042c8 + 800451c: 6a7b ldr r3, [r7, #36] @ 0x24 + 800451e: 9300 str r3, [sp, #0] + 8004520: 6b3b ldr r3, [r7, #48] @ 0x30 + 8004522: 2200 movs r2, #0 + 8004524: 4906 ldr r1, [pc, #24] @ (8004540 ) + 8004526: 68f8 ldr r0, [r7, #12] + 8004528: f000 faa8 bl 8004a7c + 800452c: 4603 mov r3, r0 + 800452e: 2b00 cmp r3, #0 + 8004530: d008 beq.n 8004544 { return HAL_ERROR; - 80042b6: 2301 movs r3, #1 - 80042b8: e148 b.n 800454c - 80042ba: bf00 nop - 80042bc: 00100002 .word 0x00100002 - 80042c0: ffff0000 .word 0xffff0000 - 80042c4: 00010004 .word 0x00010004 + 8004532: 2301 movs r3, #1 + 8004534: e148 b.n 80047c8 + 8004536: bf00 nop + 8004538: 00100002 .word 0x00100002 + 800453c: ffff0000 .word 0xffff0000 + 8004540: 00010004 .word 0x00010004 __ASM volatile ("cpsid i" : : : "memory"); - 80042c8: b672 cpsid i + 8004544: b672 cpsid i } - 80042ca: bf00 nop + 8004546: bf00 nop /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 software sequence must complete before the current byte end of transfer */ __disable_irq(); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 80042cc: 68fb ldr r3, [r7, #12] - 80042ce: 681b ldr r3, [r3, #0] - 80042d0: 681a ldr r2, [r3, #0] - 80042d2: 68fb ldr r3, [r7, #12] - 80042d4: 681b ldr r3, [r3, #0] - 80042d6: f442 7200 orr.w r2, r2, #512 @ 0x200 - 80042da: 601a str r2, [r3, #0] + 8004548: 68fb ldr r3, [r7, #12] + 800454a: 681b ldr r3, [r3, #0] + 800454c: 681a ldr r2, [r3, #0] + 800454e: 68fb ldr r3, [r7, #12] + 8004550: 681b ldr r3, [r3, #0] + 8004552: f442 7200 orr.w r2, r2, #512 @ 0x200 + 8004556: 601a str r2, [r3, #0] /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 80042dc: 68fb ldr r3, [r7, #12] - 80042de: 681b ldr r3, [r3, #0] - 80042e0: 691a ldr r2, [r3, #16] - 80042e2: 68fb ldr r3, [r7, #12] - 80042e4: 6a5b ldr r3, [r3, #36] @ 0x24 - 80042e6: b2d2 uxtb r2, r2 - 80042e8: 701a strb r2, [r3, #0] + 8004558: 68fb ldr r3, [r7, #12] + 800455a: 681b ldr r3, [r3, #0] + 800455c: 691a ldr r2, [r3, #16] + 800455e: 68fb ldr r3, [r7, #12] + 8004560: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004562: b2d2 uxtb r2, r2 + 8004564: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 80042ea: 68fb ldr r3, [r7, #12] - 80042ec: 6a5b ldr r3, [r3, #36] @ 0x24 - 80042ee: 1c5a adds r2, r3, #1 - 80042f0: 68fb ldr r3, [r7, #12] - 80042f2: 625a str r2, [r3, #36] @ 0x24 + 8004566: 68fb ldr r3, [r7, #12] + 8004568: 6a5b ldr r3, [r3, #36] @ 0x24 + 800456a: 1c5a adds r2, r3, #1 + 800456c: 68fb ldr r3, [r7, #12] + 800456e: 625a str r2, [r3, #36] @ 0x24 /* Update counter */ hi2c->XferSize--; - 80042f4: 68fb ldr r3, [r7, #12] - 80042f6: 8d1b ldrh r3, [r3, #40] @ 0x28 - 80042f8: 3b01 subs r3, #1 - 80042fa: b29a uxth r2, r3 - 80042fc: 68fb ldr r3, [r7, #12] - 80042fe: 851a strh r2, [r3, #40] @ 0x28 + 8004570: 68fb ldr r3, [r7, #12] + 8004572: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004574: 3b01 subs r3, #1 + 8004576: b29a uxth r2, r3 + 8004578: 68fb ldr r3, [r7, #12] + 800457a: 851a strh r2, [r3, #40] @ 0x28 hi2c->XferCount--; - 8004300: 68fb ldr r3, [r7, #12] - 8004302: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004304: b29b uxth r3, r3 - 8004306: 3b01 subs r3, #1 - 8004308: b29a uxth r2, r3 - 800430a: 68fb ldr r3, [r7, #12] - 800430c: 855a strh r2, [r3, #42] @ 0x2a + 800457c: 68fb ldr r3, [r7, #12] + 800457e: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004580: b29b uxth r3, r3 + 8004582: 3b01 subs r3, #1 + 8004584: b29a uxth r2, r3 + 8004586: 68fb ldr r3, [r7, #12] + 8004588: 855a strh r2, [r3, #42] @ 0x2a __ASM volatile ("cpsie i" : : : "memory"); - 800430e: b662 cpsie i + 800458a: b662 cpsie i } - 8004310: bf00 nop + 800458c: bf00 nop /* Re-enable IRQs */ __enable_irq(); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 8004312: 68fb ldr r3, [r7, #12] - 8004314: 681b ldr r3, [r3, #0] - 8004316: 691a ldr r2, [r3, #16] - 8004318: 68fb ldr r3, [r7, #12] - 800431a: 6a5b ldr r3, [r3, #36] @ 0x24 - 800431c: b2d2 uxtb r2, r2 - 800431e: 701a strb r2, [r3, #0] + 800458e: 68fb ldr r3, [r7, #12] + 8004590: 681b ldr r3, [r3, #0] + 8004592: 691a ldr r2, [r3, #16] + 8004594: 68fb ldr r3, [r7, #12] + 8004596: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004598: b2d2 uxtb r2, r2 + 800459a: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8004320: 68fb ldr r3, [r7, #12] - 8004322: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004324: 1c5a adds r2, r3, #1 - 8004326: 68fb ldr r3, [r7, #12] - 8004328: 625a str r2, [r3, #36] @ 0x24 + 800459c: 68fb ldr r3, [r7, #12] + 800459e: 6a5b ldr r3, [r3, #36] @ 0x24 + 80045a0: 1c5a adds r2, r3, #1 + 80045a2: 68fb ldr r3, [r7, #12] + 80045a4: 625a str r2, [r3, #36] @ 0x24 /* Update counter */ hi2c->XferSize--; - 800432a: 68fb ldr r3, [r7, #12] - 800432c: 8d1b ldrh r3, [r3, #40] @ 0x28 - 800432e: 3b01 subs r3, #1 - 8004330: b29a uxth r2, r3 - 8004332: 68fb ldr r3, [r7, #12] - 8004334: 851a strh r2, [r3, #40] @ 0x28 + 80045a6: 68fb ldr r3, [r7, #12] + 80045a8: 8d1b ldrh r3, [r3, #40] @ 0x28 + 80045aa: 3b01 subs r3, #1 + 80045ac: b29a uxth r2, r3 + 80045ae: 68fb ldr r3, [r7, #12] + 80045b0: 851a strh r2, [r3, #40] @ 0x28 hi2c->XferCount--; - 8004336: 68fb ldr r3, [r7, #12] - 8004338: 8d5b ldrh r3, [r3, #42] @ 0x2a - 800433a: b29b uxth r3, r3 - 800433c: 3b01 subs r3, #1 - 800433e: b29a uxth r2, r3 - 8004340: 68fb ldr r3, [r7, #12] - 8004342: 855a strh r2, [r3, #42] @ 0x2a - 8004344: e0ee b.n 8004524 + 80045b2: 68fb ldr r3, [r7, #12] + 80045b4: 8d5b ldrh r3, [r3, #42] @ 0x2a + 80045b6: b29b uxth r3, r3 + 80045b8: 3b01 subs r3, #1 + 80045ba: b29a uxth r2, r3 + 80045bc: 68fb ldr r3, [r7, #12] + 80045be: 855a strh r2, [r3, #42] @ 0x2a + 80045c0: e0ee b.n 80047a0 } /* 3 Last bytes */ else { /* Wait until BTF flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) - 8004346: 6a7b ldr r3, [r7, #36] @ 0x24 - 8004348: 9300 str r3, [sp, #0] - 800434a: 6b3b ldr r3, [r7, #48] @ 0x30 - 800434c: 2200 movs r2, #0 - 800434e: 4981 ldr r1, [pc, #516] @ (8004554 ) - 8004350: 68f8 ldr r0, [r7, #12] - 8004352: f000 fa55 bl 8004800 - 8004356: 4603 mov r3, r0 - 8004358: 2b00 cmp r3, #0 - 800435a: d001 beq.n 8004360 + 80045c2: 6a7b ldr r3, [r7, #36] @ 0x24 + 80045c4: 9300 str r3, [sp, #0] + 80045c6: 6b3b ldr r3, [r7, #48] @ 0x30 + 80045c8: 2200 movs r2, #0 + 80045ca: 4981 ldr r1, [pc, #516] @ (80047d0 ) + 80045cc: 68f8 ldr r0, [r7, #12] + 80045ce: f000 fa55 bl 8004a7c + 80045d2: 4603 mov r3, r0 + 80045d4: 2b00 cmp r3, #0 + 80045d6: d001 beq.n 80045dc { return HAL_ERROR; - 800435c: 2301 movs r3, #1 - 800435e: e0f5 b.n 800454c + 80045d8: 2301 movs r3, #1 + 80045da: e0f5 b.n 80047c8 } /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); - 8004360: 68fb ldr r3, [r7, #12] - 8004362: 681b ldr r3, [r3, #0] - 8004364: 681a ldr r2, [r3, #0] - 8004366: 68fb ldr r3, [r7, #12] - 8004368: 681b ldr r3, [r3, #0] - 800436a: f422 6280 bic.w r2, r2, #1024 @ 0x400 - 800436e: 601a str r2, [r3, #0] + 80045dc: 68fb ldr r3, [r7, #12] + 80045de: 681b ldr r3, [r3, #0] + 80045e0: 681a ldr r2, [r3, #0] + 80045e2: 68fb ldr r3, [r7, #12] + 80045e4: 681b ldr r3, [r3, #0] + 80045e6: f422 6280 bic.w r2, r2, #1024 @ 0x400 + 80045ea: 601a str r2, [r3, #0] __ASM volatile ("cpsid i" : : : "memory"); - 8004370: b672 cpsid i + 80045ec: b672 cpsid i } - 8004372: bf00 nop + 80045ee: bf00 nop /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 software sequence must complete before the current byte end of transfer */ __disable_irq(); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 8004374: 68fb ldr r3, [r7, #12] - 8004376: 681b ldr r3, [r3, #0] - 8004378: 691a ldr r2, [r3, #16] - 800437a: 68fb ldr r3, [r7, #12] - 800437c: 6a5b ldr r3, [r3, #36] @ 0x24 - 800437e: b2d2 uxtb r2, r2 - 8004380: 701a strb r2, [r3, #0] + 80045f0: 68fb ldr r3, [r7, #12] + 80045f2: 681b ldr r3, [r3, #0] + 80045f4: 691a ldr r2, [r3, #16] + 80045f6: 68fb ldr r3, [r7, #12] + 80045f8: 6a5b ldr r3, [r3, #36] @ 0x24 + 80045fa: b2d2 uxtb r2, r2 + 80045fc: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8004382: 68fb ldr r3, [r7, #12] - 8004384: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004386: 1c5a adds r2, r3, #1 - 8004388: 68fb ldr r3, [r7, #12] - 800438a: 625a str r2, [r3, #36] @ 0x24 + 80045fe: 68fb ldr r3, [r7, #12] + 8004600: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004602: 1c5a adds r2, r3, #1 + 8004604: 68fb ldr r3, [r7, #12] + 8004606: 625a str r2, [r3, #36] @ 0x24 /* Update counter */ hi2c->XferSize--; - 800438c: 68fb ldr r3, [r7, #12] - 800438e: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004390: 3b01 subs r3, #1 - 8004392: b29a uxth r2, r3 - 8004394: 68fb ldr r3, [r7, #12] - 8004396: 851a strh r2, [r3, #40] @ 0x28 + 8004608: 68fb ldr r3, [r7, #12] + 800460a: 8d1b ldrh r3, [r3, #40] @ 0x28 + 800460c: 3b01 subs r3, #1 + 800460e: b29a uxth r2, r3 + 8004610: 68fb ldr r3, [r7, #12] + 8004612: 851a strh r2, [r3, #40] @ 0x28 hi2c->XferCount--; - 8004398: 68fb ldr r3, [r7, #12] - 800439a: 8d5b ldrh r3, [r3, #42] @ 0x2a - 800439c: b29b uxth r3, r3 - 800439e: 3b01 subs r3, #1 - 80043a0: b29a uxth r2, r3 - 80043a2: 68fb ldr r3, [r7, #12] - 80043a4: 855a strh r2, [r3, #42] @ 0x2a + 8004614: 68fb ldr r3, [r7, #12] + 8004616: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004618: b29b uxth r3, r3 + 800461a: 3b01 subs r3, #1 + 800461c: b29a uxth r2, r3 + 800461e: 68fb ldr r3, [r7, #12] + 8004620: 855a strh r2, [r3, #42] @ 0x2a /* Wait until BTF flag is set */ count = I2C_TIMEOUT_FLAG * (SystemCoreClock / 25U / 1000U); - 80043a6: 4b6c ldr r3, [pc, #432] @ (8004558 ) - 80043a8: 681b ldr r3, [r3, #0] - 80043aa: 08db lsrs r3, r3, #3 - 80043ac: 4a6b ldr r2, [pc, #428] @ (800455c ) - 80043ae: fba2 2303 umull r2, r3, r2, r3 - 80043b2: 0a1a lsrs r2, r3, #8 - 80043b4: 4613 mov r3, r2 - 80043b6: 009b lsls r3, r3, #2 - 80043b8: 4413 add r3, r2 - 80043ba: 00da lsls r2, r3, #3 - 80043bc: 1ad3 subs r3, r2, r3 - 80043be: 623b str r3, [r7, #32] + 8004622: 4b6c ldr r3, [pc, #432] @ (80047d4 ) + 8004624: 681b ldr r3, [r3, #0] + 8004626: 08db lsrs r3, r3, #3 + 8004628: 4a6b ldr r2, [pc, #428] @ (80047d8 ) + 800462a: fba2 2303 umull r2, r3, r2, r3 + 800462e: 0a1a lsrs r2, r3, #8 + 8004630: 4613 mov r3, r2 + 8004632: 009b lsls r3, r3, #2 + 8004634: 4413 add r3, r2 + 8004636: 00da lsls r2, r3, #3 + 8004638: 1ad3 subs r3, r2, r3 + 800463a: 623b str r3, [r7, #32] do { count--; - 80043c0: 6a3b ldr r3, [r7, #32] - 80043c2: 3b01 subs r3, #1 - 80043c4: 623b str r3, [r7, #32] + 800463c: 6a3b ldr r3, [r7, #32] + 800463e: 3b01 subs r3, #1 + 8004640: 623b str r3, [r7, #32] if (count == 0U) - 80043c6: 6a3b ldr r3, [r7, #32] - 80043c8: 2b00 cmp r3, #0 - 80043ca: d118 bne.n 80043fe + 8004642: 6a3b ldr r3, [r7, #32] + 8004644: 2b00 cmp r3, #0 + 8004646: d118 bne.n 800467a { hi2c->PreviousState = I2C_STATE_NONE; - 80043cc: 68fb ldr r3, [r7, #12] - 80043ce: 2200 movs r2, #0 - 80043d0: 631a str r2, [r3, #48] @ 0x30 + 8004648: 68fb ldr r3, [r7, #12] + 800464a: 2200 movs r2, #0 + 800464c: 631a str r2, [r3, #48] @ 0x30 hi2c->State = HAL_I2C_STATE_READY; - 80043d2: 68fb ldr r3, [r7, #12] - 80043d4: 2220 movs r2, #32 - 80043d6: f883 203d strb.w r2, [r3, #61] @ 0x3d + 800464e: 68fb ldr r3, [r7, #12] + 8004650: 2220 movs r2, #32 + 8004652: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 80043da: 68fb ldr r3, [r7, #12] - 80043dc: 2200 movs r2, #0 - 80043de: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8004656: 68fb ldr r3, [r7, #12] + 8004658: 2200 movs r2, #0 + 800465a: f883 203e strb.w r2, [r3, #62] @ 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 80043e2: 68fb ldr r3, [r7, #12] - 80043e4: 6c1b ldr r3, [r3, #64] @ 0x40 - 80043e6: f043 0220 orr.w r2, r3, #32 - 80043ea: 68fb ldr r3, [r7, #12] - 80043ec: 641a str r2, [r3, #64] @ 0x40 + 800465e: 68fb ldr r3, [r7, #12] + 8004660: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004662: f043 0220 orr.w r2, r3, #32 + 8004666: 68fb ldr r3, [r7, #12] + 8004668: 641a str r2, [r3, #64] @ 0x40 __ASM volatile ("cpsie i" : : : "memory"); - 80043ee: b662 cpsie i + 800466a: b662 cpsie i } - 80043f0: bf00 nop + 800466c: bf00 nop /* Re-enable IRQs */ __enable_irq(); /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 80043f2: 68fb ldr r3, [r7, #12] - 80043f4: 2200 movs r2, #0 - 80043f6: f883 203c strb.w r2, [r3, #60] @ 0x3c + 800466e: 68fb ldr r3, [r7, #12] + 8004670: 2200 movs r2, #0 + 8004672: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_ERROR; - 80043fa: 2301 movs r3, #1 - 80043fc: e0a6 b.n 800454c + 8004676: 2301 movs r3, #1 + 8004678: e0a6 b.n 80047c8 } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET); - 80043fe: 68fb ldr r3, [r7, #12] - 8004400: 681b ldr r3, [r3, #0] - 8004402: 695b ldr r3, [r3, #20] - 8004404: f003 0304 and.w r3, r3, #4 - 8004408: 2b04 cmp r3, #4 - 800440a: d1d9 bne.n 80043c0 + 800467a: 68fb ldr r3, [r7, #12] + 800467c: 681b ldr r3, [r3, #0] + 800467e: 695b ldr r3, [r3, #20] + 8004680: f003 0304 and.w r3, r3, #4 + 8004684: 2b04 cmp r3, #4 + 8004686: d1d9 bne.n 800463c /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 800440c: 68fb ldr r3, [r7, #12] - 800440e: 681b ldr r3, [r3, #0] - 8004410: 681a ldr r2, [r3, #0] - 8004412: 68fb ldr r3, [r7, #12] - 8004414: 681b ldr r3, [r3, #0] - 8004416: f442 7200 orr.w r2, r2, #512 @ 0x200 - 800441a: 601a str r2, [r3, #0] + 8004688: 68fb ldr r3, [r7, #12] + 800468a: 681b ldr r3, [r3, #0] + 800468c: 681a ldr r2, [r3, #0] + 800468e: 68fb ldr r3, [r7, #12] + 8004690: 681b ldr r3, [r3, #0] + 8004692: f442 7200 orr.w r2, r2, #512 @ 0x200 + 8004696: 601a str r2, [r3, #0] /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 800441c: 68fb ldr r3, [r7, #12] - 800441e: 681b ldr r3, [r3, #0] - 8004420: 691a ldr r2, [r3, #16] - 8004422: 68fb ldr r3, [r7, #12] - 8004424: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004426: b2d2 uxtb r2, r2 - 8004428: 701a strb r2, [r3, #0] + 8004698: 68fb ldr r3, [r7, #12] + 800469a: 681b ldr r3, [r3, #0] + 800469c: 691a ldr r2, [r3, #16] + 800469e: 68fb ldr r3, [r7, #12] + 80046a0: 6a5b ldr r3, [r3, #36] @ 0x24 + 80046a2: b2d2 uxtb r2, r2 + 80046a4: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 800442a: 68fb ldr r3, [r7, #12] - 800442c: 6a5b ldr r3, [r3, #36] @ 0x24 - 800442e: 1c5a adds r2, r3, #1 - 8004430: 68fb ldr r3, [r7, #12] - 8004432: 625a str r2, [r3, #36] @ 0x24 + 80046a6: 68fb ldr r3, [r7, #12] + 80046a8: 6a5b ldr r3, [r3, #36] @ 0x24 + 80046aa: 1c5a adds r2, r3, #1 + 80046ac: 68fb ldr r3, [r7, #12] + 80046ae: 625a str r2, [r3, #36] @ 0x24 /* Update counter */ hi2c->XferSize--; - 8004434: 68fb ldr r3, [r7, #12] - 8004436: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004438: 3b01 subs r3, #1 - 800443a: b29a uxth r2, r3 - 800443c: 68fb ldr r3, [r7, #12] - 800443e: 851a strh r2, [r3, #40] @ 0x28 + 80046b0: 68fb ldr r3, [r7, #12] + 80046b2: 8d1b ldrh r3, [r3, #40] @ 0x28 + 80046b4: 3b01 subs r3, #1 + 80046b6: b29a uxth r2, r3 + 80046b8: 68fb ldr r3, [r7, #12] + 80046ba: 851a strh r2, [r3, #40] @ 0x28 hi2c->XferCount--; - 8004440: 68fb ldr r3, [r7, #12] - 8004442: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004444: b29b uxth r3, r3 - 8004446: 3b01 subs r3, #1 - 8004448: b29a uxth r2, r3 - 800444a: 68fb ldr r3, [r7, #12] - 800444c: 855a strh r2, [r3, #42] @ 0x2a + 80046bc: 68fb ldr r3, [r7, #12] + 80046be: 8d5b ldrh r3, [r3, #42] @ 0x2a + 80046c0: b29b uxth r3, r3 + 80046c2: 3b01 subs r3, #1 + 80046c4: b29a uxth r2, r3 + 80046c6: 68fb ldr r3, [r7, #12] + 80046c8: 855a strh r2, [r3, #42] @ 0x2a __ASM volatile ("cpsie i" : : : "memory"); - 800444e: b662 cpsie i + 80046ca: b662 cpsie i } - 8004450: bf00 nop + 80046cc: bf00 nop /* Re-enable IRQs */ __enable_irq(); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 8004452: 68fb ldr r3, [r7, #12] - 8004454: 681b ldr r3, [r3, #0] - 8004456: 691a ldr r2, [r3, #16] - 8004458: 68fb ldr r3, [r7, #12] - 800445a: 6a5b ldr r3, [r3, #36] @ 0x24 - 800445c: b2d2 uxtb r2, r2 - 800445e: 701a strb r2, [r3, #0] + 80046ce: 68fb ldr r3, [r7, #12] + 80046d0: 681b ldr r3, [r3, #0] + 80046d2: 691a ldr r2, [r3, #16] + 80046d4: 68fb ldr r3, [r7, #12] + 80046d6: 6a5b ldr r3, [r3, #36] @ 0x24 + 80046d8: b2d2 uxtb r2, r2 + 80046da: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8004460: 68fb ldr r3, [r7, #12] - 8004462: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004464: 1c5a adds r2, r3, #1 - 8004466: 68fb ldr r3, [r7, #12] - 8004468: 625a str r2, [r3, #36] @ 0x24 + 80046dc: 68fb ldr r3, [r7, #12] + 80046de: 6a5b ldr r3, [r3, #36] @ 0x24 + 80046e0: 1c5a adds r2, r3, #1 + 80046e2: 68fb ldr r3, [r7, #12] + 80046e4: 625a str r2, [r3, #36] @ 0x24 /* Update counter */ hi2c->XferSize--; - 800446a: 68fb ldr r3, [r7, #12] - 800446c: 8d1b ldrh r3, [r3, #40] @ 0x28 - 800446e: 3b01 subs r3, #1 - 8004470: b29a uxth r2, r3 - 8004472: 68fb ldr r3, [r7, #12] - 8004474: 851a strh r2, [r3, #40] @ 0x28 + 80046e6: 68fb ldr r3, [r7, #12] + 80046e8: 8d1b ldrh r3, [r3, #40] @ 0x28 + 80046ea: 3b01 subs r3, #1 + 80046ec: b29a uxth r2, r3 + 80046ee: 68fb ldr r3, [r7, #12] + 80046f0: 851a strh r2, [r3, #40] @ 0x28 hi2c->XferCount--; - 8004476: 68fb ldr r3, [r7, #12] - 8004478: 8d5b ldrh r3, [r3, #42] @ 0x2a - 800447a: b29b uxth r3, r3 - 800447c: 3b01 subs r3, #1 - 800447e: b29a uxth r2, r3 - 8004480: 68fb ldr r3, [r7, #12] - 8004482: 855a strh r2, [r3, #42] @ 0x2a - 8004484: e04e b.n 8004524 + 80046f2: 68fb ldr r3, [r7, #12] + 80046f4: 8d5b ldrh r3, [r3, #42] @ 0x2a + 80046f6: b29b uxth r3, r3 + 80046f8: 3b01 subs r3, #1 + 80046fa: b29a uxth r2, r3 + 80046fc: 68fb ldr r3, [r7, #12] + 80046fe: 855a strh r2, [r3, #42] @ 0x2a + 8004700: e04e b.n 80047a0 } } else { /* Wait until RXNE flag is set */ if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 8004486: 6a7a ldr r2, [r7, #36] @ 0x24 - 8004488: 6b39 ldr r1, [r7, #48] @ 0x30 - 800448a: 68f8 ldr r0, [r7, #12] - 800448c: f000 fb62 bl 8004b54 - 8004490: 4603 mov r3, r0 - 8004492: 2b00 cmp r3, #0 - 8004494: d001 beq.n 800449a + 8004702: 6a7a ldr r2, [r7, #36] @ 0x24 + 8004704: 6b39 ldr r1, [r7, #48] @ 0x30 + 8004706: 68f8 ldr r0, [r7, #12] + 8004708: f000 fb62 bl 8004dd0 + 800470c: 4603 mov r3, r0 + 800470e: 2b00 cmp r3, #0 + 8004710: d001 beq.n 8004716 { return HAL_ERROR; - 8004496: 2301 movs r3, #1 - 8004498: e058 b.n 800454c + 8004712: 2301 movs r3, #1 + 8004714: e058 b.n 80047c8 } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 800449a: 68fb ldr r3, [r7, #12] - 800449c: 681b ldr r3, [r3, #0] - 800449e: 691a ldr r2, [r3, #16] - 80044a0: 68fb ldr r3, [r7, #12] - 80044a2: 6a5b ldr r3, [r3, #36] @ 0x24 - 80044a4: b2d2 uxtb r2, r2 - 80044a6: 701a strb r2, [r3, #0] + 8004716: 68fb ldr r3, [r7, #12] + 8004718: 681b ldr r3, [r3, #0] + 800471a: 691a ldr r2, [r3, #16] + 800471c: 68fb ldr r3, [r7, #12] + 800471e: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004720: b2d2 uxtb r2, r2 + 8004722: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 80044a8: 68fb ldr r3, [r7, #12] - 80044aa: 6a5b ldr r3, [r3, #36] @ 0x24 - 80044ac: 1c5a adds r2, r3, #1 - 80044ae: 68fb ldr r3, [r7, #12] - 80044b0: 625a str r2, [r3, #36] @ 0x24 + 8004724: 68fb ldr r3, [r7, #12] + 8004726: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004728: 1c5a adds r2, r3, #1 + 800472a: 68fb ldr r3, [r7, #12] + 800472c: 625a str r2, [r3, #36] @ 0x24 /* Update counter */ hi2c->XferSize--; - 80044b2: 68fb ldr r3, [r7, #12] - 80044b4: 8d1b ldrh r3, [r3, #40] @ 0x28 - 80044b6: 3b01 subs r3, #1 - 80044b8: b29a uxth r2, r3 - 80044ba: 68fb ldr r3, [r7, #12] - 80044bc: 851a strh r2, [r3, #40] @ 0x28 + 800472e: 68fb ldr r3, [r7, #12] + 8004730: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004732: 3b01 subs r3, #1 + 8004734: b29a uxth r2, r3 + 8004736: 68fb ldr r3, [r7, #12] + 8004738: 851a strh r2, [r3, #40] @ 0x28 hi2c->XferCount--; - 80044be: 68fb ldr r3, [r7, #12] - 80044c0: 8d5b ldrh r3, [r3, #42] @ 0x2a - 80044c2: b29b uxth r3, r3 - 80044c4: 3b01 subs r3, #1 - 80044c6: b29a uxth r2, r3 - 80044c8: 68fb ldr r3, [r7, #12] - 80044ca: 855a strh r2, [r3, #42] @ 0x2a + 800473a: 68fb ldr r3, [r7, #12] + 800473c: 8d5b ldrh r3, [r3, #42] @ 0x2a + 800473e: b29b uxth r3, r3 + 8004740: 3b01 subs r3, #1 + 8004742: b29a uxth r2, r3 + 8004744: 68fb ldr r3, [r7, #12] + 8004746: 855a strh r2, [r3, #42] @ 0x2a if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) - 80044cc: 68fb ldr r3, [r7, #12] - 80044ce: 681b ldr r3, [r3, #0] - 80044d0: 695b ldr r3, [r3, #20] - 80044d2: f003 0304 and.w r3, r3, #4 - 80044d6: 2b04 cmp r3, #4 - 80044d8: d124 bne.n 8004524 + 8004748: 68fb ldr r3, [r7, #12] + 800474a: 681b ldr r3, [r3, #0] + 800474c: 695b ldr r3, [r3, #20] + 800474e: f003 0304 and.w r3, r3, #4 + 8004752: 2b04 cmp r3, #4 + 8004754: d124 bne.n 80047a0 { if (hi2c->XferSize == 3U) - 80044da: 68fb ldr r3, [r7, #12] - 80044dc: 8d1b ldrh r3, [r3, #40] @ 0x28 - 80044de: 2b03 cmp r3, #3 - 80044e0: d107 bne.n 80044f2 + 8004756: 68fb ldr r3, [r7, #12] + 8004758: 8d1b ldrh r3, [r3, #40] @ 0x28 + 800475a: 2b03 cmp r3, #3 + 800475c: d107 bne.n 800476e { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); - 80044e2: 68fb ldr r3, [r7, #12] - 80044e4: 681b ldr r3, [r3, #0] - 80044e6: 681a ldr r2, [r3, #0] - 80044e8: 68fb ldr r3, [r7, #12] - 80044ea: 681b ldr r3, [r3, #0] - 80044ec: f422 6280 bic.w r2, r2, #1024 @ 0x400 - 80044f0: 601a str r2, [r3, #0] + 800475e: 68fb ldr r3, [r7, #12] + 8004760: 681b ldr r3, [r3, #0] + 8004762: 681a ldr r2, [r3, #0] + 8004764: 68fb ldr r3, [r7, #12] + 8004766: 681b ldr r3, [r3, #0] + 8004768: f422 6280 bic.w r2, r2, #1024 @ 0x400 + 800476c: 601a str r2, [r3, #0] } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 80044f2: 68fb ldr r3, [r7, #12] - 80044f4: 681b ldr r3, [r3, #0] - 80044f6: 691a ldr r2, [r3, #16] - 80044f8: 68fb ldr r3, [r7, #12] - 80044fa: 6a5b ldr r3, [r3, #36] @ 0x24 - 80044fc: b2d2 uxtb r2, r2 - 80044fe: 701a strb r2, [r3, #0] + 800476e: 68fb ldr r3, [r7, #12] + 8004770: 681b ldr r3, [r3, #0] + 8004772: 691a ldr r2, [r3, #16] + 8004774: 68fb ldr r3, [r7, #12] + 8004776: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004778: b2d2 uxtb r2, r2 + 800477a: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8004500: 68fb ldr r3, [r7, #12] - 8004502: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004504: 1c5a adds r2, r3, #1 - 8004506: 68fb ldr r3, [r7, #12] - 8004508: 625a str r2, [r3, #36] @ 0x24 + 800477c: 68fb ldr r3, [r7, #12] + 800477e: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004780: 1c5a adds r2, r3, #1 + 8004782: 68fb ldr r3, [r7, #12] + 8004784: 625a str r2, [r3, #36] @ 0x24 /* Update counter */ hi2c->XferSize--; - 800450a: 68fb ldr r3, [r7, #12] - 800450c: 8d1b ldrh r3, [r3, #40] @ 0x28 - 800450e: 3b01 subs r3, #1 - 8004510: b29a uxth r2, r3 - 8004512: 68fb ldr r3, [r7, #12] - 8004514: 851a strh r2, [r3, #40] @ 0x28 + 8004786: 68fb ldr r3, [r7, #12] + 8004788: 8d1b ldrh r3, [r3, #40] @ 0x28 + 800478a: 3b01 subs r3, #1 + 800478c: b29a uxth r2, r3 + 800478e: 68fb ldr r3, [r7, #12] + 8004790: 851a strh r2, [r3, #40] @ 0x28 hi2c->XferCount--; - 8004516: 68fb ldr r3, [r7, #12] - 8004518: 8d5b ldrh r3, [r3, #42] @ 0x2a - 800451a: b29b uxth r3, r3 - 800451c: 3b01 subs r3, #1 - 800451e: b29a uxth r2, r3 - 8004520: 68fb ldr r3, [r7, #12] - 8004522: 855a strh r2, [r3, #42] @ 0x2a + 8004792: 68fb ldr r3, [r7, #12] + 8004794: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004796: b29b uxth r3, r3 + 8004798: 3b01 subs r3, #1 + 800479a: b29a uxth r2, r3 + 800479c: 68fb ldr r3, [r7, #12] + 800479e: 855a strh r2, [r3, #42] @ 0x2a while (hi2c->XferSize > 0U) - 8004524: 68fb ldr r3, [r7, #12] - 8004526: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004528: 2b00 cmp r3, #0 - 800452a: f47f ae88 bne.w 800423e + 80047a0: 68fb ldr r3, [r7, #12] + 80047a2: 8d1b ldrh r3, [r3, #40] @ 0x28 + 80047a4: 2b00 cmp r3, #0 + 80047a6: f47f ae88 bne.w 80044ba } } } hi2c->State = HAL_I2C_STATE_READY; - 800452e: 68fb ldr r3, [r7, #12] - 8004530: 2220 movs r2, #32 - 8004532: f883 203d strb.w r2, [r3, #61] @ 0x3d + 80047aa: 68fb ldr r3, [r7, #12] + 80047ac: 2220 movs r2, #32 + 80047ae: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8004536: 68fb ldr r3, [r7, #12] - 8004538: 2200 movs r2, #0 - 800453a: f883 203e strb.w r2, [r3, #62] @ 0x3e + 80047b2: 68fb ldr r3, [r7, #12] + 80047b4: 2200 movs r2, #0 + 80047b6: f883 203e strb.w r2, [r3, #62] @ 0x3e /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 800453e: 68fb ldr r3, [r7, #12] - 8004540: 2200 movs r2, #0 - 8004542: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80047ba: 68fb ldr r3, [r7, #12] + 80047bc: 2200 movs r2, #0 + 80047be: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_OK; - 8004546: 2300 movs r3, #0 - 8004548: e000 b.n 800454c + 80047c2: 2300 movs r3, #0 + 80047c4: e000 b.n 80047c8 } else { return HAL_BUSY; - 800454a: 2302 movs r3, #2 + 80047c6: 2302 movs r3, #2 } } - 800454c: 4618 mov r0, r3 - 800454e: 3728 adds r7, #40 @ 0x28 - 8004550: 46bd mov sp, r7 - 8004552: bd80 pop {r7, pc} - 8004554: 00010004 .word 0x00010004 - 8004558: 20000018 .word 0x20000018 - 800455c: 14f8b589 .word 0x14f8b589 + 80047c8: 4618 mov r0, r3 + 80047ca: 3728 adds r7, #40 @ 0x28 + 80047cc: 46bd mov sp, r7 + 80047ce: bd80 pop {r7, pc} + 80047d0: 00010004 .word 0x00010004 + 80047d4: 20000034 .word 0x20000034 + 80047d8: 14f8b589 .word 0x14f8b589 -08004560 : +080047dc : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_MasterRequestWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Timeout, uint32_t Tickstart) { - 8004560: b580 push {r7, lr} - 8004562: b088 sub sp, #32 - 8004564: af02 add r7, sp, #8 - 8004566: 60f8 str r0, [r7, #12] - 8004568: 607a str r2, [r7, #4] - 800456a: 603b str r3, [r7, #0] - 800456c: 460b mov r3, r1 - 800456e: 817b strh r3, [r7, #10] + 80047dc: b580 push {r7, lr} + 80047de: b088 sub sp, #32 + 80047e0: af02 add r7, sp, #8 + 80047e2: 60f8 str r0, [r7, #12] + 80047e4: 607a str r2, [r7, #4] + 80047e6: 603b str r3, [r7, #0] + 80047e8: 460b mov r3, r1 + 80047ea: 817b strh r3, [r7, #10] /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ uint32_t CurrentXferOptions = hi2c->XferOptions; - 8004570: 68fb ldr r3, [r7, #12] - 8004572: 6adb ldr r3, [r3, #44] @ 0x2c - 8004574: 617b str r3, [r7, #20] + 80047ec: 68fb ldr r3, [r7, #12] + 80047ee: 6adb ldr r3, [r3, #44] @ 0x2c + 80047f0: 617b str r3, [r7, #20] /* Generate Start condition if first transfer */ if ((CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_FIRST_FRAME) || (CurrentXferOptions == I2C_NO_OPTION_FRAME)) - 8004576: 697b ldr r3, [r7, #20] - 8004578: 2b08 cmp r3, #8 - 800457a: d006 beq.n 800458a - 800457c: 697b ldr r3, [r7, #20] - 800457e: 2b01 cmp r3, #1 - 8004580: d003 beq.n 800458a - 8004582: 697b ldr r3, [r7, #20] - 8004584: f513 3f80 cmn.w r3, #65536 @ 0x10000 - 8004588: d108 bne.n 800459c + 80047f2: 697b ldr r3, [r7, #20] + 80047f4: 2b08 cmp r3, #8 + 80047f6: d006 beq.n 8004806 + 80047f8: 697b ldr r3, [r7, #20] + 80047fa: 2b01 cmp r3, #1 + 80047fc: d003 beq.n 8004806 + 80047fe: 697b ldr r3, [r7, #20] + 8004800: f513 3f80 cmn.w r3, #65536 @ 0x10000 + 8004804: d108 bne.n 8004818 { /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); - 800458a: 68fb ldr r3, [r7, #12] - 800458c: 681b ldr r3, [r3, #0] - 800458e: 681a ldr r2, [r3, #0] - 8004590: 68fb ldr r3, [r7, #12] - 8004592: 681b ldr r3, [r3, #0] - 8004594: f442 7280 orr.w r2, r2, #256 @ 0x100 - 8004598: 601a str r2, [r3, #0] - 800459a: e00b b.n 80045b4 + 8004806: 68fb ldr r3, [r7, #12] + 8004808: 681b ldr r3, [r3, #0] + 800480a: 681a ldr r2, [r3, #0] + 800480c: 68fb ldr r3, [r7, #12] + 800480e: 681b ldr r3, [r3, #0] + 8004810: f442 7280 orr.w r2, r2, #256 @ 0x100 + 8004814: 601a str r2, [r3, #0] + 8004816: e00b b.n 8004830 } else if (hi2c->PreviousState == I2C_STATE_MASTER_BUSY_RX) - 800459c: 68fb ldr r3, [r7, #12] - 800459e: 6b1b ldr r3, [r3, #48] @ 0x30 - 80045a0: 2b12 cmp r3, #18 - 80045a2: d107 bne.n 80045b4 + 8004818: 68fb ldr r3, [r7, #12] + 800481a: 6b1b ldr r3, [r3, #48] @ 0x30 + 800481c: 2b12 cmp r3, #18 + 800481e: d107 bne.n 8004830 { /* Generate ReStart */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); - 80045a4: 68fb ldr r3, [r7, #12] - 80045a6: 681b ldr r3, [r3, #0] - 80045a8: 681a ldr r2, [r3, #0] - 80045aa: 68fb ldr r3, [r7, #12] - 80045ac: 681b ldr r3, [r3, #0] - 80045ae: f442 7280 orr.w r2, r2, #256 @ 0x100 - 80045b2: 601a str r2, [r3, #0] + 8004820: 68fb ldr r3, [r7, #12] + 8004822: 681b ldr r3, [r3, #0] + 8004824: 681a ldr r2, [r3, #0] + 8004826: 68fb ldr r3, [r7, #12] + 8004828: 681b ldr r3, [r3, #0] + 800482a: f442 7280 orr.w r2, r2, #256 @ 0x100 + 800482e: 601a str r2, [r3, #0] { /* Do nothing */ } /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) - 80045b4: 683b ldr r3, [r7, #0] - 80045b6: 9300 str r3, [sp, #0] - 80045b8: 687b ldr r3, [r7, #4] - 80045ba: 2200 movs r2, #0 - 80045bc: f04f 1101 mov.w r1, #65537 @ 0x10001 - 80045c0: 68f8 ldr r0, [r7, #12] - 80045c2: f000 f91d bl 8004800 - 80045c6: 4603 mov r3, r0 - 80045c8: 2b00 cmp r3, #0 - 80045ca: d00d beq.n 80045e8 + 8004830: 683b ldr r3, [r7, #0] + 8004832: 9300 str r3, [sp, #0] + 8004834: 687b ldr r3, [r7, #4] + 8004836: 2200 movs r2, #0 + 8004838: f04f 1101 mov.w r1, #65537 @ 0x10001 + 800483c: 68f8 ldr r0, [r7, #12] + 800483e: f000 f91d bl 8004a7c + 8004842: 4603 mov r3, r0 + 8004844: 2b00 cmp r3, #0 + 8004846: d00d beq.n 8004864 { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) - 80045cc: 68fb ldr r3, [r7, #12] - 80045ce: 681b ldr r3, [r3, #0] - 80045d0: 681b ldr r3, [r3, #0] - 80045d2: f403 7380 and.w r3, r3, #256 @ 0x100 - 80045d6: f5b3 7f80 cmp.w r3, #256 @ 0x100 - 80045da: d103 bne.n 80045e4 + 8004848: 68fb ldr r3, [r7, #12] + 800484a: 681b ldr r3, [r3, #0] + 800484c: 681b ldr r3, [r3, #0] + 800484e: f403 7380 and.w r3, r3, #256 @ 0x100 + 8004852: f5b3 7f80 cmp.w r3, #256 @ 0x100 + 8004856: d103 bne.n 8004860 { hi2c->ErrorCode = HAL_I2C_WRONG_START; - 80045dc: 68fb ldr r3, [r7, #12] - 80045de: f44f 7200 mov.w r2, #512 @ 0x200 - 80045e2: 641a str r2, [r3, #64] @ 0x40 + 8004858: 68fb ldr r3, [r7, #12] + 800485a: f44f 7200 mov.w r2, #512 @ 0x200 + 800485e: 641a str r2, [r3, #64] @ 0x40 } return HAL_TIMEOUT; - 80045e4: 2303 movs r3, #3 - 80045e6: e035 b.n 8004654 + 8004860: 2303 movs r3, #3 + 8004862: e035 b.n 80048d0 } if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_7BIT) - 80045e8: 68fb ldr r3, [r7, #12] - 80045ea: 691b ldr r3, [r3, #16] - 80045ec: f5b3 4f80 cmp.w r3, #16384 @ 0x4000 - 80045f0: d108 bne.n 8004604 + 8004864: 68fb ldr r3, [r7, #12] + 8004866: 691b ldr r3, [r3, #16] + 8004868: f5b3 4f80 cmp.w r3, #16384 @ 0x4000 + 800486c: d108 bne.n 8004880 { /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); - 80045f2: 897b ldrh r3, [r7, #10] - 80045f4: b2db uxtb r3, r3 - 80045f6: 461a mov r2, r3 - 80045f8: 68fb ldr r3, [r7, #12] - 80045fa: 681b ldr r3, [r3, #0] - 80045fc: f002 02fe and.w r2, r2, #254 @ 0xfe - 8004600: 611a str r2, [r3, #16] - 8004602: e01b b.n 800463c + 800486e: 897b ldrh r3, [r7, #10] + 8004870: b2db uxtb r3, r3 + 8004872: 461a mov r2, r3 + 8004874: 68fb ldr r3, [r7, #12] + 8004876: 681b ldr r3, [r3, #0] + 8004878: f002 02fe and.w r2, r2, #254 @ 0xfe + 800487c: 611a str r2, [r3, #16] + 800487e: e01b b.n 80048b8 } else { /* Send header of slave address */ hi2c->Instance->DR = I2C_10BIT_HEADER_WRITE(DevAddress); - 8004604: 897b ldrh r3, [r7, #10] - 8004606: 11db asrs r3, r3, #7 - 8004608: b2db uxtb r3, r3 - 800460a: f003 0306 and.w r3, r3, #6 - 800460e: b2db uxtb r3, r3 - 8004610: f063 030f orn r3, r3, #15 - 8004614: b2da uxtb r2, r3 - 8004616: 68fb ldr r3, [r7, #12] - 8004618: 681b ldr r3, [r3, #0] - 800461a: 611a str r2, [r3, #16] + 8004880: 897b ldrh r3, [r7, #10] + 8004882: 11db asrs r3, r3, #7 + 8004884: b2db uxtb r3, r3 + 8004886: f003 0306 and.w r3, r3, #6 + 800488a: b2db uxtb r3, r3 + 800488c: f063 030f orn r3, r3, #15 + 8004890: b2da uxtb r2, r3 + 8004892: 68fb ldr r3, [r7, #12] + 8004894: 681b ldr r3, [r3, #0] + 8004896: 611a str r2, [r3, #16] /* Wait until ADD10 flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADD10, Timeout, Tickstart) != HAL_OK) - 800461c: 683b ldr r3, [r7, #0] - 800461e: 687a ldr r2, [r7, #4] - 8004620: 490e ldr r1, [pc, #56] @ (800465c ) - 8004622: 68f8 ldr r0, [r7, #12] - 8004624: f000 f966 bl 80048f4 - 8004628: 4603 mov r3, r0 - 800462a: 2b00 cmp r3, #0 - 800462c: d001 beq.n 8004632 + 8004898: 683b ldr r3, [r7, #0] + 800489a: 687a ldr r2, [r7, #4] + 800489c: 490e ldr r1, [pc, #56] @ (80048d8 ) + 800489e: 68f8 ldr r0, [r7, #12] + 80048a0: f000 f966 bl 8004b70 + 80048a4: 4603 mov r3, r0 + 80048a6: 2b00 cmp r3, #0 + 80048a8: d001 beq.n 80048ae { return HAL_ERROR; - 800462e: 2301 movs r3, #1 - 8004630: e010 b.n 8004654 + 80048aa: 2301 movs r3, #1 + 80048ac: e010 b.n 80048d0 } /* Send slave address */ hi2c->Instance->DR = I2C_10BIT_ADDRESS(DevAddress); - 8004632: 897b ldrh r3, [r7, #10] - 8004634: b2da uxtb r2, r3 - 8004636: 68fb ldr r3, [r7, #12] - 8004638: 681b ldr r3, [r3, #0] - 800463a: 611a str r2, [r3, #16] + 80048ae: 897b ldrh r3, [r7, #10] + 80048b0: b2da uxtb r2, r3 + 80048b2: 68fb ldr r3, [r7, #12] + 80048b4: 681b ldr r3, [r3, #0] + 80048b6: 611a str r2, [r3, #16] } /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) - 800463c: 683b ldr r3, [r7, #0] - 800463e: 687a ldr r2, [r7, #4] - 8004640: 4907 ldr r1, [pc, #28] @ (8004660 ) - 8004642: 68f8 ldr r0, [r7, #12] - 8004644: f000 f956 bl 80048f4 - 8004648: 4603 mov r3, r0 - 800464a: 2b00 cmp r3, #0 - 800464c: d001 beq.n 8004652 + 80048b8: 683b ldr r3, [r7, #0] + 80048ba: 687a ldr r2, [r7, #4] + 80048bc: 4907 ldr r1, [pc, #28] @ (80048dc ) + 80048be: 68f8 ldr r0, [r7, #12] + 80048c0: f000 f956 bl 8004b70 + 80048c4: 4603 mov r3, r0 + 80048c6: 2b00 cmp r3, #0 + 80048c8: d001 beq.n 80048ce { return HAL_ERROR; - 800464e: 2301 movs r3, #1 - 8004650: e000 b.n 8004654 + 80048ca: 2301 movs r3, #1 + 80048cc: e000 b.n 80048d0 } return HAL_OK; - 8004652: 2300 movs r3, #0 + 80048ce: 2300 movs r3, #0 } - 8004654: 4618 mov r0, r3 - 8004656: 3718 adds r7, #24 - 8004658: 46bd mov sp, r7 - 800465a: bd80 pop {r7, pc} - 800465c: 00010008 .word 0x00010008 - 8004660: 00010002 .word 0x00010002 + 80048d0: 4618 mov r0, r3 + 80048d2: 3718 adds r7, #24 + 80048d4: 46bd mov sp, r7 + 80048d6: bd80 pop {r7, pc} + 80048d8: 00010008 .word 0x00010008 + 80048dc: 00010002 .word 0x00010002 -08004664 : +080048e0 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_MasterRequestRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Timeout, uint32_t Tickstart) { - 8004664: b580 push {r7, lr} - 8004666: b088 sub sp, #32 - 8004668: af02 add r7, sp, #8 - 800466a: 60f8 str r0, [r7, #12] - 800466c: 607a str r2, [r7, #4] - 800466e: 603b str r3, [r7, #0] - 8004670: 460b mov r3, r1 - 8004672: 817b strh r3, [r7, #10] + 80048e0: b580 push {r7, lr} + 80048e2: b088 sub sp, #32 + 80048e4: af02 add r7, sp, #8 + 80048e6: 60f8 str r0, [r7, #12] + 80048e8: 607a str r2, [r7, #4] + 80048ea: 603b str r3, [r7, #0] + 80048ec: 460b mov r3, r1 + 80048ee: 817b strh r3, [r7, #10] /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ uint32_t CurrentXferOptions = hi2c->XferOptions; - 8004674: 68fb ldr r3, [r7, #12] - 8004676: 6adb ldr r3, [r3, #44] @ 0x2c - 8004678: 617b str r3, [r7, #20] + 80048f0: 68fb ldr r3, [r7, #12] + 80048f2: 6adb ldr r3, [r3, #44] @ 0x2c + 80048f4: 617b str r3, [r7, #20] /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); - 800467a: 68fb ldr r3, [r7, #12] - 800467c: 681b ldr r3, [r3, #0] - 800467e: 681a ldr r2, [r3, #0] - 8004680: 68fb ldr r3, [r7, #12] - 8004682: 681b ldr r3, [r3, #0] - 8004684: f442 6280 orr.w r2, r2, #1024 @ 0x400 - 8004688: 601a str r2, [r3, #0] + 80048f6: 68fb ldr r3, [r7, #12] + 80048f8: 681b ldr r3, [r3, #0] + 80048fa: 681a ldr r2, [r3, #0] + 80048fc: 68fb ldr r3, [r7, #12] + 80048fe: 681b ldr r3, [r3, #0] + 8004900: f442 6280 orr.w r2, r2, #1024 @ 0x400 + 8004904: 601a str r2, [r3, #0] /* Generate Start condition if first transfer */ if ((CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_FIRST_FRAME) || (CurrentXferOptions == I2C_NO_OPTION_FRAME)) - 800468a: 697b ldr r3, [r7, #20] - 800468c: 2b08 cmp r3, #8 - 800468e: d006 beq.n 800469e - 8004690: 697b ldr r3, [r7, #20] - 8004692: 2b01 cmp r3, #1 - 8004694: d003 beq.n 800469e - 8004696: 697b ldr r3, [r7, #20] - 8004698: f513 3f80 cmn.w r3, #65536 @ 0x10000 - 800469c: d108 bne.n 80046b0 + 8004906: 697b ldr r3, [r7, #20] + 8004908: 2b08 cmp r3, #8 + 800490a: d006 beq.n 800491a + 800490c: 697b ldr r3, [r7, #20] + 800490e: 2b01 cmp r3, #1 + 8004910: d003 beq.n 800491a + 8004912: 697b ldr r3, [r7, #20] + 8004914: f513 3f80 cmn.w r3, #65536 @ 0x10000 + 8004918: d108 bne.n 800492c { /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); - 800469e: 68fb ldr r3, [r7, #12] - 80046a0: 681b ldr r3, [r3, #0] - 80046a2: 681a ldr r2, [r3, #0] - 80046a4: 68fb ldr r3, [r7, #12] - 80046a6: 681b ldr r3, [r3, #0] - 80046a8: f442 7280 orr.w r2, r2, #256 @ 0x100 - 80046ac: 601a str r2, [r3, #0] - 80046ae: e00b b.n 80046c8 + 800491a: 68fb ldr r3, [r7, #12] + 800491c: 681b ldr r3, [r3, #0] + 800491e: 681a ldr r2, [r3, #0] + 8004920: 68fb ldr r3, [r7, #12] + 8004922: 681b ldr r3, [r3, #0] + 8004924: f442 7280 orr.w r2, r2, #256 @ 0x100 + 8004928: 601a str r2, [r3, #0] + 800492a: e00b b.n 8004944 } else if (hi2c->PreviousState == I2C_STATE_MASTER_BUSY_TX) - 80046b0: 68fb ldr r3, [r7, #12] - 80046b2: 6b1b ldr r3, [r3, #48] @ 0x30 - 80046b4: 2b11 cmp r3, #17 - 80046b6: d107 bne.n 80046c8 + 800492c: 68fb ldr r3, [r7, #12] + 800492e: 6b1b ldr r3, [r3, #48] @ 0x30 + 8004930: 2b11 cmp r3, #17 + 8004932: d107 bne.n 8004944 { /* Generate ReStart */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); - 80046b8: 68fb ldr r3, [r7, #12] - 80046ba: 681b ldr r3, [r3, #0] - 80046bc: 681a ldr r2, [r3, #0] - 80046be: 68fb ldr r3, [r7, #12] - 80046c0: 681b ldr r3, [r3, #0] - 80046c2: f442 7280 orr.w r2, r2, #256 @ 0x100 - 80046c6: 601a str r2, [r3, #0] + 8004934: 68fb ldr r3, [r7, #12] + 8004936: 681b ldr r3, [r3, #0] + 8004938: 681a ldr r2, [r3, #0] + 800493a: 68fb ldr r3, [r7, #12] + 800493c: 681b ldr r3, [r3, #0] + 800493e: f442 7280 orr.w r2, r2, #256 @ 0x100 + 8004942: 601a str r2, [r3, #0] { /* Do nothing */ } /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) - 80046c8: 683b ldr r3, [r7, #0] - 80046ca: 9300 str r3, [sp, #0] - 80046cc: 687b ldr r3, [r7, #4] - 80046ce: 2200 movs r2, #0 - 80046d0: f04f 1101 mov.w r1, #65537 @ 0x10001 - 80046d4: 68f8 ldr r0, [r7, #12] - 80046d6: f000 f893 bl 8004800 - 80046da: 4603 mov r3, r0 - 80046dc: 2b00 cmp r3, #0 - 80046de: d00d beq.n 80046fc + 8004944: 683b ldr r3, [r7, #0] + 8004946: 9300 str r3, [sp, #0] + 8004948: 687b ldr r3, [r7, #4] + 800494a: 2200 movs r2, #0 + 800494c: f04f 1101 mov.w r1, #65537 @ 0x10001 + 8004950: 68f8 ldr r0, [r7, #12] + 8004952: f000 f893 bl 8004a7c + 8004956: 4603 mov r3, r0 + 8004958: 2b00 cmp r3, #0 + 800495a: d00d beq.n 8004978 { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) - 80046e0: 68fb ldr r3, [r7, #12] - 80046e2: 681b ldr r3, [r3, #0] - 80046e4: 681b ldr r3, [r3, #0] - 80046e6: f403 7380 and.w r3, r3, #256 @ 0x100 - 80046ea: f5b3 7f80 cmp.w r3, #256 @ 0x100 - 80046ee: d103 bne.n 80046f8 + 800495c: 68fb ldr r3, [r7, #12] + 800495e: 681b ldr r3, [r3, #0] + 8004960: 681b ldr r3, [r3, #0] + 8004962: f403 7380 and.w r3, r3, #256 @ 0x100 + 8004966: f5b3 7f80 cmp.w r3, #256 @ 0x100 + 800496a: d103 bne.n 8004974 { hi2c->ErrorCode = HAL_I2C_WRONG_START; - 80046f0: 68fb ldr r3, [r7, #12] - 80046f2: f44f 7200 mov.w r2, #512 @ 0x200 - 80046f6: 641a str r2, [r3, #64] @ 0x40 + 800496c: 68fb ldr r3, [r7, #12] + 800496e: f44f 7200 mov.w r2, #512 @ 0x200 + 8004972: 641a str r2, [r3, #64] @ 0x40 } return HAL_TIMEOUT; - 80046f8: 2303 movs r3, #3 - 80046fa: e079 b.n 80047f0 + 8004974: 2303 movs r3, #3 + 8004976: e079 b.n 8004a6c } if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_7BIT) - 80046fc: 68fb ldr r3, [r7, #12] - 80046fe: 691b ldr r3, [r3, #16] - 8004700: f5b3 4f80 cmp.w r3, #16384 @ 0x4000 - 8004704: d108 bne.n 8004718 + 8004978: 68fb ldr r3, [r7, #12] + 800497a: 691b ldr r3, [r3, #16] + 800497c: f5b3 4f80 cmp.w r3, #16384 @ 0x4000 + 8004980: d108 bne.n 8004994 { /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_READ(DevAddress); - 8004706: 897b ldrh r3, [r7, #10] - 8004708: b2db uxtb r3, r3 - 800470a: f043 0301 orr.w r3, r3, #1 - 800470e: b2da uxtb r2, r3 - 8004710: 68fb ldr r3, [r7, #12] - 8004712: 681b ldr r3, [r3, #0] - 8004714: 611a str r2, [r3, #16] - 8004716: e05f b.n 80047d8 + 8004982: 897b ldrh r3, [r7, #10] + 8004984: b2db uxtb r3, r3 + 8004986: f043 0301 orr.w r3, r3, #1 + 800498a: b2da uxtb r2, r3 + 800498c: 68fb ldr r3, [r7, #12] + 800498e: 681b ldr r3, [r3, #0] + 8004990: 611a str r2, [r3, #16] + 8004992: e05f b.n 8004a54 } else { /* Send header of slave address */ hi2c->Instance->DR = I2C_10BIT_HEADER_WRITE(DevAddress); - 8004718: 897b ldrh r3, [r7, #10] - 800471a: 11db asrs r3, r3, #7 - 800471c: b2db uxtb r3, r3 - 800471e: f003 0306 and.w r3, r3, #6 - 8004722: b2db uxtb r3, r3 - 8004724: f063 030f orn r3, r3, #15 - 8004728: b2da uxtb r2, r3 - 800472a: 68fb ldr r3, [r7, #12] - 800472c: 681b ldr r3, [r3, #0] - 800472e: 611a str r2, [r3, #16] + 8004994: 897b ldrh r3, [r7, #10] + 8004996: 11db asrs r3, r3, #7 + 8004998: b2db uxtb r3, r3 + 800499a: f003 0306 and.w r3, r3, #6 + 800499e: b2db uxtb r3, r3 + 80049a0: f063 030f orn r3, r3, #15 + 80049a4: b2da uxtb r2, r3 + 80049a6: 68fb ldr r3, [r7, #12] + 80049a8: 681b ldr r3, [r3, #0] + 80049aa: 611a str r2, [r3, #16] /* Wait until ADD10 flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADD10, Timeout, Tickstart) != HAL_OK) - 8004730: 683b ldr r3, [r7, #0] - 8004732: 687a ldr r2, [r7, #4] - 8004734: 4930 ldr r1, [pc, #192] @ (80047f8 ) - 8004736: 68f8 ldr r0, [r7, #12] - 8004738: f000 f8dc bl 80048f4 - 800473c: 4603 mov r3, r0 - 800473e: 2b00 cmp r3, #0 - 8004740: d001 beq.n 8004746 + 80049ac: 683b ldr r3, [r7, #0] + 80049ae: 687a ldr r2, [r7, #4] + 80049b0: 4930 ldr r1, [pc, #192] @ (8004a74 ) + 80049b2: 68f8 ldr r0, [r7, #12] + 80049b4: f000 f8dc bl 8004b70 + 80049b8: 4603 mov r3, r0 + 80049ba: 2b00 cmp r3, #0 + 80049bc: d001 beq.n 80049c2 { return HAL_ERROR; - 8004742: 2301 movs r3, #1 - 8004744: e054 b.n 80047f0 + 80049be: 2301 movs r3, #1 + 80049c0: e054 b.n 8004a6c } /* Send slave address */ hi2c->Instance->DR = I2C_10BIT_ADDRESS(DevAddress); - 8004746: 897b ldrh r3, [r7, #10] - 8004748: b2da uxtb r2, r3 - 800474a: 68fb ldr r3, [r7, #12] - 800474c: 681b ldr r3, [r3, #0] - 800474e: 611a str r2, [r3, #16] + 80049c2: 897b ldrh r3, [r7, #10] + 80049c4: b2da uxtb r2, r3 + 80049c6: 68fb ldr r3, [r7, #12] + 80049c8: 681b ldr r3, [r3, #0] + 80049ca: 611a str r2, [r3, #16] /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) - 8004750: 683b ldr r3, [r7, #0] - 8004752: 687a ldr r2, [r7, #4] - 8004754: 4929 ldr r1, [pc, #164] @ (80047fc ) - 8004756: 68f8 ldr r0, [r7, #12] - 8004758: f000 f8cc bl 80048f4 - 800475c: 4603 mov r3, r0 - 800475e: 2b00 cmp r3, #0 - 8004760: d001 beq.n 8004766 + 80049cc: 683b ldr r3, [r7, #0] + 80049ce: 687a ldr r2, [r7, #4] + 80049d0: 4929 ldr r1, [pc, #164] @ (8004a78 ) + 80049d2: 68f8 ldr r0, [r7, #12] + 80049d4: f000 f8cc bl 8004b70 + 80049d8: 4603 mov r3, r0 + 80049da: 2b00 cmp r3, #0 + 80049dc: d001 beq.n 80049e2 { return HAL_ERROR; - 8004762: 2301 movs r3, #1 - 8004764: e044 b.n 80047f0 + 80049de: 2301 movs r3, #1 + 80049e0: e044 b.n 8004a6c } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); - 8004766: 2300 movs r3, #0 - 8004768: 613b str r3, [r7, #16] - 800476a: 68fb ldr r3, [r7, #12] - 800476c: 681b ldr r3, [r3, #0] - 800476e: 695b ldr r3, [r3, #20] - 8004770: 613b str r3, [r7, #16] - 8004772: 68fb ldr r3, [r7, #12] - 8004774: 681b ldr r3, [r3, #0] - 8004776: 699b ldr r3, [r3, #24] - 8004778: 613b str r3, [r7, #16] - 800477a: 693b ldr r3, [r7, #16] + 80049e2: 2300 movs r3, #0 + 80049e4: 613b str r3, [r7, #16] + 80049e6: 68fb ldr r3, [r7, #12] + 80049e8: 681b ldr r3, [r3, #0] + 80049ea: 695b ldr r3, [r3, #20] + 80049ec: 613b str r3, [r7, #16] + 80049ee: 68fb ldr r3, [r7, #12] + 80049f0: 681b ldr r3, [r3, #0] + 80049f2: 699b ldr r3, [r3, #24] + 80049f4: 613b str r3, [r7, #16] + 80049f6: 693b ldr r3, [r7, #16] /* Generate Restart */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); - 800477c: 68fb ldr r3, [r7, #12] - 800477e: 681b ldr r3, [r3, #0] - 8004780: 681a ldr r2, [r3, #0] - 8004782: 68fb ldr r3, [r7, #12] - 8004784: 681b ldr r3, [r3, #0] - 8004786: f442 7280 orr.w r2, r2, #256 @ 0x100 - 800478a: 601a str r2, [r3, #0] + 80049f8: 68fb ldr r3, [r7, #12] + 80049fa: 681b ldr r3, [r3, #0] + 80049fc: 681a ldr r2, [r3, #0] + 80049fe: 68fb ldr r3, [r7, #12] + 8004a00: 681b ldr r3, [r3, #0] + 8004a02: f442 7280 orr.w r2, r2, #256 @ 0x100 + 8004a06: 601a str r2, [r3, #0] /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) - 800478c: 683b ldr r3, [r7, #0] - 800478e: 9300 str r3, [sp, #0] - 8004790: 687b ldr r3, [r7, #4] - 8004792: 2200 movs r2, #0 - 8004794: f04f 1101 mov.w r1, #65537 @ 0x10001 - 8004798: 68f8 ldr r0, [r7, #12] - 800479a: f000 f831 bl 8004800 - 800479e: 4603 mov r3, r0 - 80047a0: 2b00 cmp r3, #0 - 80047a2: d00d beq.n 80047c0 + 8004a08: 683b ldr r3, [r7, #0] + 8004a0a: 9300 str r3, [sp, #0] + 8004a0c: 687b ldr r3, [r7, #4] + 8004a0e: 2200 movs r2, #0 + 8004a10: f04f 1101 mov.w r1, #65537 @ 0x10001 + 8004a14: 68f8 ldr r0, [r7, #12] + 8004a16: f000 f831 bl 8004a7c + 8004a1a: 4603 mov r3, r0 + 8004a1c: 2b00 cmp r3, #0 + 8004a1e: d00d beq.n 8004a3c { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) - 80047a4: 68fb ldr r3, [r7, #12] - 80047a6: 681b ldr r3, [r3, #0] - 80047a8: 681b ldr r3, [r3, #0] - 80047aa: f403 7380 and.w r3, r3, #256 @ 0x100 - 80047ae: f5b3 7f80 cmp.w r3, #256 @ 0x100 - 80047b2: d103 bne.n 80047bc + 8004a20: 68fb ldr r3, [r7, #12] + 8004a22: 681b ldr r3, [r3, #0] + 8004a24: 681b ldr r3, [r3, #0] + 8004a26: f403 7380 and.w r3, r3, #256 @ 0x100 + 8004a2a: f5b3 7f80 cmp.w r3, #256 @ 0x100 + 8004a2e: d103 bne.n 8004a38 { hi2c->ErrorCode = HAL_I2C_WRONG_START; - 80047b4: 68fb ldr r3, [r7, #12] - 80047b6: f44f 7200 mov.w r2, #512 @ 0x200 - 80047ba: 641a str r2, [r3, #64] @ 0x40 + 8004a30: 68fb ldr r3, [r7, #12] + 8004a32: f44f 7200 mov.w r2, #512 @ 0x200 + 8004a36: 641a str r2, [r3, #64] @ 0x40 } return HAL_TIMEOUT; - 80047bc: 2303 movs r3, #3 - 80047be: e017 b.n 80047f0 + 8004a38: 2303 movs r3, #3 + 8004a3a: e017 b.n 8004a6c } /* Send header of slave address */ hi2c->Instance->DR = I2C_10BIT_HEADER_READ(DevAddress); - 80047c0: 897b ldrh r3, [r7, #10] - 80047c2: 11db asrs r3, r3, #7 - 80047c4: b2db uxtb r3, r3 - 80047c6: f003 0306 and.w r3, r3, #6 - 80047ca: b2db uxtb r3, r3 - 80047cc: f063 030e orn r3, r3, #14 - 80047d0: b2da uxtb r2, r3 - 80047d2: 68fb ldr r3, [r7, #12] - 80047d4: 681b ldr r3, [r3, #0] - 80047d6: 611a str r2, [r3, #16] + 8004a3c: 897b ldrh r3, [r7, #10] + 8004a3e: 11db asrs r3, r3, #7 + 8004a40: b2db uxtb r3, r3 + 8004a42: f003 0306 and.w r3, r3, #6 + 8004a46: b2db uxtb r3, r3 + 8004a48: f063 030e orn r3, r3, #14 + 8004a4c: b2da uxtb r2, r3 + 8004a4e: 68fb ldr r3, [r7, #12] + 8004a50: 681b ldr r3, [r3, #0] + 8004a52: 611a str r2, [r3, #16] } /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) - 80047d8: 683b ldr r3, [r7, #0] - 80047da: 687a ldr r2, [r7, #4] - 80047dc: 4907 ldr r1, [pc, #28] @ (80047fc ) - 80047de: 68f8 ldr r0, [r7, #12] - 80047e0: f000 f888 bl 80048f4 - 80047e4: 4603 mov r3, r0 - 80047e6: 2b00 cmp r3, #0 - 80047e8: d001 beq.n 80047ee + 8004a54: 683b ldr r3, [r7, #0] + 8004a56: 687a ldr r2, [r7, #4] + 8004a58: 4907 ldr r1, [pc, #28] @ (8004a78 ) + 8004a5a: 68f8 ldr r0, [r7, #12] + 8004a5c: f000 f888 bl 8004b70 + 8004a60: 4603 mov r3, r0 + 8004a62: 2b00 cmp r3, #0 + 8004a64: d001 beq.n 8004a6a { return HAL_ERROR; - 80047ea: 2301 movs r3, #1 - 80047ec: e000 b.n 80047f0 + 8004a66: 2301 movs r3, #1 + 8004a68: e000 b.n 8004a6c } return HAL_OK; - 80047ee: 2300 movs r3, #0 + 8004a6a: 2300 movs r3, #0 } - 80047f0: 4618 mov r0, r3 - 80047f2: 3718 adds r7, #24 - 80047f4: 46bd mov sp, r7 - 80047f6: bd80 pop {r7, pc} - 80047f8: 00010008 .word 0x00010008 - 80047fc: 00010002 .word 0x00010002 + 8004a6c: 4618 mov r0, r3 + 8004a6e: 3718 adds r7, #24 + 8004a70: 46bd mov sp, r7 + 8004a72: bd80 pop {r7, pc} + 8004a74: 00010008 .word 0x00010008 + 8004a78: 00010002 .word 0x00010002 -08004800 : +08004a7c : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart) { - 8004800: b580 push {r7, lr} - 8004802: b084 sub sp, #16 - 8004804: af00 add r7, sp, #0 - 8004806: 60f8 str r0, [r7, #12] - 8004808: 60b9 str r1, [r7, #8] - 800480a: 603b str r3, [r7, #0] - 800480c: 4613 mov r3, r2 - 800480e: 71fb strb r3, [r7, #7] + 8004a7c: b580 push {r7, lr} + 8004a7e: b084 sub sp, #16 + 8004a80: af00 add r7, sp, #0 + 8004a82: 60f8 str r0, [r7, #12] + 8004a84: 60b9 str r1, [r7, #8] + 8004a86: 603b str r3, [r7, #0] + 8004a88: 4613 mov r3, r2 + 8004a8a: 71fb strb r3, [r7, #7] /* Wait until flag is set */ while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) - 8004810: e048 b.n 80048a4 + 8004a8c: e048 b.n 8004b20 { /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 8004812: 683b ldr r3, [r7, #0] - 8004814: f1b3 3fff cmp.w r3, #4294967295 - 8004818: d044 beq.n 80048a4 + 8004a8e: 683b ldr r3, [r7, #0] + 8004a90: f1b3 3fff cmp.w r3, #4294967295 + 8004a94: d044 beq.n 8004b20 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 800481a: f7fe fa27 bl 8002c6c - 800481e: 4602 mov r2, r0 - 8004820: 69bb ldr r3, [r7, #24] - 8004822: 1ad3 subs r3, r2, r3 - 8004824: 683a ldr r2, [r7, #0] - 8004826: 429a cmp r2, r3 - 8004828: d302 bcc.n 8004830 - 800482a: 683b ldr r3, [r7, #0] - 800482c: 2b00 cmp r3, #0 - 800482e: d139 bne.n 80048a4 + 8004a96: f7fe fa27 bl 8002ee8 + 8004a9a: 4602 mov r2, r0 + 8004a9c: 69bb ldr r3, [r7, #24] + 8004a9e: 1ad3 subs r3, r2, r3 + 8004aa0: 683a ldr r2, [r7, #0] + 8004aa2: 429a cmp r2, r3 + 8004aa4: d302 bcc.n 8004aac + 8004aa6: 683b ldr r3, [r7, #0] + 8004aa8: 2b00 cmp r3, #0 + 8004aaa: d139 bne.n 8004b20 { if ((__HAL_I2C_GET_FLAG(hi2c, Flag) == Status)) - 8004830: 68bb ldr r3, [r7, #8] - 8004832: 0c1b lsrs r3, r3, #16 - 8004834: b2db uxtb r3, r3 - 8004836: 2b01 cmp r3, #1 - 8004838: d10d bne.n 8004856 - 800483a: 68fb ldr r3, [r7, #12] - 800483c: 681b ldr r3, [r3, #0] - 800483e: 695b ldr r3, [r3, #20] - 8004840: 43da mvns r2, r3 - 8004842: 68bb ldr r3, [r7, #8] - 8004844: 4013 ands r3, r2 - 8004846: b29b uxth r3, r3 - 8004848: 2b00 cmp r3, #0 - 800484a: bf0c ite eq - 800484c: 2301 moveq r3, #1 - 800484e: 2300 movne r3, #0 - 8004850: b2db uxtb r3, r3 - 8004852: 461a mov r2, r3 - 8004854: e00c b.n 8004870 - 8004856: 68fb ldr r3, [r7, #12] - 8004858: 681b ldr r3, [r3, #0] - 800485a: 699b ldr r3, [r3, #24] - 800485c: 43da mvns r2, r3 - 800485e: 68bb ldr r3, [r7, #8] - 8004860: 4013 ands r3, r2 - 8004862: b29b uxth r3, r3 - 8004864: 2b00 cmp r3, #0 - 8004866: bf0c ite eq - 8004868: 2301 moveq r3, #1 - 800486a: 2300 movne r3, #0 - 800486c: b2db uxtb r3, r3 - 800486e: 461a mov r2, r3 - 8004870: 79fb ldrb r3, [r7, #7] - 8004872: 429a cmp r2, r3 - 8004874: d116 bne.n 80048a4 + 8004aac: 68bb ldr r3, [r7, #8] + 8004aae: 0c1b lsrs r3, r3, #16 + 8004ab0: b2db uxtb r3, r3 + 8004ab2: 2b01 cmp r3, #1 + 8004ab4: d10d bne.n 8004ad2 + 8004ab6: 68fb ldr r3, [r7, #12] + 8004ab8: 681b ldr r3, [r3, #0] + 8004aba: 695b ldr r3, [r3, #20] + 8004abc: 43da mvns r2, r3 + 8004abe: 68bb ldr r3, [r7, #8] + 8004ac0: 4013 ands r3, r2 + 8004ac2: b29b uxth r3, r3 + 8004ac4: 2b00 cmp r3, #0 + 8004ac6: bf0c ite eq + 8004ac8: 2301 moveq r3, #1 + 8004aca: 2300 movne r3, #0 + 8004acc: b2db uxtb r3, r3 + 8004ace: 461a mov r2, r3 + 8004ad0: e00c b.n 8004aec + 8004ad2: 68fb ldr r3, [r7, #12] + 8004ad4: 681b ldr r3, [r3, #0] + 8004ad6: 699b ldr r3, [r3, #24] + 8004ad8: 43da mvns r2, r3 + 8004ada: 68bb ldr r3, [r7, #8] + 8004adc: 4013 ands r3, r2 + 8004ade: b29b uxth r3, r3 + 8004ae0: 2b00 cmp r3, #0 + 8004ae2: bf0c ite eq + 8004ae4: 2301 moveq r3, #1 + 8004ae6: 2300 movne r3, #0 + 8004ae8: b2db uxtb r3, r3 + 8004aea: 461a mov r2, r3 + 8004aec: 79fb ldrb r3, [r7, #7] + 8004aee: 429a cmp r2, r3 + 8004af0: d116 bne.n 8004b20 { hi2c->PreviousState = I2C_STATE_NONE; - 8004876: 68fb ldr r3, [r7, #12] - 8004878: 2200 movs r2, #0 - 800487a: 631a str r2, [r3, #48] @ 0x30 + 8004af2: 68fb ldr r3, [r7, #12] + 8004af4: 2200 movs r2, #0 + 8004af6: 631a str r2, [r3, #48] @ 0x30 hi2c->State = HAL_I2C_STATE_READY; - 800487c: 68fb ldr r3, [r7, #12] - 800487e: 2220 movs r2, #32 - 8004880: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004af8: 68fb ldr r3, [r7, #12] + 8004afa: 2220 movs r2, #32 + 8004afc: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8004884: 68fb ldr r3, [r7, #12] - 8004886: 2200 movs r2, #0 - 8004888: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8004b00: 68fb ldr r3, [r7, #12] + 8004b02: 2200 movs r2, #0 + 8004b04: f883 203e strb.w r2, [r3, #62] @ 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 800488c: 68fb ldr r3, [r7, #12] - 800488e: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004890: f043 0220 orr.w r2, r3, #32 - 8004894: 68fb ldr r3, [r7, #12] - 8004896: 641a str r2, [r3, #64] @ 0x40 + 8004b08: 68fb ldr r3, [r7, #12] + 8004b0a: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004b0c: f043 0220 orr.w r2, r3, #32 + 8004b10: 68fb ldr r3, [r7, #12] + 8004b12: 641a str r2, [r3, #64] @ 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8004898: 68fb ldr r3, [r7, #12] - 800489a: 2200 movs r2, #0 - 800489c: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004b14: 68fb ldr r3, [r7, #12] + 8004b16: 2200 movs r2, #0 + 8004b18: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_ERROR; - 80048a0: 2301 movs r3, #1 - 80048a2: e023 b.n 80048ec + 8004b1c: 2301 movs r3, #1 + 8004b1e: e023 b.n 8004b68 while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) - 80048a4: 68bb ldr r3, [r7, #8] - 80048a6: 0c1b lsrs r3, r3, #16 - 80048a8: b2db uxtb r3, r3 - 80048aa: 2b01 cmp r3, #1 - 80048ac: d10d bne.n 80048ca - 80048ae: 68fb ldr r3, [r7, #12] - 80048b0: 681b ldr r3, [r3, #0] - 80048b2: 695b ldr r3, [r3, #20] - 80048b4: 43da mvns r2, r3 - 80048b6: 68bb ldr r3, [r7, #8] - 80048b8: 4013 ands r3, r2 - 80048ba: b29b uxth r3, r3 - 80048bc: 2b00 cmp r3, #0 - 80048be: bf0c ite eq - 80048c0: 2301 moveq r3, #1 - 80048c2: 2300 movne r3, #0 - 80048c4: b2db uxtb r3, r3 - 80048c6: 461a mov r2, r3 - 80048c8: e00c b.n 80048e4 - 80048ca: 68fb ldr r3, [r7, #12] - 80048cc: 681b ldr r3, [r3, #0] - 80048ce: 699b ldr r3, [r3, #24] - 80048d0: 43da mvns r2, r3 - 80048d2: 68bb ldr r3, [r7, #8] - 80048d4: 4013 ands r3, r2 - 80048d6: b29b uxth r3, r3 - 80048d8: 2b00 cmp r3, #0 - 80048da: bf0c ite eq - 80048dc: 2301 moveq r3, #1 - 80048de: 2300 movne r3, #0 - 80048e0: b2db uxtb r3, r3 - 80048e2: 461a mov r2, r3 - 80048e4: 79fb ldrb r3, [r7, #7] - 80048e6: 429a cmp r2, r3 - 80048e8: d093 beq.n 8004812 + 8004b20: 68bb ldr r3, [r7, #8] + 8004b22: 0c1b lsrs r3, r3, #16 + 8004b24: b2db uxtb r3, r3 + 8004b26: 2b01 cmp r3, #1 + 8004b28: d10d bne.n 8004b46 + 8004b2a: 68fb ldr r3, [r7, #12] + 8004b2c: 681b ldr r3, [r3, #0] + 8004b2e: 695b ldr r3, [r3, #20] + 8004b30: 43da mvns r2, r3 + 8004b32: 68bb ldr r3, [r7, #8] + 8004b34: 4013 ands r3, r2 + 8004b36: b29b uxth r3, r3 + 8004b38: 2b00 cmp r3, #0 + 8004b3a: bf0c ite eq + 8004b3c: 2301 moveq r3, #1 + 8004b3e: 2300 movne r3, #0 + 8004b40: b2db uxtb r3, r3 + 8004b42: 461a mov r2, r3 + 8004b44: e00c b.n 8004b60 + 8004b46: 68fb ldr r3, [r7, #12] + 8004b48: 681b ldr r3, [r3, #0] + 8004b4a: 699b ldr r3, [r3, #24] + 8004b4c: 43da mvns r2, r3 + 8004b4e: 68bb ldr r3, [r7, #8] + 8004b50: 4013 ands r3, r2 + 8004b52: b29b uxth r3, r3 + 8004b54: 2b00 cmp r3, #0 + 8004b56: bf0c ite eq + 8004b58: 2301 moveq r3, #1 + 8004b5a: 2300 movne r3, #0 + 8004b5c: b2db uxtb r3, r3 + 8004b5e: 461a mov r2, r3 + 8004b60: 79fb ldrb r3, [r7, #7] + 8004b62: 429a cmp r2, r3 + 8004b64: d093 beq.n 8004a8e } } } } return HAL_OK; - 80048ea: 2300 movs r3, #0 + 8004b66: 2300 movs r3, #0 } - 80048ec: 4618 mov r0, r3 - 80048ee: 3710 adds r7, #16 - 80048f0: 46bd mov sp, r7 - 80048f2: bd80 pop {r7, pc} + 8004b68: 4618 mov r0, r3 + 8004b6a: 3710 adds r7, #16 + 8004b6c: 46bd mov sp, r7 + 8004b6e: bd80 pop {r7, pc} -080048f4 : +08004b70 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnMasterAddressFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, uint32_t Timeout, uint32_t Tickstart) { - 80048f4: b580 push {r7, lr} - 80048f6: b084 sub sp, #16 - 80048f8: af00 add r7, sp, #0 - 80048fa: 60f8 str r0, [r7, #12] - 80048fc: 60b9 str r1, [r7, #8] - 80048fe: 607a str r2, [r7, #4] - 8004900: 603b str r3, [r7, #0] + 8004b70: b580 push {r7, lr} + 8004b72: b084 sub sp, #16 + 8004b74: af00 add r7, sp, #0 + 8004b76: 60f8 str r0, [r7, #12] + 8004b78: 60b9 str r1, [r7, #8] + 8004b7a: 607a str r2, [r7, #4] + 8004b7c: 603b str r3, [r7, #0] while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET) - 8004902: e071 b.n 80049e8 + 8004b7e: e071 b.n 8004c64 { if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) - 8004904: 68fb ldr r3, [r7, #12] - 8004906: 681b ldr r3, [r3, #0] - 8004908: 695b ldr r3, [r3, #20] - 800490a: f403 6380 and.w r3, r3, #1024 @ 0x400 - 800490e: f5b3 6f80 cmp.w r3, #1024 @ 0x400 - 8004912: d123 bne.n 800495c + 8004b80: 68fb ldr r3, [r7, #12] + 8004b82: 681b ldr r3, [r3, #0] + 8004b84: 695b ldr r3, [r3, #20] + 8004b86: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8004b8a: f5b3 6f80 cmp.w r3, #1024 @ 0x400 + 8004b8e: d123 bne.n 8004bd8 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8004914: 68fb ldr r3, [r7, #12] - 8004916: 681b ldr r3, [r3, #0] - 8004918: 681a ldr r2, [r3, #0] - 800491a: 68fb ldr r3, [r7, #12] - 800491c: 681b ldr r3, [r3, #0] - 800491e: f442 7200 orr.w r2, r2, #512 @ 0x200 - 8004922: 601a str r2, [r3, #0] + 8004b90: 68fb ldr r3, [r7, #12] + 8004b92: 681b ldr r3, [r3, #0] + 8004b94: 681a ldr r2, [r3, #0] + 8004b96: 68fb ldr r3, [r7, #12] + 8004b98: 681b ldr r3, [r3, #0] + 8004b9a: f442 7200 orr.w r2, r2, #512 @ 0x200 + 8004b9e: 601a str r2, [r3, #0] /* Clear AF Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - 8004924: 68fb ldr r3, [r7, #12] - 8004926: 681b ldr r3, [r3, #0] - 8004928: f46f 6280 mvn.w r2, #1024 @ 0x400 - 800492c: 615a str r2, [r3, #20] + 8004ba0: 68fb ldr r3, [r7, #12] + 8004ba2: 681b ldr r3, [r3, #0] + 8004ba4: f46f 6280 mvn.w r2, #1024 @ 0x400 + 8004ba8: 615a str r2, [r3, #20] hi2c->PreviousState = I2C_STATE_NONE; - 800492e: 68fb ldr r3, [r7, #12] - 8004930: 2200 movs r2, #0 - 8004932: 631a str r2, [r3, #48] @ 0x30 + 8004baa: 68fb ldr r3, [r7, #12] + 8004bac: 2200 movs r2, #0 + 8004bae: 631a str r2, [r3, #48] @ 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8004934: 68fb ldr r3, [r7, #12] - 8004936: 2220 movs r2, #32 - 8004938: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004bb0: 68fb ldr r3, [r7, #12] + 8004bb2: 2220 movs r2, #32 + 8004bb4: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 800493c: 68fb ldr r3, [r7, #12] - 800493e: 2200 movs r2, #0 - 8004940: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8004bb8: 68fb ldr r3, [r7, #12] + 8004bba: 2200 movs r2, #0 + 8004bbc: f883 203e strb.w r2, [r3, #62] @ 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - 8004944: 68fb ldr r3, [r7, #12] - 8004946: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004948: f043 0204 orr.w r2, r3, #4 - 800494c: 68fb ldr r3, [r7, #12] - 800494e: 641a str r2, [r3, #64] @ 0x40 + 8004bc0: 68fb ldr r3, [r7, #12] + 8004bc2: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004bc4: f043 0204 orr.w r2, r3, #4 + 8004bc8: 68fb ldr r3, [r7, #12] + 8004bca: 641a str r2, [r3, #64] @ 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8004950: 68fb ldr r3, [r7, #12] - 8004952: 2200 movs r2, #0 - 8004954: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004bcc: 68fb ldr r3, [r7, #12] + 8004bce: 2200 movs r2, #0 + 8004bd0: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_ERROR; - 8004958: 2301 movs r3, #1 - 800495a: e067 b.n 8004a2c + 8004bd4: 2301 movs r3, #1 + 8004bd6: e067 b.n 8004ca8 } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 800495c: 687b ldr r3, [r7, #4] - 800495e: f1b3 3fff cmp.w r3, #4294967295 - 8004962: d041 beq.n 80049e8 + 8004bd8: 687b ldr r3, [r7, #4] + 8004bda: f1b3 3fff cmp.w r3, #4294967295 + 8004bde: d041 beq.n 8004c64 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8004964: f7fe f982 bl 8002c6c - 8004968: 4602 mov r2, r0 - 800496a: 683b ldr r3, [r7, #0] - 800496c: 1ad3 subs r3, r2, r3 - 800496e: 687a ldr r2, [r7, #4] - 8004970: 429a cmp r2, r3 - 8004972: d302 bcc.n 800497a - 8004974: 687b ldr r3, [r7, #4] - 8004976: 2b00 cmp r3, #0 - 8004978: d136 bne.n 80049e8 + 8004be0: f7fe f982 bl 8002ee8 + 8004be4: 4602 mov r2, r0 + 8004be6: 683b ldr r3, [r7, #0] + 8004be8: 1ad3 subs r3, r2, r3 + 8004bea: 687a ldr r2, [r7, #4] + 8004bec: 429a cmp r2, r3 + 8004bee: d302 bcc.n 8004bf6 + 8004bf0: 687b ldr r3, [r7, #4] + 8004bf2: 2b00 cmp r3, #0 + 8004bf4: d136 bne.n 8004c64 { if ((__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET)) - 800497a: 68bb ldr r3, [r7, #8] - 800497c: 0c1b lsrs r3, r3, #16 - 800497e: b2db uxtb r3, r3 - 8004980: 2b01 cmp r3, #1 - 8004982: d10c bne.n 800499e - 8004984: 68fb ldr r3, [r7, #12] - 8004986: 681b ldr r3, [r3, #0] - 8004988: 695b ldr r3, [r3, #20] - 800498a: 43da mvns r2, r3 - 800498c: 68bb ldr r3, [r7, #8] - 800498e: 4013 ands r3, r2 - 8004990: b29b uxth r3, r3 - 8004992: 2b00 cmp r3, #0 - 8004994: bf14 ite ne - 8004996: 2301 movne r3, #1 - 8004998: 2300 moveq r3, #0 - 800499a: b2db uxtb r3, r3 - 800499c: e00b b.n 80049b6 - 800499e: 68fb ldr r3, [r7, #12] - 80049a0: 681b ldr r3, [r3, #0] - 80049a2: 699b ldr r3, [r3, #24] - 80049a4: 43da mvns r2, r3 - 80049a6: 68bb ldr r3, [r7, #8] - 80049a8: 4013 ands r3, r2 - 80049aa: b29b uxth r3, r3 - 80049ac: 2b00 cmp r3, #0 - 80049ae: bf14 ite ne - 80049b0: 2301 movne r3, #1 - 80049b2: 2300 moveq r3, #0 - 80049b4: b2db uxtb r3, r3 - 80049b6: 2b00 cmp r3, #0 - 80049b8: d016 beq.n 80049e8 + 8004bf6: 68bb ldr r3, [r7, #8] + 8004bf8: 0c1b lsrs r3, r3, #16 + 8004bfa: b2db uxtb r3, r3 + 8004bfc: 2b01 cmp r3, #1 + 8004bfe: d10c bne.n 8004c1a + 8004c00: 68fb ldr r3, [r7, #12] + 8004c02: 681b ldr r3, [r3, #0] + 8004c04: 695b ldr r3, [r3, #20] + 8004c06: 43da mvns r2, r3 + 8004c08: 68bb ldr r3, [r7, #8] + 8004c0a: 4013 ands r3, r2 + 8004c0c: b29b uxth r3, r3 + 8004c0e: 2b00 cmp r3, #0 + 8004c10: bf14 ite ne + 8004c12: 2301 movne r3, #1 + 8004c14: 2300 moveq r3, #0 + 8004c16: b2db uxtb r3, r3 + 8004c18: e00b b.n 8004c32 + 8004c1a: 68fb ldr r3, [r7, #12] + 8004c1c: 681b ldr r3, [r3, #0] + 8004c1e: 699b ldr r3, [r3, #24] + 8004c20: 43da mvns r2, r3 + 8004c22: 68bb ldr r3, [r7, #8] + 8004c24: 4013 ands r3, r2 + 8004c26: b29b uxth r3, r3 + 8004c28: 2b00 cmp r3, #0 + 8004c2a: bf14 ite ne + 8004c2c: 2301 movne r3, #1 + 8004c2e: 2300 moveq r3, #0 + 8004c30: b2db uxtb r3, r3 + 8004c32: 2b00 cmp r3, #0 + 8004c34: d016 beq.n 8004c64 { hi2c->PreviousState = I2C_STATE_NONE; - 80049ba: 68fb ldr r3, [r7, #12] - 80049bc: 2200 movs r2, #0 - 80049be: 631a str r2, [r3, #48] @ 0x30 + 8004c36: 68fb ldr r3, [r7, #12] + 8004c38: 2200 movs r2, #0 + 8004c3a: 631a str r2, [r3, #48] @ 0x30 hi2c->State = HAL_I2C_STATE_READY; - 80049c0: 68fb ldr r3, [r7, #12] - 80049c2: 2220 movs r2, #32 - 80049c4: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004c3c: 68fb ldr r3, [r7, #12] + 8004c3e: 2220 movs r2, #32 + 8004c40: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 80049c8: 68fb ldr r3, [r7, #12] - 80049ca: 2200 movs r2, #0 - 80049cc: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8004c44: 68fb ldr r3, [r7, #12] + 8004c46: 2200 movs r2, #0 + 8004c48: f883 203e strb.w r2, [r3, #62] @ 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 80049d0: 68fb ldr r3, [r7, #12] - 80049d2: 6c1b ldr r3, [r3, #64] @ 0x40 - 80049d4: f043 0220 orr.w r2, r3, #32 - 80049d8: 68fb ldr r3, [r7, #12] - 80049da: 641a str r2, [r3, #64] @ 0x40 + 8004c4c: 68fb ldr r3, [r7, #12] + 8004c4e: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004c50: f043 0220 orr.w r2, r3, #32 + 8004c54: 68fb ldr r3, [r7, #12] + 8004c56: 641a str r2, [r3, #64] @ 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 80049dc: 68fb ldr r3, [r7, #12] - 80049de: 2200 movs r2, #0 - 80049e0: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004c58: 68fb ldr r3, [r7, #12] + 8004c5a: 2200 movs r2, #0 + 8004c5c: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_ERROR; - 80049e4: 2301 movs r3, #1 - 80049e6: e021 b.n 8004a2c + 8004c60: 2301 movs r3, #1 + 8004c62: e021 b.n 8004ca8 while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET) - 80049e8: 68bb ldr r3, [r7, #8] - 80049ea: 0c1b lsrs r3, r3, #16 - 80049ec: b2db uxtb r3, r3 - 80049ee: 2b01 cmp r3, #1 - 80049f0: d10c bne.n 8004a0c - 80049f2: 68fb ldr r3, [r7, #12] - 80049f4: 681b ldr r3, [r3, #0] - 80049f6: 695b ldr r3, [r3, #20] - 80049f8: 43da mvns r2, r3 - 80049fa: 68bb ldr r3, [r7, #8] - 80049fc: 4013 ands r3, r2 - 80049fe: b29b uxth r3, r3 - 8004a00: 2b00 cmp r3, #0 - 8004a02: bf14 ite ne - 8004a04: 2301 movne r3, #1 - 8004a06: 2300 moveq r3, #0 - 8004a08: b2db uxtb r3, r3 - 8004a0a: e00b b.n 8004a24 - 8004a0c: 68fb ldr r3, [r7, #12] - 8004a0e: 681b ldr r3, [r3, #0] - 8004a10: 699b ldr r3, [r3, #24] - 8004a12: 43da mvns r2, r3 - 8004a14: 68bb ldr r3, [r7, #8] - 8004a16: 4013 ands r3, r2 - 8004a18: b29b uxth r3, r3 - 8004a1a: 2b00 cmp r3, #0 - 8004a1c: bf14 ite ne - 8004a1e: 2301 movne r3, #1 - 8004a20: 2300 moveq r3, #0 - 8004a22: b2db uxtb r3, r3 - 8004a24: 2b00 cmp r3, #0 - 8004a26: f47f af6d bne.w 8004904 + 8004c64: 68bb ldr r3, [r7, #8] + 8004c66: 0c1b lsrs r3, r3, #16 + 8004c68: b2db uxtb r3, r3 + 8004c6a: 2b01 cmp r3, #1 + 8004c6c: d10c bne.n 8004c88 + 8004c6e: 68fb ldr r3, [r7, #12] + 8004c70: 681b ldr r3, [r3, #0] + 8004c72: 695b ldr r3, [r3, #20] + 8004c74: 43da mvns r2, r3 + 8004c76: 68bb ldr r3, [r7, #8] + 8004c78: 4013 ands r3, r2 + 8004c7a: b29b uxth r3, r3 + 8004c7c: 2b00 cmp r3, #0 + 8004c7e: bf14 ite ne + 8004c80: 2301 movne r3, #1 + 8004c82: 2300 moveq r3, #0 + 8004c84: b2db uxtb r3, r3 + 8004c86: e00b b.n 8004ca0 + 8004c88: 68fb ldr r3, [r7, #12] + 8004c8a: 681b ldr r3, [r3, #0] + 8004c8c: 699b ldr r3, [r3, #24] + 8004c8e: 43da mvns r2, r3 + 8004c90: 68bb ldr r3, [r7, #8] + 8004c92: 4013 ands r3, r2 + 8004c94: b29b uxth r3, r3 + 8004c96: 2b00 cmp r3, #0 + 8004c98: bf14 ite ne + 8004c9a: 2301 movne r3, #1 + 8004c9c: 2300 moveq r3, #0 + 8004c9e: b2db uxtb r3, r3 + 8004ca0: 2b00 cmp r3, #0 + 8004ca2: f47f af6d bne.w 8004b80 } } } } return HAL_OK; - 8004a2a: 2300 movs r3, #0 + 8004ca6: 2300 movs r3, #0 } - 8004a2c: 4618 mov r0, r3 - 8004a2e: 3710 adds r7, #16 - 8004a30: 46bd mov sp, r7 - 8004a32: bd80 pop {r7, pc} + 8004ca8: 4618 mov r0, r3 + 8004caa: 3710 adds r7, #16 + 8004cac: 46bd mov sp, r7 + 8004cae: bd80 pop {r7, pc} -08004a34 : +08004cb0 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnTXEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { - 8004a34: b580 push {r7, lr} - 8004a36: b084 sub sp, #16 - 8004a38: af00 add r7, sp, #0 - 8004a3a: 60f8 str r0, [r7, #12] - 8004a3c: 60b9 str r1, [r7, #8] - 8004a3e: 607a str r2, [r7, #4] + 8004cb0: b580 push {r7, lr} + 8004cb2: b084 sub sp, #16 + 8004cb4: af00 add r7, sp, #0 + 8004cb6: 60f8 str r0, [r7, #12] + 8004cb8: 60b9 str r1, [r7, #8] + 8004cba: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) - 8004a40: e034 b.n 8004aac + 8004cbc: e034 b.n 8004d28 { /* Check if a NACK is detected */ if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) - 8004a42: 68f8 ldr r0, [r7, #12] - 8004a44: f000 f8e3 bl 8004c0e - 8004a48: 4603 mov r3, r0 - 8004a4a: 2b00 cmp r3, #0 - 8004a4c: d001 beq.n 8004a52 + 8004cbe: 68f8 ldr r0, [r7, #12] + 8004cc0: f000 f8e3 bl 8004e8a + 8004cc4: 4603 mov r3, r0 + 8004cc6: 2b00 cmp r3, #0 + 8004cc8: d001 beq.n 8004cce { return HAL_ERROR; - 8004a4e: 2301 movs r3, #1 - 8004a50: e034 b.n 8004abc + 8004cca: 2301 movs r3, #1 + 8004ccc: e034 b.n 8004d38 } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 8004a52: 68bb ldr r3, [r7, #8] - 8004a54: f1b3 3fff cmp.w r3, #4294967295 - 8004a58: d028 beq.n 8004aac + 8004cce: 68bb ldr r3, [r7, #8] + 8004cd0: f1b3 3fff cmp.w r3, #4294967295 + 8004cd4: d028 beq.n 8004d28 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8004a5a: f7fe f907 bl 8002c6c - 8004a5e: 4602 mov r2, r0 - 8004a60: 687b ldr r3, [r7, #4] - 8004a62: 1ad3 subs r3, r2, r3 - 8004a64: 68ba ldr r2, [r7, #8] - 8004a66: 429a cmp r2, r3 - 8004a68: d302 bcc.n 8004a70 - 8004a6a: 68bb ldr r3, [r7, #8] - 8004a6c: 2b00 cmp r3, #0 - 8004a6e: d11d bne.n 8004aac + 8004cd6: f7fe f907 bl 8002ee8 + 8004cda: 4602 mov r2, r0 + 8004cdc: 687b ldr r3, [r7, #4] + 8004cde: 1ad3 subs r3, r2, r3 + 8004ce0: 68ba ldr r2, [r7, #8] + 8004ce2: 429a cmp r2, r3 + 8004ce4: d302 bcc.n 8004cec + 8004ce6: 68bb ldr r3, [r7, #8] + 8004ce8: 2b00 cmp r3, #0 + 8004cea: d11d bne.n 8004d28 { if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET)) - 8004a70: 68fb ldr r3, [r7, #12] - 8004a72: 681b ldr r3, [r3, #0] - 8004a74: 695b ldr r3, [r3, #20] - 8004a76: f003 0380 and.w r3, r3, #128 @ 0x80 - 8004a7a: 2b80 cmp r3, #128 @ 0x80 - 8004a7c: d016 beq.n 8004aac + 8004cec: 68fb ldr r3, [r7, #12] + 8004cee: 681b ldr r3, [r3, #0] + 8004cf0: 695b ldr r3, [r3, #20] + 8004cf2: f003 0380 and.w r3, r3, #128 @ 0x80 + 8004cf6: 2b80 cmp r3, #128 @ 0x80 + 8004cf8: d016 beq.n 8004d28 { hi2c->PreviousState = I2C_STATE_NONE; - 8004a7e: 68fb ldr r3, [r7, #12] - 8004a80: 2200 movs r2, #0 - 8004a82: 631a str r2, [r3, #48] @ 0x30 + 8004cfa: 68fb ldr r3, [r7, #12] + 8004cfc: 2200 movs r2, #0 + 8004cfe: 631a str r2, [r3, #48] @ 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8004a84: 68fb ldr r3, [r7, #12] - 8004a86: 2220 movs r2, #32 - 8004a88: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004d00: 68fb ldr r3, [r7, #12] + 8004d02: 2220 movs r2, #32 + 8004d04: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8004a8c: 68fb ldr r3, [r7, #12] - 8004a8e: 2200 movs r2, #0 - 8004a90: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8004d08: 68fb ldr r3, [r7, #12] + 8004d0a: 2200 movs r2, #0 + 8004d0c: f883 203e strb.w r2, [r3, #62] @ 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 8004a94: 68fb ldr r3, [r7, #12] - 8004a96: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004a98: f043 0220 orr.w r2, r3, #32 - 8004a9c: 68fb ldr r3, [r7, #12] - 8004a9e: 641a str r2, [r3, #64] @ 0x40 + 8004d10: 68fb ldr r3, [r7, #12] + 8004d12: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004d14: f043 0220 orr.w r2, r3, #32 + 8004d18: 68fb ldr r3, [r7, #12] + 8004d1a: 641a str r2, [r3, #64] @ 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8004aa0: 68fb ldr r3, [r7, #12] - 8004aa2: 2200 movs r2, #0 - 8004aa4: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004d1c: 68fb ldr r3, [r7, #12] + 8004d1e: 2200 movs r2, #0 + 8004d20: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_ERROR; - 8004aa8: 2301 movs r3, #1 - 8004aaa: e007 b.n 8004abc + 8004d24: 2301 movs r3, #1 + 8004d26: e007 b.n 8004d38 while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) - 8004aac: 68fb ldr r3, [r7, #12] - 8004aae: 681b ldr r3, [r3, #0] - 8004ab0: 695b ldr r3, [r3, #20] - 8004ab2: f003 0380 and.w r3, r3, #128 @ 0x80 - 8004ab6: 2b80 cmp r3, #128 @ 0x80 - 8004ab8: d1c3 bne.n 8004a42 + 8004d28: 68fb ldr r3, [r7, #12] + 8004d2a: 681b ldr r3, [r3, #0] + 8004d2c: 695b ldr r3, [r3, #20] + 8004d2e: f003 0380 and.w r3, r3, #128 @ 0x80 + 8004d32: 2b80 cmp r3, #128 @ 0x80 + 8004d34: d1c3 bne.n 8004cbe } } } } return HAL_OK; - 8004aba: 2300 movs r3, #0 + 8004d36: 2300 movs r3, #0 } - 8004abc: 4618 mov r0, r3 - 8004abe: 3710 adds r7, #16 - 8004ac0: 46bd mov sp, r7 - 8004ac2: bd80 pop {r7, pc} + 8004d38: 4618 mov r0, r3 + 8004d3a: 3710 adds r7, #16 + 8004d3c: 46bd mov sp, r7 + 8004d3e: bd80 pop {r7, pc} -08004ac4 : +08004d40 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnBTFFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { - 8004ac4: b580 push {r7, lr} - 8004ac6: b084 sub sp, #16 - 8004ac8: af00 add r7, sp, #0 - 8004aca: 60f8 str r0, [r7, #12] - 8004acc: 60b9 str r1, [r7, #8] - 8004ace: 607a str r2, [r7, #4] + 8004d40: b580 push {r7, lr} + 8004d42: b084 sub sp, #16 + 8004d44: af00 add r7, sp, #0 + 8004d46: 60f8 str r0, [r7, #12] + 8004d48: 60b9 str r1, [r7, #8] + 8004d4a: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET) - 8004ad0: e034 b.n 8004b3c + 8004d4c: e034 b.n 8004db8 { /* Check if a NACK is detected */ if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) - 8004ad2: 68f8 ldr r0, [r7, #12] - 8004ad4: f000 f89b bl 8004c0e - 8004ad8: 4603 mov r3, r0 - 8004ada: 2b00 cmp r3, #0 - 8004adc: d001 beq.n 8004ae2 + 8004d4e: 68f8 ldr r0, [r7, #12] + 8004d50: f000 f89b bl 8004e8a + 8004d54: 4603 mov r3, r0 + 8004d56: 2b00 cmp r3, #0 + 8004d58: d001 beq.n 8004d5e { return HAL_ERROR; - 8004ade: 2301 movs r3, #1 - 8004ae0: e034 b.n 8004b4c + 8004d5a: 2301 movs r3, #1 + 8004d5c: e034 b.n 8004dc8 } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 8004ae2: 68bb ldr r3, [r7, #8] - 8004ae4: f1b3 3fff cmp.w r3, #4294967295 - 8004ae8: d028 beq.n 8004b3c + 8004d5e: 68bb ldr r3, [r7, #8] + 8004d60: f1b3 3fff cmp.w r3, #4294967295 + 8004d64: d028 beq.n 8004db8 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8004aea: f7fe f8bf bl 8002c6c - 8004aee: 4602 mov r2, r0 - 8004af0: 687b ldr r3, [r7, #4] - 8004af2: 1ad3 subs r3, r2, r3 - 8004af4: 68ba ldr r2, [r7, #8] - 8004af6: 429a cmp r2, r3 - 8004af8: d302 bcc.n 8004b00 - 8004afa: 68bb ldr r3, [r7, #8] - 8004afc: 2b00 cmp r3, #0 - 8004afe: d11d bne.n 8004b3c + 8004d66: f7fe f8bf bl 8002ee8 + 8004d6a: 4602 mov r2, r0 + 8004d6c: 687b ldr r3, [r7, #4] + 8004d6e: 1ad3 subs r3, r2, r3 + 8004d70: 68ba ldr r2, [r7, #8] + 8004d72: 429a cmp r2, r3 + 8004d74: d302 bcc.n 8004d7c + 8004d76: 68bb ldr r3, [r7, #8] + 8004d78: 2b00 cmp r3, #0 + 8004d7a: d11d bne.n 8004db8 { if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET)) - 8004b00: 68fb ldr r3, [r7, #12] - 8004b02: 681b ldr r3, [r3, #0] - 8004b04: 695b ldr r3, [r3, #20] - 8004b06: f003 0304 and.w r3, r3, #4 - 8004b0a: 2b04 cmp r3, #4 - 8004b0c: d016 beq.n 8004b3c + 8004d7c: 68fb ldr r3, [r7, #12] + 8004d7e: 681b ldr r3, [r3, #0] + 8004d80: 695b ldr r3, [r3, #20] + 8004d82: f003 0304 and.w r3, r3, #4 + 8004d86: 2b04 cmp r3, #4 + 8004d88: d016 beq.n 8004db8 { hi2c->PreviousState = I2C_STATE_NONE; - 8004b0e: 68fb ldr r3, [r7, #12] - 8004b10: 2200 movs r2, #0 - 8004b12: 631a str r2, [r3, #48] @ 0x30 + 8004d8a: 68fb ldr r3, [r7, #12] + 8004d8c: 2200 movs r2, #0 + 8004d8e: 631a str r2, [r3, #48] @ 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8004b14: 68fb ldr r3, [r7, #12] - 8004b16: 2220 movs r2, #32 - 8004b18: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004d90: 68fb ldr r3, [r7, #12] + 8004d92: 2220 movs r2, #32 + 8004d94: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8004b1c: 68fb ldr r3, [r7, #12] - 8004b1e: 2200 movs r2, #0 - 8004b20: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8004d98: 68fb ldr r3, [r7, #12] + 8004d9a: 2200 movs r2, #0 + 8004d9c: f883 203e strb.w r2, [r3, #62] @ 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 8004b24: 68fb ldr r3, [r7, #12] - 8004b26: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004b28: f043 0220 orr.w r2, r3, #32 - 8004b2c: 68fb ldr r3, [r7, #12] - 8004b2e: 641a str r2, [r3, #64] @ 0x40 + 8004da0: 68fb ldr r3, [r7, #12] + 8004da2: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004da4: f043 0220 orr.w r2, r3, #32 + 8004da8: 68fb ldr r3, [r7, #12] + 8004daa: 641a str r2, [r3, #64] @ 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8004b30: 68fb ldr r3, [r7, #12] - 8004b32: 2200 movs r2, #0 - 8004b34: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004dac: 68fb ldr r3, [r7, #12] + 8004dae: 2200 movs r2, #0 + 8004db0: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_ERROR; - 8004b38: 2301 movs r3, #1 - 8004b3a: e007 b.n 8004b4c + 8004db4: 2301 movs r3, #1 + 8004db6: e007 b.n 8004dc8 while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET) - 8004b3c: 68fb ldr r3, [r7, #12] - 8004b3e: 681b ldr r3, [r3, #0] - 8004b40: 695b ldr r3, [r3, #20] - 8004b42: f003 0304 and.w r3, r3, #4 - 8004b46: 2b04 cmp r3, #4 - 8004b48: d1c3 bne.n 8004ad2 + 8004db8: 68fb ldr r3, [r7, #12] + 8004dba: 681b ldr r3, [r3, #0] + 8004dbc: 695b ldr r3, [r3, #20] + 8004dbe: f003 0304 and.w r3, r3, #4 + 8004dc2: 2b04 cmp r3, #4 + 8004dc4: d1c3 bne.n 8004d4e } } } } return HAL_OK; - 8004b4a: 2300 movs r3, #0 + 8004dc6: 2300 movs r3, #0 } - 8004b4c: 4618 mov r0, r3 - 8004b4e: 3710 adds r7, #16 - 8004b50: 46bd mov sp, r7 - 8004b52: bd80 pop {r7, pc} + 8004dc8: 4618 mov r0, r3 + 8004dca: 3710 adds r7, #16 + 8004dcc: 46bd mov sp, r7 + 8004dce: bd80 pop {r7, pc} -08004b54 : +08004dd0 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnRXNEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { - 8004b54: b580 push {r7, lr} - 8004b56: b084 sub sp, #16 - 8004b58: af00 add r7, sp, #0 - 8004b5a: 60f8 str r0, [r7, #12] - 8004b5c: 60b9 str r1, [r7, #8] - 8004b5e: 607a str r2, [r7, #4] + 8004dd0: b580 push {r7, lr} + 8004dd2: b084 sub sp, #16 + 8004dd4: af00 add r7, sp, #0 + 8004dd6: 60f8 str r0, [r7, #12] + 8004dd8: 60b9 str r1, [r7, #8] + 8004dda: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET) - 8004b60: e049 b.n 8004bf6 + 8004ddc: e049 b.n 8004e72 { /* Check if a STOPF is detected */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == SET) - 8004b62: 68fb ldr r3, [r7, #12] - 8004b64: 681b ldr r3, [r3, #0] - 8004b66: 695b ldr r3, [r3, #20] - 8004b68: f003 0310 and.w r3, r3, #16 - 8004b6c: 2b10 cmp r3, #16 - 8004b6e: d119 bne.n 8004ba4 + 8004dde: 68fb ldr r3, [r7, #12] + 8004de0: 681b ldr r3, [r3, #0] + 8004de2: 695b ldr r3, [r3, #20] + 8004de4: f003 0310 and.w r3, r3, #16 + 8004de8: 2b10 cmp r3, #16 + 8004dea: d119 bne.n 8004e20 { /* Clear STOP Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - 8004b70: 68fb ldr r3, [r7, #12] - 8004b72: 681b ldr r3, [r3, #0] - 8004b74: f06f 0210 mvn.w r2, #16 - 8004b78: 615a str r2, [r3, #20] + 8004dec: 68fb ldr r3, [r7, #12] + 8004dee: 681b ldr r3, [r3, #0] + 8004df0: f06f 0210 mvn.w r2, #16 + 8004df4: 615a str r2, [r3, #20] hi2c->PreviousState = I2C_STATE_NONE; - 8004b7a: 68fb ldr r3, [r7, #12] - 8004b7c: 2200 movs r2, #0 - 8004b7e: 631a str r2, [r3, #48] @ 0x30 + 8004df6: 68fb ldr r3, [r7, #12] + 8004df8: 2200 movs r2, #0 + 8004dfa: 631a str r2, [r3, #48] @ 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8004b80: 68fb ldr r3, [r7, #12] - 8004b82: 2220 movs r2, #32 - 8004b84: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004dfc: 68fb ldr r3, [r7, #12] + 8004dfe: 2220 movs r2, #32 + 8004e00: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8004b88: 68fb ldr r3, [r7, #12] - 8004b8a: 2200 movs r2, #0 - 8004b8c: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8004e04: 68fb ldr r3, [r7, #12] + 8004e06: 2200 movs r2, #0 + 8004e08: f883 203e strb.w r2, [r3, #62] @ 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_NONE; - 8004b90: 68fb ldr r3, [r7, #12] - 8004b92: 6c1a ldr r2, [r3, #64] @ 0x40 - 8004b94: 68fb ldr r3, [r7, #12] - 8004b96: 641a str r2, [r3, #64] @ 0x40 + 8004e0c: 68fb ldr r3, [r7, #12] + 8004e0e: 6c1a ldr r2, [r3, #64] @ 0x40 + 8004e10: 68fb ldr r3, [r7, #12] + 8004e12: 641a str r2, [r3, #64] @ 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8004b98: 68fb ldr r3, [r7, #12] - 8004b9a: 2200 movs r2, #0 - 8004b9c: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004e14: 68fb ldr r3, [r7, #12] + 8004e16: 2200 movs r2, #0 + 8004e18: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_ERROR; - 8004ba0: 2301 movs r3, #1 - 8004ba2: e030 b.n 8004c06 + 8004e1c: 2301 movs r3, #1 + 8004e1e: e030 b.n 8004e82 } /* Check for the Timeout */ if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8004ba4: f7fe f862 bl 8002c6c - 8004ba8: 4602 mov r2, r0 - 8004baa: 687b ldr r3, [r7, #4] - 8004bac: 1ad3 subs r3, r2, r3 - 8004bae: 68ba ldr r2, [r7, #8] - 8004bb0: 429a cmp r2, r3 - 8004bb2: d302 bcc.n 8004bba - 8004bb4: 68bb ldr r3, [r7, #8] - 8004bb6: 2b00 cmp r3, #0 - 8004bb8: d11d bne.n 8004bf6 + 8004e20: f7fe f862 bl 8002ee8 + 8004e24: 4602 mov r2, r0 + 8004e26: 687b ldr r3, [r7, #4] + 8004e28: 1ad3 subs r3, r2, r3 + 8004e2a: 68ba ldr r2, [r7, #8] + 8004e2c: 429a cmp r2, r3 + 8004e2e: d302 bcc.n 8004e36 + 8004e30: 68bb ldr r3, [r7, #8] + 8004e32: 2b00 cmp r3, #0 + 8004e34: d11d bne.n 8004e72 { if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET)) - 8004bba: 68fb ldr r3, [r7, #12] - 8004bbc: 681b ldr r3, [r3, #0] - 8004bbe: 695b ldr r3, [r3, #20] - 8004bc0: f003 0340 and.w r3, r3, #64 @ 0x40 - 8004bc4: 2b40 cmp r3, #64 @ 0x40 - 8004bc6: d016 beq.n 8004bf6 + 8004e36: 68fb ldr r3, [r7, #12] + 8004e38: 681b ldr r3, [r3, #0] + 8004e3a: 695b ldr r3, [r3, #20] + 8004e3c: f003 0340 and.w r3, r3, #64 @ 0x40 + 8004e40: 2b40 cmp r3, #64 @ 0x40 + 8004e42: d016 beq.n 8004e72 { hi2c->PreviousState = I2C_STATE_NONE; - 8004bc8: 68fb ldr r3, [r7, #12] - 8004bca: 2200 movs r2, #0 - 8004bcc: 631a str r2, [r3, #48] @ 0x30 + 8004e44: 68fb ldr r3, [r7, #12] + 8004e46: 2200 movs r2, #0 + 8004e48: 631a str r2, [r3, #48] @ 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8004bce: 68fb ldr r3, [r7, #12] - 8004bd0: 2220 movs r2, #32 - 8004bd2: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004e4a: 68fb ldr r3, [r7, #12] + 8004e4c: 2220 movs r2, #32 + 8004e4e: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8004bd6: 68fb ldr r3, [r7, #12] - 8004bd8: 2200 movs r2, #0 - 8004bda: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8004e52: 68fb ldr r3, [r7, #12] + 8004e54: 2200 movs r2, #0 + 8004e56: f883 203e strb.w r2, [r3, #62] @ 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 8004bde: 68fb ldr r3, [r7, #12] - 8004be0: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004be2: f043 0220 orr.w r2, r3, #32 - 8004be6: 68fb ldr r3, [r7, #12] - 8004be8: 641a str r2, [r3, #64] @ 0x40 + 8004e5a: 68fb ldr r3, [r7, #12] + 8004e5c: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004e5e: f043 0220 orr.w r2, r3, #32 + 8004e62: 68fb ldr r3, [r7, #12] + 8004e64: 641a str r2, [r3, #64] @ 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8004bea: 68fb ldr r3, [r7, #12] - 8004bec: 2200 movs r2, #0 - 8004bee: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004e66: 68fb ldr r3, [r7, #12] + 8004e68: 2200 movs r2, #0 + 8004e6a: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_ERROR; - 8004bf2: 2301 movs r3, #1 - 8004bf4: e007 b.n 8004c06 + 8004e6e: 2301 movs r3, #1 + 8004e70: e007 b.n 8004e82 while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET) - 8004bf6: 68fb ldr r3, [r7, #12] - 8004bf8: 681b ldr r3, [r3, #0] - 8004bfa: 695b ldr r3, [r3, #20] - 8004bfc: f003 0340 and.w r3, r3, #64 @ 0x40 - 8004c00: 2b40 cmp r3, #64 @ 0x40 - 8004c02: d1ae bne.n 8004b62 + 8004e72: 68fb ldr r3, [r7, #12] + 8004e74: 681b ldr r3, [r3, #0] + 8004e76: 695b ldr r3, [r3, #20] + 8004e78: f003 0340 and.w r3, r3, #64 @ 0x40 + 8004e7c: 2b40 cmp r3, #64 @ 0x40 + 8004e7e: d1ae bne.n 8004dde } } } return HAL_OK; - 8004c04: 2300 movs r3, #0 + 8004e80: 2300 movs r3, #0 } - 8004c06: 4618 mov r0, r3 - 8004c08: 3710 adds r7, #16 - 8004c0a: 46bd mov sp, r7 - 8004c0c: bd80 pop {r7, pc} + 8004e82: 4618 mov r0, r3 + 8004e84: 3710 adds r7, #16 + 8004e86: 46bd mov sp, r7 + 8004e88: bd80 pop {r7, pc} -08004c0e : +08004e8a : * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ static HAL_StatusTypeDef I2C_IsAcknowledgeFailed(I2C_HandleTypeDef *hi2c) { - 8004c0e: b480 push {r7} - 8004c10: b083 sub sp, #12 - 8004c12: af00 add r7, sp, #0 - 8004c14: 6078 str r0, [r7, #4] + 8004e8a: b480 push {r7} + 8004e8c: b083 sub sp, #12 + 8004e8e: af00 add r7, sp, #0 + 8004e90: 6078 str r0, [r7, #4] if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) - 8004c16: 687b ldr r3, [r7, #4] - 8004c18: 681b ldr r3, [r3, #0] - 8004c1a: 695b ldr r3, [r3, #20] - 8004c1c: f403 6380 and.w r3, r3, #1024 @ 0x400 - 8004c20: f5b3 6f80 cmp.w r3, #1024 @ 0x400 - 8004c24: d11b bne.n 8004c5e + 8004e92: 687b ldr r3, [r7, #4] + 8004e94: 681b ldr r3, [r3, #0] + 8004e96: 695b ldr r3, [r3, #20] + 8004e98: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8004e9c: f5b3 6f80 cmp.w r3, #1024 @ 0x400 + 8004ea0: d11b bne.n 8004eda { /* Clear NACKF Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - 8004c26: 687b ldr r3, [r7, #4] - 8004c28: 681b ldr r3, [r3, #0] - 8004c2a: f46f 6280 mvn.w r2, #1024 @ 0x400 - 8004c2e: 615a str r2, [r3, #20] + 8004ea2: 687b ldr r3, [r7, #4] + 8004ea4: 681b ldr r3, [r3, #0] + 8004ea6: f46f 6280 mvn.w r2, #1024 @ 0x400 + 8004eaa: 615a str r2, [r3, #20] hi2c->PreviousState = I2C_STATE_NONE; - 8004c30: 687b ldr r3, [r7, #4] - 8004c32: 2200 movs r2, #0 - 8004c34: 631a str r2, [r3, #48] @ 0x30 + 8004eac: 687b ldr r3, [r7, #4] + 8004eae: 2200 movs r2, #0 + 8004eb0: 631a str r2, [r3, #48] @ 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8004c36: 687b ldr r3, [r7, #4] - 8004c38: 2220 movs r2, #32 - 8004c3a: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8004eb2: 687b ldr r3, [r7, #4] + 8004eb4: 2220 movs r2, #32 + 8004eb6: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8004c3e: 687b ldr r3, [r7, #4] - 8004c40: 2200 movs r2, #0 - 8004c42: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8004eba: 687b ldr r3, [r7, #4] + 8004ebc: 2200 movs r2, #0 + 8004ebe: f883 203e strb.w r2, [r3, #62] @ 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - 8004c46: 687b ldr r3, [r7, #4] - 8004c48: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004c4a: f043 0204 orr.w r2, r3, #4 - 8004c4e: 687b ldr r3, [r7, #4] - 8004c50: 641a str r2, [r3, #64] @ 0x40 + 8004ec2: 687b ldr r3, [r7, #4] + 8004ec4: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004ec6: f043 0204 orr.w r2, r3, #4 + 8004eca: 687b ldr r3, [r7, #4] + 8004ecc: 641a str r2, [r3, #64] @ 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8004c52: 687b ldr r3, [r7, #4] - 8004c54: 2200 movs r2, #0 - 8004c56: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8004ece: 687b ldr r3, [r7, #4] + 8004ed0: 2200 movs r2, #0 + 8004ed2: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_ERROR; - 8004c5a: 2301 movs r3, #1 - 8004c5c: e000 b.n 8004c60 + 8004ed6: 2301 movs r3, #1 + 8004ed8: e000 b.n 8004edc } return HAL_OK; - 8004c5e: 2300 movs r3, #0 + 8004eda: 2300 movs r3, #0 } - 8004c60: 4618 mov r0, r3 - 8004c62: 370c adds r7, #12 - 8004c64: 46bd mov sp, r7 - 8004c66: bc80 pop {r7} - 8004c68: 4770 bx lr + 8004edc: 4618 mov r0, r3 + 8004ede: 370c adds r7, #12 + 8004ee0: 46bd mov sp, r7 + 8004ee2: bc80 pop {r7} + 8004ee4: 4770 bx lr ... -08004c6c : +08004ee8 : * supported by this macro. User should request a transition to HSE Off * first and then HSE On or HSE Bypass. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { - 8004c6c: b580 push {r7, lr} - 8004c6e: b086 sub sp, #24 - 8004c70: af00 add r7, sp, #0 - 8004c72: 6078 str r0, [r7, #4] + 8004ee8: b580 push {r7, lr} + 8004eea: b086 sub sp, #24 + 8004eec: af00 add r7, sp, #0 + 8004eee: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; /* Check Null pointer */ if (RCC_OscInitStruct == NULL) - 8004c74: 687b ldr r3, [r7, #4] - 8004c76: 2b00 cmp r3, #0 - 8004c78: d101 bne.n 8004c7e + 8004ef0: 687b ldr r3, [r7, #4] + 8004ef2: 2b00 cmp r3, #0 + 8004ef4: d101 bne.n 8004efa { return HAL_ERROR; - 8004c7a: 2301 movs r3, #1 - 8004c7c: e272 b.n 8005164 + 8004ef6: 2301 movs r3, #1 + 8004ef8: e272 b.n 80053e0 /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 8004c7e: 687b ldr r3, [r7, #4] - 8004c80: 681b ldr r3, [r3, #0] - 8004c82: f003 0301 and.w r3, r3, #1 - 8004c86: 2b00 cmp r3, #0 - 8004c88: f000 8087 beq.w 8004d9a + 8004efa: 687b ldr r3, [r7, #4] + 8004efc: 681b ldr r3, [r3, #0] + 8004efe: f003 0301 and.w r3, r3, #1 + 8004f02: 2b00 cmp r3, #0 + 8004f04: f000 8087 beq.w 8005016 { /* Check the parameters */ assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */ if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE) - 8004c8c: 4b92 ldr r3, [pc, #584] @ (8004ed8 ) - 8004c8e: 685b ldr r3, [r3, #4] - 8004c90: f003 030c and.w r3, r3, #12 - 8004c94: 2b04 cmp r3, #4 - 8004c96: d00c beq.n 8004cb2 + 8004f08: 4b92 ldr r3, [pc, #584] @ (8005154 ) + 8004f0a: 685b ldr r3, [r3, #4] + 8004f0c: f003 030c and.w r3, r3, #12 + 8004f10: 2b04 cmp r3, #4 + 8004f12: d00c beq.n 8004f2e || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE))) - 8004c98: 4b8f ldr r3, [pc, #572] @ (8004ed8 ) - 8004c9a: 685b ldr r3, [r3, #4] - 8004c9c: f003 030c and.w r3, r3, #12 - 8004ca0: 2b08 cmp r3, #8 - 8004ca2: d112 bne.n 8004cca - 8004ca4: 4b8c ldr r3, [pc, #560] @ (8004ed8 ) - 8004ca6: 685b ldr r3, [r3, #4] - 8004ca8: f403 3380 and.w r3, r3, #65536 @ 0x10000 - 8004cac: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 - 8004cb0: d10b bne.n 8004cca + 8004f14: 4b8f ldr r3, [pc, #572] @ (8005154 ) + 8004f16: 685b ldr r3, [r3, #4] + 8004f18: f003 030c and.w r3, r3, #12 + 8004f1c: 2b08 cmp r3, #8 + 8004f1e: d112 bne.n 8004f46 + 8004f20: 4b8c ldr r3, [pc, #560] @ (8005154 ) + 8004f22: 685b ldr r3, [r3, #4] + 8004f24: f403 3380 and.w r3, r3, #65536 @ 0x10000 + 8004f28: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 + 8004f2c: d10b bne.n 8004f46 { if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8004cb2: 4b89 ldr r3, [pc, #548] @ (8004ed8 ) - 8004cb4: 681b ldr r3, [r3, #0] - 8004cb6: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8004cba: 2b00 cmp r3, #0 - 8004cbc: d06c beq.n 8004d98 - 8004cbe: 687b ldr r3, [r7, #4] - 8004cc0: 685b ldr r3, [r3, #4] - 8004cc2: 2b00 cmp r3, #0 - 8004cc4: d168 bne.n 8004d98 + 8004f2e: 4b89 ldr r3, [pc, #548] @ (8005154 ) + 8004f30: 681b ldr r3, [r3, #0] + 8004f32: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8004f36: 2b00 cmp r3, #0 + 8004f38: d06c beq.n 8005014 + 8004f3a: 687b ldr r3, [r7, #4] + 8004f3c: 685b ldr r3, [r3, #4] + 8004f3e: 2b00 cmp r3, #0 + 8004f40: d168 bne.n 8005014 { return HAL_ERROR; - 8004cc6: 2301 movs r3, #1 - 8004cc8: e24c b.n 8005164 + 8004f42: 2301 movs r3, #1 + 8004f44: e24c b.n 80053e0 } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 8004cca: 687b ldr r3, [r7, #4] - 8004ccc: 685b ldr r3, [r3, #4] - 8004cce: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 - 8004cd2: d106 bne.n 8004ce2 - 8004cd4: 4b80 ldr r3, [pc, #512] @ (8004ed8 ) - 8004cd6: 681b ldr r3, [r3, #0] - 8004cd8: 4a7f ldr r2, [pc, #508] @ (8004ed8 ) - 8004cda: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8004cde: 6013 str r3, [r2, #0] - 8004ce0: e02e b.n 8004d40 - 8004ce2: 687b ldr r3, [r7, #4] - 8004ce4: 685b ldr r3, [r3, #4] - 8004ce6: 2b00 cmp r3, #0 - 8004ce8: d10c bne.n 8004d04 - 8004cea: 4b7b ldr r3, [pc, #492] @ (8004ed8 ) - 8004cec: 681b ldr r3, [r3, #0] - 8004cee: 4a7a ldr r2, [pc, #488] @ (8004ed8 ) - 8004cf0: f423 3380 bic.w r3, r3, #65536 @ 0x10000 - 8004cf4: 6013 str r3, [r2, #0] - 8004cf6: 4b78 ldr r3, [pc, #480] @ (8004ed8 ) - 8004cf8: 681b ldr r3, [r3, #0] - 8004cfa: 4a77 ldr r2, [pc, #476] @ (8004ed8 ) - 8004cfc: f423 2380 bic.w r3, r3, #262144 @ 0x40000 - 8004d00: 6013 str r3, [r2, #0] - 8004d02: e01d b.n 8004d40 - 8004d04: 687b ldr r3, [r7, #4] - 8004d06: 685b ldr r3, [r3, #4] - 8004d08: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 - 8004d0c: d10c bne.n 8004d28 - 8004d0e: 4b72 ldr r3, [pc, #456] @ (8004ed8 ) - 8004d10: 681b ldr r3, [r3, #0] - 8004d12: 4a71 ldr r2, [pc, #452] @ (8004ed8 ) - 8004d14: f443 2380 orr.w r3, r3, #262144 @ 0x40000 - 8004d18: 6013 str r3, [r2, #0] - 8004d1a: 4b6f ldr r3, [pc, #444] @ (8004ed8 ) - 8004d1c: 681b ldr r3, [r3, #0] - 8004d1e: 4a6e ldr r2, [pc, #440] @ (8004ed8 ) - 8004d20: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8004d24: 6013 str r3, [r2, #0] - 8004d26: e00b b.n 8004d40 - 8004d28: 4b6b ldr r3, [pc, #428] @ (8004ed8 ) - 8004d2a: 681b ldr r3, [r3, #0] - 8004d2c: 4a6a ldr r2, [pc, #424] @ (8004ed8 ) - 8004d2e: f423 3380 bic.w r3, r3, #65536 @ 0x10000 - 8004d32: 6013 str r3, [r2, #0] - 8004d34: 4b68 ldr r3, [pc, #416] @ (8004ed8 ) - 8004d36: 681b ldr r3, [r3, #0] - 8004d38: 4a67 ldr r2, [pc, #412] @ (8004ed8 ) - 8004d3a: f423 2380 bic.w r3, r3, #262144 @ 0x40000 - 8004d3e: 6013 str r3, [r2, #0] + 8004f46: 687b ldr r3, [r7, #4] + 8004f48: 685b ldr r3, [r3, #4] + 8004f4a: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 + 8004f4e: d106 bne.n 8004f5e + 8004f50: 4b80 ldr r3, [pc, #512] @ (8005154 ) + 8004f52: 681b ldr r3, [r3, #0] + 8004f54: 4a7f ldr r2, [pc, #508] @ (8005154 ) + 8004f56: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 8004f5a: 6013 str r3, [r2, #0] + 8004f5c: e02e b.n 8004fbc + 8004f5e: 687b ldr r3, [r7, #4] + 8004f60: 685b ldr r3, [r3, #4] + 8004f62: 2b00 cmp r3, #0 + 8004f64: d10c bne.n 8004f80 + 8004f66: 4b7b ldr r3, [pc, #492] @ (8005154 ) + 8004f68: 681b ldr r3, [r3, #0] + 8004f6a: 4a7a ldr r2, [pc, #488] @ (8005154 ) + 8004f6c: f423 3380 bic.w r3, r3, #65536 @ 0x10000 + 8004f70: 6013 str r3, [r2, #0] + 8004f72: 4b78 ldr r3, [pc, #480] @ (8005154 ) + 8004f74: 681b ldr r3, [r3, #0] + 8004f76: 4a77 ldr r2, [pc, #476] @ (8005154 ) + 8004f78: f423 2380 bic.w r3, r3, #262144 @ 0x40000 + 8004f7c: 6013 str r3, [r2, #0] + 8004f7e: e01d b.n 8004fbc + 8004f80: 687b ldr r3, [r7, #4] + 8004f82: 685b ldr r3, [r3, #4] + 8004f84: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 + 8004f88: d10c bne.n 8004fa4 + 8004f8a: 4b72 ldr r3, [pc, #456] @ (8005154 ) + 8004f8c: 681b ldr r3, [r3, #0] + 8004f8e: 4a71 ldr r2, [pc, #452] @ (8005154 ) + 8004f90: f443 2380 orr.w r3, r3, #262144 @ 0x40000 + 8004f94: 6013 str r3, [r2, #0] + 8004f96: 4b6f ldr r3, [pc, #444] @ (8005154 ) + 8004f98: 681b ldr r3, [r3, #0] + 8004f9a: 4a6e ldr r2, [pc, #440] @ (8005154 ) + 8004f9c: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 8004fa0: 6013 str r3, [r2, #0] + 8004fa2: e00b b.n 8004fbc + 8004fa4: 4b6b ldr r3, [pc, #428] @ (8005154 ) + 8004fa6: 681b ldr r3, [r3, #0] + 8004fa8: 4a6a ldr r2, [pc, #424] @ (8005154 ) + 8004faa: f423 3380 bic.w r3, r3, #65536 @ 0x10000 + 8004fae: 6013 str r3, [r2, #0] + 8004fb0: 4b68 ldr r3, [pc, #416] @ (8005154 ) + 8004fb2: 681b ldr r3, [r3, #0] + 8004fb4: 4a67 ldr r2, [pc, #412] @ (8005154 ) + 8004fb6: f423 2380 bic.w r3, r3, #262144 @ 0x40000 + 8004fba: 6013 str r3, [r2, #0] /* Check the HSE State */ if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) - 8004d40: 687b ldr r3, [r7, #4] - 8004d42: 685b ldr r3, [r3, #4] - 8004d44: 2b00 cmp r3, #0 - 8004d46: d013 beq.n 8004d70 + 8004fbc: 687b ldr r3, [r7, #4] + 8004fbe: 685b ldr r3, [r3, #4] + 8004fc0: 2b00 cmp r3, #0 + 8004fc2: d013 beq.n 8004fec { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8004d48: f7fd ff90 bl 8002c6c - 8004d4c: 6138 str r0, [r7, #16] + 8004fc4: f7fd ff90 bl 8002ee8 + 8004fc8: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8004d4e: e008 b.n 8004d62 + 8004fca: e008 b.n 8004fde { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8004d50: f7fd ff8c bl 8002c6c - 8004d54: 4602 mov r2, r0 - 8004d56: 693b ldr r3, [r7, #16] - 8004d58: 1ad3 subs r3, r2, r3 - 8004d5a: 2b64 cmp r3, #100 @ 0x64 - 8004d5c: d901 bls.n 8004d62 + 8004fcc: f7fd ff8c bl 8002ee8 + 8004fd0: 4602 mov r2, r0 + 8004fd2: 693b ldr r3, [r7, #16] + 8004fd4: 1ad3 subs r3, r2, r3 + 8004fd6: 2b64 cmp r3, #100 @ 0x64 + 8004fd8: d901 bls.n 8004fde { return HAL_TIMEOUT; - 8004d5e: 2303 movs r3, #3 - 8004d60: e200 b.n 8005164 + 8004fda: 2303 movs r3, #3 + 8004fdc: e200 b.n 80053e0 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8004d62: 4b5d ldr r3, [pc, #372] @ (8004ed8 ) - 8004d64: 681b ldr r3, [r3, #0] - 8004d66: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8004d6a: 2b00 cmp r3, #0 - 8004d6c: d0f0 beq.n 8004d50 - 8004d6e: e014 b.n 8004d9a + 8004fde: 4b5d ldr r3, [pc, #372] @ (8005154 ) + 8004fe0: 681b ldr r3, [r3, #0] + 8004fe2: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8004fe6: 2b00 cmp r3, #0 + 8004fe8: d0f0 beq.n 8004fcc + 8004fea: e014 b.n 8005016 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8004d70: f7fd ff7c bl 8002c6c - 8004d74: 6138 str r0, [r7, #16] + 8004fec: f7fd ff7c bl 8002ee8 + 8004ff0: 6138 str r0, [r7, #16] /* Wait till HSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8004d76: e008 b.n 8004d8a + 8004ff2: e008 b.n 8005006 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8004d78: f7fd ff78 bl 8002c6c - 8004d7c: 4602 mov r2, r0 - 8004d7e: 693b ldr r3, [r7, #16] - 8004d80: 1ad3 subs r3, r2, r3 - 8004d82: 2b64 cmp r3, #100 @ 0x64 - 8004d84: d901 bls.n 8004d8a + 8004ff4: f7fd ff78 bl 8002ee8 + 8004ff8: 4602 mov r2, r0 + 8004ffa: 693b ldr r3, [r7, #16] + 8004ffc: 1ad3 subs r3, r2, r3 + 8004ffe: 2b64 cmp r3, #100 @ 0x64 + 8005000: d901 bls.n 8005006 { return HAL_TIMEOUT; - 8004d86: 2303 movs r3, #3 - 8004d88: e1ec b.n 8005164 + 8005002: 2303 movs r3, #3 + 8005004: e1ec b.n 80053e0 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8004d8a: 4b53 ldr r3, [pc, #332] @ (8004ed8 ) - 8004d8c: 681b ldr r3, [r3, #0] - 8004d8e: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8004d92: 2b00 cmp r3, #0 - 8004d94: d1f0 bne.n 8004d78 - 8004d96: e000 b.n 8004d9a + 8005006: 4b53 ldr r3, [pc, #332] @ (8005154 ) + 8005008: 681b ldr r3, [r3, #0] + 800500a: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 800500e: 2b00 cmp r3, #0 + 8005010: d1f0 bne.n 8004ff4 + 8005012: e000 b.n 8005016 if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8004d98: bf00 nop + 8005014: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 8004d9a: 687b ldr r3, [r7, #4] - 8004d9c: 681b ldr r3, [r3, #0] - 8004d9e: f003 0302 and.w r3, r3, #2 - 8004da2: 2b00 cmp r3, #0 - 8004da4: d063 beq.n 8004e6e + 8005016: 687b ldr r3, [r7, #4] + 8005018: 681b ldr r3, [r3, #0] + 800501a: f003 0302 and.w r3, r3, #2 + 800501e: 2b00 cmp r3, #0 + 8005020: d063 beq.n 80050ea /* Check the parameters */ assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue)); /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */ if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI) - 8004da6: 4b4c ldr r3, [pc, #304] @ (8004ed8 ) - 8004da8: 685b ldr r3, [r3, #4] - 8004daa: f003 030c and.w r3, r3, #12 - 8004dae: 2b00 cmp r3, #0 - 8004db0: d00b beq.n 8004dca + 8005022: 4b4c ldr r3, [pc, #304] @ (8005154 ) + 8005024: 685b ldr r3, [r3, #4] + 8005026: f003 030c and.w r3, r3, #12 + 800502a: 2b00 cmp r3, #0 + 800502c: d00b beq.n 8005046 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2))) - 8004db2: 4b49 ldr r3, [pc, #292] @ (8004ed8 ) - 8004db4: 685b ldr r3, [r3, #4] - 8004db6: f003 030c and.w r3, r3, #12 - 8004dba: 2b08 cmp r3, #8 - 8004dbc: d11c bne.n 8004df8 - 8004dbe: 4b46 ldr r3, [pc, #280] @ (8004ed8 ) - 8004dc0: 685b ldr r3, [r3, #4] - 8004dc2: f403 3380 and.w r3, r3, #65536 @ 0x10000 - 8004dc6: 2b00 cmp r3, #0 - 8004dc8: d116 bne.n 8004df8 + 800502e: 4b49 ldr r3, [pc, #292] @ (8005154 ) + 8005030: 685b ldr r3, [r3, #4] + 8005032: f003 030c and.w r3, r3, #12 + 8005036: 2b08 cmp r3, #8 + 8005038: d11c bne.n 8005074 + 800503a: 4b46 ldr r3, [pc, #280] @ (8005154 ) + 800503c: 685b ldr r3, [r3, #4] + 800503e: f403 3380 and.w r3, r3, #65536 @ 0x10000 + 8005042: 2b00 cmp r3, #0 + 8005044: d116 bne.n 8005074 { /* When HSI is used as system clock it will not disabled */ if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 8004dca: 4b43 ldr r3, [pc, #268] @ (8004ed8 ) - 8004dcc: 681b ldr r3, [r3, #0] - 8004dce: f003 0302 and.w r3, r3, #2 - 8004dd2: 2b00 cmp r3, #0 - 8004dd4: d005 beq.n 8004de2 - 8004dd6: 687b ldr r3, [r7, #4] - 8004dd8: 691b ldr r3, [r3, #16] - 8004dda: 2b01 cmp r3, #1 - 8004ddc: d001 beq.n 8004de2 + 8005046: 4b43 ldr r3, [pc, #268] @ (8005154 ) + 8005048: 681b ldr r3, [r3, #0] + 800504a: f003 0302 and.w r3, r3, #2 + 800504e: 2b00 cmp r3, #0 + 8005050: d005 beq.n 800505e + 8005052: 687b ldr r3, [r7, #4] + 8005054: 691b ldr r3, [r3, #16] + 8005056: 2b01 cmp r3, #1 + 8005058: d001 beq.n 800505e { return HAL_ERROR; - 8004dde: 2301 movs r3, #1 - 8004de0: e1c0 b.n 8005164 + 800505a: 2301 movs r3, #1 + 800505c: e1c0 b.n 80053e0 } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8004de2: 4b3d ldr r3, [pc, #244] @ (8004ed8 ) - 8004de4: 681b ldr r3, [r3, #0] - 8004de6: f023 02f8 bic.w r2, r3, #248 @ 0xf8 - 8004dea: 687b ldr r3, [r7, #4] - 8004dec: 695b ldr r3, [r3, #20] - 8004dee: 00db lsls r3, r3, #3 - 8004df0: 4939 ldr r1, [pc, #228] @ (8004ed8 ) - 8004df2: 4313 orrs r3, r2 - 8004df4: 600b str r3, [r1, #0] + 800505e: 4b3d ldr r3, [pc, #244] @ (8005154 ) + 8005060: 681b ldr r3, [r3, #0] + 8005062: f023 02f8 bic.w r2, r3, #248 @ 0xf8 + 8005066: 687b ldr r3, [r7, #4] + 8005068: 695b ldr r3, [r3, #20] + 800506a: 00db lsls r3, r3, #3 + 800506c: 4939 ldr r1, [pc, #228] @ (8005154 ) + 800506e: 4313 orrs r3, r2 + 8005070: 600b str r3, [r1, #0] if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 8004df6: e03a b.n 8004e6e + 8005072: e03a b.n 80050ea } } else { /* Check the HSI State */ if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF) - 8004df8: 687b ldr r3, [r7, #4] - 8004dfa: 691b ldr r3, [r3, #16] - 8004dfc: 2b00 cmp r3, #0 - 8004dfe: d020 beq.n 8004e42 + 8005074: 687b ldr r3, [r7, #4] + 8005076: 691b ldr r3, [r3, #16] + 8005078: 2b00 cmp r3, #0 + 800507a: d020 beq.n 80050be { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); - 8004e00: 4b36 ldr r3, [pc, #216] @ (8004edc ) - 8004e02: 2201 movs r2, #1 - 8004e04: 601a str r2, [r3, #0] + 800507c: 4b36 ldr r3, [pc, #216] @ (8005158 ) + 800507e: 2201 movs r2, #1 + 8005080: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8004e06: f7fd ff31 bl 8002c6c - 8004e0a: 6138 str r0, [r7, #16] + 8005082: f7fd ff31 bl 8002ee8 + 8005086: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8004e0c: e008 b.n 8004e20 + 8005088: e008 b.n 800509c { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8004e0e: f7fd ff2d bl 8002c6c - 8004e12: 4602 mov r2, r0 - 8004e14: 693b ldr r3, [r7, #16] - 8004e16: 1ad3 subs r3, r2, r3 - 8004e18: 2b02 cmp r3, #2 - 8004e1a: d901 bls.n 8004e20 + 800508a: f7fd ff2d bl 8002ee8 + 800508e: 4602 mov r2, r0 + 8005090: 693b ldr r3, [r7, #16] + 8005092: 1ad3 subs r3, r2, r3 + 8005094: 2b02 cmp r3, #2 + 8005096: d901 bls.n 800509c { return HAL_TIMEOUT; - 8004e1c: 2303 movs r3, #3 - 8004e1e: e1a1 b.n 8005164 + 8005098: 2303 movs r3, #3 + 800509a: e1a1 b.n 80053e0 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8004e20: 4b2d ldr r3, [pc, #180] @ (8004ed8 ) - 8004e22: 681b ldr r3, [r3, #0] - 8004e24: f003 0302 and.w r3, r3, #2 - 8004e28: 2b00 cmp r3, #0 - 8004e2a: d0f0 beq.n 8004e0e + 800509c: 4b2d ldr r3, [pc, #180] @ (8005154 ) + 800509e: 681b ldr r3, [r3, #0] + 80050a0: f003 0302 and.w r3, r3, #2 + 80050a4: 2b00 cmp r3, #0 + 80050a6: d0f0 beq.n 800508a } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8004e2c: 4b2a ldr r3, [pc, #168] @ (8004ed8 ) - 8004e2e: 681b ldr r3, [r3, #0] - 8004e30: f023 02f8 bic.w r2, r3, #248 @ 0xf8 - 8004e34: 687b ldr r3, [r7, #4] - 8004e36: 695b ldr r3, [r3, #20] - 8004e38: 00db lsls r3, r3, #3 - 8004e3a: 4927 ldr r1, [pc, #156] @ (8004ed8 ) - 8004e3c: 4313 orrs r3, r2 - 8004e3e: 600b str r3, [r1, #0] - 8004e40: e015 b.n 8004e6e + 80050a8: 4b2a ldr r3, [pc, #168] @ (8005154 ) + 80050aa: 681b ldr r3, [r3, #0] + 80050ac: f023 02f8 bic.w r2, r3, #248 @ 0xf8 + 80050b0: 687b ldr r3, [r7, #4] + 80050b2: 695b ldr r3, [r3, #20] + 80050b4: 00db lsls r3, r3, #3 + 80050b6: 4927 ldr r1, [pc, #156] @ (8005154 ) + 80050b8: 4313 orrs r3, r2 + 80050ba: 600b str r3, [r1, #0] + 80050bc: e015 b.n 80050ea } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); - 8004e42: 4b26 ldr r3, [pc, #152] @ (8004edc ) - 8004e44: 2200 movs r2, #0 - 8004e46: 601a str r2, [r3, #0] + 80050be: 4b26 ldr r3, [pc, #152] @ (8005158 ) + 80050c0: 2200 movs r2, #0 + 80050c2: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8004e48: f7fd ff10 bl 8002c6c - 8004e4c: 6138 str r0, [r7, #16] + 80050c4: f7fd ff10 bl 8002ee8 + 80050c8: 6138 str r0, [r7, #16] /* Wait till HSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8004e4e: e008 b.n 8004e62 + 80050ca: e008 b.n 80050de { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8004e50: f7fd ff0c bl 8002c6c - 8004e54: 4602 mov r2, r0 - 8004e56: 693b ldr r3, [r7, #16] - 8004e58: 1ad3 subs r3, r2, r3 - 8004e5a: 2b02 cmp r3, #2 - 8004e5c: d901 bls.n 8004e62 + 80050cc: f7fd ff0c bl 8002ee8 + 80050d0: 4602 mov r2, r0 + 80050d2: 693b ldr r3, [r7, #16] + 80050d4: 1ad3 subs r3, r2, r3 + 80050d6: 2b02 cmp r3, #2 + 80050d8: d901 bls.n 80050de { return HAL_TIMEOUT; - 8004e5e: 2303 movs r3, #3 - 8004e60: e180 b.n 8005164 + 80050da: 2303 movs r3, #3 + 80050dc: e180 b.n 80053e0 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8004e62: 4b1d ldr r3, [pc, #116] @ (8004ed8 ) - 8004e64: 681b ldr r3, [r3, #0] - 8004e66: f003 0302 and.w r3, r3, #2 - 8004e6a: 2b00 cmp r3, #0 - 8004e6c: d1f0 bne.n 8004e50 + 80050de: 4b1d ldr r3, [pc, #116] @ (8005154 ) + 80050e0: 681b ldr r3, [r3, #0] + 80050e2: f003 0302 and.w r3, r3, #2 + 80050e6: 2b00 cmp r3, #0 + 80050e8: d1f0 bne.n 80050cc } } } } /*------------------------------ LSI Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 8004e6e: 687b ldr r3, [r7, #4] - 8004e70: 681b ldr r3, [r3, #0] - 8004e72: f003 0308 and.w r3, r3, #8 - 8004e76: 2b00 cmp r3, #0 - 8004e78: d03a beq.n 8004ef0 + 80050ea: 687b ldr r3, [r7, #4] + 80050ec: 681b ldr r3, [r3, #0] + 80050ee: f003 0308 and.w r3, r3, #8 + 80050f2: 2b00 cmp r3, #0 + 80050f4: d03a beq.n 800516c { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF) - 8004e7a: 687b ldr r3, [r7, #4] - 8004e7c: 699b ldr r3, [r3, #24] - 8004e7e: 2b00 cmp r3, #0 - 8004e80: d019 beq.n 8004eb6 + 80050f6: 687b ldr r3, [r7, #4] + 80050f8: 699b ldr r3, [r3, #24] + 80050fa: 2b00 cmp r3, #0 + 80050fc: d019 beq.n 8005132 { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); - 8004e82: 4b17 ldr r3, [pc, #92] @ (8004ee0 ) - 8004e84: 2201 movs r2, #1 - 8004e86: 601a str r2, [r3, #0] + 80050fe: 4b17 ldr r3, [pc, #92] @ (800515c ) + 8005100: 2201 movs r2, #1 + 8005102: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8004e88: f7fd fef0 bl 8002c6c - 8004e8c: 6138 str r0, [r7, #16] + 8005104: f7fd fef0 bl 8002ee8 + 8005108: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8004e8e: e008 b.n 8004ea2 + 800510a: e008 b.n 800511e { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 8004e90: f7fd feec bl 8002c6c - 8004e94: 4602 mov r2, r0 - 8004e96: 693b ldr r3, [r7, #16] - 8004e98: 1ad3 subs r3, r2, r3 - 8004e9a: 2b02 cmp r3, #2 - 8004e9c: d901 bls.n 8004ea2 + 800510c: f7fd feec bl 8002ee8 + 8005110: 4602 mov r2, r0 + 8005112: 693b ldr r3, [r7, #16] + 8005114: 1ad3 subs r3, r2, r3 + 8005116: 2b02 cmp r3, #2 + 8005118: d901 bls.n 800511e { return HAL_TIMEOUT; - 8004e9e: 2303 movs r3, #3 - 8004ea0: e160 b.n 8005164 + 800511a: 2303 movs r3, #3 + 800511c: e160 b.n 80053e0 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8004ea2: 4b0d ldr r3, [pc, #52] @ (8004ed8 ) - 8004ea4: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004ea6: f003 0302 and.w r3, r3, #2 - 8004eaa: 2b00 cmp r3, #0 - 8004eac: d0f0 beq.n 8004e90 + 800511e: 4b0d ldr r3, [pc, #52] @ (8005154 ) + 8005120: 6a5b ldr r3, [r3, #36] @ 0x24 + 8005122: f003 0302 and.w r3, r3, #2 + 8005126: 2b00 cmp r3, #0 + 8005128: d0f0 beq.n 800510c } } /* To have a fully stabilized clock in the specified range, a software delay of 1ms should be added.*/ RCC_Delay(1); - 8004eae: 2001 movs r0, #1 - 8004eb0: f000 fad0 bl 8005454 - 8004eb4: e01c b.n 8004ef0 + 800512a: 2001 movs r0, #1 + 800512c: f000 fad0 bl 80056d0 + 8005130: e01c b.n 800516c } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); - 8004eb6: 4b0a ldr r3, [pc, #40] @ (8004ee0 ) - 8004eb8: 2200 movs r2, #0 - 8004eba: 601a str r2, [r3, #0] + 8005132: 4b0a ldr r3, [pc, #40] @ (800515c ) + 8005134: 2200 movs r2, #0 + 8005136: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8004ebc: f7fd fed6 bl 8002c6c - 8004ec0: 6138 str r0, [r7, #16] + 8005138: f7fd fed6 bl 8002ee8 + 800513c: 6138 str r0, [r7, #16] /* Wait till LSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8004ec2: e00f b.n 8004ee4 + 800513e: e00f b.n 8005160 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 8004ec4: f7fd fed2 bl 8002c6c - 8004ec8: 4602 mov r2, r0 - 8004eca: 693b ldr r3, [r7, #16] - 8004ecc: 1ad3 subs r3, r2, r3 - 8004ece: 2b02 cmp r3, #2 - 8004ed0: d908 bls.n 8004ee4 + 8005140: f7fd fed2 bl 8002ee8 + 8005144: 4602 mov r2, r0 + 8005146: 693b ldr r3, [r7, #16] + 8005148: 1ad3 subs r3, r2, r3 + 800514a: 2b02 cmp r3, #2 + 800514c: d908 bls.n 8005160 { return HAL_TIMEOUT; - 8004ed2: 2303 movs r3, #3 - 8004ed4: e146 b.n 8005164 - 8004ed6: bf00 nop - 8004ed8: 40021000 .word 0x40021000 - 8004edc: 42420000 .word 0x42420000 - 8004ee0: 42420480 .word 0x42420480 + 800514e: 2303 movs r3, #3 + 8005150: e146 b.n 80053e0 + 8005152: bf00 nop + 8005154: 40021000 .word 0x40021000 + 8005158: 42420000 .word 0x42420000 + 800515c: 42420480 .word 0x42420480 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8004ee4: 4b92 ldr r3, [pc, #584] @ (8005130 ) - 8004ee6: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004ee8: f003 0302 and.w r3, r3, #2 - 8004eec: 2b00 cmp r3, #0 - 8004eee: d1e9 bne.n 8004ec4 + 8005160: 4b92 ldr r3, [pc, #584] @ (80053ac ) + 8005162: 6a5b ldr r3, [r3, #36] @ 0x24 + 8005164: f003 0302 and.w r3, r3, #2 + 8005168: 2b00 cmp r3, #0 + 800516a: d1e9 bne.n 8005140 } } } } /*------------------------------ LSE Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 8004ef0: 687b ldr r3, [r7, #4] - 8004ef2: 681b ldr r3, [r3, #0] - 8004ef4: f003 0304 and.w r3, r3, #4 - 8004ef8: 2b00 cmp r3, #0 - 8004efa: f000 80a6 beq.w 800504a + 800516c: 687b ldr r3, [r7, #4] + 800516e: 681b ldr r3, [r3, #0] + 8005170: f003 0304 and.w r3, r3, #4 + 8005174: 2b00 cmp r3, #0 + 8005176: f000 80a6 beq.w 80052c6 { FlagStatus pwrclkchanged = RESET; - 8004efe: 2300 movs r3, #0 - 8004f00: 75fb strb r3, [r7, #23] + 800517a: 2300 movs r3, #0 + 800517c: 75fb strb r3, [r7, #23] /* Check the parameters */ assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState)); /* Update LSE configuration in Backup Domain control register */ /* Requires to enable write access to Backup Domain of necessary */ if (__HAL_RCC_PWR_IS_CLK_DISABLED()) - 8004f02: 4b8b ldr r3, [pc, #556] @ (8005130 ) - 8004f04: 69db ldr r3, [r3, #28] - 8004f06: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8004f0a: 2b00 cmp r3, #0 - 8004f0c: d10d bne.n 8004f2a + 800517e: 4b8b ldr r3, [pc, #556] @ (80053ac ) + 8005180: 69db ldr r3, [r3, #28] + 8005182: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8005186: 2b00 cmp r3, #0 + 8005188: d10d bne.n 80051a6 { __HAL_RCC_PWR_CLK_ENABLE(); - 8004f0e: 4b88 ldr r3, [pc, #544] @ (8005130 ) - 8004f10: 69db ldr r3, [r3, #28] - 8004f12: 4a87 ldr r2, [pc, #540] @ (8005130 ) - 8004f14: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8004f18: 61d3 str r3, [r2, #28] - 8004f1a: 4b85 ldr r3, [pc, #532] @ (8005130 ) - 8004f1c: 69db ldr r3, [r3, #28] - 8004f1e: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8004f22: 60bb str r3, [r7, #8] - 8004f24: 68bb ldr r3, [r7, #8] + 800518a: 4b88 ldr r3, [pc, #544] @ (80053ac ) + 800518c: 69db ldr r3, [r3, #28] + 800518e: 4a87 ldr r2, [pc, #540] @ (80053ac ) + 8005190: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8005194: 61d3 str r3, [r2, #28] + 8005196: 4b85 ldr r3, [pc, #532] @ (80053ac ) + 8005198: 69db ldr r3, [r3, #28] + 800519a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 800519e: 60bb str r3, [r7, #8] + 80051a0: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; - 8004f26: 2301 movs r3, #1 - 8004f28: 75fb strb r3, [r7, #23] + 80051a2: 2301 movs r3, #1 + 80051a4: 75fb strb r3, [r7, #23] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8004f2a: 4b82 ldr r3, [pc, #520] @ (8005134 ) - 8004f2c: 681b ldr r3, [r3, #0] - 8004f2e: f403 7380 and.w r3, r3, #256 @ 0x100 - 8004f32: 2b00 cmp r3, #0 - 8004f34: d118 bne.n 8004f68 + 80051a6: 4b82 ldr r3, [pc, #520] @ (80053b0 ) + 80051a8: 681b ldr r3, [r3, #0] + 80051aa: f403 7380 and.w r3, r3, #256 @ 0x100 + 80051ae: 2b00 cmp r3, #0 + 80051b0: d118 bne.n 80051e4 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 8004f36: 4b7f ldr r3, [pc, #508] @ (8005134 ) - 8004f38: 681b ldr r3, [r3, #0] - 8004f3a: 4a7e ldr r2, [pc, #504] @ (8005134 ) - 8004f3c: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8004f40: 6013 str r3, [r2, #0] + 80051b2: 4b7f ldr r3, [pc, #508] @ (80053b0 ) + 80051b4: 681b ldr r3, [r3, #0] + 80051b6: 4a7e ldr r2, [pc, #504] @ (80053b0 ) + 80051b8: f443 7380 orr.w r3, r3, #256 @ 0x100 + 80051bc: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 8004f42: f7fd fe93 bl 8002c6c - 8004f46: 6138 str r0, [r7, #16] + 80051be: f7fd fe93 bl 8002ee8 + 80051c2: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8004f48: e008 b.n 8004f5c + 80051c4: e008 b.n 80051d8 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 8004f4a: f7fd fe8f bl 8002c6c - 8004f4e: 4602 mov r2, r0 - 8004f50: 693b ldr r3, [r7, #16] - 8004f52: 1ad3 subs r3, r2, r3 - 8004f54: 2b64 cmp r3, #100 @ 0x64 - 8004f56: d901 bls.n 8004f5c + 80051c6: f7fd fe8f bl 8002ee8 + 80051ca: 4602 mov r2, r0 + 80051cc: 693b ldr r3, [r7, #16] + 80051ce: 1ad3 subs r3, r2, r3 + 80051d0: 2b64 cmp r3, #100 @ 0x64 + 80051d2: d901 bls.n 80051d8 { return HAL_TIMEOUT; - 8004f58: 2303 movs r3, #3 - 8004f5a: e103 b.n 8005164 + 80051d4: 2303 movs r3, #3 + 80051d6: e103 b.n 80053e0 while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8004f5c: 4b75 ldr r3, [pc, #468] @ (8005134 ) - 8004f5e: 681b ldr r3, [r3, #0] - 8004f60: f403 7380 and.w r3, r3, #256 @ 0x100 - 8004f64: 2b00 cmp r3, #0 - 8004f66: d0f0 beq.n 8004f4a + 80051d8: 4b75 ldr r3, [pc, #468] @ (80053b0 ) + 80051da: 681b ldr r3, [r3, #0] + 80051dc: f403 7380 and.w r3, r3, #256 @ 0x100 + 80051e0: 2b00 cmp r3, #0 + 80051e2: d0f0 beq.n 80051c6 } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 8004f68: 687b ldr r3, [r7, #4] - 8004f6a: 68db ldr r3, [r3, #12] - 8004f6c: 2b01 cmp r3, #1 - 8004f6e: d106 bne.n 8004f7e - 8004f70: 4b6f ldr r3, [pc, #444] @ (8005130 ) - 8004f72: 6a1b ldr r3, [r3, #32] - 8004f74: 4a6e ldr r2, [pc, #440] @ (8005130 ) - 8004f76: f043 0301 orr.w r3, r3, #1 - 8004f7a: 6213 str r3, [r2, #32] - 8004f7c: e02d b.n 8004fda - 8004f7e: 687b ldr r3, [r7, #4] - 8004f80: 68db ldr r3, [r3, #12] - 8004f82: 2b00 cmp r3, #0 - 8004f84: d10c bne.n 8004fa0 - 8004f86: 4b6a ldr r3, [pc, #424] @ (8005130 ) - 8004f88: 6a1b ldr r3, [r3, #32] - 8004f8a: 4a69 ldr r2, [pc, #420] @ (8005130 ) - 8004f8c: f023 0301 bic.w r3, r3, #1 - 8004f90: 6213 str r3, [r2, #32] - 8004f92: 4b67 ldr r3, [pc, #412] @ (8005130 ) - 8004f94: 6a1b ldr r3, [r3, #32] - 8004f96: 4a66 ldr r2, [pc, #408] @ (8005130 ) - 8004f98: f023 0304 bic.w r3, r3, #4 - 8004f9c: 6213 str r3, [r2, #32] - 8004f9e: e01c b.n 8004fda - 8004fa0: 687b ldr r3, [r7, #4] - 8004fa2: 68db ldr r3, [r3, #12] - 8004fa4: 2b05 cmp r3, #5 - 8004fa6: d10c bne.n 8004fc2 - 8004fa8: 4b61 ldr r3, [pc, #388] @ (8005130 ) - 8004faa: 6a1b ldr r3, [r3, #32] - 8004fac: 4a60 ldr r2, [pc, #384] @ (8005130 ) - 8004fae: f043 0304 orr.w r3, r3, #4 - 8004fb2: 6213 str r3, [r2, #32] - 8004fb4: 4b5e ldr r3, [pc, #376] @ (8005130 ) - 8004fb6: 6a1b ldr r3, [r3, #32] - 8004fb8: 4a5d ldr r2, [pc, #372] @ (8005130 ) - 8004fba: f043 0301 orr.w r3, r3, #1 - 8004fbe: 6213 str r3, [r2, #32] - 8004fc0: e00b b.n 8004fda - 8004fc2: 4b5b ldr r3, [pc, #364] @ (8005130 ) - 8004fc4: 6a1b ldr r3, [r3, #32] - 8004fc6: 4a5a ldr r2, [pc, #360] @ (8005130 ) - 8004fc8: f023 0301 bic.w r3, r3, #1 - 8004fcc: 6213 str r3, [r2, #32] - 8004fce: 4b58 ldr r3, [pc, #352] @ (8005130 ) - 8004fd0: 6a1b ldr r3, [r3, #32] - 8004fd2: 4a57 ldr r2, [pc, #348] @ (8005130 ) - 8004fd4: f023 0304 bic.w r3, r3, #4 - 8004fd8: 6213 str r3, [r2, #32] + 80051e4: 687b ldr r3, [r7, #4] + 80051e6: 68db ldr r3, [r3, #12] + 80051e8: 2b01 cmp r3, #1 + 80051ea: d106 bne.n 80051fa + 80051ec: 4b6f ldr r3, [pc, #444] @ (80053ac ) + 80051ee: 6a1b ldr r3, [r3, #32] + 80051f0: 4a6e ldr r2, [pc, #440] @ (80053ac ) + 80051f2: f043 0301 orr.w r3, r3, #1 + 80051f6: 6213 str r3, [r2, #32] + 80051f8: e02d b.n 8005256 + 80051fa: 687b ldr r3, [r7, #4] + 80051fc: 68db ldr r3, [r3, #12] + 80051fe: 2b00 cmp r3, #0 + 8005200: d10c bne.n 800521c + 8005202: 4b6a ldr r3, [pc, #424] @ (80053ac ) + 8005204: 6a1b ldr r3, [r3, #32] + 8005206: 4a69 ldr r2, [pc, #420] @ (80053ac ) + 8005208: f023 0301 bic.w r3, r3, #1 + 800520c: 6213 str r3, [r2, #32] + 800520e: 4b67 ldr r3, [pc, #412] @ (80053ac ) + 8005210: 6a1b ldr r3, [r3, #32] + 8005212: 4a66 ldr r2, [pc, #408] @ (80053ac ) + 8005214: f023 0304 bic.w r3, r3, #4 + 8005218: 6213 str r3, [r2, #32] + 800521a: e01c b.n 8005256 + 800521c: 687b ldr r3, [r7, #4] + 800521e: 68db ldr r3, [r3, #12] + 8005220: 2b05 cmp r3, #5 + 8005222: d10c bne.n 800523e + 8005224: 4b61 ldr r3, [pc, #388] @ (80053ac ) + 8005226: 6a1b ldr r3, [r3, #32] + 8005228: 4a60 ldr r2, [pc, #384] @ (80053ac ) + 800522a: f043 0304 orr.w r3, r3, #4 + 800522e: 6213 str r3, [r2, #32] + 8005230: 4b5e ldr r3, [pc, #376] @ (80053ac ) + 8005232: 6a1b ldr r3, [r3, #32] + 8005234: 4a5d ldr r2, [pc, #372] @ (80053ac ) + 8005236: f043 0301 orr.w r3, r3, #1 + 800523a: 6213 str r3, [r2, #32] + 800523c: e00b b.n 8005256 + 800523e: 4b5b ldr r3, [pc, #364] @ (80053ac ) + 8005240: 6a1b ldr r3, [r3, #32] + 8005242: 4a5a ldr r2, [pc, #360] @ (80053ac ) + 8005244: f023 0301 bic.w r3, r3, #1 + 8005248: 6213 str r3, [r2, #32] + 800524a: 4b58 ldr r3, [pc, #352] @ (80053ac ) + 800524c: 6a1b ldr r3, [r3, #32] + 800524e: 4a57 ldr r2, [pc, #348] @ (80053ac ) + 8005250: f023 0304 bic.w r3, r3, #4 + 8005254: 6213 str r3, [r2, #32] /* Check the LSE State */ if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF) - 8004fda: 687b ldr r3, [r7, #4] - 8004fdc: 68db ldr r3, [r3, #12] - 8004fde: 2b00 cmp r3, #0 - 8004fe0: d015 beq.n 800500e + 8005256: 687b ldr r3, [r7, #4] + 8005258: 68db ldr r3, [r3, #12] + 800525a: 2b00 cmp r3, #0 + 800525c: d015 beq.n 800528a { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8004fe2: f7fd fe43 bl 8002c6c - 8004fe6: 6138 str r0, [r7, #16] + 800525e: f7fd fe43 bl 8002ee8 + 8005262: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8004fe8: e00a b.n 8005000 + 8005264: e00a b.n 800527c { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 8004fea: f7fd fe3f bl 8002c6c - 8004fee: 4602 mov r2, r0 - 8004ff0: 693b ldr r3, [r7, #16] - 8004ff2: 1ad3 subs r3, r2, r3 - 8004ff4: f241 3288 movw r2, #5000 @ 0x1388 - 8004ff8: 4293 cmp r3, r2 - 8004ffa: d901 bls.n 8005000 + 8005266: f7fd fe3f bl 8002ee8 + 800526a: 4602 mov r2, r0 + 800526c: 693b ldr r3, [r7, #16] + 800526e: 1ad3 subs r3, r2, r3 + 8005270: f241 3288 movw r2, #5000 @ 0x1388 + 8005274: 4293 cmp r3, r2 + 8005276: d901 bls.n 800527c { return HAL_TIMEOUT; - 8004ffc: 2303 movs r3, #3 - 8004ffe: e0b1 b.n 8005164 + 8005278: 2303 movs r3, #3 + 800527a: e0b1 b.n 80053e0 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8005000: 4b4b ldr r3, [pc, #300] @ (8005130 ) - 8005002: 6a1b ldr r3, [r3, #32] - 8005004: f003 0302 and.w r3, r3, #2 - 8005008: 2b00 cmp r3, #0 - 800500a: d0ee beq.n 8004fea - 800500c: e014 b.n 8005038 + 800527c: 4b4b ldr r3, [pc, #300] @ (80053ac ) + 800527e: 6a1b ldr r3, [r3, #32] + 8005280: f003 0302 and.w r3, r3, #2 + 8005284: 2b00 cmp r3, #0 + 8005286: d0ee beq.n 8005266 + 8005288: e014 b.n 80052b4 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 800500e: f7fd fe2d bl 8002c6c - 8005012: 6138 str r0, [r7, #16] + 800528a: f7fd fe2d bl 8002ee8 + 800528e: 6138 str r0, [r7, #16] /* Wait till LSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8005014: e00a b.n 800502c + 8005290: e00a b.n 80052a8 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 8005016: f7fd fe29 bl 8002c6c - 800501a: 4602 mov r2, r0 - 800501c: 693b ldr r3, [r7, #16] - 800501e: 1ad3 subs r3, r2, r3 - 8005020: f241 3288 movw r2, #5000 @ 0x1388 - 8005024: 4293 cmp r3, r2 - 8005026: d901 bls.n 800502c + 8005292: f7fd fe29 bl 8002ee8 + 8005296: 4602 mov r2, r0 + 8005298: 693b ldr r3, [r7, #16] + 800529a: 1ad3 subs r3, r2, r3 + 800529c: f241 3288 movw r2, #5000 @ 0x1388 + 80052a0: 4293 cmp r3, r2 + 80052a2: d901 bls.n 80052a8 { return HAL_TIMEOUT; - 8005028: 2303 movs r3, #3 - 800502a: e09b b.n 8005164 + 80052a4: 2303 movs r3, #3 + 80052a6: e09b b.n 80053e0 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 800502c: 4b40 ldr r3, [pc, #256] @ (8005130 ) - 800502e: 6a1b ldr r3, [r3, #32] - 8005030: f003 0302 and.w r3, r3, #2 - 8005034: 2b00 cmp r3, #0 - 8005036: d1ee bne.n 8005016 + 80052a8: 4b40 ldr r3, [pc, #256] @ (80053ac ) + 80052aa: 6a1b ldr r3, [r3, #32] + 80052ac: f003 0302 and.w r3, r3, #2 + 80052b0: 2b00 cmp r3, #0 + 80052b2: d1ee bne.n 8005292 } } } /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) - 8005038: 7dfb ldrb r3, [r7, #23] - 800503a: 2b01 cmp r3, #1 - 800503c: d105 bne.n 800504a + 80052b4: 7dfb ldrb r3, [r7, #23] + 80052b6: 2b01 cmp r3, #1 + 80052b8: d105 bne.n 80052c6 { __HAL_RCC_PWR_CLK_DISABLE(); - 800503e: 4b3c ldr r3, [pc, #240] @ (8005130 ) - 8005040: 69db ldr r3, [r3, #28] - 8005042: 4a3b ldr r2, [pc, #236] @ (8005130 ) - 8005044: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 8005048: 61d3 str r3, [r2, #28] + 80052ba: 4b3c ldr r3, [pc, #240] @ (80053ac ) + 80052bc: 69db ldr r3, [r3, #28] + 80052be: 4a3b ldr r2, [pc, #236] @ (80053ac ) + 80052c0: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 80052c4: 61d3 str r3, [r2, #28] #endif /* RCC_CR_PLL2ON */ /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - 800504a: 687b ldr r3, [r7, #4] - 800504c: 69db ldr r3, [r3, #28] - 800504e: 2b00 cmp r3, #0 - 8005050: f000 8087 beq.w 8005162 + 80052c6: 687b ldr r3, [r7, #4] + 80052c8: 69db ldr r3, [r3, #28] + 80052ca: 2b00 cmp r3, #0 + 80052cc: f000 8087 beq.w 80053de { /* Check if the PLL is used as system clock or not */ if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) - 8005054: 4b36 ldr r3, [pc, #216] @ (8005130 ) - 8005056: 685b ldr r3, [r3, #4] - 8005058: f003 030c and.w r3, r3, #12 - 800505c: 2b08 cmp r3, #8 - 800505e: d061 beq.n 8005124 + 80052d0: 4b36 ldr r3, [pc, #216] @ (80053ac ) + 80052d2: 685b ldr r3, [r3, #4] + 80052d4: f003 030c and.w r3, r3, #12 + 80052d8: 2b08 cmp r3, #8 + 80052da: d061 beq.n 80053a0 { if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 8005060: 687b ldr r3, [r7, #4] - 8005062: 69db ldr r3, [r3, #28] - 8005064: 2b02 cmp r3, #2 - 8005066: d146 bne.n 80050f6 + 80052dc: 687b ldr r3, [r7, #4] + 80052de: 69db ldr r3, [r3, #28] + 80052e0: 2b02 cmp r3, #2 + 80052e2: d146 bne.n 8005372 /* Check the parameters */ assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource)); assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL)); /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 8005068: 4b33 ldr r3, [pc, #204] @ (8005138 ) - 800506a: 2200 movs r2, #0 - 800506c: 601a str r2, [r3, #0] + 80052e4: 4b33 ldr r3, [pc, #204] @ (80053b4 ) + 80052e6: 2200 movs r2, #0 + 80052e8: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 800506e: f7fd fdfd bl 8002c6c - 8005072: 6138 str r0, [r7, #16] + 80052ea: f7fd fdfd bl 8002ee8 + 80052ee: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8005074: e008 b.n 8005088 + 80052f0: e008 b.n 8005304 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 8005076: f7fd fdf9 bl 8002c6c - 800507a: 4602 mov r2, r0 - 800507c: 693b ldr r3, [r7, #16] - 800507e: 1ad3 subs r3, r2, r3 - 8005080: 2b02 cmp r3, #2 - 8005082: d901 bls.n 8005088 + 80052f2: f7fd fdf9 bl 8002ee8 + 80052f6: 4602 mov r2, r0 + 80052f8: 693b ldr r3, [r7, #16] + 80052fa: 1ad3 subs r3, r2, r3 + 80052fc: 2b02 cmp r3, #2 + 80052fe: d901 bls.n 8005304 { return HAL_TIMEOUT; - 8005084: 2303 movs r3, #3 - 8005086: e06d b.n 8005164 + 8005300: 2303 movs r3, #3 + 8005302: e06d b.n 80053e0 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8005088: 4b29 ldr r3, [pc, #164] @ (8005130 ) - 800508a: 681b ldr r3, [r3, #0] - 800508c: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8005090: 2b00 cmp r3, #0 - 8005092: d1f0 bne.n 8005076 + 8005304: 4b29 ldr r3, [pc, #164] @ (80053ac ) + 8005306: 681b ldr r3, [r3, #0] + 8005308: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 800530c: 2b00 cmp r3, #0 + 800530e: d1f0 bne.n 80052f2 } } /* Configure the HSE prediv factor --------------------------------*/ /* It can be written only when the PLL is disabled. Not used in PLL source is different than HSE */ if (RCC_OscInitStruct->PLL.PLLSource == RCC_PLLSOURCE_HSE) - 8005094: 687b ldr r3, [r7, #4] - 8005096: 6a1b ldr r3, [r3, #32] - 8005098: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 - 800509c: d108 bne.n 80050b0 + 8005310: 687b ldr r3, [r7, #4] + 8005312: 6a1b ldr r3, [r3, #32] + 8005314: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 + 8005318: d108 bne.n 800532c /* Set PREDIV1 source */ SET_BIT(RCC->CFGR2, RCC_OscInitStruct->Prediv1Source); #endif /* RCC_CFGR2_PREDIV1SRC */ /* Set PREDIV1 Value */ __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue); - 800509e: 4b24 ldr r3, [pc, #144] @ (8005130 ) - 80050a0: 685b ldr r3, [r3, #4] - 80050a2: f423 3200 bic.w r2, r3, #131072 @ 0x20000 - 80050a6: 687b ldr r3, [r7, #4] - 80050a8: 689b ldr r3, [r3, #8] - 80050aa: 4921 ldr r1, [pc, #132] @ (8005130 ) - 80050ac: 4313 orrs r3, r2 - 80050ae: 604b str r3, [r1, #4] + 800531a: 4b24 ldr r3, [pc, #144] @ (80053ac ) + 800531c: 685b ldr r3, [r3, #4] + 800531e: f423 3200 bic.w r2, r3, #131072 @ 0x20000 + 8005322: 687b ldr r3, [r7, #4] + 8005324: 689b ldr r3, [r3, #8] + 8005326: 4921 ldr r1, [pc, #132] @ (80053ac ) + 8005328: 4313 orrs r3, r2 + 800532a: 604b str r3, [r1, #4] } /* Configure the main PLL clock source and multiplication factors. */ __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, - 80050b0: 4b1f ldr r3, [pc, #124] @ (8005130 ) - 80050b2: 685b ldr r3, [r3, #4] - 80050b4: f423 1274 bic.w r2, r3, #3997696 @ 0x3d0000 - 80050b8: 687b ldr r3, [r7, #4] - 80050ba: 6a19 ldr r1, [r3, #32] - 80050bc: 687b ldr r3, [r7, #4] - 80050be: 6a5b ldr r3, [r3, #36] @ 0x24 - 80050c0: 430b orrs r3, r1 - 80050c2: 491b ldr r1, [pc, #108] @ (8005130 ) - 80050c4: 4313 orrs r3, r2 - 80050c6: 604b str r3, [r1, #4] + 800532c: 4b1f ldr r3, [pc, #124] @ (80053ac ) + 800532e: 685b ldr r3, [r3, #4] + 8005330: f423 1274 bic.w r2, r3, #3997696 @ 0x3d0000 + 8005334: 687b ldr r3, [r7, #4] + 8005336: 6a19 ldr r1, [r3, #32] + 8005338: 687b ldr r3, [r7, #4] + 800533a: 6a5b ldr r3, [r3, #36] @ 0x24 + 800533c: 430b orrs r3, r1 + 800533e: 491b ldr r1, [pc, #108] @ (80053ac ) + 8005340: 4313 orrs r3, r2 + 8005342: 604b str r3, [r1, #4] RCC_OscInitStruct->PLL.PLLMUL); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); - 80050c8: 4b1b ldr r3, [pc, #108] @ (8005138 ) - 80050ca: 2201 movs r2, #1 - 80050cc: 601a str r2, [r3, #0] + 8005344: 4b1b ldr r3, [pc, #108] @ (80053b4 ) + 8005346: 2201 movs r2, #1 + 8005348: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80050ce: f7fd fdcd bl 8002c6c - 80050d2: 6138 str r0, [r7, #16] + 800534a: f7fd fdcd bl 8002ee8 + 800534e: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80050d4: e008 b.n 80050e8 + 8005350: e008 b.n 8005364 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 80050d6: f7fd fdc9 bl 8002c6c - 80050da: 4602 mov r2, r0 - 80050dc: 693b ldr r3, [r7, #16] - 80050de: 1ad3 subs r3, r2, r3 - 80050e0: 2b02 cmp r3, #2 - 80050e2: d901 bls.n 80050e8 + 8005352: f7fd fdc9 bl 8002ee8 + 8005356: 4602 mov r2, r0 + 8005358: 693b ldr r3, [r7, #16] + 800535a: 1ad3 subs r3, r2, r3 + 800535c: 2b02 cmp r3, #2 + 800535e: d901 bls.n 8005364 { return HAL_TIMEOUT; - 80050e4: 2303 movs r3, #3 - 80050e6: e03d b.n 8005164 + 8005360: 2303 movs r3, #3 + 8005362: e03d b.n 80053e0 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80050e8: 4b11 ldr r3, [pc, #68] @ (8005130 ) - 80050ea: 681b ldr r3, [r3, #0] - 80050ec: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 80050f0: 2b00 cmp r3, #0 - 80050f2: d0f0 beq.n 80050d6 - 80050f4: e035 b.n 8005162 + 8005364: 4b11 ldr r3, [pc, #68] @ (80053ac ) + 8005366: 681b ldr r3, [r3, #0] + 8005368: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 800536c: 2b00 cmp r3, #0 + 800536e: d0f0 beq.n 8005352 + 8005370: e035 b.n 80053de } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 80050f6: 4b10 ldr r3, [pc, #64] @ (8005138 ) - 80050f8: 2200 movs r2, #0 - 80050fa: 601a str r2, [r3, #0] + 8005372: 4b10 ldr r3, [pc, #64] @ (80053b4 ) + 8005374: 2200 movs r2, #0 + 8005376: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80050fc: f7fd fdb6 bl 8002c6c - 8005100: 6138 str r0, [r7, #16] + 8005378: f7fd fdb6 bl 8002ee8 + 800537c: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8005102: e008 b.n 8005116 + 800537e: e008 b.n 8005392 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 8005104: f7fd fdb2 bl 8002c6c - 8005108: 4602 mov r2, r0 - 800510a: 693b ldr r3, [r7, #16] - 800510c: 1ad3 subs r3, r2, r3 - 800510e: 2b02 cmp r3, #2 - 8005110: d901 bls.n 8005116 + 8005380: f7fd fdb2 bl 8002ee8 + 8005384: 4602 mov r2, r0 + 8005386: 693b ldr r3, [r7, #16] + 8005388: 1ad3 subs r3, r2, r3 + 800538a: 2b02 cmp r3, #2 + 800538c: d901 bls.n 8005392 { return HAL_TIMEOUT; - 8005112: 2303 movs r3, #3 - 8005114: e026 b.n 8005164 + 800538e: 2303 movs r3, #3 + 8005390: e026 b.n 80053e0 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8005116: 4b06 ldr r3, [pc, #24] @ (8005130 ) - 8005118: 681b ldr r3, [r3, #0] - 800511a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 800511e: 2b00 cmp r3, #0 - 8005120: d1f0 bne.n 8005104 - 8005122: e01e b.n 8005162 + 8005392: 4b06 ldr r3, [pc, #24] @ (80053ac ) + 8005394: 681b ldr r3, [r3, #0] + 8005396: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 800539a: 2b00 cmp r3, #0 + 800539c: d1f0 bne.n 8005380 + 800539e: e01e b.n 80053de } } else { /* Check if there is a request to disable the PLL used as System clock source */ if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 8005124: 687b ldr r3, [r7, #4] - 8005126: 69db ldr r3, [r3, #28] - 8005128: 2b01 cmp r3, #1 - 800512a: d107 bne.n 800513c + 80053a0: 687b ldr r3, [r7, #4] + 80053a2: 69db ldr r3, [r3, #28] + 80053a4: 2b01 cmp r3, #1 + 80053a6: d107 bne.n 80053b8 { return HAL_ERROR; - 800512c: 2301 movs r3, #1 - 800512e: e019 b.n 8005164 - 8005130: 40021000 .word 0x40021000 - 8005134: 40007000 .word 0x40007000 - 8005138: 42420060 .word 0x42420060 + 80053a8: 2301 movs r3, #1 + 80053aa: e019 b.n 80053e0 + 80053ac: 40021000 .word 0x40021000 + 80053b0: 40007000 .word 0x40007000 + 80053b4: 42420060 .word 0x42420060 } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->CFGR; - 800513c: 4b0b ldr r3, [pc, #44] @ (800516c ) - 800513e: 685b ldr r3, [r3, #4] - 8005140: 60fb str r3, [r7, #12] + 80053b8: 4b0b ldr r3, [pc, #44] @ (80053e8 ) + 80053ba: 685b ldr r3, [r3, #4] + 80053bc: 60fb str r3, [r7, #12] if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8005142: 68fb ldr r3, [r7, #12] - 8005144: f403 3280 and.w r2, r3, #65536 @ 0x10000 - 8005148: 687b ldr r3, [r7, #4] - 800514a: 6a1b ldr r3, [r3, #32] - 800514c: 429a cmp r2, r3 - 800514e: d106 bne.n 800515e + 80053be: 68fb ldr r3, [r7, #12] + 80053c0: f403 3280 and.w r2, r3, #65536 @ 0x10000 + 80053c4: 687b ldr r3, [r7, #4] + 80053c6: 6a1b ldr r3, [r3, #32] + 80053c8: 429a cmp r2, r3 + 80053ca: d106 bne.n 80053da (READ_BIT(pll_config, RCC_CFGR_PLLMULL) != RCC_OscInitStruct->PLL.PLLMUL)) - 8005150: 68fb ldr r3, [r7, #12] - 8005152: f403 1270 and.w r2, r3, #3932160 @ 0x3c0000 - 8005156: 687b ldr r3, [r7, #4] - 8005158: 6a5b ldr r3, [r3, #36] @ 0x24 + 80053cc: 68fb ldr r3, [r7, #12] + 80053ce: f403 1270 and.w r2, r3, #3932160 @ 0x3c0000 + 80053d2: 687b ldr r3, [r7, #4] + 80053d4: 6a5b ldr r3, [r3, #36] @ 0x24 if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 800515a: 429a cmp r2, r3 - 800515c: d001 beq.n 8005162 + 80053d6: 429a cmp r2, r3 + 80053d8: d001 beq.n 80053de { return HAL_ERROR; - 800515e: 2301 movs r3, #1 - 8005160: e000 b.n 8005164 + 80053da: 2301 movs r3, #1 + 80053dc: e000 b.n 80053e0 } } } } return HAL_OK; - 8005162: 2300 movs r3, #0 + 80053de: 2300 movs r3, #0 } - 8005164: 4618 mov r0, r3 - 8005166: 3718 adds r7, #24 - 8005168: 46bd mov sp, r7 - 800516a: bd80 pop {r7, pc} - 800516c: 40021000 .word 0x40021000 + 80053e0: 4618 mov r0, r3 + 80053e2: 3718 adds r7, #24 + 80053e4: 46bd mov sp, r7 + 80053e6: bd80 pop {r7, pc} + 80053e8: 40021000 .word 0x40021000 -08005170 : +080053ec : * You can use @ref HAL_RCC_GetClockConfig() function to know which clock is * currently used as system clock source. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) { - 8005170: b580 push {r7, lr} - 8005172: b084 sub sp, #16 - 8005174: af00 add r7, sp, #0 - 8005176: 6078 str r0, [r7, #4] - 8005178: 6039 str r1, [r7, #0] + 80053ec: b580 push {r7, lr} + 80053ee: b084 sub sp, #16 + 80053f0: af00 add r7, sp, #0 + 80053f2: 6078 str r0, [r7, #4] + 80053f4: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if (RCC_ClkInitStruct == NULL) - 800517a: 687b ldr r3, [r7, #4] - 800517c: 2b00 cmp r3, #0 - 800517e: d101 bne.n 8005184 + 80053f6: 687b ldr r3, [r7, #4] + 80053f8: 2b00 cmp r3, #0 + 80053fa: d101 bne.n 8005400 { return HAL_ERROR; - 8005180: 2301 movs r3, #1 - 8005182: e0d0 b.n 8005326 + 80053fc: 2301 movs r3, #1 + 80053fe: e0d0 b.n 80055a2 must be correctly programmed according to the frequency of the CPU clock (HCLK) of the device. */ #if defined(FLASH_ACR_LATENCY) /* Increasing the number of wait states because of higher CPU frequency */ if (FLatency > __HAL_FLASH_GET_LATENCY()) - 8005184: 4b6a ldr r3, [pc, #424] @ (8005330 ) - 8005186: 681b ldr r3, [r3, #0] - 8005188: f003 0307 and.w r3, r3, #7 - 800518c: 683a ldr r2, [r7, #0] - 800518e: 429a cmp r2, r3 - 8005190: d910 bls.n 80051b4 + 8005400: 4b6a ldr r3, [pc, #424] @ (80055ac ) + 8005402: 681b ldr r3, [r3, #0] + 8005404: f003 0307 and.w r3, r3, #7 + 8005408: 683a ldr r2, [r7, #0] + 800540a: 429a cmp r2, r3 + 800540c: d910 bls.n 8005430 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 8005192: 4b67 ldr r3, [pc, #412] @ (8005330 ) - 8005194: 681b ldr r3, [r3, #0] - 8005196: f023 0207 bic.w r2, r3, #7 - 800519a: 4965 ldr r1, [pc, #404] @ (8005330 ) - 800519c: 683b ldr r3, [r7, #0] - 800519e: 4313 orrs r3, r2 - 80051a0: 600b str r3, [r1, #0] + 800540e: 4b67 ldr r3, [pc, #412] @ (80055ac ) + 8005410: 681b ldr r3, [r3, #0] + 8005412: f023 0207 bic.w r2, r3, #7 + 8005416: 4965 ldr r1, [pc, #404] @ (80055ac ) + 8005418: 683b ldr r3, [r7, #0] + 800541a: 4313 orrs r3, r2 + 800541c: 600b str r3, [r1, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if (__HAL_FLASH_GET_LATENCY() != FLatency) - 80051a2: 4b63 ldr r3, [pc, #396] @ (8005330 ) - 80051a4: 681b ldr r3, [r3, #0] - 80051a6: f003 0307 and.w r3, r3, #7 - 80051aa: 683a ldr r2, [r7, #0] - 80051ac: 429a cmp r2, r3 - 80051ae: d001 beq.n 80051b4 + 800541e: 4b63 ldr r3, [pc, #396] @ (80055ac ) + 8005420: 681b ldr r3, [r3, #0] + 8005422: f003 0307 and.w r3, r3, #7 + 8005426: 683a ldr r2, [r7, #0] + 8005428: 429a cmp r2, r3 + 800542a: d001 beq.n 8005430 { return HAL_ERROR; - 80051b0: 2301 movs r3, #1 - 80051b2: e0b8 b.n 8005326 + 800542c: 2301 movs r3, #1 + 800542e: e0b8 b.n 80055a2 } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- HCLK Configuration --------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 80051b4: 687b ldr r3, [r7, #4] - 80051b6: 681b ldr r3, [r3, #0] - 80051b8: f003 0302 and.w r3, r3, #2 - 80051bc: 2b00 cmp r3, #0 - 80051be: d020 beq.n 8005202 + 8005430: 687b ldr r3, [r7, #4] + 8005432: 681b ldr r3, [r3, #0] + 8005434: f003 0302 and.w r3, r3, #2 + 8005438: 2b00 cmp r3, #0 + 800543a: d020 beq.n 800547e { /* Set the highest APBx dividers in order to ensure that we do not go through a non-spec phase whatever we decrease or increase HCLK. */ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 80051c0: 687b ldr r3, [r7, #4] - 80051c2: 681b ldr r3, [r3, #0] - 80051c4: f003 0304 and.w r3, r3, #4 - 80051c8: 2b00 cmp r3, #0 - 80051ca: d005 beq.n 80051d8 + 800543c: 687b ldr r3, [r7, #4] + 800543e: 681b ldr r3, [r3, #0] + 8005440: f003 0304 and.w r3, r3, #4 + 8005444: 2b00 cmp r3, #0 + 8005446: d005 beq.n 8005454 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); - 80051cc: 4b59 ldr r3, [pc, #356] @ (8005334 ) - 80051ce: 685b ldr r3, [r3, #4] - 80051d0: 4a58 ldr r2, [pc, #352] @ (8005334 ) - 80051d2: f443 63e0 orr.w r3, r3, #1792 @ 0x700 - 80051d6: 6053 str r3, [r2, #4] + 8005448: 4b59 ldr r3, [pc, #356] @ (80055b0 ) + 800544a: 685b ldr r3, [r3, #4] + 800544c: 4a58 ldr r2, [pc, #352] @ (80055b0 ) + 800544e: f443 63e0 orr.w r3, r3, #1792 @ 0x700 + 8005452: 6053 str r3, [r2, #4] } if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 80051d8: 687b ldr r3, [r7, #4] - 80051da: 681b ldr r3, [r3, #0] - 80051dc: f003 0308 and.w r3, r3, #8 - 80051e0: 2b00 cmp r3, #0 - 80051e2: d005 beq.n 80051f0 + 8005454: 687b ldr r3, [r7, #4] + 8005456: 681b ldr r3, [r3, #0] + 8005458: f003 0308 and.w r3, r3, #8 + 800545c: 2b00 cmp r3, #0 + 800545e: d005 beq.n 800546c { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); - 80051e4: 4b53 ldr r3, [pc, #332] @ (8005334 ) - 80051e6: 685b ldr r3, [r3, #4] - 80051e8: 4a52 ldr r2, [pc, #328] @ (8005334 ) - 80051ea: f443 5360 orr.w r3, r3, #14336 @ 0x3800 - 80051ee: 6053 str r3, [r2, #4] + 8005460: 4b53 ldr r3, [pc, #332] @ (80055b0 ) + 8005462: 685b ldr r3, [r3, #4] + 8005464: 4a52 ldr r2, [pc, #328] @ (80055b0 ) + 8005466: f443 5360 orr.w r3, r3, #14336 @ 0x3800 + 800546a: 6053 str r3, [r2, #4] } /* Set the new HCLK clock divider */ assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 80051f0: 4b50 ldr r3, [pc, #320] @ (8005334 ) - 80051f2: 685b ldr r3, [r3, #4] - 80051f4: f023 02f0 bic.w r2, r3, #240 @ 0xf0 - 80051f8: 687b ldr r3, [r7, #4] - 80051fa: 689b ldr r3, [r3, #8] - 80051fc: 494d ldr r1, [pc, #308] @ (8005334 ) - 80051fe: 4313 orrs r3, r2 - 8005200: 604b str r3, [r1, #4] + 800546c: 4b50 ldr r3, [pc, #320] @ (80055b0 ) + 800546e: 685b ldr r3, [r3, #4] + 8005470: f023 02f0 bic.w r2, r3, #240 @ 0xf0 + 8005474: 687b ldr r3, [r7, #4] + 8005476: 689b ldr r3, [r3, #8] + 8005478: 494d ldr r1, [pc, #308] @ (80055b0 ) + 800547a: 4313 orrs r3, r2 + 800547c: 604b str r3, [r1, #4] } /*------------------------- SYSCLK Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 8005202: 687b ldr r3, [r7, #4] - 8005204: 681b ldr r3, [r3, #0] - 8005206: f003 0301 and.w r3, r3, #1 - 800520a: 2b00 cmp r3, #0 - 800520c: d040 beq.n 8005290 + 800547e: 687b ldr r3, [r7, #4] + 8005480: 681b ldr r3, [r3, #0] + 8005482: f003 0301 and.w r3, r3, #1 + 8005486: 2b00 cmp r3, #0 + 8005488: d040 beq.n 800550c { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 800520e: 687b ldr r3, [r7, #4] - 8005210: 685b ldr r3, [r3, #4] - 8005212: 2b01 cmp r3, #1 - 8005214: d107 bne.n 8005226 + 800548a: 687b ldr r3, [r7, #4] + 800548c: 685b ldr r3, [r3, #4] + 800548e: 2b01 cmp r3, #1 + 8005490: d107 bne.n 80054a2 { /* Check the HSE ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8005216: 4b47 ldr r3, [pc, #284] @ (8005334 ) - 8005218: 681b ldr r3, [r3, #0] - 800521a: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 800521e: 2b00 cmp r3, #0 - 8005220: d115 bne.n 800524e + 8005492: 4b47 ldr r3, [pc, #284] @ (80055b0 ) + 8005494: 681b ldr r3, [r3, #0] + 8005496: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 800549a: 2b00 cmp r3, #0 + 800549c: d115 bne.n 80054ca { return HAL_ERROR; - 8005222: 2301 movs r3, #1 - 8005224: e07f b.n 8005326 + 800549e: 2301 movs r3, #1 + 80054a0: e07f b.n 80055a2 } } /* PLL is selected as System Clock Source */ else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - 8005226: 687b ldr r3, [r7, #4] - 8005228: 685b ldr r3, [r3, #4] - 800522a: 2b02 cmp r3, #2 - 800522c: d107 bne.n 800523e + 80054a2: 687b ldr r3, [r7, #4] + 80054a4: 685b ldr r3, [r3, #4] + 80054a6: 2b02 cmp r3, #2 + 80054a8: d107 bne.n 80054ba { /* Check the PLL ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 800522e: 4b41 ldr r3, [pc, #260] @ (8005334 ) - 8005230: 681b ldr r3, [r3, #0] - 8005232: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8005236: 2b00 cmp r3, #0 - 8005238: d109 bne.n 800524e + 80054aa: 4b41 ldr r3, [pc, #260] @ (80055b0 ) + 80054ac: 681b ldr r3, [r3, #0] + 80054ae: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 80054b2: 2b00 cmp r3, #0 + 80054b4: d109 bne.n 80054ca { return HAL_ERROR; - 800523a: 2301 movs r3, #1 - 800523c: e073 b.n 8005326 + 80054b6: 2301 movs r3, #1 + 80054b8: e073 b.n 80055a2 } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 800523e: 4b3d ldr r3, [pc, #244] @ (8005334 ) - 8005240: 681b ldr r3, [r3, #0] - 8005242: f003 0302 and.w r3, r3, #2 - 8005246: 2b00 cmp r3, #0 - 8005248: d101 bne.n 800524e + 80054ba: 4b3d ldr r3, [pc, #244] @ (80055b0 ) + 80054bc: 681b ldr r3, [r3, #0] + 80054be: f003 0302 and.w r3, r3, #2 + 80054c2: 2b00 cmp r3, #0 + 80054c4: d101 bne.n 80054ca { return HAL_ERROR; - 800524a: 2301 movs r3, #1 - 800524c: e06b b.n 8005326 + 80054c6: 2301 movs r3, #1 + 80054c8: e06b b.n 80055a2 } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 800524e: 4b39 ldr r3, [pc, #228] @ (8005334 ) - 8005250: 685b ldr r3, [r3, #4] - 8005252: f023 0203 bic.w r2, r3, #3 - 8005256: 687b ldr r3, [r7, #4] - 8005258: 685b ldr r3, [r3, #4] - 800525a: 4936 ldr r1, [pc, #216] @ (8005334 ) - 800525c: 4313 orrs r3, r2 - 800525e: 604b str r3, [r1, #4] + 80054ca: 4b39 ldr r3, [pc, #228] @ (80055b0 ) + 80054cc: 685b ldr r3, [r3, #4] + 80054ce: f023 0203 bic.w r2, r3, #3 + 80054d2: 687b ldr r3, [r7, #4] + 80054d4: 685b ldr r3, [r3, #4] + 80054d6: 4936 ldr r1, [pc, #216] @ (80055b0 ) + 80054d8: 4313 orrs r3, r2 + 80054da: 604b str r3, [r1, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8005260: f7fd fd04 bl 8002c6c - 8005264: 60f8 str r0, [r7, #12] + 80054dc: f7fd fd04 bl 8002ee8 + 80054e0: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8005266: e00a b.n 800527e + 80054e2: e00a b.n 80054fa { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 8005268: f7fd fd00 bl 8002c6c - 800526c: 4602 mov r2, r0 - 800526e: 68fb ldr r3, [r7, #12] - 8005270: 1ad3 subs r3, r2, r3 - 8005272: f241 3288 movw r2, #5000 @ 0x1388 - 8005276: 4293 cmp r3, r2 - 8005278: d901 bls.n 800527e + 80054e4: f7fd fd00 bl 8002ee8 + 80054e8: 4602 mov r2, r0 + 80054ea: 68fb ldr r3, [r7, #12] + 80054ec: 1ad3 subs r3, r2, r3 + 80054ee: f241 3288 movw r2, #5000 @ 0x1388 + 80054f2: 4293 cmp r3, r2 + 80054f4: d901 bls.n 80054fa { return HAL_TIMEOUT; - 800527a: 2303 movs r3, #3 - 800527c: e053 b.n 8005326 + 80054f6: 2303 movs r3, #3 + 80054f8: e053 b.n 80055a2 while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 800527e: 4b2d ldr r3, [pc, #180] @ (8005334 ) - 8005280: 685b ldr r3, [r3, #4] - 8005282: f003 020c and.w r2, r3, #12 - 8005286: 687b ldr r3, [r7, #4] - 8005288: 685b ldr r3, [r3, #4] - 800528a: 009b lsls r3, r3, #2 - 800528c: 429a cmp r2, r3 - 800528e: d1eb bne.n 8005268 + 80054fa: 4b2d ldr r3, [pc, #180] @ (80055b0 ) + 80054fc: 685b ldr r3, [r3, #4] + 80054fe: f003 020c and.w r2, r3, #12 + 8005502: 687b ldr r3, [r7, #4] + 8005504: 685b ldr r3, [r3, #4] + 8005506: 009b lsls r3, r3, #2 + 8005508: 429a cmp r2, r3 + 800550a: d1eb bne.n 80054e4 } } #if defined(FLASH_ACR_LATENCY) /* Decreasing the number of wait states because of lower CPU frequency */ if (FLatency < __HAL_FLASH_GET_LATENCY()) - 8005290: 4b27 ldr r3, [pc, #156] @ (8005330 ) - 8005292: 681b ldr r3, [r3, #0] - 8005294: f003 0307 and.w r3, r3, #7 - 8005298: 683a ldr r2, [r7, #0] - 800529a: 429a cmp r2, r3 - 800529c: d210 bcs.n 80052c0 + 800550c: 4b27 ldr r3, [pc, #156] @ (80055ac ) + 800550e: 681b ldr r3, [r3, #0] + 8005510: f003 0307 and.w r3, r3, #7 + 8005514: 683a ldr r2, [r7, #0] + 8005516: 429a cmp r2, r3 + 8005518: d210 bcs.n 800553c { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 800529e: 4b24 ldr r3, [pc, #144] @ (8005330 ) - 80052a0: 681b ldr r3, [r3, #0] - 80052a2: f023 0207 bic.w r2, r3, #7 - 80052a6: 4922 ldr r1, [pc, #136] @ (8005330 ) - 80052a8: 683b ldr r3, [r7, #0] - 80052aa: 4313 orrs r3, r2 - 80052ac: 600b str r3, [r1, #0] + 800551a: 4b24 ldr r3, [pc, #144] @ (80055ac ) + 800551c: 681b ldr r3, [r3, #0] + 800551e: f023 0207 bic.w r2, r3, #7 + 8005522: 4922 ldr r1, [pc, #136] @ (80055ac ) + 8005524: 683b ldr r3, [r7, #0] + 8005526: 4313 orrs r3, r2 + 8005528: 600b str r3, [r1, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if (__HAL_FLASH_GET_LATENCY() != FLatency) - 80052ae: 4b20 ldr r3, [pc, #128] @ (8005330 ) - 80052b0: 681b ldr r3, [r3, #0] - 80052b2: f003 0307 and.w r3, r3, #7 - 80052b6: 683a ldr r2, [r7, #0] - 80052b8: 429a cmp r2, r3 - 80052ba: d001 beq.n 80052c0 + 800552a: 4b20 ldr r3, [pc, #128] @ (80055ac ) + 800552c: 681b ldr r3, [r3, #0] + 800552e: f003 0307 and.w r3, r3, #7 + 8005532: 683a ldr r2, [r7, #0] + 8005534: 429a cmp r2, r3 + 8005536: d001 beq.n 800553c { return HAL_ERROR; - 80052bc: 2301 movs r3, #1 - 80052be: e032 b.n 8005326 + 8005538: 2301 movs r3, #1 + 800553a: e032 b.n 80055a2 } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- PCLK1 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 80052c0: 687b ldr r3, [r7, #4] - 80052c2: 681b ldr r3, [r3, #0] - 80052c4: f003 0304 and.w r3, r3, #4 - 80052c8: 2b00 cmp r3, #0 - 80052ca: d008 beq.n 80052de + 800553c: 687b ldr r3, [r7, #4] + 800553e: 681b ldr r3, [r3, #0] + 8005540: f003 0304 and.w r3, r3, #4 + 8005544: 2b00 cmp r3, #0 + 8005546: d008 beq.n 800555a { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); - 80052cc: 4b19 ldr r3, [pc, #100] @ (8005334 ) - 80052ce: 685b ldr r3, [r3, #4] - 80052d0: f423 62e0 bic.w r2, r3, #1792 @ 0x700 - 80052d4: 687b ldr r3, [r7, #4] - 80052d6: 68db ldr r3, [r3, #12] - 80052d8: 4916 ldr r1, [pc, #88] @ (8005334 ) - 80052da: 4313 orrs r3, r2 - 80052dc: 604b str r3, [r1, #4] + 8005548: 4b19 ldr r3, [pc, #100] @ (80055b0 ) + 800554a: 685b ldr r3, [r3, #4] + 800554c: f423 62e0 bic.w r2, r3, #1792 @ 0x700 + 8005550: 687b ldr r3, [r7, #4] + 8005552: 68db ldr r3, [r3, #12] + 8005554: 4916 ldr r1, [pc, #88] @ (80055b0 ) + 8005556: 4313 orrs r3, r2 + 8005558: 604b str r3, [r1, #4] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 80052de: 687b ldr r3, [r7, #4] - 80052e0: 681b ldr r3, [r3, #0] - 80052e2: f003 0308 and.w r3, r3, #8 - 80052e6: 2b00 cmp r3, #0 - 80052e8: d009 beq.n 80052fe + 800555a: 687b ldr r3, [r7, #4] + 800555c: 681b ldr r3, [r3, #0] + 800555e: f003 0308 and.w r3, r3, #8 + 8005562: 2b00 cmp r3, #0 + 8005564: d009 beq.n 800557a { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3)); - 80052ea: 4b12 ldr r3, [pc, #72] @ (8005334 ) - 80052ec: 685b ldr r3, [r3, #4] - 80052ee: f423 5260 bic.w r2, r3, #14336 @ 0x3800 - 80052f2: 687b ldr r3, [r7, #4] - 80052f4: 691b ldr r3, [r3, #16] - 80052f6: 00db lsls r3, r3, #3 - 80052f8: 490e ldr r1, [pc, #56] @ (8005334 ) - 80052fa: 4313 orrs r3, r2 - 80052fc: 604b str r3, [r1, #4] + 8005566: 4b12 ldr r3, [pc, #72] @ (80055b0 ) + 8005568: 685b ldr r3, [r3, #4] + 800556a: f423 5260 bic.w r2, r3, #14336 @ 0x3800 + 800556e: 687b ldr r3, [r7, #4] + 8005570: 691b ldr r3, [r3, #16] + 8005572: 00db lsls r3, r3, #3 + 8005574: 490e ldr r1, [pc, #56] @ (80055b0 ) + 8005576: 4313 orrs r3, r2 + 8005578: 604b str r3, [r1, #4] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]; - 80052fe: f000 f821 bl 8005344 - 8005302: 4602 mov r2, r0 - 8005304: 4b0b ldr r3, [pc, #44] @ (8005334 ) - 8005306: 685b ldr r3, [r3, #4] - 8005308: 091b lsrs r3, r3, #4 - 800530a: f003 030f and.w r3, r3, #15 - 800530e: 490a ldr r1, [pc, #40] @ (8005338 ) - 8005310: 5ccb ldrb r3, [r1, r3] - 8005312: fa22 f303 lsr.w r3, r2, r3 - 8005316: 4a09 ldr r2, [pc, #36] @ (800533c ) - 8005318: 6013 str r3, [r2, #0] + 800557a: f000 f821 bl 80055c0 + 800557e: 4602 mov r2, r0 + 8005580: 4b0b ldr r3, [pc, #44] @ (80055b0 ) + 8005582: 685b ldr r3, [r3, #4] + 8005584: 091b lsrs r3, r3, #4 + 8005586: f003 030f and.w r3, r3, #15 + 800558a: 490a ldr r1, [pc, #40] @ (80055b4 ) + 800558c: 5ccb ldrb r3, [r1, r3] + 800558e: fa22 f303 lsr.w r3, r2, r3 + 8005592: 4a09 ldr r2, [pc, #36] @ (80055b8 ) + 8005594: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings*/ HAL_InitTick(uwTickPrio); - 800531a: 4b09 ldr r3, [pc, #36] @ (8005340 ) - 800531c: 681b ldr r3, [r3, #0] - 800531e: 4618 mov r0, r3 - 8005320: f7fd fc62 bl 8002be8 + 8005596: 4b09 ldr r3, [pc, #36] @ (80055bc ) + 8005598: 681b ldr r3, [r3, #0] + 800559a: 4618 mov r0, r3 + 800559c: f7fd fc62 bl 8002e64 return HAL_OK; - 8005324: 2300 movs r3, #0 + 80055a0: 2300 movs r3, #0 } - 8005326: 4618 mov r0, r3 - 8005328: 3710 adds r7, #16 - 800532a: 46bd mov sp, r7 - 800532c: bd80 pop {r7, pc} - 800532e: bf00 nop - 8005330: 40022000 .word 0x40022000 - 8005334: 40021000 .word 0x40021000 - 8005338: 08006468 .word 0x08006468 - 800533c: 20000018 .word 0x20000018 - 8005340: 2000001c .word 0x2000001c + 80055a2: 4618 mov r0, r3 + 80055a4: 3710 adds r7, #16 + 80055a6: 46bd mov sp, r7 + 80055a8: bd80 pop {r7, pc} + 80055aa: bf00 nop + 80055ac: 40022000 .word 0x40022000 + 80055b0: 40021000 .word 0x40021000 + 80055b4: 080067e4 .word 0x080067e4 + 80055b8: 20000034 .word 0x20000034 + 80055bc: 20000038 .word 0x20000038 -08005344 : +080055c0 : * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { - 8005344: b480 push {r7} - 8005346: b087 sub sp, #28 - 8005348: af00 add r7, sp, #0 + 80055c0: b480 push {r7} + 80055c2: b087 sub sp, #28 + 80055c4: af00 add r7, sp, #0 #else static const uint8_t aPredivFactorTable[2U] = {1, 2}; #endif /*RCC_CFGR2_PREDIV1*/ #endif uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U; - 800534a: 2300 movs r3, #0 - 800534c: 60fb str r3, [r7, #12] - 800534e: 2300 movs r3, #0 - 8005350: 60bb str r3, [r7, #8] - 8005352: 2300 movs r3, #0 - 8005354: 617b str r3, [r7, #20] - 8005356: 2300 movs r3, #0 - 8005358: 607b str r3, [r7, #4] + 80055c6: 2300 movs r3, #0 + 80055c8: 60fb str r3, [r7, #12] + 80055ca: 2300 movs r3, #0 + 80055cc: 60bb str r3, [r7, #8] + 80055ce: 2300 movs r3, #0 + 80055d0: 617b str r3, [r7, #20] + 80055d2: 2300 movs r3, #0 + 80055d4: 607b str r3, [r7, #4] uint32_t sysclockfreq = 0U; - 800535a: 2300 movs r3, #0 - 800535c: 613b str r3, [r7, #16] + 80055d6: 2300 movs r3, #0 + 80055d8: 613b str r3, [r7, #16] #if defined(RCC_CFGR2_PREDIV1SRC) uint32_t prediv2 = 0U, pll2mul = 0U; #endif /*RCC_CFGR2_PREDIV1SRC*/ tmpreg = RCC->CFGR; - 800535e: 4b1e ldr r3, [pc, #120] @ (80053d8 ) - 8005360: 685b ldr r3, [r3, #4] - 8005362: 60fb str r3, [r7, #12] + 80055da: 4b1e ldr r3, [pc, #120] @ (8005654 ) + 80055dc: 685b ldr r3, [r3, #4] + 80055de: 60fb str r3, [r7, #12] /* Get SYSCLK source -------------------------------------------------------*/ switch (tmpreg & RCC_CFGR_SWS) - 8005364: 68fb ldr r3, [r7, #12] - 8005366: f003 030c and.w r3, r3, #12 - 800536a: 2b04 cmp r3, #4 - 800536c: d002 beq.n 8005374 - 800536e: 2b08 cmp r3, #8 - 8005370: d003 beq.n 800537a - 8005372: e027 b.n 80053c4 + 80055e0: 68fb ldr r3, [r7, #12] + 80055e2: f003 030c and.w r3, r3, #12 + 80055e6: 2b04 cmp r3, #4 + 80055e8: d002 beq.n 80055f0 + 80055ea: 2b08 cmp r3, #8 + 80055ec: d003 beq.n 80055f6 + 80055ee: e027 b.n 8005640 { case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ { sysclockfreq = HSE_VALUE; - 8005374: 4b19 ldr r3, [pc, #100] @ (80053dc ) - 8005376: 613b str r3, [r7, #16] + 80055f0: 4b19 ldr r3, [pc, #100] @ (8005658 ) + 80055f2: 613b str r3, [r7, #16] break; - 8005378: e027 b.n 80053ca + 80055f4: e027 b.n 8005646 } case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ { pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; - 800537a: 68fb ldr r3, [r7, #12] - 800537c: 0c9b lsrs r3, r3, #18 - 800537e: f003 030f and.w r3, r3, #15 - 8005382: 4a17 ldr r2, [pc, #92] @ (80053e0 ) - 8005384: 5cd3 ldrb r3, [r2, r3] - 8005386: 607b str r3, [r7, #4] + 80055f6: 68fb ldr r3, [r7, #12] + 80055f8: 0c9b lsrs r3, r3, #18 + 80055fa: f003 030f and.w r3, r3, #15 + 80055fe: 4a17 ldr r2, [pc, #92] @ (800565c ) + 8005600: 5cd3 ldrb r3, [r2, r3] + 8005602: 607b str r3, [r7, #4] if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) - 8005388: 68fb ldr r3, [r7, #12] - 800538a: f403 3380 and.w r3, r3, #65536 @ 0x10000 - 800538e: 2b00 cmp r3, #0 - 8005390: d010 beq.n 80053b4 + 8005604: 68fb ldr r3, [r7, #12] + 8005606: f403 3380 and.w r3, r3, #65536 @ 0x10000 + 800560a: 2b00 cmp r3, #0 + 800560c: d010 beq.n 8005630 { #if defined(RCC_CFGR2_PREDIV1) prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos]; #else prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR & RCC_CFGR_PLLXTPRE) >> RCC_CFGR_PLLXTPRE_Pos]; - 8005392: 4b11 ldr r3, [pc, #68] @ (80053d8 ) - 8005394: 685b ldr r3, [r3, #4] - 8005396: 0c5b lsrs r3, r3, #17 - 8005398: f003 0301 and.w r3, r3, #1 - 800539c: 4a11 ldr r2, [pc, #68] @ (80053e4 ) - 800539e: 5cd3 ldrb r3, [r2, r3] - 80053a0: 60bb str r3, [r7, #8] + 800560e: 4b11 ldr r3, [pc, #68] @ (8005654 ) + 8005610: 685b ldr r3, [r3, #4] + 8005612: 0c5b lsrs r3, r3, #17 + 8005614: f003 0301 and.w r3, r3, #1 + 8005618: 4a11 ldr r2, [pc, #68] @ (8005660 ) + 800561a: 5cd3 ldrb r3, [r2, r3] + 800561c: 60bb str r3, [r7, #8] { pllclk = pllclk / 2; } #else /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */ pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv); - 80053a2: 687b ldr r3, [r7, #4] - 80053a4: 4a0d ldr r2, [pc, #52] @ (80053dc ) - 80053a6: fb03 f202 mul.w r2, r3, r2 - 80053aa: 68bb ldr r3, [r7, #8] - 80053ac: fbb2 f3f3 udiv r3, r2, r3 - 80053b0: 617b str r3, [r7, #20] - 80053b2: e004 b.n 80053be + 800561e: 687b ldr r3, [r7, #4] + 8005620: 4a0d ldr r2, [pc, #52] @ (8005658 ) + 8005622: fb03 f202 mul.w r2, r3, r2 + 8005626: 68bb ldr r3, [r7, #8] + 8005628: fbb2 f3f3 udiv r3, r2, r3 + 800562c: 617b str r3, [r7, #20] + 800562e: e004 b.n 800563a #endif /*RCC_CFGR2_PREDIV1SRC*/ } else { /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul); - 80053b4: 687b ldr r3, [r7, #4] - 80053b6: 4a0c ldr r2, [pc, #48] @ (80053e8 ) - 80053b8: fb02 f303 mul.w r3, r2, r3 - 80053bc: 617b str r3, [r7, #20] + 8005630: 687b ldr r3, [r7, #4] + 8005632: 4a0c ldr r2, [pc, #48] @ (8005664 ) + 8005634: fb02 f303 mul.w r3, r2, r3 + 8005638: 617b str r3, [r7, #20] } sysclockfreq = pllclk; - 80053be: 697b ldr r3, [r7, #20] - 80053c0: 613b str r3, [r7, #16] + 800563a: 697b ldr r3, [r7, #20] + 800563c: 613b str r3, [r7, #16] break; - 80053c2: e002 b.n 80053ca + 800563e: e002 b.n 8005646 } case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ default: /* HSI used as system clock */ { sysclockfreq = HSI_VALUE; - 80053c4: 4b09 ldr r3, [pc, #36] @ (80053ec ) - 80053c6: 613b str r3, [r7, #16] + 8005640: 4b09 ldr r3, [pc, #36] @ (8005668 ) + 8005642: 613b str r3, [r7, #16] break; - 80053c8: bf00 nop + 8005644: bf00 nop } } return sysclockfreq; - 80053ca: 693b ldr r3, [r7, #16] + 8005646: 693b ldr r3, [r7, #16] } - 80053cc: 4618 mov r0, r3 - 80053ce: 371c adds r7, #28 - 80053d0: 46bd mov sp, r7 - 80053d2: bc80 pop {r7} - 80053d4: 4770 bx lr - 80053d6: bf00 nop - 80053d8: 40021000 .word 0x40021000 - 80053dc: 00b71b00 .word 0x00b71b00 - 80053e0: 08006480 .word 0x08006480 - 80053e4: 08006490 .word 0x08006490 - 80053e8: 003d0900 .word 0x003d0900 - 80053ec: 007a1200 .word 0x007a1200 + 8005648: 4618 mov r0, r3 + 800564a: 371c adds r7, #28 + 800564c: 46bd mov sp, r7 + 800564e: bc80 pop {r7} + 8005650: 4770 bx lr + 8005652: bf00 nop + 8005654: 40021000 .word 0x40021000 + 8005658: 00b71b00 .word 0x00b71b00 + 800565c: 080067fc .word 0x080067fc + 8005660: 0800680c .word 0x0800680c + 8005664: 003d0900 .word 0x003d0900 + 8005668: 007a1200 .word 0x007a1200 -080053f0 : +0800566c : * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency * and updated within this function * @retval HCLK frequency */ uint32_t HAL_RCC_GetHCLKFreq(void) { - 80053f0: b480 push {r7} - 80053f2: af00 add r7, sp, #0 + 800566c: b480 push {r7} + 800566e: af00 add r7, sp, #0 return SystemCoreClock; - 80053f4: 4b02 ldr r3, [pc, #8] @ (8005400 ) - 80053f6: 681b ldr r3, [r3, #0] + 8005670: 4b02 ldr r3, [pc, #8] @ (800567c ) + 8005672: 681b ldr r3, [r3, #0] } - 80053f8: 4618 mov r0, r3 - 80053fa: 46bd mov sp, r7 - 80053fc: bc80 pop {r7} - 80053fe: 4770 bx lr - 8005400: 20000018 .word 0x20000018 + 8005674: 4618 mov r0, r3 + 8005676: 46bd mov sp, r7 + 8005678: bc80 pop {r7} + 800567a: 4770 bx lr + 800567c: 20000034 .word 0x20000034 -08005404 : +08005680 : * @note Each time PCLK1 changes, this function must be called to update the * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect. * @retval PCLK1 frequency */ uint32_t HAL_RCC_GetPCLK1Freq(void) { - 8005404: b580 push {r7, lr} - 8005406: af00 add r7, sp, #0 + 8005680: b580 push {r7, lr} + 8005682: af00 add r7, sp, #0 /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/ return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1) >> RCC_CFGR_PPRE1_Pos]); - 8005408: f7ff fff2 bl 80053f0 - 800540c: 4602 mov r2, r0 - 800540e: 4b05 ldr r3, [pc, #20] @ (8005424 ) - 8005410: 685b ldr r3, [r3, #4] - 8005412: 0a1b lsrs r3, r3, #8 - 8005414: f003 0307 and.w r3, r3, #7 - 8005418: 4903 ldr r1, [pc, #12] @ (8005428 ) - 800541a: 5ccb ldrb r3, [r1, r3] - 800541c: fa22 f303 lsr.w r3, r2, r3 + 8005684: f7ff fff2 bl 800566c + 8005688: 4602 mov r2, r0 + 800568a: 4b05 ldr r3, [pc, #20] @ (80056a0 ) + 800568c: 685b ldr r3, [r3, #4] + 800568e: 0a1b lsrs r3, r3, #8 + 8005690: f003 0307 and.w r3, r3, #7 + 8005694: 4903 ldr r1, [pc, #12] @ (80056a4 ) + 8005696: 5ccb ldrb r3, [r1, r3] + 8005698: fa22 f303 lsr.w r3, r2, r3 } - 8005420: 4618 mov r0, r3 - 8005422: bd80 pop {r7, pc} - 8005424: 40021000 .word 0x40021000 - 8005428: 08006478 .word 0x08006478 + 800569c: 4618 mov r0, r3 + 800569e: bd80 pop {r7, pc} + 80056a0: 40021000 .word 0x40021000 + 80056a4: 080067f4 .word 0x080067f4 -0800542c : +080056a8 : * @note Each time PCLK2 changes, this function must be called to update the * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect. * @retval PCLK2 frequency */ uint32_t HAL_RCC_GetPCLK2Freq(void) { - 800542c: b580 push {r7, lr} - 800542e: af00 add r7, sp, #0 + 80056a8: b580 push {r7, lr} + 80056aa: af00 add r7, sp, #0 /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/ return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2) >> RCC_CFGR_PPRE2_Pos]); - 8005430: f7ff ffde bl 80053f0 - 8005434: 4602 mov r2, r0 - 8005436: 4b05 ldr r3, [pc, #20] @ (800544c ) - 8005438: 685b ldr r3, [r3, #4] - 800543a: 0adb lsrs r3, r3, #11 - 800543c: f003 0307 and.w r3, r3, #7 - 8005440: 4903 ldr r1, [pc, #12] @ (8005450 ) - 8005442: 5ccb ldrb r3, [r1, r3] - 8005444: fa22 f303 lsr.w r3, r2, r3 + 80056ac: f7ff ffde bl 800566c + 80056b0: 4602 mov r2, r0 + 80056b2: 4b05 ldr r3, [pc, #20] @ (80056c8 ) + 80056b4: 685b ldr r3, [r3, #4] + 80056b6: 0adb lsrs r3, r3, #11 + 80056b8: f003 0307 and.w r3, r3, #7 + 80056bc: 4903 ldr r1, [pc, #12] @ (80056cc ) + 80056be: 5ccb ldrb r3, [r1, r3] + 80056c0: fa22 f303 lsr.w r3, r2, r3 } - 8005448: 4618 mov r0, r3 - 800544a: bd80 pop {r7, pc} - 800544c: 40021000 .word 0x40021000 - 8005450: 08006478 .word 0x08006478 + 80056c4: 4618 mov r0, r3 + 80056c6: bd80 pop {r7, pc} + 80056c8: 40021000 .word 0x40021000 + 80056cc: 080067f4 .word 0x080067f4 -08005454 : +080056d0 : * @brief This function provides delay (in milliseconds) based on CPU cycles method. * @param mdelay: specifies the delay time length, in milliseconds. * @retval None */ static void RCC_Delay(uint32_t mdelay) { - 8005454: b480 push {r7} - 8005456: b085 sub sp, #20 - 8005458: af00 add r7, sp, #0 - 800545a: 6078 str r0, [r7, #4] + 80056d0: b480 push {r7} + 80056d2: b085 sub sp, #20 + 80056d4: af00 add r7, sp, #0 + 80056d6: 6078 str r0, [r7, #4] __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U); - 800545c: 4b0a ldr r3, [pc, #40] @ (8005488 ) - 800545e: 681b ldr r3, [r3, #0] - 8005460: 4a0a ldr r2, [pc, #40] @ (800548c ) - 8005462: fba2 2303 umull r2, r3, r2, r3 - 8005466: 0a5b lsrs r3, r3, #9 - 8005468: 687a ldr r2, [r7, #4] - 800546a: fb02 f303 mul.w r3, r2, r3 - 800546e: 60fb str r3, [r7, #12] + 80056d8: 4b0a ldr r3, [pc, #40] @ (8005704 ) + 80056da: 681b ldr r3, [r3, #0] + 80056dc: 4a0a ldr r2, [pc, #40] @ (8005708 ) + 80056de: fba2 2303 umull r2, r3, r2, r3 + 80056e2: 0a5b lsrs r3, r3, #9 + 80056e4: 687a ldr r2, [r7, #4] + 80056e6: fb02 f303 mul.w r3, r2, r3 + 80056ea: 60fb str r3, [r7, #12] do { __NOP(); - 8005470: bf00 nop + 80056ec: bf00 nop } while (Delay --); - 8005472: 68fb ldr r3, [r7, #12] - 8005474: 1e5a subs r2, r3, #1 - 8005476: 60fa str r2, [r7, #12] - 8005478: 2b00 cmp r3, #0 - 800547a: d1f9 bne.n 8005470 + 80056ee: 68fb ldr r3, [r7, #12] + 80056f0: 1e5a subs r2, r3, #1 + 80056f2: 60fa str r2, [r7, #12] + 80056f4: 2b00 cmp r3, #0 + 80056f6: d1f9 bne.n 80056ec } - 800547c: bf00 nop - 800547e: bf00 nop - 8005480: 3714 adds r7, #20 - 8005482: 46bd mov sp, r7 - 8005484: bc80 pop {r7} - 8005486: 4770 bx lr - 8005488: 20000018 .word 0x20000018 - 800548c: 10624dd3 .word 0x10624dd3 + 80056f8: bf00 nop + 80056fa: bf00 nop + 80056fc: 3714 adds r7, #20 + 80056fe: 46bd mov sp, r7 + 8005700: bc80 pop {r7} + 8005702: 4770 bx lr + 8005704: 20000034 .word 0x20000034 + 8005708: 10624dd3 .word 0x10624dd3 -08005490 : +0800570c : * manually disable it. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { - 8005490: b580 push {r7, lr} - 8005492: b086 sub sp, #24 - 8005494: af00 add r7, sp, #0 - 8005496: 6078 str r0, [r7, #4] + 800570c: b580 push {r7, lr} + 800570e: b086 sub sp, #24 + 8005710: af00 add r7, sp, #0 + 8005712: 6078 str r0, [r7, #4] uint32_t tickstart = 0U, temp_reg = 0U; - 8005498: 2300 movs r3, #0 - 800549a: 613b str r3, [r7, #16] - 800549c: 2300 movs r3, #0 - 800549e: 60fb str r3, [r7, #12] + 8005714: 2300 movs r3, #0 + 8005716: 613b str r3, [r7, #16] + 8005718: 2300 movs r3, #0 + 800571a: 60fb str r3, [r7, #12] /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*------------------------------- RTC/LCD Configuration ------------------------*/ if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)) - 80054a0: 687b ldr r3, [r7, #4] - 80054a2: 681b ldr r3, [r3, #0] - 80054a4: f003 0301 and.w r3, r3, #1 - 80054a8: 2b00 cmp r3, #0 - 80054aa: d07d beq.n 80055a8 + 800571c: 687b ldr r3, [r7, #4] + 800571e: 681b ldr r3, [r3, #0] + 8005720: f003 0301 and.w r3, r3, #1 + 8005724: 2b00 cmp r3, #0 + 8005726: d07d beq.n 8005824 { FlagStatus pwrclkchanged = RESET; - 80054ac: 2300 movs r3, #0 - 80054ae: 75fb strb r3, [r7, #23] + 8005728: 2300 movs r3, #0 + 800572a: 75fb strb r3, [r7, #23] assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); /* As soon as function is called to change RTC clock source, activation of the power domain is done. */ /* Requires to enable write access to Backup Domain of necessary */ if (__HAL_RCC_PWR_IS_CLK_DISABLED()) - 80054b0: 4b4f ldr r3, [pc, #316] @ (80055f0 ) - 80054b2: 69db ldr r3, [r3, #28] - 80054b4: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 80054b8: 2b00 cmp r3, #0 - 80054ba: d10d bne.n 80054d8 + 800572c: 4b4f ldr r3, [pc, #316] @ (800586c ) + 800572e: 69db ldr r3, [r3, #28] + 8005730: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8005734: 2b00 cmp r3, #0 + 8005736: d10d bne.n 8005754 { __HAL_RCC_PWR_CLK_ENABLE(); - 80054bc: 4b4c ldr r3, [pc, #304] @ (80055f0 ) - 80054be: 69db ldr r3, [r3, #28] - 80054c0: 4a4b ldr r2, [pc, #300] @ (80055f0 ) - 80054c2: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 80054c6: 61d3 str r3, [r2, #28] - 80054c8: 4b49 ldr r3, [pc, #292] @ (80055f0 ) - 80054ca: 69db ldr r3, [r3, #28] - 80054cc: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 80054d0: 60bb str r3, [r7, #8] - 80054d2: 68bb ldr r3, [r7, #8] + 8005738: 4b4c ldr r3, [pc, #304] @ (800586c ) + 800573a: 69db ldr r3, [r3, #28] + 800573c: 4a4b ldr r2, [pc, #300] @ (800586c ) + 800573e: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8005742: 61d3 str r3, [r2, #28] + 8005744: 4b49 ldr r3, [pc, #292] @ (800586c ) + 8005746: 69db ldr r3, [r3, #28] + 8005748: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 800574c: 60bb str r3, [r7, #8] + 800574e: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; - 80054d4: 2301 movs r3, #1 - 80054d6: 75fb strb r3, [r7, #23] + 8005750: 2301 movs r3, #1 + 8005752: 75fb strb r3, [r7, #23] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80054d8: 4b46 ldr r3, [pc, #280] @ (80055f4 ) - 80054da: 681b ldr r3, [r3, #0] - 80054dc: f403 7380 and.w r3, r3, #256 @ 0x100 - 80054e0: 2b00 cmp r3, #0 - 80054e2: d118 bne.n 8005516 + 8005754: 4b46 ldr r3, [pc, #280] @ (8005870 ) + 8005756: 681b ldr r3, [r3, #0] + 8005758: f403 7380 and.w r3, r3, #256 @ 0x100 + 800575c: 2b00 cmp r3, #0 + 800575e: d118 bne.n 8005792 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 80054e4: 4b43 ldr r3, [pc, #268] @ (80055f4 ) - 80054e6: 681b ldr r3, [r3, #0] - 80054e8: 4a42 ldr r2, [pc, #264] @ (80055f4 ) - 80054ea: f443 7380 orr.w r3, r3, #256 @ 0x100 - 80054ee: 6013 str r3, [r2, #0] + 8005760: 4b43 ldr r3, [pc, #268] @ (8005870 ) + 8005762: 681b ldr r3, [r3, #0] + 8005764: 4a42 ldr r2, [pc, #264] @ (8005870 ) + 8005766: f443 7380 orr.w r3, r3, #256 @ 0x100 + 800576a: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 80054f0: f7fd fbbc bl 8002c6c - 80054f4: 6138 str r0, [r7, #16] + 800576c: f7fd fbbc bl 8002ee8 + 8005770: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80054f6: e008 b.n 800550a + 8005772: e008 b.n 8005786 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 80054f8: f7fd fbb8 bl 8002c6c - 80054fc: 4602 mov r2, r0 - 80054fe: 693b ldr r3, [r7, #16] - 8005500: 1ad3 subs r3, r2, r3 - 8005502: 2b64 cmp r3, #100 @ 0x64 - 8005504: d901 bls.n 800550a + 8005774: f7fd fbb8 bl 8002ee8 + 8005778: 4602 mov r2, r0 + 800577a: 693b ldr r3, [r7, #16] + 800577c: 1ad3 subs r3, r2, r3 + 800577e: 2b64 cmp r3, #100 @ 0x64 + 8005780: d901 bls.n 8005786 { return HAL_TIMEOUT; - 8005506: 2303 movs r3, #3 - 8005508: e06d b.n 80055e6 + 8005782: 2303 movs r3, #3 + 8005784: e06d b.n 8005862 while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 800550a: 4b3a ldr r3, [pc, #232] @ (80055f4 ) - 800550c: 681b ldr r3, [r3, #0] - 800550e: f403 7380 and.w r3, r3, #256 @ 0x100 - 8005512: 2b00 cmp r3, #0 - 8005514: d0f0 beq.n 80054f8 + 8005786: 4b3a ldr r3, [pc, #232] @ (8005870 ) + 8005788: 681b ldr r3, [r3, #0] + 800578a: f403 7380 and.w r3, r3, #256 @ 0x100 + 800578e: 2b00 cmp r3, #0 + 8005790: d0f0 beq.n 8005774 } } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL); - 8005516: 4b36 ldr r3, [pc, #216] @ (80055f0 ) - 8005518: 6a1b ldr r3, [r3, #32] - 800551a: f403 7340 and.w r3, r3, #768 @ 0x300 - 800551e: 60fb str r3, [r7, #12] + 8005792: 4b36 ldr r3, [pc, #216] @ (800586c ) + 8005794: 6a1b ldr r3, [r3, #32] + 8005796: f403 7340 and.w r3, r3, #768 @ 0x300 + 800579a: 60fb str r3, [r7, #12] if ((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) - 8005520: 68fb ldr r3, [r7, #12] - 8005522: 2b00 cmp r3, #0 - 8005524: d02e beq.n 8005584 - 8005526: 687b ldr r3, [r7, #4] - 8005528: 685b ldr r3, [r3, #4] - 800552a: f403 7340 and.w r3, r3, #768 @ 0x300 - 800552e: 68fa ldr r2, [r7, #12] - 8005530: 429a cmp r2, r3 - 8005532: d027 beq.n 8005584 + 800579c: 68fb ldr r3, [r7, #12] + 800579e: 2b00 cmp r3, #0 + 80057a0: d02e beq.n 8005800 + 80057a2: 687b ldr r3, [r7, #4] + 80057a4: 685b ldr r3, [r3, #4] + 80057a6: f403 7340 and.w r3, r3, #768 @ 0x300 + 80057aa: 68fa ldr r2, [r7, #12] + 80057ac: 429a cmp r2, r3 + 80057ae: d027 beq.n 8005800 { /* Store the content of BDCR register before the reset of Backup Domain */ temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); - 8005534: 4b2e ldr r3, [pc, #184] @ (80055f0 ) - 8005536: 6a1b ldr r3, [r3, #32] - 8005538: f423 7340 bic.w r3, r3, #768 @ 0x300 - 800553c: 60fb str r3, [r7, #12] + 80057b0: 4b2e ldr r3, [pc, #184] @ (800586c ) + 80057b2: 6a1b ldr r3, [r3, #32] + 80057b4: f423 7340 bic.w r3, r3, #768 @ 0x300 + 80057b8: 60fb str r3, [r7, #12] /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); - 800553e: 4b2e ldr r3, [pc, #184] @ (80055f8 ) - 8005540: 2201 movs r2, #1 - 8005542: 601a str r2, [r3, #0] + 80057ba: 4b2e ldr r3, [pc, #184] @ (8005874 ) + 80057bc: 2201 movs r2, #1 + 80057be: 601a str r2, [r3, #0] __HAL_RCC_BACKUPRESET_RELEASE(); - 8005544: 4b2c ldr r3, [pc, #176] @ (80055f8 ) - 8005546: 2200 movs r2, #0 - 8005548: 601a str r2, [r3, #0] + 80057c0: 4b2c ldr r3, [pc, #176] @ (8005874 ) + 80057c2: 2200 movs r2, #0 + 80057c4: 601a str r2, [r3, #0] /* Restore the Content of BDCR register */ RCC->BDCR = temp_reg; - 800554a: 4a29 ldr r2, [pc, #164] @ (80055f0 ) - 800554c: 68fb ldr r3, [r7, #12] - 800554e: 6213 str r3, [r2, #32] + 80057c6: 4a29 ldr r2, [pc, #164] @ (800586c ) + 80057c8: 68fb ldr r3, [r7, #12] + 80057ca: 6213 str r3, [r2, #32] /* Wait for LSERDY if LSE was enabled */ if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON)) - 8005550: 68fb ldr r3, [r7, #12] - 8005552: f003 0301 and.w r3, r3, #1 - 8005556: 2b00 cmp r3, #0 - 8005558: d014 beq.n 8005584 + 80057cc: 68fb ldr r3, [r7, #12] + 80057ce: f003 0301 and.w r3, r3, #1 + 80057d2: 2b00 cmp r3, #0 + 80057d4: d014 beq.n 8005800 { /* Get Start Tick */ tickstart = HAL_GetTick(); - 800555a: f7fd fb87 bl 8002c6c - 800555e: 6138 str r0, [r7, #16] + 80057d6: f7fd fb87 bl 8002ee8 + 80057da: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8005560: e00a b.n 8005578 + 80057dc: e00a b.n 80057f4 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 8005562: f7fd fb83 bl 8002c6c - 8005566: 4602 mov r2, r0 - 8005568: 693b ldr r3, [r7, #16] - 800556a: 1ad3 subs r3, r2, r3 - 800556c: f241 3288 movw r2, #5000 @ 0x1388 - 8005570: 4293 cmp r3, r2 - 8005572: d901 bls.n 8005578 + 80057de: f7fd fb83 bl 8002ee8 + 80057e2: 4602 mov r2, r0 + 80057e4: 693b ldr r3, [r7, #16] + 80057e6: 1ad3 subs r3, r2, r3 + 80057e8: f241 3288 movw r2, #5000 @ 0x1388 + 80057ec: 4293 cmp r3, r2 + 80057ee: d901 bls.n 80057f4 { return HAL_TIMEOUT; - 8005574: 2303 movs r3, #3 - 8005576: e036 b.n 80055e6 + 80057f0: 2303 movs r3, #3 + 80057f2: e036 b.n 8005862 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8005578: 4b1d ldr r3, [pc, #116] @ (80055f0 ) - 800557a: 6a1b ldr r3, [r3, #32] - 800557c: f003 0302 and.w r3, r3, #2 - 8005580: 2b00 cmp r3, #0 - 8005582: d0ee beq.n 8005562 + 80057f4: 4b1d ldr r3, [pc, #116] @ (800586c ) + 80057f6: 6a1b ldr r3, [r3, #32] + 80057f8: f003 0302 and.w r3, r3, #2 + 80057fc: 2b00 cmp r3, #0 + 80057fe: d0ee beq.n 80057de } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); - 8005584: 4b1a ldr r3, [pc, #104] @ (80055f0 ) - 8005586: 6a1b ldr r3, [r3, #32] - 8005588: f423 7240 bic.w r2, r3, #768 @ 0x300 - 800558c: 687b ldr r3, [r7, #4] - 800558e: 685b ldr r3, [r3, #4] - 8005590: 4917 ldr r1, [pc, #92] @ (80055f0 ) - 8005592: 4313 orrs r3, r2 - 8005594: 620b str r3, [r1, #32] + 8005800: 4b1a ldr r3, [pc, #104] @ (800586c ) + 8005802: 6a1b ldr r3, [r3, #32] + 8005804: f423 7240 bic.w r2, r3, #768 @ 0x300 + 8005808: 687b ldr r3, [r7, #4] + 800580a: 685b ldr r3, [r3, #4] + 800580c: 4917 ldr r1, [pc, #92] @ (800586c ) + 800580e: 4313 orrs r3, r2 + 8005810: 620b str r3, [r1, #32] /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) - 8005596: 7dfb ldrb r3, [r7, #23] - 8005598: 2b01 cmp r3, #1 - 800559a: d105 bne.n 80055a8 + 8005812: 7dfb ldrb r3, [r7, #23] + 8005814: 2b01 cmp r3, #1 + 8005816: d105 bne.n 8005824 { __HAL_RCC_PWR_CLK_DISABLE(); - 800559c: 4b14 ldr r3, [pc, #80] @ (80055f0 ) - 800559e: 69db ldr r3, [r3, #28] - 80055a0: 4a13 ldr r2, [pc, #76] @ (80055f0 ) - 80055a2: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 80055a6: 61d3 str r3, [r2, #28] + 8005818: 4b14 ldr r3, [pc, #80] @ (800586c ) + 800581a: 69db ldr r3, [r3, #28] + 800581c: 4a13 ldr r2, [pc, #76] @ (800586c ) + 800581e: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 8005822: 61d3 str r3, [r2, #28] } } /*------------------------------ ADC clock Configuration ------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC) - 80055a8: 687b ldr r3, [r7, #4] - 80055aa: 681b ldr r3, [r3, #0] - 80055ac: f003 0302 and.w r3, r3, #2 - 80055b0: 2b00 cmp r3, #0 - 80055b2: d008 beq.n 80055c6 + 8005824: 687b ldr r3, [r7, #4] + 8005826: 681b ldr r3, [r3, #0] + 8005828: f003 0302 and.w r3, r3, #2 + 800582c: 2b00 cmp r3, #0 + 800582e: d008 beq.n 8005842 { /* Check the parameters */ assert_param(IS_RCC_ADCPLLCLK_DIV(PeriphClkInit->AdcClockSelection)); /* Configure the ADC clock source */ __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection); - 80055b4: 4b0e ldr r3, [pc, #56] @ (80055f0 ) - 80055b6: 685b ldr r3, [r3, #4] - 80055b8: f423 4240 bic.w r2, r3, #49152 @ 0xc000 - 80055bc: 687b ldr r3, [r7, #4] - 80055be: 689b ldr r3, [r3, #8] - 80055c0: 490b ldr r1, [pc, #44] @ (80055f0 ) - 80055c2: 4313 orrs r3, r2 - 80055c4: 604b str r3, [r1, #4] + 8005830: 4b0e ldr r3, [pc, #56] @ (800586c ) + 8005832: 685b ldr r3, [r3, #4] + 8005834: f423 4240 bic.w r2, r3, #49152 @ 0xc000 + 8005838: 687b ldr r3, [r7, #4] + 800583a: 689b ldr r3, [r3, #8] + 800583c: 490b ldr r1, [pc, #44] @ (800586c ) + 800583e: 4313 orrs r3, r2 + 8005840: 604b str r3, [r1, #4] #if defined(STM32F102x6) || defined(STM32F102xB) || defined(STM32F103x6)\ || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG)\ || defined(STM32F105xC) || defined(STM32F107xC) /*------------------------------ USB clock Configuration ------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB) - 80055c6: 687b ldr r3, [r7, #4] - 80055c8: 681b ldr r3, [r3, #0] - 80055ca: f003 0310 and.w r3, r3, #16 - 80055ce: 2b00 cmp r3, #0 - 80055d0: d008 beq.n 80055e4 + 8005842: 687b ldr r3, [r7, #4] + 8005844: 681b ldr r3, [r3, #0] + 8005846: f003 0310 and.w r3, r3, #16 + 800584a: 2b00 cmp r3, #0 + 800584c: d008 beq.n 8005860 { /* Check the parameters */ assert_param(IS_RCC_USBPLLCLK_DIV(PeriphClkInit->UsbClockSelection)); /* Configure the USB clock source */ __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection); - 80055d2: 4b07 ldr r3, [pc, #28] @ (80055f0 ) - 80055d4: 685b ldr r3, [r3, #4] - 80055d6: f423 0280 bic.w r2, r3, #4194304 @ 0x400000 - 80055da: 687b ldr r3, [r7, #4] - 80055dc: 68db ldr r3, [r3, #12] - 80055de: 4904 ldr r1, [pc, #16] @ (80055f0 ) - 80055e0: 4313 orrs r3, r2 - 80055e2: 604b str r3, [r1, #4] + 800584e: 4b07 ldr r3, [pc, #28] @ (800586c ) + 8005850: 685b ldr r3, [r3, #4] + 8005852: f423 0280 bic.w r2, r3, #4194304 @ 0x400000 + 8005856: 687b ldr r3, [r7, #4] + 8005858: 68db ldr r3, [r3, #12] + 800585a: 4904 ldr r1, [pc, #16] @ (800586c ) + 800585c: 4313 orrs r3, r2 + 800585e: 604b str r3, [r1, #4] } #endif /* STM32F102x6 || STM32F102xB || STM32F103x6 || STM32F103xB || STM32F103xE || STM32F103xG || STM32F105xC || STM32F107xC */ return HAL_OK; - 80055e4: 2300 movs r3, #0 + 8005860: 2300 movs r3, #0 } - 80055e6: 4618 mov r0, r3 - 80055e8: 3718 adds r7, #24 - 80055ea: 46bd mov sp, r7 - 80055ec: bd80 pop {r7, pc} - 80055ee: bf00 nop - 80055f0: 40021000 .word 0x40021000 - 80055f4: 40007000 .word 0x40007000 - 80055f8: 42420440 .word 0x42420440 + 8005862: 4618 mov r0, r3 + 8005864: 3718 adds r7, #24 + 8005866: 46bd mov sp, r7 + 8005868: bd80 pop {r7, pc} + 800586a: bf00 nop + 800586c: 40021000 .word 0x40021000 + 8005870: 40007000 .word 0x40007000 + 8005874: 42420440 .word 0x42420440 -080055fc : +08005878 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart) { - 80055fc: b580 push {r7, lr} - 80055fe: b082 sub sp, #8 - 8005600: af00 add r7, sp, #0 - 8005602: 6078 str r0, [r7, #4] + 8005878: b580 push {r7, lr} + 800587a: b082 sub sp, #8 + 800587c: af00 add r7, sp, #0 + 800587e: 6078 str r0, [r7, #4] /* Check the UART handle allocation */ if (huart == NULL) - 8005604: 687b ldr r3, [r7, #4] - 8005606: 2b00 cmp r3, #0 - 8005608: d101 bne.n 800560e + 8005880: 687b ldr r3, [r7, #4] + 8005882: 2b00 cmp r3, #0 + 8005884: d101 bne.n 800588a { return HAL_ERROR; - 800560a: 2301 movs r3, #1 - 800560c: e042 b.n 8005694 + 8005886: 2301 movs r3, #1 + 8005888: e042 b.n 8005910 assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength)); #if defined(USART_CR1_OVER8) assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling)); #endif /* USART_CR1_OVER8 */ if (huart->gState == HAL_UART_STATE_RESET) - 800560e: 687b ldr r3, [r7, #4] - 8005610: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 8005614: b2db uxtb r3, r3 - 8005616: 2b00 cmp r3, #0 - 8005618: d106 bne.n 8005628 + 800588a: 687b ldr r3, [r7, #4] + 800588c: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 8005890: b2db uxtb r3, r3 + 8005892: 2b00 cmp r3, #0 + 8005894: d106 bne.n 80058a4 { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; - 800561a: 687b ldr r3, [r7, #4] - 800561c: 2200 movs r2, #0 - 800561e: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 8005896: 687b ldr r3, [r7, #4] + 8005898: 2200 movs r2, #0 + 800589a: f883 2040 strb.w r2, [r3, #64] @ 0x40 /* Init the low level hardware */ huart->MspInitCallback(huart); #else /* Init the low level hardware : GPIO, CLOCK */ HAL_UART_MspInit(huart); - 8005622: 6878 ldr r0, [r7, #4] - 8005624: f7fd fa50 bl 8002ac8 + 800589e: 6878 ldr r0, [r7, #4] + 80058a0: f7fd fa50 bl 8002d44 #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; - 8005628: 687b ldr r3, [r7, #4] - 800562a: 2224 movs r2, #36 @ 0x24 - 800562c: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 80058a4: 687b ldr r3, [r7, #4] + 80058a6: 2224 movs r2, #36 @ 0x24 + 80058a8: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Disable the peripheral */ __HAL_UART_DISABLE(huart); - 8005630: 687b ldr r3, [r7, #4] - 8005632: 681b ldr r3, [r3, #0] - 8005634: 68da ldr r2, [r3, #12] - 8005636: 687b ldr r3, [r7, #4] - 8005638: 681b ldr r3, [r3, #0] - 800563a: f422 5200 bic.w r2, r2, #8192 @ 0x2000 - 800563e: 60da str r2, [r3, #12] + 80058ac: 687b ldr r3, [r7, #4] + 80058ae: 681b ldr r3, [r3, #0] + 80058b0: 68da ldr r2, [r3, #12] + 80058b2: 687b ldr r3, [r7, #4] + 80058b4: 681b ldr r3, [r3, #0] + 80058b6: f422 5200 bic.w r2, r2, #8192 @ 0x2000 + 80058ba: 60da str r2, [r3, #12] /* Set the UART Communication parameters */ UART_SetConfig(huart); - 8005640: 6878 ldr r0, [r7, #4] - 8005642: f000 fd63 bl 800610c + 80058bc: 6878 ldr r0, [r7, #4] + 80058be: f000 fd63 bl 8006388 /* In asynchronous mode, the following bits must be kept cleared: - LINEN and CLKEN bits in the USART_CR2 register, - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/ CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); - 8005646: 687b ldr r3, [r7, #4] - 8005648: 681b ldr r3, [r3, #0] - 800564a: 691a ldr r2, [r3, #16] - 800564c: 687b ldr r3, [r7, #4] - 800564e: 681b ldr r3, [r3, #0] - 8005650: f422 4290 bic.w r2, r2, #18432 @ 0x4800 - 8005654: 611a str r2, [r3, #16] + 80058c2: 687b ldr r3, [r7, #4] + 80058c4: 681b ldr r3, [r3, #0] + 80058c6: 691a ldr r2, [r3, #16] + 80058c8: 687b ldr r3, [r7, #4] + 80058ca: 681b ldr r3, [r3, #0] + 80058cc: f422 4290 bic.w r2, r2, #18432 @ 0x4800 + 80058d0: 611a str r2, [r3, #16] CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); - 8005656: 687b ldr r3, [r7, #4] - 8005658: 681b ldr r3, [r3, #0] - 800565a: 695a ldr r2, [r3, #20] - 800565c: 687b ldr r3, [r7, #4] - 800565e: 681b ldr r3, [r3, #0] - 8005660: f022 022a bic.w r2, r2, #42 @ 0x2a - 8005664: 615a str r2, [r3, #20] + 80058d2: 687b ldr r3, [r7, #4] + 80058d4: 681b ldr r3, [r3, #0] + 80058d6: 695a ldr r2, [r3, #20] + 80058d8: 687b ldr r3, [r7, #4] + 80058da: 681b ldr r3, [r3, #0] + 80058dc: f022 022a bic.w r2, r2, #42 @ 0x2a + 80058e0: 615a str r2, [r3, #20] /* Enable the peripheral */ __HAL_UART_ENABLE(huart); - 8005666: 687b ldr r3, [r7, #4] - 8005668: 681b ldr r3, [r3, #0] - 800566a: 68da ldr r2, [r3, #12] - 800566c: 687b ldr r3, [r7, #4] - 800566e: 681b ldr r3, [r3, #0] - 8005670: f442 5200 orr.w r2, r2, #8192 @ 0x2000 - 8005674: 60da str r2, [r3, #12] + 80058e2: 687b ldr r3, [r7, #4] + 80058e4: 681b ldr r3, [r3, #0] + 80058e6: 68da ldr r2, [r3, #12] + 80058e8: 687b ldr r3, [r7, #4] + 80058ea: 681b ldr r3, [r3, #0] + 80058ec: f442 5200 orr.w r2, r2, #8192 @ 0x2000 + 80058f0: 60da str r2, [r3, #12] /* Initialize the UART state */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 8005676: 687b ldr r3, [r7, #4] - 8005678: 2200 movs r2, #0 - 800567a: 645a str r2, [r3, #68] @ 0x44 + 80058f2: 687b ldr r3, [r7, #4] + 80058f4: 2200 movs r2, #0 + 80058f6: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_READY; - 800567c: 687b ldr r3, [r7, #4] - 800567e: 2220 movs r2, #32 - 8005680: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 80058f8: 687b ldr r3, [r7, #4] + 80058fa: 2220 movs r2, #32 + 80058fc: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_READY; - 8005684: 687b ldr r3, [r7, #4] - 8005686: 2220 movs r2, #32 - 8005688: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8005900: 687b ldr r3, [r7, #4] + 8005902: 2220 movs r2, #32 + 8005904: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->RxEventType = HAL_UART_RXEVENT_TC; - 800568c: 687b ldr r3, [r7, #4] - 800568e: 2200 movs r2, #0 - 8005690: 635a str r2, [r3, #52] @ 0x34 + 8005908: 687b ldr r3, [r7, #4] + 800590a: 2200 movs r2, #0 + 800590c: 635a str r2, [r3, #52] @ 0x34 return HAL_OK; - 8005692: 2300 movs r3, #0 + 800590e: 2300 movs r3, #0 } - 8005694: 4618 mov r0, r3 - 8005696: 3708 adds r7, #8 - 8005698: 46bd mov sp, r7 - 800569a: bd80 pop {r7, pc} + 8005910: 4618 mov r0, r3 + 8005912: 3708 adds r7, #8 + 8005914: 46bd mov sp, r7 + 8005916: bd80 pop {r7, pc} -0800569c : +08005918 : * @param Size Amount of data elements (u8 or u16) to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout) { - 800569c: b580 push {r7, lr} - 800569e: b08a sub sp, #40 @ 0x28 - 80056a0: af02 add r7, sp, #8 - 80056a2: 60f8 str r0, [r7, #12] - 80056a4: 60b9 str r1, [r7, #8] - 80056a6: 603b str r3, [r7, #0] - 80056a8: 4613 mov r3, r2 - 80056aa: 80fb strh r3, [r7, #6] + 8005918: b580 push {r7, lr} + 800591a: b08a sub sp, #40 @ 0x28 + 800591c: af02 add r7, sp, #8 + 800591e: 60f8 str r0, [r7, #12] + 8005920: 60b9 str r1, [r7, #8] + 8005922: 603b str r3, [r7, #0] + 8005924: 4613 mov r3, r2 + 8005926: 80fb strh r3, [r7, #6] const uint8_t *pdata8bits; const uint16_t *pdata16bits; uint32_t tickstart = 0U; - 80056ac: 2300 movs r3, #0 - 80056ae: 617b str r3, [r7, #20] + 8005928: 2300 movs r3, #0 + 800592a: 617b str r3, [r7, #20] /* Check that a Tx process is not already ongoing */ if (huart->gState == HAL_UART_STATE_READY) - 80056b0: 68fb ldr r3, [r7, #12] - 80056b2: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 80056b6: b2db uxtb r3, r3 - 80056b8: 2b20 cmp r3, #32 - 80056ba: d175 bne.n 80057a8 + 800592c: 68fb ldr r3, [r7, #12] + 800592e: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 8005932: b2db uxtb r3, r3 + 8005934: 2b20 cmp r3, #32 + 8005936: d175 bne.n 8005a24 { if ((pData == NULL) || (Size == 0U)) - 80056bc: 68bb ldr r3, [r7, #8] - 80056be: 2b00 cmp r3, #0 - 80056c0: d002 beq.n 80056c8 - 80056c2: 88fb ldrh r3, [r7, #6] - 80056c4: 2b00 cmp r3, #0 - 80056c6: d101 bne.n 80056cc + 8005938: 68bb ldr r3, [r7, #8] + 800593a: 2b00 cmp r3, #0 + 800593c: d002 beq.n 8005944 + 800593e: 88fb ldrh r3, [r7, #6] + 8005940: 2b00 cmp r3, #0 + 8005942: d101 bne.n 8005948 { return HAL_ERROR; - 80056c8: 2301 movs r3, #1 - 80056ca: e06e b.n 80057aa + 8005944: 2301 movs r3, #1 + 8005946: e06e b.n 8005a26 } huart->ErrorCode = HAL_UART_ERROR_NONE; - 80056cc: 68fb ldr r3, [r7, #12] - 80056ce: 2200 movs r2, #0 - 80056d0: 645a str r2, [r3, #68] @ 0x44 + 8005948: 68fb ldr r3, [r7, #12] + 800594a: 2200 movs r2, #0 + 800594c: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_BUSY_TX; - 80056d2: 68fb ldr r3, [r7, #12] - 80056d4: 2221 movs r2, #33 @ 0x21 - 80056d6: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 800594e: 68fb ldr r3, [r7, #12] + 8005950: 2221 movs r2, #33 @ 0x21 + 8005952: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Init tickstart for timeout management */ tickstart = HAL_GetTick(); - 80056da: f7fd fac7 bl 8002c6c - 80056de: 6178 str r0, [r7, #20] + 8005956: f7fd fac7 bl 8002ee8 + 800595a: 6178 str r0, [r7, #20] huart->TxXferSize = Size; - 80056e0: 68fb ldr r3, [r7, #12] - 80056e2: 88fa ldrh r2, [r7, #6] - 80056e4: 849a strh r2, [r3, #36] @ 0x24 + 800595c: 68fb ldr r3, [r7, #12] + 800595e: 88fa ldrh r2, [r7, #6] + 8005960: 849a strh r2, [r3, #36] @ 0x24 huart->TxXferCount = Size; - 80056e6: 68fb ldr r3, [r7, #12] - 80056e8: 88fa ldrh r2, [r7, #6] - 80056ea: 84da strh r2, [r3, #38] @ 0x26 + 8005962: 68fb ldr r3, [r7, #12] + 8005964: 88fa ldrh r2, [r7, #6] + 8005966: 84da strh r2, [r3, #38] @ 0x26 /* In case of 9bits/No Parity transfer, pData needs to be handled as a uint16_t pointer */ if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 80056ec: 68fb ldr r3, [r7, #12] - 80056ee: 689b ldr r3, [r3, #8] - 80056f0: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 80056f4: d108 bne.n 8005708 - 80056f6: 68fb ldr r3, [r7, #12] - 80056f8: 691b ldr r3, [r3, #16] - 80056fa: 2b00 cmp r3, #0 - 80056fc: d104 bne.n 8005708 + 8005968: 68fb ldr r3, [r7, #12] + 800596a: 689b ldr r3, [r3, #8] + 800596c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 8005970: d108 bne.n 8005984 + 8005972: 68fb ldr r3, [r7, #12] + 8005974: 691b ldr r3, [r3, #16] + 8005976: 2b00 cmp r3, #0 + 8005978: d104 bne.n 8005984 { pdata8bits = NULL; - 80056fe: 2300 movs r3, #0 - 8005700: 61fb str r3, [r7, #28] + 800597a: 2300 movs r3, #0 + 800597c: 61fb str r3, [r7, #28] pdata16bits = (const uint16_t *) pData; - 8005702: 68bb ldr r3, [r7, #8] - 8005704: 61bb str r3, [r7, #24] - 8005706: e003 b.n 8005710 + 800597e: 68bb ldr r3, [r7, #8] + 8005980: 61bb str r3, [r7, #24] + 8005982: e003 b.n 800598c } else { pdata8bits = pData; - 8005708: 68bb ldr r3, [r7, #8] - 800570a: 61fb str r3, [r7, #28] + 8005984: 68bb ldr r3, [r7, #8] + 8005986: 61fb str r3, [r7, #28] pdata16bits = NULL; - 800570c: 2300 movs r3, #0 - 800570e: 61bb str r3, [r7, #24] + 8005988: 2300 movs r3, #0 + 800598a: 61bb str r3, [r7, #24] } while (huart->TxXferCount > 0U) - 8005710: e02e b.n 8005770 + 800598c: e02e b.n 80059ec { if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK) - 8005712: 683b ldr r3, [r7, #0] - 8005714: 9300 str r3, [sp, #0] - 8005716: 697b ldr r3, [r7, #20] - 8005718: 2200 movs r2, #0 - 800571a: 2180 movs r1, #128 @ 0x80 - 800571c: 68f8 ldr r0, [r7, #12] - 800571e: f000 fb01 bl 8005d24 - 8005722: 4603 mov r3, r0 - 8005724: 2b00 cmp r3, #0 - 8005726: d005 beq.n 8005734 + 800598e: 683b ldr r3, [r7, #0] + 8005990: 9300 str r3, [sp, #0] + 8005992: 697b ldr r3, [r7, #20] + 8005994: 2200 movs r2, #0 + 8005996: 2180 movs r1, #128 @ 0x80 + 8005998: 68f8 ldr r0, [r7, #12] + 800599a: f000 fb01 bl 8005fa0 + 800599e: 4603 mov r3, r0 + 80059a0: 2b00 cmp r3, #0 + 80059a2: d005 beq.n 80059b0 { huart->gState = HAL_UART_STATE_READY; - 8005728: 68fb ldr r3, [r7, #12] - 800572a: 2220 movs r2, #32 - 800572c: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 80059a4: 68fb ldr r3, [r7, #12] + 80059a6: 2220 movs r2, #32 + 80059a8: f883 2041 strb.w r2, [r3, #65] @ 0x41 return HAL_TIMEOUT; - 8005730: 2303 movs r3, #3 - 8005732: e03a b.n 80057aa + 80059ac: 2303 movs r3, #3 + 80059ae: e03a b.n 8005a26 } if (pdata8bits == NULL) - 8005734: 69fb ldr r3, [r7, #28] - 8005736: 2b00 cmp r3, #0 - 8005738: d10b bne.n 8005752 + 80059b0: 69fb ldr r3, [r7, #28] + 80059b2: 2b00 cmp r3, #0 + 80059b4: d10b bne.n 80059ce { huart->Instance->DR = (uint16_t)(*pdata16bits & 0x01FFU); - 800573a: 69bb ldr r3, [r7, #24] - 800573c: 881b ldrh r3, [r3, #0] - 800573e: 461a mov r2, r3 - 8005740: 68fb ldr r3, [r7, #12] - 8005742: 681b ldr r3, [r3, #0] - 8005744: f3c2 0208 ubfx r2, r2, #0, #9 - 8005748: 605a str r2, [r3, #4] + 80059b6: 69bb ldr r3, [r7, #24] + 80059b8: 881b ldrh r3, [r3, #0] + 80059ba: 461a mov r2, r3 + 80059bc: 68fb ldr r3, [r7, #12] + 80059be: 681b ldr r3, [r3, #0] + 80059c0: f3c2 0208 ubfx r2, r2, #0, #9 + 80059c4: 605a str r2, [r3, #4] pdata16bits++; - 800574a: 69bb ldr r3, [r7, #24] - 800574c: 3302 adds r3, #2 - 800574e: 61bb str r3, [r7, #24] - 8005750: e007 b.n 8005762 + 80059c6: 69bb ldr r3, [r7, #24] + 80059c8: 3302 adds r3, #2 + 80059ca: 61bb str r3, [r7, #24] + 80059cc: e007 b.n 80059de } else { huart->Instance->DR = (uint8_t)(*pdata8bits & 0xFFU); - 8005752: 69fb ldr r3, [r7, #28] - 8005754: 781a ldrb r2, [r3, #0] - 8005756: 68fb ldr r3, [r7, #12] - 8005758: 681b ldr r3, [r3, #0] - 800575a: 605a str r2, [r3, #4] + 80059ce: 69fb ldr r3, [r7, #28] + 80059d0: 781a ldrb r2, [r3, #0] + 80059d2: 68fb ldr r3, [r7, #12] + 80059d4: 681b ldr r3, [r3, #0] + 80059d6: 605a str r2, [r3, #4] pdata8bits++; - 800575c: 69fb ldr r3, [r7, #28] - 800575e: 3301 adds r3, #1 - 8005760: 61fb str r3, [r7, #28] + 80059d8: 69fb ldr r3, [r7, #28] + 80059da: 3301 adds r3, #1 + 80059dc: 61fb str r3, [r7, #28] } huart->TxXferCount--; - 8005762: 68fb ldr r3, [r7, #12] - 8005764: 8cdb ldrh r3, [r3, #38] @ 0x26 - 8005766: b29b uxth r3, r3 - 8005768: 3b01 subs r3, #1 - 800576a: b29a uxth r2, r3 - 800576c: 68fb ldr r3, [r7, #12] - 800576e: 84da strh r2, [r3, #38] @ 0x26 + 80059de: 68fb ldr r3, [r7, #12] + 80059e0: 8cdb ldrh r3, [r3, #38] @ 0x26 + 80059e2: b29b uxth r3, r3 + 80059e4: 3b01 subs r3, #1 + 80059e6: b29a uxth r2, r3 + 80059e8: 68fb ldr r3, [r7, #12] + 80059ea: 84da strh r2, [r3, #38] @ 0x26 while (huart->TxXferCount > 0U) - 8005770: 68fb ldr r3, [r7, #12] - 8005772: 8cdb ldrh r3, [r3, #38] @ 0x26 - 8005774: b29b uxth r3, r3 - 8005776: 2b00 cmp r3, #0 - 8005778: d1cb bne.n 8005712 + 80059ec: 68fb ldr r3, [r7, #12] + 80059ee: 8cdb ldrh r3, [r3, #38] @ 0x26 + 80059f0: b29b uxth r3, r3 + 80059f2: 2b00 cmp r3, #0 + 80059f4: d1cb bne.n 800598e } if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK) - 800577a: 683b ldr r3, [r7, #0] - 800577c: 9300 str r3, [sp, #0] - 800577e: 697b ldr r3, [r7, #20] - 8005780: 2200 movs r2, #0 - 8005782: 2140 movs r1, #64 @ 0x40 - 8005784: 68f8 ldr r0, [r7, #12] - 8005786: f000 facd bl 8005d24 - 800578a: 4603 mov r3, r0 - 800578c: 2b00 cmp r3, #0 - 800578e: d005 beq.n 800579c + 80059f6: 683b ldr r3, [r7, #0] + 80059f8: 9300 str r3, [sp, #0] + 80059fa: 697b ldr r3, [r7, #20] + 80059fc: 2200 movs r2, #0 + 80059fe: 2140 movs r1, #64 @ 0x40 + 8005a00: 68f8 ldr r0, [r7, #12] + 8005a02: f000 facd bl 8005fa0 + 8005a06: 4603 mov r3, r0 + 8005a08: 2b00 cmp r3, #0 + 8005a0a: d005 beq.n 8005a18 { huart->gState = HAL_UART_STATE_READY; - 8005790: 68fb ldr r3, [r7, #12] - 8005792: 2220 movs r2, #32 - 8005794: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8005a0c: 68fb ldr r3, [r7, #12] + 8005a0e: 2220 movs r2, #32 + 8005a10: f883 2041 strb.w r2, [r3, #65] @ 0x41 return HAL_TIMEOUT; - 8005798: 2303 movs r3, #3 - 800579a: e006 b.n 80057aa + 8005a14: 2303 movs r3, #3 + 8005a16: e006 b.n 8005a26 } /* At end of Tx process, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; - 800579c: 68fb ldr r3, [r7, #12] - 800579e: 2220 movs r2, #32 - 80057a0: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8005a18: 68fb ldr r3, [r7, #12] + 8005a1a: 2220 movs r2, #32 + 8005a1c: f883 2041 strb.w r2, [r3, #65] @ 0x41 return HAL_OK; - 80057a4: 2300 movs r3, #0 - 80057a6: e000 b.n 80057aa + 8005a20: 2300 movs r3, #0 + 8005a22: e000 b.n 8005a26 } else { return HAL_BUSY; - 80057a8: 2302 movs r3, #2 + 8005a24: 2302 movs r3, #2 } } - 80057aa: 4618 mov r0, r3 - 80057ac: 3720 adds r7, #32 - 80057ae: 46bd mov sp, r7 - 80057b0: bd80 pop {r7, pc} + 8005a26: 4618 mov r0, r3 + 8005a28: 3720 adds r7, #32 + 8005a2a: 46bd mov sp, r7 + 8005a2c: bd80 pop {r7, pc} ... -080057b4 : +08005a30 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ void HAL_UART_IRQHandler(UART_HandleTypeDef *huart) { - 80057b4: b580 push {r7, lr} - 80057b6: b0ba sub sp, #232 @ 0xe8 - 80057b8: af00 add r7, sp, #0 - 80057ba: 6078 str r0, [r7, #4] + 8005a30: b580 push {r7, lr} + 8005a32: b0ba sub sp, #232 @ 0xe8 + 8005a34: af00 add r7, sp, #0 + 8005a36: 6078 str r0, [r7, #4] uint32_t isrflags = READ_REG(huart->Instance->SR); - 80057bc: 687b ldr r3, [r7, #4] - 80057be: 681b ldr r3, [r3, #0] - 80057c0: 681b ldr r3, [r3, #0] - 80057c2: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 + 8005a38: 687b ldr r3, [r7, #4] + 8005a3a: 681b ldr r3, [r3, #0] + 8005a3c: 681b ldr r3, [r3, #0] + 8005a3e: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 uint32_t cr1its = READ_REG(huart->Instance->CR1); - 80057c6: 687b ldr r3, [r7, #4] - 80057c8: 681b ldr r3, [r3, #0] - 80057ca: 68db ldr r3, [r3, #12] - 80057cc: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 + 8005a42: 687b ldr r3, [r7, #4] + 8005a44: 681b ldr r3, [r3, #0] + 8005a46: 68db ldr r3, [r3, #12] + 8005a48: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 uint32_t cr3its = READ_REG(huart->Instance->CR3); - 80057d0: 687b ldr r3, [r7, #4] - 80057d2: 681b ldr r3, [r3, #0] - 80057d4: 695b ldr r3, [r3, #20] - 80057d6: f8c7 30dc str.w r3, [r7, #220] @ 0xdc + 8005a4c: 687b ldr r3, [r7, #4] + 8005a4e: 681b ldr r3, [r3, #0] + 8005a50: 695b ldr r3, [r3, #20] + 8005a52: f8c7 30dc str.w r3, [r7, #220] @ 0xdc uint32_t errorflags = 0x00U; - 80057da: 2300 movs r3, #0 - 80057dc: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 + 8005a56: 2300 movs r3, #0 + 8005a58: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 uint32_t dmarequest = 0x00U; - 80057e0: 2300 movs r3, #0 - 80057e2: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 + 8005a5c: 2300 movs r3, #0 + 8005a5e: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 /* If no error occurs */ errorflags = (isrflags & (uint32_t)(USART_SR_PE | USART_SR_FE | USART_SR_ORE | USART_SR_NE)); - 80057e6: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 80057ea: f003 030f and.w r3, r3, #15 - 80057ee: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 + 8005a62: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005a66: f003 030f and.w r3, r3, #15 + 8005a6a: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 if (errorflags == RESET) - 80057f2: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 - 80057f6: 2b00 cmp r3, #0 - 80057f8: d10f bne.n 800581a + 8005a6e: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 + 8005a72: 2b00 cmp r3, #0 + 8005a74: d10f bne.n 8005a96 { /* UART in mode Receiver -------------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) - 80057fa: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 80057fe: f003 0320 and.w r3, r3, #32 - 8005802: 2b00 cmp r3, #0 - 8005804: d009 beq.n 800581a - 8005806: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 800580a: f003 0320 and.w r3, r3, #32 - 800580e: 2b00 cmp r3, #0 - 8005810: d003 beq.n 800581a + 8005a76: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005a7a: f003 0320 and.w r3, r3, #32 + 8005a7e: 2b00 cmp r3, #0 + 8005a80: d009 beq.n 8005a96 + 8005a82: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005a86: f003 0320 and.w r3, r3, #32 + 8005a8a: 2b00 cmp r3, #0 + 8005a8c: d003 beq.n 8005a96 { UART_Receive_IT(huart); - 8005812: 6878 ldr r0, [r7, #4] - 8005814: f000 fbbc bl 8005f90 + 8005a8e: 6878 ldr r0, [r7, #4] + 8005a90: f000 fbbc bl 800620c return; - 8005818: e25b b.n 8005cd2 + 8005a94: e25b b.n 8005f4e } } /* If some errors occur */ if ((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) - 800581a: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 - 800581e: 2b00 cmp r3, #0 - 8005820: f000 80de beq.w 80059e0 - 8005824: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8005828: f003 0301 and.w r3, r3, #1 - 800582c: 2b00 cmp r3, #0 - 800582e: d106 bne.n 800583e + 8005a96: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 + 8005a9a: 2b00 cmp r3, #0 + 8005a9c: f000 80de beq.w 8005c5c + 8005aa0: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8005aa4: f003 0301 and.w r3, r3, #1 + 8005aa8: 2b00 cmp r3, #0 + 8005aaa: d106 bne.n 8005aba || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET))) - 8005830: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8005834: f403 7390 and.w r3, r3, #288 @ 0x120 - 8005838: 2b00 cmp r3, #0 - 800583a: f000 80d1 beq.w 80059e0 + 8005aac: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005ab0: f403 7390 and.w r3, r3, #288 @ 0x120 + 8005ab4: 2b00 cmp r3, #0 + 8005ab6: f000 80d1 beq.w 8005c5c { /* UART parity error interrupt occurred ----------------------------------*/ if (((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET)) - 800583e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8005842: f003 0301 and.w r3, r3, #1 - 8005846: 2b00 cmp r3, #0 - 8005848: d00b beq.n 8005862 - 800584a: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 800584e: f403 7380 and.w r3, r3, #256 @ 0x100 - 8005852: 2b00 cmp r3, #0 - 8005854: d005 beq.n 8005862 + 8005aba: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005abe: f003 0301 and.w r3, r3, #1 + 8005ac2: 2b00 cmp r3, #0 + 8005ac4: d00b beq.n 8005ade + 8005ac6: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005aca: f403 7380 and.w r3, r3, #256 @ 0x100 + 8005ace: 2b00 cmp r3, #0 + 8005ad0: d005 beq.n 8005ade { huart->ErrorCode |= HAL_UART_ERROR_PE; - 8005856: 687b ldr r3, [r7, #4] - 8005858: 6c5b ldr r3, [r3, #68] @ 0x44 - 800585a: f043 0201 orr.w r2, r3, #1 - 800585e: 687b ldr r3, [r7, #4] - 8005860: 645a str r2, [r3, #68] @ 0x44 + 8005ad2: 687b ldr r3, [r7, #4] + 8005ad4: 6c5b ldr r3, [r3, #68] @ 0x44 + 8005ad6: f043 0201 orr.w r2, r3, #1 + 8005ada: 687b ldr r3, [r7, #4] + 8005adc: 645a str r2, [r3, #68] @ 0x44 } /* UART noise error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) - 8005862: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8005866: f003 0304 and.w r3, r3, #4 - 800586a: 2b00 cmp r3, #0 - 800586c: d00b beq.n 8005886 - 800586e: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8005872: f003 0301 and.w r3, r3, #1 - 8005876: 2b00 cmp r3, #0 - 8005878: d005 beq.n 8005886 + 8005ade: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005ae2: f003 0304 and.w r3, r3, #4 + 8005ae6: 2b00 cmp r3, #0 + 8005ae8: d00b beq.n 8005b02 + 8005aea: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8005aee: f003 0301 and.w r3, r3, #1 + 8005af2: 2b00 cmp r3, #0 + 8005af4: d005 beq.n 8005b02 { huart->ErrorCode |= HAL_UART_ERROR_NE; - 800587a: 687b ldr r3, [r7, #4] - 800587c: 6c5b ldr r3, [r3, #68] @ 0x44 - 800587e: f043 0202 orr.w r2, r3, #2 - 8005882: 687b ldr r3, [r7, #4] - 8005884: 645a str r2, [r3, #68] @ 0x44 + 8005af6: 687b ldr r3, [r7, #4] + 8005af8: 6c5b ldr r3, [r3, #68] @ 0x44 + 8005afa: f043 0202 orr.w r2, r3, #2 + 8005afe: 687b ldr r3, [r7, #4] + 8005b00: 645a str r2, [r3, #68] @ 0x44 } /* UART frame error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) - 8005886: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 800588a: f003 0302 and.w r3, r3, #2 - 800588e: 2b00 cmp r3, #0 - 8005890: d00b beq.n 80058aa - 8005892: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8005896: f003 0301 and.w r3, r3, #1 - 800589a: 2b00 cmp r3, #0 - 800589c: d005 beq.n 80058aa + 8005b02: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005b06: f003 0302 and.w r3, r3, #2 + 8005b0a: 2b00 cmp r3, #0 + 8005b0c: d00b beq.n 8005b26 + 8005b0e: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8005b12: f003 0301 and.w r3, r3, #1 + 8005b16: 2b00 cmp r3, #0 + 8005b18: d005 beq.n 8005b26 { huart->ErrorCode |= HAL_UART_ERROR_FE; - 800589e: 687b ldr r3, [r7, #4] - 80058a0: 6c5b ldr r3, [r3, #68] @ 0x44 - 80058a2: f043 0204 orr.w r2, r3, #4 - 80058a6: 687b ldr r3, [r7, #4] - 80058a8: 645a str r2, [r3, #68] @ 0x44 + 8005b1a: 687b ldr r3, [r7, #4] + 8005b1c: 6c5b ldr r3, [r3, #68] @ 0x44 + 8005b1e: f043 0204 orr.w r2, r3, #4 + 8005b22: 687b ldr r3, [r7, #4] + 8005b24: 645a str r2, [r3, #68] @ 0x44 } /* UART Over-Run interrupt occurred --------------------------------------*/ if (((isrflags & USART_SR_ORE) != RESET) && (((cr1its & USART_CR1_RXNEIE) != RESET) - 80058aa: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 80058ae: f003 0308 and.w r3, r3, #8 - 80058b2: 2b00 cmp r3, #0 - 80058b4: d011 beq.n 80058da - 80058b6: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 80058ba: f003 0320 and.w r3, r3, #32 - 80058be: 2b00 cmp r3, #0 - 80058c0: d105 bne.n 80058ce + 8005b26: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005b2a: f003 0308 and.w r3, r3, #8 + 8005b2e: 2b00 cmp r3, #0 + 8005b30: d011 beq.n 8005b56 + 8005b32: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005b36: f003 0320 and.w r3, r3, #32 + 8005b3a: 2b00 cmp r3, #0 + 8005b3c: d105 bne.n 8005b4a || ((cr3its & USART_CR3_EIE) != RESET))) - 80058c2: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 80058c6: f003 0301 and.w r3, r3, #1 - 80058ca: 2b00 cmp r3, #0 - 80058cc: d005 beq.n 80058da + 8005b3e: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8005b42: f003 0301 and.w r3, r3, #1 + 8005b46: 2b00 cmp r3, #0 + 8005b48: d005 beq.n 8005b56 { huart->ErrorCode |= HAL_UART_ERROR_ORE; - 80058ce: 687b ldr r3, [r7, #4] - 80058d0: 6c5b ldr r3, [r3, #68] @ 0x44 - 80058d2: f043 0208 orr.w r2, r3, #8 - 80058d6: 687b ldr r3, [r7, #4] - 80058d8: 645a str r2, [r3, #68] @ 0x44 + 8005b4a: 687b ldr r3, [r7, #4] + 8005b4c: 6c5b ldr r3, [r3, #68] @ 0x44 + 8005b4e: f043 0208 orr.w r2, r3, #8 + 8005b52: 687b ldr r3, [r7, #4] + 8005b54: 645a str r2, [r3, #68] @ 0x44 } /* Call UART Error Call back function if need be --------------------------*/ if (huart->ErrorCode != HAL_UART_ERROR_NONE) - 80058da: 687b ldr r3, [r7, #4] - 80058dc: 6c5b ldr r3, [r3, #68] @ 0x44 - 80058de: 2b00 cmp r3, #0 - 80058e0: f000 81f2 beq.w 8005cc8 + 8005b56: 687b ldr r3, [r7, #4] + 8005b58: 6c5b ldr r3, [r3, #68] @ 0x44 + 8005b5a: 2b00 cmp r3, #0 + 8005b5c: f000 81f2 beq.w 8005f44 { /* UART in mode Receiver -----------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) - 80058e4: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 80058e8: f003 0320 and.w r3, r3, #32 - 80058ec: 2b00 cmp r3, #0 - 80058ee: d008 beq.n 8005902 - 80058f0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 80058f4: f003 0320 and.w r3, r3, #32 - 80058f8: 2b00 cmp r3, #0 - 80058fa: d002 beq.n 8005902 + 8005b60: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005b64: f003 0320 and.w r3, r3, #32 + 8005b68: 2b00 cmp r3, #0 + 8005b6a: d008 beq.n 8005b7e + 8005b6c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005b70: f003 0320 and.w r3, r3, #32 + 8005b74: 2b00 cmp r3, #0 + 8005b76: d002 beq.n 8005b7e { UART_Receive_IT(huart); - 80058fc: 6878 ldr r0, [r7, #4] - 80058fe: f000 fb47 bl 8005f90 + 8005b78: 6878 ldr r0, [r7, #4] + 8005b7a: f000 fb47 bl 800620c } /* If Overrun error occurs, or if any error occurs in DMA mode reception, consider error as blocking */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR); - 8005902: 687b ldr r3, [r7, #4] - 8005904: 681b ldr r3, [r3, #0] - 8005906: 695b ldr r3, [r3, #20] - 8005908: f003 0340 and.w r3, r3, #64 @ 0x40 - 800590c: 2b00 cmp r3, #0 - 800590e: bf14 ite ne - 8005910: 2301 movne r3, #1 - 8005912: 2300 moveq r3, #0 - 8005914: b2db uxtb r3, r3 - 8005916: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 + 8005b7e: 687b ldr r3, [r7, #4] + 8005b80: 681b ldr r3, [r3, #0] + 8005b82: 695b ldr r3, [r3, #20] + 8005b84: f003 0340 and.w r3, r3, #64 @ 0x40 + 8005b88: 2b00 cmp r3, #0 + 8005b8a: bf14 ite ne + 8005b8c: 2301 movne r3, #1 + 8005b8e: 2300 moveq r3, #0 + 8005b90: b2db uxtb r3, r3 + 8005b92: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 if (((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest) - 800591a: 687b ldr r3, [r7, #4] - 800591c: 6c5b ldr r3, [r3, #68] @ 0x44 - 800591e: f003 0308 and.w r3, r3, #8 - 8005922: 2b00 cmp r3, #0 - 8005924: d103 bne.n 800592e - 8005926: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4 - 800592a: 2b00 cmp r3, #0 - 800592c: d04f beq.n 80059ce + 8005b96: 687b ldr r3, [r7, #4] + 8005b98: 6c5b ldr r3, [r3, #68] @ 0x44 + 8005b9a: f003 0308 and.w r3, r3, #8 + 8005b9e: 2b00 cmp r3, #0 + 8005ba0: d103 bne.n 8005baa + 8005ba2: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4 + 8005ba6: 2b00 cmp r3, #0 + 8005ba8: d04f beq.n 8005c4a { /* Blocking error : transfer is aborted Set the UART state ready to be able to start again the process, Disable Rx Interrupts, and disable Rx DMA request, if ongoing */ UART_EndRxTransfer(huart); - 800592e: 6878 ldr r0, [r7, #4] - 8005930: f000 fa51 bl 8005dd6 + 8005baa: 6878 ldr r0, [r7, #4] + 8005bac: f000 fa51 bl 8006052 /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8005934: 687b ldr r3, [r7, #4] - 8005936: 681b ldr r3, [r3, #0] - 8005938: 695b ldr r3, [r3, #20] - 800593a: f003 0340 and.w r3, r3, #64 @ 0x40 - 800593e: 2b00 cmp r3, #0 - 8005940: d041 beq.n 80059c6 + 8005bb0: 687b ldr r3, [r7, #4] + 8005bb2: 681b ldr r3, [r3, #0] + 8005bb4: 695b ldr r3, [r3, #20] + 8005bb6: f003 0340 and.w r3, r3, #64 @ 0x40 + 8005bba: 2b00 cmp r3, #0 + 8005bbc: d041 beq.n 8005c42 { ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - 8005942: 687b ldr r3, [r7, #4] - 8005944: 681b ldr r3, [r3, #0] - 8005946: 3314 adds r3, #20 - 8005948: f8c7 309c str.w r3, [r7, #156] @ 0x9c + 8005bbe: 687b ldr r3, [r7, #4] + 8005bc0: 681b ldr r3, [r3, #0] + 8005bc2: 3314 adds r3, #20 + 8005bc4: f8c7 309c str.w r3, [r7, #156] @ 0x9c */ __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr) { uint32_t result; __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800594c: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c - 8005950: e853 3f00 ldrex r3, [r3] - 8005954: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 8005bc8: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c + 8005bcc: e853 3f00 ldrex r3, [r3] + 8005bd0: f8c7 3098 str.w r3, [r7, #152] @ 0x98 return(result); - 8005958: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 - 800595c: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8005960: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 - 8005964: 687b ldr r3, [r7, #4] - 8005966: 681b ldr r3, [r3, #0] - 8005968: 3314 adds r3, #20 - 800596a: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0 - 800596e: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8 - 8005972: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 8005bd4: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 + 8005bd8: f023 0340 bic.w r3, r3, #64 @ 0x40 + 8005bdc: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 + 8005be0: 687b ldr r3, [r7, #4] + 8005be2: 681b ldr r3, [r3, #0] + 8005be4: 3314 adds r3, #20 + 8005be6: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0 + 8005bea: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8 + 8005bee: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 */ __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr) { uint32_t result; __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005976: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4 - 800597a: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8 - 800597e: e841 2300 strex r3, r2, [r1] - 8005982: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 + 8005bf2: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4 + 8005bf6: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8 + 8005bfa: e841 2300 strex r3, r2, [r1] + 8005bfe: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 return(result); - 8005986: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 - 800598a: 2b00 cmp r3, #0 - 800598c: d1d9 bne.n 8005942 + 8005c02: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 + 8005c06: 2b00 cmp r3, #0 + 8005c08: d1d9 bne.n 8005bbe /* Abort the UART DMA Rx channel */ if (huart->hdmarx != NULL) - 800598e: 687b ldr r3, [r7, #4] - 8005990: 6bdb ldr r3, [r3, #60] @ 0x3c - 8005992: 2b00 cmp r3, #0 - 8005994: d013 beq.n 80059be + 8005c0a: 687b ldr r3, [r7, #4] + 8005c0c: 6bdb ldr r3, [r3, #60] @ 0x3c + 8005c0e: 2b00 cmp r3, #0 + 8005c10: d013 beq.n 8005c3a { /* Set the UART DMA Abort callback : will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */ huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError; - 8005996: 687b ldr r3, [r7, #4] - 8005998: 6bdb ldr r3, [r3, #60] @ 0x3c - 800599a: 4a7e ldr r2, [pc, #504] @ (8005b94 ) - 800599c: 635a str r2, [r3, #52] @ 0x34 + 8005c12: 687b ldr r3, [r7, #4] + 8005c14: 6bdb ldr r3, [r3, #60] @ 0x3c + 8005c16: 4a7e ldr r2, [pc, #504] @ (8005e10 ) + 8005c18: 635a str r2, [r3, #52] @ 0x34 if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) - 800599e: 687b ldr r3, [r7, #4] - 80059a0: 6bdb ldr r3, [r3, #60] @ 0x3c - 80059a2: 4618 mov r0, r3 - 80059a4: f7fd fcea bl 800337c - 80059a8: 4603 mov r3, r0 - 80059aa: 2b00 cmp r3, #0 - 80059ac: d016 beq.n 80059dc + 8005c1a: 687b ldr r3, [r7, #4] + 8005c1c: 6bdb ldr r3, [r3, #60] @ 0x3c + 8005c1e: 4618 mov r0, r3 + 8005c20: f7fd fcea bl 80035f8 + 8005c24: 4603 mov r3, r0 + 8005c26: 2b00 cmp r3, #0 + 8005c28: d016 beq.n 8005c58 { /* Call Directly XferAbortCallback function in case of error */ huart->hdmarx->XferAbortCallback(huart->hdmarx); - 80059ae: 687b ldr r3, [r7, #4] - 80059b0: 6bdb ldr r3, [r3, #60] @ 0x3c - 80059b2: 6b5b ldr r3, [r3, #52] @ 0x34 - 80059b4: 687a ldr r2, [r7, #4] - 80059b6: 6bd2 ldr r2, [r2, #60] @ 0x3c - 80059b8: 4610 mov r0, r2 - 80059ba: 4798 blx r3 + 8005c2a: 687b ldr r3, [r7, #4] + 8005c2c: 6bdb ldr r3, [r3, #60] @ 0x3c + 8005c2e: 6b5b ldr r3, [r3, #52] @ 0x34 + 8005c30: 687a ldr r2, [r7, #4] + 8005c32: 6bd2 ldr r2, [r2, #60] @ 0x3c + 8005c34: 4610 mov r0, r2 + 8005c36: 4798 blx r3 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 80059bc: e00e b.n 80059dc + 8005c38: e00e b.n 8005c58 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 80059be: 6878 ldr r0, [r7, #4] - 80059c0: f000 f99c bl 8005cfc + 8005c3a: 6878 ldr r0, [r7, #4] + 8005c3c: f000 f99c bl 8005f78 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 80059c4: e00a b.n 80059dc + 8005c40: e00a b.n 8005c58 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 80059c6: 6878 ldr r0, [r7, #4] - 80059c8: f000 f998 bl 8005cfc + 8005c42: 6878 ldr r0, [r7, #4] + 8005c44: f000 f998 bl 8005f78 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 80059cc: e006 b.n 80059dc + 8005c48: e006 b.n 8005c58 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 80059ce: 6878 ldr r0, [r7, #4] - 80059d0: f000 f994 bl 8005cfc + 8005c4a: 6878 ldr r0, [r7, #4] + 8005c4c: f000 f994 bl 8005f78 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 80059d4: 687b ldr r3, [r7, #4] - 80059d6: 2200 movs r2, #0 - 80059d8: 645a str r2, [r3, #68] @ 0x44 + 8005c50: 687b ldr r3, [r7, #4] + 8005c52: 2200 movs r2, #0 + 8005c54: 645a str r2, [r3, #68] @ 0x44 } } return; - 80059da: e175 b.n 8005cc8 + 8005c56: e175 b.n 8005f44 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 80059dc: bf00 nop + 8005c58: bf00 nop return; - 80059de: e173 b.n 8005cc8 + 8005c5a: e173 b.n 8005f44 } /* End if some error occurs */ /* Check current reception Mode : If Reception till IDLE event has been selected : */ if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 80059e0: 687b ldr r3, [r7, #4] - 80059e2: 6b1b ldr r3, [r3, #48] @ 0x30 - 80059e4: 2b01 cmp r3, #1 - 80059e6: f040 814f bne.w 8005c88 + 8005c5c: 687b ldr r3, [r7, #4] + 8005c5e: 6b1b ldr r3, [r3, #48] @ 0x30 + 8005c60: 2b01 cmp r3, #1 + 8005c62: f040 814f bne.w 8005f04 && ((isrflags & USART_SR_IDLE) != 0U) - 80059ea: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 80059ee: f003 0310 and.w r3, r3, #16 - 80059f2: 2b00 cmp r3, #0 - 80059f4: f000 8148 beq.w 8005c88 + 8005c66: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005c6a: f003 0310 and.w r3, r3, #16 + 8005c6e: 2b00 cmp r3, #0 + 8005c70: f000 8148 beq.w 8005f04 && ((cr1its & USART_SR_IDLE) != 0U)) - 80059f8: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 80059fc: f003 0310 and.w r3, r3, #16 - 8005a00: 2b00 cmp r3, #0 - 8005a02: f000 8141 beq.w 8005c88 + 8005c74: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005c78: f003 0310 and.w r3, r3, #16 + 8005c7c: 2b00 cmp r3, #0 + 8005c7e: f000 8141 beq.w 8005f04 { __HAL_UART_CLEAR_IDLEFLAG(huart); - 8005a06: 2300 movs r3, #0 - 8005a08: 60bb str r3, [r7, #8] - 8005a0a: 687b ldr r3, [r7, #4] - 8005a0c: 681b ldr r3, [r3, #0] - 8005a0e: 681b ldr r3, [r3, #0] - 8005a10: 60bb str r3, [r7, #8] - 8005a12: 687b ldr r3, [r7, #4] - 8005a14: 681b ldr r3, [r3, #0] - 8005a16: 685b ldr r3, [r3, #4] - 8005a18: 60bb str r3, [r7, #8] - 8005a1a: 68bb ldr r3, [r7, #8] + 8005c82: 2300 movs r3, #0 + 8005c84: 60bb str r3, [r7, #8] + 8005c86: 687b ldr r3, [r7, #4] + 8005c88: 681b ldr r3, [r3, #0] + 8005c8a: 681b ldr r3, [r3, #0] + 8005c8c: 60bb str r3, [r7, #8] + 8005c8e: 687b ldr r3, [r7, #4] + 8005c90: 681b ldr r3, [r3, #0] + 8005c92: 685b ldr r3, [r3, #4] + 8005c94: 60bb str r3, [r7, #8] + 8005c96: 68bb ldr r3, [r7, #8] /* Check if DMA mode is enabled in UART */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8005a1c: 687b ldr r3, [r7, #4] - 8005a1e: 681b ldr r3, [r3, #0] - 8005a20: 695b ldr r3, [r3, #20] - 8005a22: f003 0340 and.w r3, r3, #64 @ 0x40 - 8005a26: 2b00 cmp r3, #0 - 8005a28: f000 80b6 beq.w 8005b98 + 8005c98: 687b ldr r3, [r7, #4] + 8005c9a: 681b ldr r3, [r3, #0] + 8005c9c: 695b ldr r3, [r3, #20] + 8005c9e: f003 0340 and.w r3, r3, #64 @ 0x40 + 8005ca2: 2b00 cmp r3, #0 + 8005ca4: f000 80b6 beq.w 8005e14 { /* DMA mode enabled */ /* Check received length : If all expected data are received, do nothing, (DMA cplt callback will be called). Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx); - 8005a2c: 687b ldr r3, [r7, #4] - 8005a2e: 6bdb ldr r3, [r3, #60] @ 0x3c - 8005a30: 681b ldr r3, [r3, #0] - 8005a32: 685b ldr r3, [r3, #4] - 8005a34: f8a7 30be strh.w r3, [r7, #190] @ 0xbe + 8005ca8: 687b ldr r3, [r7, #4] + 8005caa: 6bdb ldr r3, [r3, #60] @ 0x3c + 8005cac: 681b ldr r3, [r3, #0] + 8005cae: 685b ldr r3, [r3, #4] + 8005cb0: f8a7 30be strh.w r3, [r7, #190] @ 0xbe if ((nb_remaining_rx_data > 0U) - 8005a38: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe - 8005a3c: 2b00 cmp r3, #0 - 8005a3e: f000 8145 beq.w 8005ccc + 8005cb4: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe + 8005cb8: 2b00 cmp r3, #0 + 8005cba: f000 8145 beq.w 8005f48 && (nb_remaining_rx_data < huart->RxXferSize)) - 8005a42: 687b ldr r3, [r7, #4] - 8005a44: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8005a46: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 8005a4a: 429a cmp r2, r3 - 8005a4c: f080 813e bcs.w 8005ccc + 8005cbe: 687b ldr r3, [r7, #4] + 8005cc0: 8d9b ldrh r3, [r3, #44] @ 0x2c + 8005cc2: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 8005cc6: 429a cmp r2, r3 + 8005cc8: f080 813e bcs.w 8005f48 { /* Reception is not complete */ huart->RxXferCount = nb_remaining_rx_data; - 8005a50: 687b ldr r3, [r7, #4] - 8005a52: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 8005a56: 85da strh r2, [r3, #46] @ 0x2e + 8005ccc: 687b ldr r3, [r7, #4] + 8005cce: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 8005cd2: 85da strh r2, [r3, #46] @ 0x2e /* In Normal mode, end DMA xfer and HAL UART Rx process*/ if (huart->hdmarx->Init.Mode != DMA_CIRCULAR) - 8005a58: 687b ldr r3, [r7, #4] - 8005a5a: 6bdb ldr r3, [r3, #60] @ 0x3c - 8005a5c: 699b ldr r3, [r3, #24] - 8005a5e: 2b20 cmp r3, #32 - 8005a60: f000 8088 beq.w 8005b74 + 8005cd4: 687b ldr r3, [r7, #4] + 8005cd6: 6bdb ldr r3, [r3, #60] @ 0x3c + 8005cd8: 699b ldr r3, [r3, #24] + 8005cda: 2b20 cmp r3, #32 + 8005cdc: f000 8088 beq.w 8005df0 { /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - 8005a64: 687b ldr r3, [r7, #4] - 8005a66: 681b ldr r3, [r3, #0] - 8005a68: 330c adds r3, #12 - 8005a6a: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 8005ce0: 687b ldr r3, [r7, #4] + 8005ce2: 681b ldr r3, [r3, #0] + 8005ce4: 330c adds r3, #12 + 8005ce6: f8c7 3088 str.w r3, [r7, #136] @ 0x88 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005a6e: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 - 8005a72: e853 3f00 ldrex r3, [r3] - 8005a76: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + 8005cea: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 + 8005cee: e853 3f00 ldrex r3, [r3] + 8005cf2: f8c7 3084 str.w r3, [r7, #132] @ 0x84 return(result); - 8005a7a: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 - 8005a7e: f423 7380 bic.w r3, r3, #256 @ 0x100 - 8005a82: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 - 8005a86: 687b ldr r3, [r7, #4] - 8005a88: 681b ldr r3, [r3, #0] - 8005a8a: 330c adds r3, #12 - 8005a8c: f8d7 20b8 ldr.w r2, [r7, #184] @ 0xb8 - 8005a90: f8c7 2094 str.w r2, [r7, #148] @ 0x94 - 8005a94: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 8005cf6: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 8005cfa: f423 7380 bic.w r3, r3, #256 @ 0x100 + 8005cfe: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 + 8005d02: 687b ldr r3, [r7, #4] + 8005d04: 681b ldr r3, [r3, #0] + 8005d06: 330c adds r3, #12 + 8005d08: f8d7 20b8 ldr.w r2, [r7, #184] @ 0xb8 + 8005d0c: f8c7 2094 str.w r2, [r7, #148] @ 0x94 + 8005d10: f8c7 3090 str.w r3, [r7, #144] @ 0x90 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005a98: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90 - 8005a9c: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 - 8005aa0: e841 2300 strex r3, r2, [r1] - 8005aa4: f8c7 308c str.w r3, [r7, #140] @ 0x8c + 8005d14: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90 + 8005d18: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 + 8005d1c: e841 2300 strex r3, r2, [r1] + 8005d20: f8c7 308c str.w r3, [r7, #140] @ 0x8c return(result); - 8005aa8: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c - 8005aac: 2b00 cmp r3, #0 - 8005aae: d1d9 bne.n 8005a64 + 8005d24: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c + 8005d28: 2b00 cmp r3, #0 + 8005d2a: d1d9 bne.n 8005ce0 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8005ab0: 687b ldr r3, [r7, #4] - 8005ab2: 681b ldr r3, [r3, #0] - 8005ab4: 3314 adds r3, #20 - 8005ab6: 677b str r3, [r7, #116] @ 0x74 + 8005d2c: 687b ldr r3, [r7, #4] + 8005d2e: 681b ldr r3, [r3, #0] + 8005d30: 3314 adds r3, #20 + 8005d32: 677b str r3, [r7, #116] @ 0x74 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005ab8: 6f7b ldr r3, [r7, #116] @ 0x74 - 8005aba: e853 3f00 ldrex r3, [r3] - 8005abe: 673b str r3, [r7, #112] @ 0x70 + 8005d34: 6f7b ldr r3, [r7, #116] @ 0x74 + 8005d36: e853 3f00 ldrex r3, [r3] + 8005d3a: 673b str r3, [r7, #112] @ 0x70 return(result); - 8005ac0: 6f3b ldr r3, [r7, #112] @ 0x70 - 8005ac2: f023 0301 bic.w r3, r3, #1 - 8005ac6: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 8005aca: 687b ldr r3, [r7, #4] - 8005acc: 681b ldr r3, [r3, #0] - 8005ace: 3314 adds r3, #20 - 8005ad0: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 - 8005ad4: f8c7 2080 str.w r2, [r7, #128] @ 0x80 - 8005ad8: 67fb str r3, [r7, #124] @ 0x7c + 8005d3c: 6f3b ldr r3, [r7, #112] @ 0x70 + 8005d3e: f023 0301 bic.w r3, r3, #1 + 8005d42: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8005d46: 687b ldr r3, [r7, #4] + 8005d48: 681b ldr r3, [r3, #0] + 8005d4a: 3314 adds r3, #20 + 8005d4c: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 + 8005d50: f8c7 2080 str.w r2, [r7, #128] @ 0x80 + 8005d54: 67fb str r3, [r7, #124] @ 0x7c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005ada: 6ff9 ldr r1, [r7, #124] @ 0x7c - 8005adc: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 - 8005ae0: e841 2300 strex r3, r2, [r1] - 8005ae4: 67bb str r3, [r7, #120] @ 0x78 + 8005d56: 6ff9 ldr r1, [r7, #124] @ 0x7c + 8005d58: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 + 8005d5c: e841 2300 strex r3, r2, [r1] + 8005d60: 67bb str r3, [r7, #120] @ 0x78 return(result); - 8005ae6: 6fbb ldr r3, [r7, #120] @ 0x78 - 8005ae8: 2b00 cmp r3, #0 - 8005aea: d1e1 bne.n 8005ab0 + 8005d62: 6fbb ldr r3, [r7, #120] @ 0x78 + 8005d64: 2b00 cmp r3, #0 + 8005d66: d1e1 bne.n 8005d2c /* Disable the DMA transfer for the receiver request by resetting the DMAR bit in the UART CR3 register */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - 8005aec: 687b ldr r3, [r7, #4] - 8005aee: 681b ldr r3, [r3, #0] - 8005af0: 3314 adds r3, #20 - 8005af2: 663b str r3, [r7, #96] @ 0x60 + 8005d68: 687b ldr r3, [r7, #4] + 8005d6a: 681b ldr r3, [r3, #0] + 8005d6c: 3314 adds r3, #20 + 8005d6e: 663b str r3, [r7, #96] @ 0x60 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005af4: 6e3b ldr r3, [r7, #96] @ 0x60 - 8005af6: e853 3f00 ldrex r3, [r3] - 8005afa: 65fb str r3, [r7, #92] @ 0x5c + 8005d70: 6e3b ldr r3, [r7, #96] @ 0x60 + 8005d72: e853 3f00 ldrex r3, [r3] + 8005d76: 65fb str r3, [r7, #92] @ 0x5c return(result); - 8005afc: 6dfb ldr r3, [r7, #92] @ 0x5c - 8005afe: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8005b02: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - 8005b06: 687b ldr r3, [r7, #4] - 8005b08: 681b ldr r3, [r3, #0] - 8005b0a: 3314 adds r3, #20 - 8005b0c: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0 - 8005b10: 66fa str r2, [r7, #108] @ 0x6c - 8005b12: 66bb str r3, [r7, #104] @ 0x68 + 8005d78: 6dfb ldr r3, [r7, #92] @ 0x5c + 8005d7a: f023 0340 bic.w r3, r3, #64 @ 0x40 + 8005d7e: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8005d82: 687b ldr r3, [r7, #4] + 8005d84: 681b ldr r3, [r3, #0] + 8005d86: 3314 adds r3, #20 + 8005d88: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0 + 8005d8c: 66fa str r2, [r7, #108] @ 0x6c + 8005d8e: 66bb str r3, [r7, #104] @ 0x68 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005b14: 6eb9 ldr r1, [r7, #104] @ 0x68 - 8005b16: 6efa ldr r2, [r7, #108] @ 0x6c - 8005b18: e841 2300 strex r3, r2, [r1] - 8005b1c: 667b str r3, [r7, #100] @ 0x64 + 8005d90: 6eb9 ldr r1, [r7, #104] @ 0x68 + 8005d92: 6efa ldr r2, [r7, #108] @ 0x6c + 8005d94: e841 2300 strex r3, r2, [r1] + 8005d98: 667b str r3, [r7, #100] @ 0x64 return(result); - 8005b1e: 6e7b ldr r3, [r7, #100] @ 0x64 - 8005b20: 2b00 cmp r3, #0 - 8005b22: d1e3 bne.n 8005aec + 8005d9a: 6e7b ldr r3, [r7, #100] @ 0x64 + 8005d9c: 2b00 cmp r3, #0 + 8005d9e: d1e3 bne.n 8005d68 /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8005b24: 687b ldr r3, [r7, #4] - 8005b26: 2220 movs r2, #32 - 8005b28: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8005da0: 687b ldr r3, [r7, #4] + 8005da2: 2220 movs r2, #32 + 8005da4: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8005b2c: 687b ldr r3, [r7, #4] - 8005b2e: 2200 movs r2, #0 - 8005b30: 631a str r2, [r3, #48] @ 0x30 + 8005da8: 687b ldr r3, [r7, #4] + 8005daa: 2200 movs r2, #0 + 8005dac: 631a str r2, [r3, #48] @ 0x30 ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8005b32: 687b ldr r3, [r7, #4] - 8005b34: 681b ldr r3, [r3, #0] - 8005b36: 330c adds r3, #12 - 8005b38: 64fb str r3, [r7, #76] @ 0x4c + 8005dae: 687b ldr r3, [r7, #4] + 8005db0: 681b ldr r3, [r3, #0] + 8005db2: 330c adds r3, #12 + 8005db4: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005b3a: 6cfb ldr r3, [r7, #76] @ 0x4c - 8005b3c: e853 3f00 ldrex r3, [r3] - 8005b40: 64bb str r3, [r7, #72] @ 0x48 + 8005db6: 6cfb ldr r3, [r7, #76] @ 0x4c + 8005db8: e853 3f00 ldrex r3, [r3] + 8005dbc: 64bb str r3, [r7, #72] @ 0x48 return(result); - 8005b42: 6cbb ldr r3, [r7, #72] @ 0x48 - 8005b44: f023 0310 bic.w r3, r3, #16 - 8005b48: f8c7 30ac str.w r3, [r7, #172] @ 0xac - 8005b4c: 687b ldr r3, [r7, #4] - 8005b4e: 681b ldr r3, [r3, #0] - 8005b50: 330c adds r3, #12 - 8005b52: f8d7 20ac ldr.w r2, [r7, #172] @ 0xac - 8005b56: 65ba str r2, [r7, #88] @ 0x58 - 8005b58: 657b str r3, [r7, #84] @ 0x54 + 8005dbe: 6cbb ldr r3, [r7, #72] @ 0x48 + 8005dc0: f023 0310 bic.w r3, r3, #16 + 8005dc4: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8005dc8: 687b ldr r3, [r7, #4] + 8005dca: 681b ldr r3, [r3, #0] + 8005dcc: 330c adds r3, #12 + 8005dce: f8d7 20ac ldr.w r2, [r7, #172] @ 0xac + 8005dd2: 65ba str r2, [r7, #88] @ 0x58 + 8005dd4: 657b str r3, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005b5a: 6d79 ldr r1, [r7, #84] @ 0x54 - 8005b5c: 6dba ldr r2, [r7, #88] @ 0x58 - 8005b5e: e841 2300 strex r3, r2, [r1] - 8005b62: 653b str r3, [r7, #80] @ 0x50 + 8005dd6: 6d79 ldr r1, [r7, #84] @ 0x54 + 8005dd8: 6dba ldr r2, [r7, #88] @ 0x58 + 8005dda: e841 2300 strex r3, r2, [r1] + 8005dde: 653b str r3, [r7, #80] @ 0x50 return(result); - 8005b64: 6d3b ldr r3, [r7, #80] @ 0x50 - 8005b66: 2b00 cmp r3, #0 - 8005b68: d1e3 bne.n 8005b32 + 8005de0: 6d3b ldr r3, [r7, #80] @ 0x50 + 8005de2: 2b00 cmp r3, #0 + 8005de4: d1e3 bne.n 8005dae /* Last bytes received, so no need as the abort is immediate */ (void)HAL_DMA_Abort(huart->hdmarx); - 8005b6a: 687b ldr r3, [r7, #4] - 8005b6c: 6bdb ldr r3, [r3, #60] @ 0x3c - 8005b6e: 4618 mov r0, r3 - 8005b70: f7fd fbc9 bl 8003306 + 8005de6: 687b ldr r3, [r7, #4] + 8005de8: 6bdb ldr r3, [r3, #60] @ 0x3c + 8005dea: 4618 mov r0, r3 + 8005dec: f7fd fbc9 bl 8003582 } /* Initialize type of RxEvent that correspond to RxEvent callback execution; In this case, Rx Event type is Idle Event */ huart->RxEventType = HAL_UART_RXEVENT_IDLE; - 8005b74: 687b ldr r3, [r7, #4] - 8005b76: 2202 movs r2, #2 - 8005b78: 635a str r2, [r3, #52] @ 0x34 + 8005df0: 687b ldr r3, [r7, #4] + 8005df2: 2202 movs r2, #2 + 8005df4: 635a str r2, [r3, #52] @ 0x34 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); - 8005b7a: 687b ldr r3, [r7, #4] - 8005b7c: 8d9a ldrh r2, [r3, #44] @ 0x2c - 8005b7e: 687b ldr r3, [r7, #4] - 8005b80: 8ddb ldrh r3, [r3, #46] @ 0x2e - 8005b82: b29b uxth r3, r3 - 8005b84: 1ad3 subs r3, r2, r3 - 8005b86: b29b uxth r3, r3 - 8005b88: 4619 mov r1, r3 - 8005b8a: 6878 ldr r0, [r7, #4] - 8005b8c: f000 f8bf bl 8005d0e + 8005df6: 687b ldr r3, [r7, #4] + 8005df8: 8d9a ldrh r2, [r3, #44] @ 0x2c + 8005dfa: 687b ldr r3, [r7, #4] + 8005dfc: 8ddb ldrh r3, [r3, #46] @ 0x2e + 8005dfe: b29b uxth r3, r3 + 8005e00: 1ad3 subs r3, r2, r3 + 8005e02: b29b uxth r3, r3 + 8005e04: 4619 mov r1, r3 + 8005e06: 6878 ldr r0, [r7, #4] + 8005e08: f000 f8bf bl 8005f8a #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return; - 8005b90: e09c b.n 8005ccc - 8005b92: bf00 nop - 8005b94: 08005e9b .word 0x08005e9b + 8005e0c: e09c b.n 8005f48 + 8005e0e: bf00 nop + 8005e10: 08006117 .word 0x08006117 else { /* DMA mode not enabled */ /* Check received length : If all expected data are received, do nothing. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount; - 8005b98: 687b ldr r3, [r7, #4] - 8005b9a: 8d9a ldrh r2, [r3, #44] @ 0x2c - 8005b9c: 687b ldr r3, [r7, #4] - 8005b9e: 8ddb ldrh r3, [r3, #46] @ 0x2e - 8005ba0: b29b uxth r3, r3 - 8005ba2: 1ad3 subs r3, r2, r3 - 8005ba4: f8a7 30ce strh.w r3, [r7, #206] @ 0xce + 8005e14: 687b ldr r3, [r7, #4] + 8005e16: 8d9a ldrh r2, [r3, #44] @ 0x2c + 8005e18: 687b ldr r3, [r7, #4] + 8005e1a: 8ddb ldrh r3, [r3, #46] @ 0x2e + 8005e1c: b29b uxth r3, r3 + 8005e1e: 1ad3 subs r3, r2, r3 + 8005e20: f8a7 30ce strh.w r3, [r7, #206] @ 0xce if ((huart->RxXferCount > 0U) - 8005ba8: 687b ldr r3, [r7, #4] - 8005baa: 8ddb ldrh r3, [r3, #46] @ 0x2e - 8005bac: b29b uxth r3, r3 - 8005bae: 2b00 cmp r3, #0 - 8005bb0: f000 808e beq.w 8005cd0 + 8005e24: 687b ldr r3, [r7, #4] + 8005e26: 8ddb ldrh r3, [r3, #46] @ 0x2e + 8005e28: b29b uxth r3, r3 + 8005e2a: 2b00 cmp r3, #0 + 8005e2c: f000 808e beq.w 8005f4c && (nb_rx_data > 0U)) - 8005bb4: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce - 8005bb8: 2b00 cmp r3, #0 - 8005bba: f000 8089 beq.w 8005cd0 + 8005e30: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce + 8005e34: 2b00 cmp r3, #0 + 8005e36: f000 8089 beq.w 8005f4c { /* Disable the UART Parity Error Interrupt and RXNE interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); - 8005bbe: 687b ldr r3, [r7, #4] - 8005bc0: 681b ldr r3, [r3, #0] - 8005bc2: 330c adds r3, #12 - 8005bc4: 63bb str r3, [r7, #56] @ 0x38 + 8005e3a: 687b ldr r3, [r7, #4] + 8005e3c: 681b ldr r3, [r3, #0] + 8005e3e: 330c adds r3, #12 + 8005e40: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005bc6: 6bbb ldr r3, [r7, #56] @ 0x38 - 8005bc8: e853 3f00 ldrex r3, [r3] - 8005bcc: 637b str r3, [r7, #52] @ 0x34 + 8005e42: 6bbb ldr r3, [r7, #56] @ 0x38 + 8005e44: e853 3f00 ldrex r3, [r3] + 8005e48: 637b str r3, [r7, #52] @ 0x34 return(result); - 8005bce: 6b7b ldr r3, [r7, #52] @ 0x34 - 8005bd0: f423 7390 bic.w r3, r3, #288 @ 0x120 - 8005bd4: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 - 8005bd8: 687b ldr r3, [r7, #4] - 8005bda: 681b ldr r3, [r3, #0] - 8005bdc: 330c adds r3, #12 - 8005bde: f8d7 20c8 ldr.w r2, [r7, #200] @ 0xc8 - 8005be2: 647a str r2, [r7, #68] @ 0x44 - 8005be4: 643b str r3, [r7, #64] @ 0x40 + 8005e4a: 6b7b ldr r3, [r7, #52] @ 0x34 + 8005e4c: f423 7390 bic.w r3, r3, #288 @ 0x120 + 8005e50: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 + 8005e54: 687b ldr r3, [r7, #4] + 8005e56: 681b ldr r3, [r3, #0] + 8005e58: 330c adds r3, #12 + 8005e5a: f8d7 20c8 ldr.w r2, [r7, #200] @ 0xc8 + 8005e5e: 647a str r2, [r7, #68] @ 0x44 + 8005e60: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005be6: 6c39 ldr r1, [r7, #64] @ 0x40 - 8005be8: 6c7a ldr r2, [r7, #68] @ 0x44 - 8005bea: e841 2300 strex r3, r2, [r1] - 8005bee: 63fb str r3, [r7, #60] @ 0x3c + 8005e62: 6c39 ldr r1, [r7, #64] @ 0x40 + 8005e64: 6c7a ldr r2, [r7, #68] @ 0x44 + 8005e66: e841 2300 strex r3, r2, [r1] + 8005e6a: 63fb str r3, [r7, #60] @ 0x3c return(result); - 8005bf0: 6bfb ldr r3, [r7, #60] @ 0x3c - 8005bf2: 2b00 cmp r3, #0 - 8005bf4: d1e3 bne.n 8005bbe + 8005e6c: 6bfb ldr r3, [r7, #60] @ 0x3c + 8005e6e: 2b00 cmp r3, #0 + 8005e70: d1e3 bne.n 8005e3a /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8005bf6: 687b ldr r3, [r7, #4] - 8005bf8: 681b ldr r3, [r3, #0] - 8005bfa: 3314 adds r3, #20 - 8005bfc: 627b str r3, [r7, #36] @ 0x24 + 8005e72: 687b ldr r3, [r7, #4] + 8005e74: 681b ldr r3, [r3, #0] + 8005e76: 3314 adds r3, #20 + 8005e78: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005bfe: 6a7b ldr r3, [r7, #36] @ 0x24 - 8005c00: e853 3f00 ldrex r3, [r3] - 8005c04: 623b str r3, [r7, #32] + 8005e7a: 6a7b ldr r3, [r7, #36] @ 0x24 + 8005e7c: e853 3f00 ldrex r3, [r3] + 8005e80: 623b str r3, [r7, #32] return(result); - 8005c06: 6a3b ldr r3, [r7, #32] - 8005c08: f023 0301 bic.w r3, r3, #1 - 8005c0c: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4 - 8005c10: 687b ldr r3, [r7, #4] - 8005c12: 681b ldr r3, [r3, #0] - 8005c14: 3314 adds r3, #20 - 8005c16: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4 - 8005c1a: 633a str r2, [r7, #48] @ 0x30 - 8005c1c: 62fb str r3, [r7, #44] @ 0x2c + 8005e82: 6a3b ldr r3, [r7, #32] + 8005e84: f023 0301 bic.w r3, r3, #1 + 8005e88: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4 + 8005e8c: 687b ldr r3, [r7, #4] + 8005e8e: 681b ldr r3, [r3, #0] + 8005e90: 3314 adds r3, #20 + 8005e92: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4 + 8005e96: 633a str r2, [r7, #48] @ 0x30 + 8005e98: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005c1e: 6af9 ldr r1, [r7, #44] @ 0x2c - 8005c20: 6b3a ldr r2, [r7, #48] @ 0x30 - 8005c22: e841 2300 strex r3, r2, [r1] - 8005c26: 62bb str r3, [r7, #40] @ 0x28 + 8005e9a: 6af9 ldr r1, [r7, #44] @ 0x2c + 8005e9c: 6b3a ldr r2, [r7, #48] @ 0x30 + 8005e9e: e841 2300 strex r3, r2, [r1] + 8005ea2: 62bb str r3, [r7, #40] @ 0x28 return(result); - 8005c28: 6abb ldr r3, [r7, #40] @ 0x28 - 8005c2a: 2b00 cmp r3, #0 - 8005c2c: d1e3 bne.n 8005bf6 + 8005ea4: 6abb ldr r3, [r7, #40] @ 0x28 + 8005ea6: 2b00 cmp r3, #0 + 8005ea8: d1e3 bne.n 8005e72 /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8005c2e: 687b ldr r3, [r7, #4] - 8005c30: 2220 movs r2, #32 - 8005c32: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8005eaa: 687b ldr r3, [r7, #4] + 8005eac: 2220 movs r2, #32 + 8005eae: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8005c36: 687b ldr r3, [r7, #4] - 8005c38: 2200 movs r2, #0 - 8005c3a: 631a str r2, [r3, #48] @ 0x30 + 8005eb2: 687b ldr r3, [r7, #4] + 8005eb4: 2200 movs r2, #0 + 8005eb6: 631a str r2, [r3, #48] @ 0x30 ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8005c3c: 687b ldr r3, [r7, #4] - 8005c3e: 681b ldr r3, [r3, #0] - 8005c40: 330c adds r3, #12 - 8005c42: 613b str r3, [r7, #16] + 8005eb8: 687b ldr r3, [r7, #4] + 8005eba: 681b ldr r3, [r3, #0] + 8005ebc: 330c adds r3, #12 + 8005ebe: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005c44: 693b ldr r3, [r7, #16] - 8005c46: e853 3f00 ldrex r3, [r3] - 8005c4a: 60fb str r3, [r7, #12] + 8005ec0: 693b ldr r3, [r7, #16] + 8005ec2: e853 3f00 ldrex r3, [r3] + 8005ec6: 60fb str r3, [r7, #12] return(result); - 8005c4c: 68fb ldr r3, [r7, #12] - 8005c4e: f023 0310 bic.w r3, r3, #16 - 8005c52: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 - 8005c56: 687b ldr r3, [r7, #4] - 8005c58: 681b ldr r3, [r3, #0] - 8005c5a: 330c adds r3, #12 - 8005c5c: f8d7 20c0 ldr.w r2, [r7, #192] @ 0xc0 - 8005c60: 61fa str r2, [r7, #28] - 8005c62: 61bb str r3, [r7, #24] + 8005ec8: 68fb ldr r3, [r7, #12] + 8005eca: f023 0310 bic.w r3, r3, #16 + 8005ece: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 + 8005ed2: 687b ldr r3, [r7, #4] + 8005ed4: 681b ldr r3, [r3, #0] + 8005ed6: 330c adds r3, #12 + 8005ed8: f8d7 20c0 ldr.w r2, [r7, #192] @ 0xc0 + 8005edc: 61fa str r2, [r7, #28] + 8005ede: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005c64: 69b9 ldr r1, [r7, #24] - 8005c66: 69fa ldr r2, [r7, #28] - 8005c68: e841 2300 strex r3, r2, [r1] - 8005c6c: 617b str r3, [r7, #20] + 8005ee0: 69b9 ldr r1, [r7, #24] + 8005ee2: 69fa ldr r2, [r7, #28] + 8005ee4: e841 2300 strex r3, r2, [r1] + 8005ee8: 617b str r3, [r7, #20] return(result); - 8005c6e: 697b ldr r3, [r7, #20] - 8005c70: 2b00 cmp r3, #0 - 8005c72: d1e3 bne.n 8005c3c + 8005eea: 697b ldr r3, [r7, #20] + 8005eec: 2b00 cmp r3, #0 + 8005eee: d1e3 bne.n 8005eb8 /* Initialize type of RxEvent that correspond to RxEvent callback execution; In this case, Rx Event type is Idle Event */ huart->RxEventType = HAL_UART_RXEVENT_IDLE; - 8005c74: 687b ldr r3, [r7, #4] - 8005c76: 2202 movs r2, #2 - 8005c78: 635a str r2, [r3, #52] @ 0x34 + 8005ef0: 687b ldr r3, [r7, #4] + 8005ef2: 2202 movs r2, #2 + 8005ef4: 635a str r2, [r3, #52] @ 0x34 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx complete callback*/ huart->RxEventCallback(huart, nb_rx_data); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, nb_rx_data); - 8005c7a: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce - 8005c7e: 4619 mov r1, r3 - 8005c80: 6878 ldr r0, [r7, #4] - 8005c82: f000 f844 bl 8005d0e + 8005ef6: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce + 8005efa: 4619 mov r1, r3 + 8005efc: 6878 ldr r0, [r7, #4] + 8005efe: f000 f844 bl 8005f8a #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return; - 8005c86: e023 b.n 8005cd0 + 8005f02: e023 b.n 8005f4c } } /* UART in mode Transmitter ------------------------------------------------*/ if (((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET)) - 8005c88: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8005c8c: f003 0380 and.w r3, r3, #128 @ 0x80 - 8005c90: 2b00 cmp r3, #0 - 8005c92: d009 beq.n 8005ca8 - 8005c94: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8005c98: f003 0380 and.w r3, r3, #128 @ 0x80 - 8005c9c: 2b00 cmp r3, #0 - 8005c9e: d003 beq.n 8005ca8 + 8005f04: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005f08: f003 0380 and.w r3, r3, #128 @ 0x80 + 8005f0c: 2b00 cmp r3, #0 + 8005f0e: d009 beq.n 8005f24 + 8005f10: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005f14: f003 0380 and.w r3, r3, #128 @ 0x80 + 8005f18: 2b00 cmp r3, #0 + 8005f1a: d003 beq.n 8005f24 { UART_Transmit_IT(huart); - 8005ca0: 6878 ldr r0, [r7, #4] - 8005ca2: f000 f90e bl 8005ec2 + 8005f1c: 6878 ldr r0, [r7, #4] + 8005f1e: f000 f90e bl 800613e return; - 8005ca6: e014 b.n 8005cd2 + 8005f22: e014 b.n 8005f4e } /* UART in mode Transmitter end --------------------------------------------*/ if (((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET)) - 8005ca8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8005cac: f003 0340 and.w r3, r3, #64 @ 0x40 - 8005cb0: 2b00 cmp r3, #0 - 8005cb2: d00e beq.n 8005cd2 - 8005cb4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8005cb8: f003 0340 and.w r3, r3, #64 @ 0x40 - 8005cbc: 2b00 cmp r3, #0 - 8005cbe: d008 beq.n 8005cd2 + 8005f24: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005f28: f003 0340 and.w r3, r3, #64 @ 0x40 + 8005f2c: 2b00 cmp r3, #0 + 8005f2e: d00e beq.n 8005f4e + 8005f30: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005f34: f003 0340 and.w r3, r3, #64 @ 0x40 + 8005f38: 2b00 cmp r3, #0 + 8005f3a: d008 beq.n 8005f4e { UART_EndTransmit_IT(huart); - 8005cc0: 6878 ldr r0, [r7, #4] - 8005cc2: f000 f94d bl 8005f60 + 8005f3c: 6878 ldr r0, [r7, #4] + 8005f3e: f000 f94d bl 80061dc return; - 8005cc6: e004 b.n 8005cd2 + 8005f42: e004 b.n 8005f4e return; - 8005cc8: bf00 nop - 8005cca: e002 b.n 8005cd2 + 8005f44: bf00 nop + 8005f46: e002 b.n 8005f4e return; - 8005ccc: bf00 nop - 8005cce: e000 b.n 8005cd2 + 8005f48: bf00 nop + 8005f4a: e000 b.n 8005f4e return; - 8005cd0: bf00 nop + 8005f4c: bf00 nop } } - 8005cd2: 37e8 adds r7, #232 @ 0xe8 - 8005cd4: 46bd mov sp, r7 - 8005cd6: bd80 pop {r7, pc} + 8005f4e: 37e8 adds r7, #232 @ 0xe8 + 8005f50: 46bd mov sp, r7 + 8005f52: bd80 pop {r7, pc} -08005cd8 : +08005f54 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) { - 8005cd8: b480 push {r7} - 8005cda: b083 sub sp, #12 - 8005cdc: af00 add r7, sp, #0 - 8005cde: 6078 str r0, [r7, #4] + 8005f54: b480 push {r7} + 8005f56: b083 sub sp, #12 + 8005f58: af00 add r7, sp, #0 + 8005f5a: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_TxCpltCallback could be implemented in the user file */ } - 8005ce0: bf00 nop - 8005ce2: 370c adds r7, #12 - 8005ce4: 46bd mov sp, r7 - 8005ce6: bc80 pop {r7} - 8005ce8: 4770 bx lr + 8005f5c: bf00 nop + 8005f5e: 370c adds r7, #12 + 8005f60: 46bd mov sp, r7 + 8005f62: bc80 pop {r7} + 8005f64: 4770 bx lr -08005cea : +08005f66 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { - 8005cea: b480 push {r7} - 8005cec: b083 sub sp, #12 - 8005cee: af00 add r7, sp, #0 - 8005cf0: 6078 str r0, [r7, #4] + 8005f66: b480 push {r7} + 8005f68: b083 sub sp, #12 + 8005f6a: af00 add r7, sp, #0 + 8005f6c: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_RxCpltCallback could be implemented in the user file */ } - 8005cf2: bf00 nop - 8005cf4: 370c adds r7, #12 - 8005cf6: 46bd mov sp, r7 - 8005cf8: bc80 pop {r7} - 8005cfa: 4770 bx lr + 8005f6e: bf00 nop + 8005f70: 370c adds r7, #12 + 8005f72: 46bd mov sp, r7 + 8005f74: bc80 pop {r7} + 8005f76: 4770 bx lr -08005cfc : +08005f78 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) { - 8005cfc: b480 push {r7} - 8005cfe: b083 sub sp, #12 - 8005d00: af00 add r7, sp, #0 - 8005d02: 6078 str r0, [r7, #4] + 8005f78: b480 push {r7} + 8005f7a: b083 sub sp, #12 + 8005f7c: af00 add r7, sp, #0 + 8005f7e: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_ErrorCallback could be implemented in the user file */ } - 8005d04: bf00 nop - 8005d06: 370c adds r7, #12 - 8005d08: 46bd mov sp, r7 - 8005d0a: bc80 pop {r7} - 8005d0c: 4770 bx lr + 8005f80: bf00 nop + 8005f82: 370c adds r7, #12 + 8005f84: 46bd mov sp, r7 + 8005f86: bc80 pop {r7} + 8005f88: 4770 bx lr -08005d0e : +08005f8a : * @param Size Number of data available in application reception buffer (indicates a position in * reception buffer until which, data are available) * @retval None */ __weak void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) { - 8005d0e: b480 push {r7} - 8005d10: b083 sub sp, #12 - 8005d12: af00 add r7, sp, #0 - 8005d14: 6078 str r0, [r7, #4] - 8005d16: 460b mov r3, r1 - 8005d18: 807b strh r3, [r7, #2] + 8005f8a: b480 push {r7} + 8005f8c: b083 sub sp, #12 + 8005f8e: af00 add r7, sp, #0 + 8005f90: 6078 str r0, [r7, #4] + 8005f92: 460b mov r3, r1 + 8005f94: 807b strh r3, [r7, #2] UNUSED(Size); /* NOTE : This function should not be modified, when the callback is needed, the HAL_UARTEx_RxEventCallback can be implemented in the user file. */ } - 8005d1a: bf00 nop - 8005d1c: 370c adds r7, #12 - 8005d1e: 46bd mov sp, r7 - 8005d20: bc80 pop {r7} - 8005d22: 4770 bx lr + 8005f96: bf00 nop + 8005f98: 370c adds r7, #12 + 8005f9a: 46bd mov sp, r7 + 8005f9c: bc80 pop {r7} + 8005f9e: 4770 bx lr -08005d24 : +08005fa0 : * @param Timeout Timeout duration * @retval HAL status */ static HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout) { - 8005d24: b580 push {r7, lr} - 8005d26: b086 sub sp, #24 - 8005d28: af00 add r7, sp, #0 - 8005d2a: 60f8 str r0, [r7, #12] - 8005d2c: 60b9 str r1, [r7, #8] - 8005d2e: 603b str r3, [r7, #0] - 8005d30: 4613 mov r3, r2 - 8005d32: 71fb strb r3, [r7, #7] + 8005fa0: b580 push {r7, lr} + 8005fa2: b086 sub sp, #24 + 8005fa4: af00 add r7, sp, #0 + 8005fa6: 60f8 str r0, [r7, #12] + 8005fa8: 60b9 str r1, [r7, #8] + 8005faa: 603b str r3, [r7, #0] + 8005fac: 4613 mov r3, r2 + 8005fae: 71fb strb r3, [r7, #7] /* Wait until flag is set */ while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status) - 8005d34: e03b b.n 8005dae + 8005fb0: e03b b.n 800602a { /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 8005d36: 6a3b ldr r3, [r7, #32] - 8005d38: f1b3 3fff cmp.w r3, #4294967295 - 8005d3c: d037 beq.n 8005dae + 8005fb2: 6a3b ldr r3, [r7, #32] + 8005fb4: f1b3 3fff cmp.w r3, #4294967295 + 8005fb8: d037 beq.n 800602a { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8005d3e: f7fc ff95 bl 8002c6c - 8005d42: 4602 mov r2, r0 - 8005d44: 683b ldr r3, [r7, #0] - 8005d46: 1ad3 subs r3, r2, r3 - 8005d48: 6a3a ldr r2, [r7, #32] - 8005d4a: 429a cmp r2, r3 - 8005d4c: d302 bcc.n 8005d54 - 8005d4e: 6a3b ldr r3, [r7, #32] - 8005d50: 2b00 cmp r3, #0 - 8005d52: d101 bne.n 8005d58 + 8005fba: f7fc ff95 bl 8002ee8 + 8005fbe: 4602 mov r2, r0 + 8005fc0: 683b ldr r3, [r7, #0] + 8005fc2: 1ad3 subs r3, r2, r3 + 8005fc4: 6a3a ldr r2, [r7, #32] + 8005fc6: 429a cmp r2, r3 + 8005fc8: d302 bcc.n 8005fd0 + 8005fca: 6a3b ldr r3, [r7, #32] + 8005fcc: 2b00 cmp r3, #0 + 8005fce: d101 bne.n 8005fd4 { return HAL_TIMEOUT; - 8005d54: 2303 movs r3, #3 - 8005d56: e03a b.n 8005dce + 8005fd0: 2303 movs r3, #3 + 8005fd2: e03a b.n 800604a } if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC)) - 8005d58: 68fb ldr r3, [r7, #12] - 8005d5a: 681b ldr r3, [r3, #0] - 8005d5c: 68db ldr r3, [r3, #12] - 8005d5e: f003 0304 and.w r3, r3, #4 - 8005d62: 2b00 cmp r3, #0 - 8005d64: d023 beq.n 8005dae - 8005d66: 68bb ldr r3, [r7, #8] - 8005d68: 2b80 cmp r3, #128 @ 0x80 - 8005d6a: d020 beq.n 8005dae - 8005d6c: 68bb ldr r3, [r7, #8] - 8005d6e: 2b40 cmp r3, #64 @ 0x40 - 8005d70: d01d beq.n 8005dae + 8005fd4: 68fb ldr r3, [r7, #12] + 8005fd6: 681b ldr r3, [r3, #0] + 8005fd8: 68db ldr r3, [r3, #12] + 8005fda: f003 0304 and.w r3, r3, #4 + 8005fde: 2b00 cmp r3, #0 + 8005fe0: d023 beq.n 800602a + 8005fe2: 68bb ldr r3, [r7, #8] + 8005fe4: 2b80 cmp r3, #128 @ 0x80 + 8005fe6: d020 beq.n 800602a + 8005fe8: 68bb ldr r3, [r7, #8] + 8005fea: 2b40 cmp r3, #64 @ 0x40 + 8005fec: d01d beq.n 800602a { if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET) - 8005d72: 68fb ldr r3, [r7, #12] - 8005d74: 681b ldr r3, [r3, #0] - 8005d76: 681b ldr r3, [r3, #0] - 8005d78: f003 0308 and.w r3, r3, #8 - 8005d7c: 2b08 cmp r3, #8 - 8005d7e: d116 bne.n 8005dae + 8005fee: 68fb ldr r3, [r7, #12] + 8005ff0: 681b ldr r3, [r3, #0] + 8005ff2: 681b ldr r3, [r3, #0] + 8005ff4: f003 0308 and.w r3, r3, #8 + 8005ff8: 2b08 cmp r3, #8 + 8005ffa: d116 bne.n 800602a { /* Clear Overrun Error flag*/ __HAL_UART_CLEAR_OREFLAG(huart); - 8005d80: 2300 movs r3, #0 - 8005d82: 617b str r3, [r7, #20] - 8005d84: 68fb ldr r3, [r7, #12] - 8005d86: 681b ldr r3, [r3, #0] - 8005d88: 681b ldr r3, [r3, #0] - 8005d8a: 617b str r3, [r7, #20] - 8005d8c: 68fb ldr r3, [r7, #12] - 8005d8e: 681b ldr r3, [r3, #0] - 8005d90: 685b ldr r3, [r3, #4] - 8005d92: 617b str r3, [r7, #20] - 8005d94: 697b ldr r3, [r7, #20] + 8005ffc: 2300 movs r3, #0 + 8005ffe: 617b str r3, [r7, #20] + 8006000: 68fb ldr r3, [r7, #12] + 8006002: 681b ldr r3, [r3, #0] + 8006004: 681b ldr r3, [r3, #0] + 8006006: 617b str r3, [r7, #20] + 8006008: 68fb ldr r3, [r7, #12] + 800600a: 681b ldr r3, [r3, #0] + 800600c: 685b ldr r3, [r3, #4] + 800600e: 617b str r3, [r7, #20] + 8006010: 697b ldr r3, [r7, #20] /* Blocking error : transfer is aborted Set the UART state ready to be able to start again the process, Disable Rx Interrupts if ongoing */ UART_EndRxTransfer(huart); - 8005d96: 68f8 ldr r0, [r7, #12] - 8005d98: f000 f81d bl 8005dd6 + 8006012: 68f8 ldr r0, [r7, #12] + 8006014: f000 f81d bl 8006052 huart->ErrorCode = HAL_UART_ERROR_ORE; - 8005d9c: 68fb ldr r3, [r7, #12] - 8005d9e: 2208 movs r2, #8 - 8005da0: 645a str r2, [r3, #68] @ 0x44 + 8006018: 68fb ldr r3, [r7, #12] + 800601a: 2208 movs r2, #8 + 800601c: 645a str r2, [r3, #68] @ 0x44 /* Process Unlocked */ __HAL_UNLOCK(huart); - 8005da2: 68fb ldr r3, [r7, #12] - 8005da4: 2200 movs r2, #0 - 8005da6: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 800601e: 68fb ldr r3, [r7, #12] + 8006020: 2200 movs r2, #0 + 8006022: f883 2040 strb.w r2, [r3, #64] @ 0x40 return HAL_ERROR; - 8005daa: 2301 movs r3, #1 - 8005dac: e00f b.n 8005dce + 8006026: 2301 movs r3, #1 + 8006028: e00f b.n 800604a while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status) - 8005dae: 68fb ldr r3, [r7, #12] - 8005db0: 681b ldr r3, [r3, #0] - 8005db2: 681a ldr r2, [r3, #0] - 8005db4: 68bb ldr r3, [r7, #8] - 8005db6: 4013 ands r3, r2 - 8005db8: 68ba ldr r2, [r7, #8] - 8005dba: 429a cmp r2, r3 - 8005dbc: bf0c ite eq - 8005dbe: 2301 moveq r3, #1 - 8005dc0: 2300 movne r3, #0 - 8005dc2: b2db uxtb r3, r3 - 8005dc4: 461a mov r2, r3 - 8005dc6: 79fb ldrb r3, [r7, #7] - 8005dc8: 429a cmp r2, r3 - 8005dca: d0b4 beq.n 8005d36 + 800602a: 68fb ldr r3, [r7, #12] + 800602c: 681b ldr r3, [r3, #0] + 800602e: 681a ldr r2, [r3, #0] + 8006030: 68bb ldr r3, [r7, #8] + 8006032: 4013 ands r3, r2 + 8006034: 68ba ldr r2, [r7, #8] + 8006036: 429a cmp r2, r3 + 8006038: bf0c ite eq + 800603a: 2301 moveq r3, #1 + 800603c: 2300 movne r3, #0 + 800603e: b2db uxtb r3, r3 + 8006040: 461a mov r2, r3 + 8006042: 79fb ldrb r3, [r7, #7] + 8006044: 429a cmp r2, r3 + 8006046: d0b4 beq.n 8005fb2 } } } } return HAL_OK; - 8005dcc: 2300 movs r3, #0 + 8006048: 2300 movs r3, #0 } - 8005dce: 4618 mov r0, r3 - 8005dd0: 3718 adds r7, #24 - 8005dd2: 46bd mov sp, r7 - 8005dd4: bd80 pop {r7, pc} + 800604a: 4618 mov r0, r3 + 800604c: 3718 adds r7, #24 + 800604e: 46bd mov sp, r7 + 8006050: bd80 pop {r7, pc} -08005dd6 : +08006052 : * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion). * @param huart UART handle. * @retval None */ static void UART_EndRxTransfer(UART_HandleTypeDef *huart) { - 8005dd6: b480 push {r7} - 8005dd8: b095 sub sp, #84 @ 0x54 - 8005dda: af00 add r7, sp, #0 - 8005ddc: 6078 str r0, [r7, #4] + 8006052: b480 push {r7} + 8006054: b095 sub sp, #84 @ 0x54 + 8006056: af00 add r7, sp, #0 + 8006058: 6078 str r0, [r7, #4] /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); - 8005dde: 687b ldr r3, [r7, #4] - 8005de0: 681b ldr r3, [r3, #0] - 8005de2: 330c adds r3, #12 - 8005de4: 637b str r3, [r7, #52] @ 0x34 + 800605a: 687b ldr r3, [r7, #4] + 800605c: 681b ldr r3, [r3, #0] + 800605e: 330c adds r3, #12 + 8006060: 637b str r3, [r7, #52] @ 0x34 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005de6: 6b7b ldr r3, [r7, #52] @ 0x34 - 8005de8: e853 3f00 ldrex r3, [r3] - 8005dec: 633b str r3, [r7, #48] @ 0x30 + 8006062: 6b7b ldr r3, [r7, #52] @ 0x34 + 8006064: e853 3f00 ldrex r3, [r3] + 8006068: 633b str r3, [r7, #48] @ 0x30 return(result); - 8005dee: 6b3b ldr r3, [r7, #48] @ 0x30 - 8005df0: f423 7390 bic.w r3, r3, #288 @ 0x120 - 8005df4: 64fb str r3, [r7, #76] @ 0x4c - 8005df6: 687b ldr r3, [r7, #4] - 8005df8: 681b ldr r3, [r3, #0] - 8005dfa: 330c adds r3, #12 - 8005dfc: 6cfa ldr r2, [r7, #76] @ 0x4c - 8005dfe: 643a str r2, [r7, #64] @ 0x40 - 8005e00: 63fb str r3, [r7, #60] @ 0x3c + 800606a: 6b3b ldr r3, [r7, #48] @ 0x30 + 800606c: f423 7390 bic.w r3, r3, #288 @ 0x120 + 8006070: 64fb str r3, [r7, #76] @ 0x4c + 8006072: 687b ldr r3, [r7, #4] + 8006074: 681b ldr r3, [r3, #0] + 8006076: 330c adds r3, #12 + 8006078: 6cfa ldr r2, [r7, #76] @ 0x4c + 800607a: 643a str r2, [r7, #64] @ 0x40 + 800607c: 63fb str r3, [r7, #60] @ 0x3c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005e02: 6bf9 ldr r1, [r7, #60] @ 0x3c - 8005e04: 6c3a ldr r2, [r7, #64] @ 0x40 - 8005e06: e841 2300 strex r3, r2, [r1] - 8005e0a: 63bb str r3, [r7, #56] @ 0x38 + 800607e: 6bf9 ldr r1, [r7, #60] @ 0x3c + 8006080: 6c3a ldr r2, [r7, #64] @ 0x40 + 8006082: e841 2300 strex r3, r2, [r1] + 8006086: 63bb str r3, [r7, #56] @ 0x38 return(result); - 8005e0c: 6bbb ldr r3, [r7, #56] @ 0x38 - 8005e0e: 2b00 cmp r3, #0 - 8005e10: d1e5 bne.n 8005dde + 8006088: 6bbb ldr r3, [r7, #56] @ 0x38 + 800608a: 2b00 cmp r3, #0 + 800608c: d1e5 bne.n 800605a ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8005e12: 687b ldr r3, [r7, #4] - 8005e14: 681b ldr r3, [r3, #0] - 8005e16: 3314 adds r3, #20 - 8005e18: 623b str r3, [r7, #32] + 800608e: 687b ldr r3, [r7, #4] + 8006090: 681b ldr r3, [r3, #0] + 8006092: 3314 adds r3, #20 + 8006094: 623b str r3, [r7, #32] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005e1a: 6a3b ldr r3, [r7, #32] - 8005e1c: e853 3f00 ldrex r3, [r3] - 8005e20: 61fb str r3, [r7, #28] + 8006096: 6a3b ldr r3, [r7, #32] + 8006098: e853 3f00 ldrex r3, [r3] + 800609c: 61fb str r3, [r7, #28] return(result); - 8005e22: 69fb ldr r3, [r7, #28] - 8005e24: f023 0301 bic.w r3, r3, #1 - 8005e28: 64bb str r3, [r7, #72] @ 0x48 - 8005e2a: 687b ldr r3, [r7, #4] - 8005e2c: 681b ldr r3, [r3, #0] - 8005e2e: 3314 adds r3, #20 - 8005e30: 6cba ldr r2, [r7, #72] @ 0x48 - 8005e32: 62fa str r2, [r7, #44] @ 0x2c - 8005e34: 62bb str r3, [r7, #40] @ 0x28 + 800609e: 69fb ldr r3, [r7, #28] + 80060a0: f023 0301 bic.w r3, r3, #1 + 80060a4: 64bb str r3, [r7, #72] @ 0x48 + 80060a6: 687b ldr r3, [r7, #4] + 80060a8: 681b ldr r3, [r3, #0] + 80060aa: 3314 adds r3, #20 + 80060ac: 6cba ldr r2, [r7, #72] @ 0x48 + 80060ae: 62fa str r2, [r7, #44] @ 0x2c + 80060b0: 62bb str r3, [r7, #40] @ 0x28 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005e36: 6ab9 ldr r1, [r7, #40] @ 0x28 - 8005e38: 6afa ldr r2, [r7, #44] @ 0x2c - 8005e3a: e841 2300 strex r3, r2, [r1] - 8005e3e: 627b str r3, [r7, #36] @ 0x24 + 80060b2: 6ab9 ldr r1, [r7, #40] @ 0x28 + 80060b4: 6afa ldr r2, [r7, #44] @ 0x2c + 80060b6: e841 2300 strex r3, r2, [r1] + 80060ba: 627b str r3, [r7, #36] @ 0x24 return(result); - 8005e40: 6a7b ldr r3, [r7, #36] @ 0x24 - 8005e42: 2b00 cmp r3, #0 - 8005e44: d1e5 bne.n 8005e12 + 80060bc: 6a7b ldr r3, [r7, #36] @ 0x24 + 80060be: 2b00 cmp r3, #0 + 80060c0: d1e5 bne.n 800608e /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8005e46: 687b ldr r3, [r7, #4] - 8005e48: 6b1b ldr r3, [r3, #48] @ 0x30 - 8005e4a: 2b01 cmp r3, #1 - 8005e4c: d119 bne.n 8005e82 + 80060c2: 687b ldr r3, [r7, #4] + 80060c4: 6b1b ldr r3, [r3, #48] @ 0x30 + 80060c6: 2b01 cmp r3, #1 + 80060c8: d119 bne.n 80060fe { ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8005e4e: 687b ldr r3, [r7, #4] - 8005e50: 681b ldr r3, [r3, #0] - 8005e52: 330c adds r3, #12 - 8005e54: 60fb str r3, [r7, #12] + 80060ca: 687b ldr r3, [r7, #4] + 80060cc: 681b ldr r3, [r3, #0] + 80060ce: 330c adds r3, #12 + 80060d0: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005e56: 68fb ldr r3, [r7, #12] - 8005e58: e853 3f00 ldrex r3, [r3] - 8005e5c: 60bb str r3, [r7, #8] + 80060d2: 68fb ldr r3, [r7, #12] + 80060d4: e853 3f00 ldrex r3, [r3] + 80060d8: 60bb str r3, [r7, #8] return(result); - 8005e5e: 68bb ldr r3, [r7, #8] - 8005e60: f023 0310 bic.w r3, r3, #16 - 8005e64: 647b str r3, [r7, #68] @ 0x44 - 8005e66: 687b ldr r3, [r7, #4] - 8005e68: 681b ldr r3, [r3, #0] - 8005e6a: 330c adds r3, #12 - 8005e6c: 6c7a ldr r2, [r7, #68] @ 0x44 - 8005e6e: 61ba str r2, [r7, #24] - 8005e70: 617b str r3, [r7, #20] + 80060da: 68bb ldr r3, [r7, #8] + 80060dc: f023 0310 bic.w r3, r3, #16 + 80060e0: 647b str r3, [r7, #68] @ 0x44 + 80060e2: 687b ldr r3, [r7, #4] + 80060e4: 681b ldr r3, [r3, #0] + 80060e6: 330c adds r3, #12 + 80060e8: 6c7a ldr r2, [r7, #68] @ 0x44 + 80060ea: 61ba str r2, [r7, #24] + 80060ec: 617b str r3, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005e72: 6979 ldr r1, [r7, #20] - 8005e74: 69ba ldr r2, [r7, #24] - 8005e76: e841 2300 strex r3, r2, [r1] - 8005e7a: 613b str r3, [r7, #16] + 80060ee: 6979 ldr r1, [r7, #20] + 80060f0: 69ba ldr r2, [r7, #24] + 80060f2: e841 2300 strex r3, r2, [r1] + 80060f6: 613b str r3, [r7, #16] return(result); - 8005e7c: 693b ldr r3, [r7, #16] - 8005e7e: 2b00 cmp r3, #0 - 8005e80: d1e5 bne.n 8005e4e + 80060f8: 693b ldr r3, [r7, #16] + 80060fa: 2b00 cmp r3, #0 + 80060fc: d1e5 bne.n 80060ca } /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8005e82: 687b ldr r3, [r7, #4] - 8005e84: 2220 movs r2, #32 - 8005e86: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80060fe: 687b ldr r3, [r7, #4] + 8006100: 2220 movs r2, #32 + 8006102: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8005e8a: 687b ldr r3, [r7, #4] - 8005e8c: 2200 movs r2, #0 - 8005e8e: 631a str r2, [r3, #48] @ 0x30 + 8006106: 687b ldr r3, [r7, #4] + 8006108: 2200 movs r2, #0 + 800610a: 631a str r2, [r3, #48] @ 0x30 } - 8005e90: bf00 nop - 8005e92: 3754 adds r7, #84 @ 0x54 - 8005e94: 46bd mov sp, r7 - 8005e96: bc80 pop {r7} - 8005e98: 4770 bx lr + 800610c: bf00 nop + 800610e: 3754 adds r7, #84 @ 0x54 + 8006110: 46bd mov sp, r7 + 8006112: bc80 pop {r7} + 8006114: 4770 bx lr -08005e9a : +08006116 : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma) { - 8005e9a: b580 push {r7, lr} - 8005e9c: b084 sub sp, #16 - 8005e9e: af00 add r7, sp, #0 - 8005ea0: 6078 str r0, [r7, #4] + 8006116: b580 push {r7, lr} + 8006118: b084 sub sp, #16 + 800611a: af00 add r7, sp, #0 + 800611c: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 8005ea2: 687b ldr r3, [r7, #4] - 8005ea4: 6a5b ldr r3, [r3, #36] @ 0x24 - 8005ea6: 60fb str r3, [r7, #12] + 800611e: 687b ldr r3, [r7, #4] + 8006120: 6a5b ldr r3, [r3, #36] @ 0x24 + 8006122: 60fb str r3, [r7, #12] huart->RxXferCount = 0x00U; - 8005ea8: 68fb ldr r3, [r7, #12] - 8005eaa: 2200 movs r2, #0 - 8005eac: 85da strh r2, [r3, #46] @ 0x2e + 8006124: 68fb ldr r3, [r7, #12] + 8006126: 2200 movs r2, #0 + 8006128: 85da strh r2, [r3, #46] @ 0x2e huart->TxXferCount = 0x00U; - 8005eae: 68fb ldr r3, [r7, #12] - 8005eb0: 2200 movs r2, #0 - 8005eb2: 84da strh r2, [r3, #38] @ 0x26 + 800612a: 68fb ldr r3, [r7, #12] + 800612c: 2200 movs r2, #0 + 800612e: 84da strh r2, [r3, #38] @ 0x26 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 8005eb4: 68f8 ldr r0, [r7, #12] - 8005eb6: f7ff ff21 bl 8005cfc + 8006130: 68f8 ldr r0, [r7, #12] + 8006132: f7ff ff21 bl 8005f78 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } - 8005eba: bf00 nop - 8005ebc: 3710 adds r7, #16 - 8005ebe: 46bd mov sp, r7 - 8005ec0: bd80 pop {r7, pc} + 8006136: bf00 nop + 8006138: 3710 adds r7, #16 + 800613a: 46bd mov sp, r7 + 800613c: bd80 pop {r7, pc} -08005ec2 : +0800613e : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_Transmit_IT(UART_HandleTypeDef *huart) { - 8005ec2: b480 push {r7} - 8005ec4: b085 sub sp, #20 - 8005ec6: af00 add r7, sp, #0 - 8005ec8: 6078 str r0, [r7, #4] + 800613e: b480 push {r7} + 8006140: b085 sub sp, #20 + 8006142: af00 add r7, sp, #0 + 8006144: 6078 str r0, [r7, #4] const uint16_t *tmp; /* Check that a Tx process is ongoing */ if (huart->gState == HAL_UART_STATE_BUSY_TX) - 8005eca: 687b ldr r3, [r7, #4] - 8005ecc: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 8005ed0: b2db uxtb r3, r3 - 8005ed2: 2b21 cmp r3, #33 @ 0x21 - 8005ed4: d13e bne.n 8005f54 + 8006146: 687b ldr r3, [r7, #4] + 8006148: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 800614c: b2db uxtb r3, r3 + 800614e: 2b21 cmp r3, #33 @ 0x21 + 8006150: d13e bne.n 80061d0 { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 8005ed6: 687b ldr r3, [r7, #4] - 8005ed8: 689b ldr r3, [r3, #8] - 8005eda: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8005ede: d114 bne.n 8005f0a - 8005ee0: 687b ldr r3, [r7, #4] - 8005ee2: 691b ldr r3, [r3, #16] - 8005ee4: 2b00 cmp r3, #0 - 8005ee6: d110 bne.n 8005f0a + 8006152: 687b ldr r3, [r7, #4] + 8006154: 689b ldr r3, [r3, #8] + 8006156: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 800615a: d114 bne.n 8006186 + 800615c: 687b ldr r3, [r7, #4] + 800615e: 691b ldr r3, [r3, #16] + 8006160: 2b00 cmp r3, #0 + 8006162: d110 bne.n 8006186 { tmp = (const uint16_t *) huart->pTxBuffPtr; - 8005ee8: 687b ldr r3, [r7, #4] - 8005eea: 6a1b ldr r3, [r3, #32] - 8005eec: 60fb str r3, [r7, #12] + 8006164: 687b ldr r3, [r7, #4] + 8006166: 6a1b ldr r3, [r3, #32] + 8006168: 60fb str r3, [r7, #12] huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF); - 8005eee: 68fb ldr r3, [r7, #12] - 8005ef0: 881b ldrh r3, [r3, #0] - 8005ef2: 461a mov r2, r3 - 8005ef4: 687b ldr r3, [r7, #4] - 8005ef6: 681b ldr r3, [r3, #0] - 8005ef8: f3c2 0208 ubfx r2, r2, #0, #9 - 8005efc: 605a str r2, [r3, #4] + 800616a: 68fb ldr r3, [r7, #12] + 800616c: 881b ldrh r3, [r3, #0] + 800616e: 461a mov r2, r3 + 8006170: 687b ldr r3, [r7, #4] + 8006172: 681b ldr r3, [r3, #0] + 8006174: f3c2 0208 ubfx r2, r2, #0, #9 + 8006178: 605a str r2, [r3, #4] huart->pTxBuffPtr += 2U; - 8005efe: 687b ldr r3, [r7, #4] - 8005f00: 6a1b ldr r3, [r3, #32] - 8005f02: 1c9a adds r2, r3, #2 - 8005f04: 687b ldr r3, [r7, #4] - 8005f06: 621a str r2, [r3, #32] - 8005f08: e008 b.n 8005f1c + 800617a: 687b ldr r3, [r7, #4] + 800617c: 6a1b ldr r3, [r3, #32] + 800617e: 1c9a adds r2, r3, #2 + 8006180: 687b ldr r3, [r7, #4] + 8006182: 621a str r2, [r3, #32] + 8006184: e008 b.n 8006198 } else { huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF); - 8005f0a: 687b ldr r3, [r7, #4] - 8005f0c: 6a1b ldr r3, [r3, #32] - 8005f0e: 1c59 adds r1, r3, #1 - 8005f10: 687a ldr r2, [r7, #4] - 8005f12: 6211 str r1, [r2, #32] - 8005f14: 781a ldrb r2, [r3, #0] - 8005f16: 687b ldr r3, [r7, #4] - 8005f18: 681b ldr r3, [r3, #0] - 8005f1a: 605a str r2, [r3, #4] + 8006186: 687b ldr r3, [r7, #4] + 8006188: 6a1b ldr r3, [r3, #32] + 800618a: 1c59 adds r1, r3, #1 + 800618c: 687a ldr r2, [r7, #4] + 800618e: 6211 str r1, [r2, #32] + 8006190: 781a ldrb r2, [r3, #0] + 8006192: 687b ldr r3, [r7, #4] + 8006194: 681b ldr r3, [r3, #0] + 8006196: 605a str r2, [r3, #4] } if (--huart->TxXferCount == 0U) - 8005f1c: 687b ldr r3, [r7, #4] - 8005f1e: 8cdb ldrh r3, [r3, #38] @ 0x26 - 8005f20: b29b uxth r3, r3 - 8005f22: 3b01 subs r3, #1 - 8005f24: b29b uxth r3, r3 - 8005f26: 687a ldr r2, [r7, #4] - 8005f28: 4619 mov r1, r3 - 8005f2a: 84d1 strh r1, [r2, #38] @ 0x26 - 8005f2c: 2b00 cmp r3, #0 - 8005f2e: d10f bne.n 8005f50 + 8006198: 687b ldr r3, [r7, #4] + 800619a: 8cdb ldrh r3, [r3, #38] @ 0x26 + 800619c: b29b uxth r3, r3 + 800619e: 3b01 subs r3, #1 + 80061a0: b29b uxth r3, r3 + 80061a2: 687a ldr r2, [r7, #4] + 80061a4: 4619 mov r1, r3 + 80061a6: 84d1 strh r1, [r2, #38] @ 0x26 + 80061a8: 2b00 cmp r3, #0 + 80061aa: d10f bne.n 80061cc { /* Disable the UART Transmit Data Register Empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TXE); - 8005f30: 687b ldr r3, [r7, #4] - 8005f32: 681b ldr r3, [r3, #0] - 8005f34: 68da ldr r2, [r3, #12] - 8005f36: 687b ldr r3, [r7, #4] - 8005f38: 681b ldr r3, [r3, #0] - 8005f3a: f022 0280 bic.w r2, r2, #128 @ 0x80 - 8005f3e: 60da str r2, [r3, #12] + 80061ac: 687b ldr r3, [r7, #4] + 80061ae: 681b ldr r3, [r3, #0] + 80061b0: 68da ldr r2, [r3, #12] + 80061b2: 687b ldr r3, [r7, #4] + 80061b4: 681b ldr r3, [r3, #0] + 80061b6: f022 0280 bic.w r2, r2, #128 @ 0x80 + 80061ba: 60da str r2, [r3, #12] /* Enable the UART Transmit Complete Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_TC); - 8005f40: 687b ldr r3, [r7, #4] - 8005f42: 681b ldr r3, [r3, #0] - 8005f44: 68da ldr r2, [r3, #12] - 8005f46: 687b ldr r3, [r7, #4] - 8005f48: 681b ldr r3, [r3, #0] - 8005f4a: f042 0240 orr.w r2, r2, #64 @ 0x40 - 8005f4e: 60da str r2, [r3, #12] + 80061bc: 687b ldr r3, [r7, #4] + 80061be: 681b ldr r3, [r3, #0] + 80061c0: 68da ldr r2, [r3, #12] + 80061c2: 687b ldr r3, [r7, #4] + 80061c4: 681b ldr r3, [r3, #0] + 80061c6: f042 0240 orr.w r2, r2, #64 @ 0x40 + 80061ca: 60da str r2, [r3, #12] } return HAL_OK; - 8005f50: 2300 movs r3, #0 - 8005f52: e000 b.n 8005f56 + 80061cc: 2300 movs r3, #0 + 80061ce: e000 b.n 80061d2 } else { return HAL_BUSY; - 8005f54: 2302 movs r3, #2 + 80061d0: 2302 movs r3, #2 } } - 8005f56: 4618 mov r0, r3 - 8005f58: 3714 adds r7, #20 - 8005f5a: 46bd mov sp, r7 - 8005f5c: bc80 pop {r7} - 8005f5e: 4770 bx lr + 80061d2: 4618 mov r0, r3 + 80061d4: 3714 adds r7, #20 + 80061d6: 46bd mov sp, r7 + 80061d8: bc80 pop {r7} + 80061da: 4770 bx lr -08005f60 : +080061dc : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_EndTransmit_IT(UART_HandleTypeDef *huart) { - 8005f60: b580 push {r7, lr} - 8005f62: b082 sub sp, #8 - 8005f64: af00 add r7, sp, #0 - 8005f66: 6078 str r0, [r7, #4] + 80061dc: b580 push {r7, lr} + 80061de: b082 sub sp, #8 + 80061e0: af00 add r7, sp, #0 + 80061e2: 6078 str r0, [r7, #4] /* Disable the UART Transmit Complete Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TC); - 8005f68: 687b ldr r3, [r7, #4] - 8005f6a: 681b ldr r3, [r3, #0] - 8005f6c: 68da ldr r2, [r3, #12] - 8005f6e: 687b ldr r3, [r7, #4] - 8005f70: 681b ldr r3, [r3, #0] - 8005f72: f022 0240 bic.w r2, r2, #64 @ 0x40 - 8005f76: 60da str r2, [r3, #12] + 80061e4: 687b ldr r3, [r7, #4] + 80061e6: 681b ldr r3, [r3, #0] + 80061e8: 68da ldr r2, [r3, #12] + 80061ea: 687b ldr r3, [r7, #4] + 80061ec: 681b ldr r3, [r3, #0] + 80061ee: f022 0240 bic.w r2, r2, #64 @ 0x40 + 80061f2: 60da str r2, [r3, #12] /* Tx process is ended, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; - 8005f78: 687b ldr r3, [r7, #4] - 8005f7a: 2220 movs r2, #32 - 8005f7c: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 80061f4: 687b ldr r3, [r7, #4] + 80061f6: 2220 movs r2, #32 + 80061f8: f883 2041 strb.w r2, [r3, #65] @ 0x41 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Tx complete callback*/ huart->TxCpltCallback(huart); #else /*Call legacy weak Tx complete callback*/ HAL_UART_TxCpltCallback(huart); - 8005f80: 6878 ldr r0, [r7, #4] - 8005f82: f7ff fea9 bl 8005cd8 + 80061fc: 6878 ldr r0, [r7, #4] + 80061fe: f7ff fea9 bl 8005f54 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ return HAL_OK; - 8005f86: 2300 movs r3, #0 + 8006202: 2300 movs r3, #0 } - 8005f88: 4618 mov r0, r3 - 8005f8a: 3708 adds r7, #8 - 8005f8c: 46bd mov sp, r7 - 8005f8e: bd80 pop {r7, pc} + 8006204: 4618 mov r0, r3 + 8006206: 3708 adds r7, #8 + 8006208: 46bd mov sp, r7 + 800620a: bd80 pop {r7, pc} -08005f90 : +0800620c : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_Receive_IT(UART_HandleTypeDef *huart) { - 8005f90: b580 push {r7, lr} - 8005f92: b08c sub sp, #48 @ 0x30 - 8005f94: af00 add r7, sp, #0 - 8005f96: 6078 str r0, [r7, #4] + 800620c: b580 push {r7, lr} + 800620e: b08c sub sp, #48 @ 0x30 + 8006210: af00 add r7, sp, #0 + 8006212: 6078 str r0, [r7, #4] uint8_t *pdata8bits; uint16_t *pdata16bits; /* Check that a Rx process is ongoing */ if (huart->RxState == HAL_UART_STATE_BUSY_RX) - 8005f98: 687b ldr r3, [r7, #4] - 8005f9a: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 - 8005f9e: b2db uxtb r3, r3 - 8005fa0: 2b22 cmp r3, #34 @ 0x22 - 8005fa2: f040 80ae bne.w 8006102 + 8006214: 687b ldr r3, [r7, #4] + 8006216: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 + 800621a: b2db uxtb r3, r3 + 800621c: 2b22 cmp r3, #34 @ 0x22 + 800621e: f040 80ae bne.w 800637e { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 8005fa6: 687b ldr r3, [r7, #4] - 8005fa8: 689b ldr r3, [r3, #8] - 8005faa: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8005fae: d117 bne.n 8005fe0 - 8005fb0: 687b ldr r3, [r7, #4] - 8005fb2: 691b ldr r3, [r3, #16] - 8005fb4: 2b00 cmp r3, #0 - 8005fb6: d113 bne.n 8005fe0 + 8006222: 687b ldr r3, [r7, #4] + 8006224: 689b ldr r3, [r3, #8] + 8006226: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 800622a: d117 bne.n 800625c + 800622c: 687b ldr r3, [r7, #4] + 800622e: 691b ldr r3, [r3, #16] + 8006230: 2b00 cmp r3, #0 + 8006232: d113 bne.n 800625c { pdata8bits = NULL; - 8005fb8: 2300 movs r3, #0 - 8005fba: 62fb str r3, [r7, #44] @ 0x2c + 8006234: 2300 movs r3, #0 + 8006236: 62fb str r3, [r7, #44] @ 0x2c pdata16bits = (uint16_t *) huart->pRxBuffPtr; - 8005fbc: 687b ldr r3, [r7, #4] - 8005fbe: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005fc0: 62bb str r3, [r7, #40] @ 0x28 + 8006238: 687b ldr r3, [r7, #4] + 800623a: 6a9b ldr r3, [r3, #40] @ 0x28 + 800623c: 62bb str r3, [r7, #40] @ 0x28 *pdata16bits = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF); - 8005fc2: 687b ldr r3, [r7, #4] - 8005fc4: 681b ldr r3, [r3, #0] - 8005fc6: 685b ldr r3, [r3, #4] - 8005fc8: b29b uxth r3, r3 - 8005fca: f3c3 0308 ubfx r3, r3, #0, #9 - 8005fce: b29a uxth r2, r3 - 8005fd0: 6abb ldr r3, [r7, #40] @ 0x28 - 8005fd2: 801a strh r2, [r3, #0] + 800623e: 687b ldr r3, [r7, #4] + 8006240: 681b ldr r3, [r3, #0] + 8006242: 685b ldr r3, [r3, #4] + 8006244: b29b uxth r3, r3 + 8006246: f3c3 0308 ubfx r3, r3, #0, #9 + 800624a: b29a uxth r2, r3 + 800624c: 6abb ldr r3, [r7, #40] @ 0x28 + 800624e: 801a strh r2, [r3, #0] huart->pRxBuffPtr += 2U; - 8005fd4: 687b ldr r3, [r7, #4] - 8005fd6: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005fd8: 1c9a adds r2, r3, #2 - 8005fda: 687b ldr r3, [r7, #4] - 8005fdc: 629a str r2, [r3, #40] @ 0x28 - 8005fde: e026 b.n 800602e + 8006250: 687b ldr r3, [r7, #4] + 8006252: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006254: 1c9a adds r2, r3, #2 + 8006256: 687b ldr r3, [r7, #4] + 8006258: 629a str r2, [r3, #40] @ 0x28 + 800625a: e026 b.n 80062aa } else { pdata8bits = (uint8_t *) huart->pRxBuffPtr; - 8005fe0: 687b ldr r3, [r7, #4] - 8005fe2: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005fe4: 62fb str r3, [r7, #44] @ 0x2c + 800625c: 687b ldr r3, [r7, #4] + 800625e: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006260: 62fb str r3, [r7, #44] @ 0x2c pdata16bits = NULL; - 8005fe6: 2300 movs r3, #0 - 8005fe8: 62bb str r3, [r7, #40] @ 0x28 + 8006262: 2300 movs r3, #0 + 8006264: 62bb str r3, [r7, #40] @ 0x28 if ((huart->Init.WordLength == UART_WORDLENGTH_9B) || ((huart->Init.WordLength == UART_WORDLENGTH_8B) && (huart->Init.Parity == UART_PARITY_NONE))) - 8005fea: 687b ldr r3, [r7, #4] - 8005fec: 689b ldr r3, [r3, #8] - 8005fee: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8005ff2: d007 beq.n 8006004 - 8005ff4: 687b ldr r3, [r7, #4] - 8005ff6: 689b ldr r3, [r3, #8] - 8005ff8: 2b00 cmp r3, #0 - 8005ffa: d10a bne.n 8006012 - 8005ffc: 687b ldr r3, [r7, #4] - 8005ffe: 691b ldr r3, [r3, #16] - 8006000: 2b00 cmp r3, #0 - 8006002: d106 bne.n 8006012 + 8006266: 687b ldr r3, [r7, #4] + 8006268: 689b ldr r3, [r3, #8] + 800626a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 800626e: d007 beq.n 8006280 + 8006270: 687b ldr r3, [r7, #4] + 8006272: 689b ldr r3, [r3, #8] + 8006274: 2b00 cmp r3, #0 + 8006276: d10a bne.n 800628e + 8006278: 687b ldr r3, [r7, #4] + 800627a: 691b ldr r3, [r3, #16] + 800627c: 2b00 cmp r3, #0 + 800627e: d106 bne.n 800628e { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF); - 8006004: 687b ldr r3, [r7, #4] - 8006006: 681b ldr r3, [r3, #0] - 8006008: 685b ldr r3, [r3, #4] - 800600a: b2da uxtb r2, r3 - 800600c: 6afb ldr r3, [r7, #44] @ 0x2c - 800600e: 701a strb r2, [r3, #0] - 8006010: e008 b.n 8006024 + 8006280: 687b ldr r3, [r7, #4] + 8006282: 681b ldr r3, [r3, #0] + 8006284: 685b ldr r3, [r3, #4] + 8006286: b2da uxtb r2, r3 + 8006288: 6afb ldr r3, [r7, #44] @ 0x2c + 800628a: 701a strb r2, [r3, #0] + 800628c: e008 b.n 80062a0 } else { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F); - 8006012: 687b ldr r3, [r7, #4] - 8006014: 681b ldr r3, [r3, #0] - 8006016: 685b ldr r3, [r3, #4] - 8006018: b2db uxtb r3, r3 - 800601a: f003 037f and.w r3, r3, #127 @ 0x7f - 800601e: b2da uxtb r2, r3 - 8006020: 6afb ldr r3, [r7, #44] @ 0x2c - 8006022: 701a strb r2, [r3, #0] + 800628e: 687b ldr r3, [r7, #4] + 8006290: 681b ldr r3, [r3, #0] + 8006292: 685b ldr r3, [r3, #4] + 8006294: b2db uxtb r3, r3 + 8006296: f003 037f and.w r3, r3, #127 @ 0x7f + 800629a: b2da uxtb r2, r3 + 800629c: 6afb ldr r3, [r7, #44] @ 0x2c + 800629e: 701a strb r2, [r3, #0] } huart->pRxBuffPtr += 1U; - 8006024: 687b ldr r3, [r7, #4] - 8006026: 6a9b ldr r3, [r3, #40] @ 0x28 - 8006028: 1c5a adds r2, r3, #1 - 800602a: 687b ldr r3, [r7, #4] - 800602c: 629a str r2, [r3, #40] @ 0x28 + 80062a0: 687b ldr r3, [r7, #4] + 80062a2: 6a9b ldr r3, [r3, #40] @ 0x28 + 80062a4: 1c5a adds r2, r3, #1 + 80062a6: 687b ldr r3, [r7, #4] + 80062a8: 629a str r2, [r3, #40] @ 0x28 } if (--huart->RxXferCount == 0U) - 800602e: 687b ldr r3, [r7, #4] - 8006030: 8ddb ldrh r3, [r3, #46] @ 0x2e - 8006032: b29b uxth r3, r3 - 8006034: 3b01 subs r3, #1 - 8006036: b29b uxth r3, r3 - 8006038: 687a ldr r2, [r7, #4] - 800603a: 4619 mov r1, r3 - 800603c: 85d1 strh r1, [r2, #46] @ 0x2e - 800603e: 2b00 cmp r3, #0 - 8006040: d15d bne.n 80060fe + 80062aa: 687b ldr r3, [r7, #4] + 80062ac: 8ddb ldrh r3, [r3, #46] @ 0x2e + 80062ae: b29b uxth r3, r3 + 80062b0: 3b01 subs r3, #1 + 80062b2: b29b uxth r3, r3 + 80062b4: 687a ldr r2, [r7, #4] + 80062b6: 4619 mov r1, r3 + 80062b8: 85d1 strh r1, [r2, #46] @ 0x2e + 80062ba: 2b00 cmp r3, #0 + 80062bc: d15d bne.n 800637a { /* Disable the UART Data Register not empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE); - 8006042: 687b ldr r3, [r7, #4] - 8006044: 681b ldr r3, [r3, #0] - 8006046: 68da ldr r2, [r3, #12] - 8006048: 687b ldr r3, [r7, #4] - 800604a: 681b ldr r3, [r3, #0] - 800604c: f022 0220 bic.w r2, r2, #32 - 8006050: 60da str r2, [r3, #12] + 80062be: 687b ldr r3, [r7, #4] + 80062c0: 681b ldr r3, [r3, #0] + 80062c2: 68da ldr r2, [r3, #12] + 80062c4: 687b ldr r3, [r7, #4] + 80062c6: 681b ldr r3, [r3, #0] + 80062c8: f022 0220 bic.w r2, r2, #32 + 80062cc: 60da str r2, [r3, #12] /* Disable the UART Parity Error Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_PE); - 8006052: 687b ldr r3, [r7, #4] - 8006054: 681b ldr r3, [r3, #0] - 8006056: 68da ldr r2, [r3, #12] - 8006058: 687b ldr r3, [r7, #4] - 800605a: 681b ldr r3, [r3, #0] - 800605c: f422 7280 bic.w r2, r2, #256 @ 0x100 - 8006060: 60da str r2, [r3, #12] + 80062ce: 687b ldr r3, [r7, #4] + 80062d0: 681b ldr r3, [r3, #0] + 80062d2: 68da ldr r2, [r3, #12] + 80062d4: 687b ldr r3, [r7, #4] + 80062d6: 681b ldr r3, [r3, #0] + 80062d8: f422 7280 bic.w r2, r2, #256 @ 0x100 + 80062dc: 60da str r2, [r3, #12] /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ __HAL_UART_DISABLE_IT(huart, UART_IT_ERR); - 8006062: 687b ldr r3, [r7, #4] - 8006064: 681b ldr r3, [r3, #0] - 8006066: 695a ldr r2, [r3, #20] - 8006068: 687b ldr r3, [r7, #4] - 800606a: 681b ldr r3, [r3, #0] - 800606c: f022 0201 bic.w r2, r2, #1 - 8006070: 615a str r2, [r3, #20] + 80062de: 687b ldr r3, [r7, #4] + 80062e0: 681b ldr r3, [r3, #0] + 80062e2: 695a ldr r2, [r3, #20] + 80062e4: 687b ldr r3, [r7, #4] + 80062e6: 681b ldr r3, [r3, #0] + 80062e8: f022 0201 bic.w r2, r2, #1 + 80062ec: 615a str r2, [r3, #20] /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8006072: 687b ldr r3, [r7, #4] - 8006074: 2220 movs r2, #32 - 8006076: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80062ee: 687b ldr r3, [r7, #4] + 80062f0: 2220 movs r2, #32 + 80062f2: f883 2042 strb.w r2, [r3, #66] @ 0x42 /* Initialize type of RxEvent to Transfer Complete */ huart->RxEventType = HAL_UART_RXEVENT_TC; - 800607a: 687b ldr r3, [r7, #4] - 800607c: 2200 movs r2, #0 - 800607e: 635a str r2, [r3, #52] @ 0x34 + 80062f6: 687b ldr r3, [r7, #4] + 80062f8: 2200 movs r2, #0 + 80062fa: 635a str r2, [r3, #52] @ 0x34 /* Check current reception Mode : If Reception till IDLE event has been selected : */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8006080: 687b ldr r3, [r7, #4] - 8006082: 6b1b ldr r3, [r3, #48] @ 0x30 - 8006084: 2b01 cmp r3, #1 - 8006086: d135 bne.n 80060f4 + 80062fc: 687b ldr r3, [r7, #4] + 80062fe: 6b1b ldr r3, [r3, #48] @ 0x30 + 8006300: 2b01 cmp r3, #1 + 8006302: d135 bne.n 8006370 { /* Set reception type to Standard */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8006088: 687b ldr r3, [r7, #4] - 800608a: 2200 movs r2, #0 - 800608c: 631a str r2, [r3, #48] @ 0x30 + 8006304: 687b ldr r3, [r7, #4] + 8006306: 2200 movs r2, #0 + 8006308: 631a str r2, [r3, #48] @ 0x30 /* Disable IDLE interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 800608e: 687b ldr r3, [r7, #4] - 8006090: 681b ldr r3, [r3, #0] - 8006092: 330c adds r3, #12 - 8006094: 617b str r3, [r7, #20] + 800630a: 687b ldr r3, [r7, #4] + 800630c: 681b ldr r3, [r3, #0] + 800630e: 330c adds r3, #12 + 8006310: 617b str r3, [r7, #20] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006096: 697b ldr r3, [r7, #20] - 8006098: e853 3f00 ldrex r3, [r3] - 800609c: 613b str r3, [r7, #16] + 8006312: 697b ldr r3, [r7, #20] + 8006314: e853 3f00 ldrex r3, [r3] + 8006318: 613b str r3, [r7, #16] return(result); - 800609e: 693b ldr r3, [r7, #16] - 80060a0: f023 0310 bic.w r3, r3, #16 - 80060a4: 627b str r3, [r7, #36] @ 0x24 - 80060a6: 687b ldr r3, [r7, #4] - 80060a8: 681b ldr r3, [r3, #0] - 80060aa: 330c adds r3, #12 - 80060ac: 6a7a ldr r2, [r7, #36] @ 0x24 - 80060ae: 623a str r2, [r7, #32] - 80060b0: 61fb str r3, [r7, #28] + 800631a: 693b ldr r3, [r7, #16] + 800631c: f023 0310 bic.w r3, r3, #16 + 8006320: 627b str r3, [r7, #36] @ 0x24 + 8006322: 687b ldr r3, [r7, #4] + 8006324: 681b ldr r3, [r3, #0] + 8006326: 330c adds r3, #12 + 8006328: 6a7a ldr r2, [r7, #36] @ 0x24 + 800632a: 623a str r2, [r7, #32] + 800632c: 61fb str r3, [r7, #28] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80060b2: 69f9 ldr r1, [r7, #28] - 80060b4: 6a3a ldr r2, [r7, #32] - 80060b6: e841 2300 strex r3, r2, [r1] - 80060ba: 61bb str r3, [r7, #24] + 800632e: 69f9 ldr r1, [r7, #28] + 8006330: 6a3a ldr r2, [r7, #32] + 8006332: e841 2300 strex r3, r2, [r1] + 8006336: 61bb str r3, [r7, #24] return(result); - 80060bc: 69bb ldr r3, [r7, #24] - 80060be: 2b00 cmp r3, #0 - 80060c0: d1e5 bne.n 800608e + 8006338: 69bb ldr r3, [r7, #24] + 800633a: 2b00 cmp r3, #0 + 800633c: d1e5 bne.n 800630a /* Check if IDLE flag is set */ if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE)) - 80060c2: 687b ldr r3, [r7, #4] - 80060c4: 681b ldr r3, [r3, #0] - 80060c6: 681b ldr r3, [r3, #0] - 80060c8: f003 0310 and.w r3, r3, #16 - 80060cc: 2b10 cmp r3, #16 - 80060ce: d10a bne.n 80060e6 + 800633e: 687b ldr r3, [r7, #4] + 8006340: 681b ldr r3, [r3, #0] + 8006342: 681b ldr r3, [r3, #0] + 8006344: f003 0310 and.w r3, r3, #16 + 8006348: 2b10 cmp r3, #16 + 800634a: d10a bne.n 8006362 { /* Clear IDLE flag in ISR */ __HAL_UART_CLEAR_IDLEFLAG(huart); - 80060d0: 2300 movs r3, #0 - 80060d2: 60fb str r3, [r7, #12] - 80060d4: 687b ldr r3, [r7, #4] - 80060d6: 681b ldr r3, [r3, #0] - 80060d8: 681b ldr r3, [r3, #0] - 80060da: 60fb str r3, [r7, #12] - 80060dc: 687b ldr r3, [r7, #4] - 80060de: 681b ldr r3, [r3, #0] - 80060e0: 685b ldr r3, [r3, #4] - 80060e2: 60fb str r3, [r7, #12] - 80060e4: 68fb ldr r3, [r7, #12] + 800634c: 2300 movs r3, #0 + 800634e: 60fb str r3, [r7, #12] + 8006350: 687b ldr r3, [r7, #4] + 8006352: 681b ldr r3, [r3, #0] + 8006354: 681b ldr r3, [r3, #0] + 8006356: 60fb str r3, [r7, #12] + 8006358: 687b ldr r3, [r7, #4] + 800635a: 681b ldr r3, [r3, #0] + 800635c: 685b ldr r3, [r3, #4] + 800635e: 60fb str r3, [r7, #12] + 8006360: 68fb ldr r3, [r7, #12] #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); - 80060e6: 687b ldr r3, [r7, #4] - 80060e8: 8d9b ldrh r3, [r3, #44] @ 0x2c - 80060ea: 4619 mov r1, r3 - 80060ec: 6878 ldr r0, [r7, #4] - 80060ee: f7ff fe0e bl 8005d0e - 80060f2: e002 b.n 80060fa + 8006362: 687b ldr r3, [r7, #4] + 8006364: 8d9b ldrh r3, [r3, #44] @ 0x2c + 8006366: 4619 mov r1, r3 + 8006368: 6878 ldr r0, [r7, #4] + 800636a: f7ff fe0e bl 8005f8a + 800636e: e002 b.n 8006376 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx complete callback*/ huart->RxCpltCallback(huart); #else /*Call legacy weak Rx complete callback*/ HAL_UART_RxCpltCallback(huart); - 80060f4: 6878 ldr r0, [r7, #4] - 80060f6: f7ff fdf8 bl 8005cea + 8006370: 6878 ldr r0, [r7, #4] + 8006372: f7ff fdf8 bl 8005f66 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return HAL_OK; - 80060fa: 2300 movs r3, #0 - 80060fc: e002 b.n 8006104 + 8006376: 2300 movs r3, #0 + 8006378: e002 b.n 8006380 } return HAL_OK; - 80060fe: 2300 movs r3, #0 - 8006100: e000 b.n 8006104 + 800637a: 2300 movs r3, #0 + 800637c: e000 b.n 8006380 } else { return HAL_BUSY; - 8006102: 2302 movs r3, #2 + 800637e: 2302 movs r3, #2 } } - 8006104: 4618 mov r0, r3 - 8006106: 3730 adds r7, #48 @ 0x30 - 8006108: 46bd mov sp, r7 - 800610a: bd80 pop {r7, pc} + 8006380: 4618 mov r0, r3 + 8006382: 3730 adds r7, #48 @ 0x30 + 8006384: 46bd mov sp, r7 + 8006386: bd80 pop {r7, pc} -0800610c : +08006388 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ static void UART_SetConfig(UART_HandleTypeDef *huart) { - 800610c: b580 push {r7, lr} - 800610e: b084 sub sp, #16 - 8006110: af00 add r7, sp, #0 - 8006112: 6078 str r0, [r7, #4] + 8006388: b580 push {r7, lr} + 800638a: b084 sub sp, #16 + 800638c: af00 add r7, sp, #0 + 800638e: 6078 str r0, [r7, #4] assert_param(IS_UART_MODE(huart->Init.Mode)); /*-------------------------- USART CR2 Configuration -----------------------*/ /* Configure the UART Stop Bits: Set STOP[13:12] bits according to huart->Init.StopBits value */ MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits); - 8006114: 687b ldr r3, [r7, #4] - 8006116: 681b ldr r3, [r3, #0] - 8006118: 691b ldr r3, [r3, #16] - 800611a: f423 5140 bic.w r1, r3, #12288 @ 0x3000 - 800611e: 687b ldr r3, [r7, #4] - 8006120: 68da ldr r2, [r3, #12] - 8006122: 687b ldr r3, [r7, #4] - 8006124: 681b ldr r3, [r3, #0] - 8006126: 430a orrs r2, r1 - 8006128: 611a str r2, [r3, #16] + 8006390: 687b ldr r3, [r7, #4] + 8006392: 681b ldr r3, [r3, #0] + 8006394: 691b ldr r3, [r3, #16] + 8006396: f423 5140 bic.w r1, r3, #12288 @ 0x3000 + 800639a: 687b ldr r3, [r7, #4] + 800639c: 68da ldr r2, [r3, #12] + 800639e: 687b ldr r3, [r7, #4] + 80063a0: 681b ldr r3, [r3, #0] + 80063a2: 430a orrs r2, r1 + 80063a4: 611a str r2, [r3, #16] tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling; MODIFY_REG(huart->Instance->CR1, (uint32_t)(USART_CR1_M | USART_CR1_PCE | USART_CR1_PS | USART_CR1_TE | USART_CR1_RE | USART_CR1_OVER8), tmpreg); #else tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode; - 800612a: 687b ldr r3, [r7, #4] - 800612c: 689a ldr r2, [r3, #8] - 800612e: 687b ldr r3, [r7, #4] - 8006130: 691b ldr r3, [r3, #16] - 8006132: 431a orrs r2, r3 - 8006134: 687b ldr r3, [r7, #4] - 8006136: 695b ldr r3, [r3, #20] - 8006138: 4313 orrs r3, r2 - 800613a: 60bb str r3, [r7, #8] + 80063a6: 687b ldr r3, [r7, #4] + 80063a8: 689a ldr r2, [r3, #8] + 80063aa: 687b ldr r3, [r7, #4] + 80063ac: 691b ldr r3, [r3, #16] + 80063ae: 431a orrs r2, r3 + 80063b0: 687b ldr r3, [r7, #4] + 80063b2: 695b ldr r3, [r3, #20] + 80063b4: 4313 orrs r3, r2 + 80063b6: 60bb str r3, [r7, #8] MODIFY_REG(huart->Instance->CR1, - 800613c: 687b ldr r3, [r7, #4] - 800613e: 681b ldr r3, [r3, #0] - 8006140: 68db ldr r3, [r3, #12] - 8006142: f423 53b0 bic.w r3, r3, #5632 @ 0x1600 - 8006146: f023 030c bic.w r3, r3, #12 - 800614a: 687a ldr r2, [r7, #4] - 800614c: 6812 ldr r2, [r2, #0] - 800614e: 68b9 ldr r1, [r7, #8] - 8006150: 430b orrs r3, r1 - 8006152: 60d3 str r3, [r2, #12] + 80063b8: 687b ldr r3, [r7, #4] + 80063ba: 681b ldr r3, [r3, #0] + 80063bc: 68db ldr r3, [r3, #12] + 80063be: f423 53b0 bic.w r3, r3, #5632 @ 0x1600 + 80063c2: f023 030c bic.w r3, r3, #12 + 80063c6: 687a ldr r2, [r7, #4] + 80063c8: 6812 ldr r2, [r2, #0] + 80063ca: 68b9 ldr r1, [r7, #8] + 80063cc: 430b orrs r3, r1 + 80063ce: 60d3 str r3, [r2, #12] tmpreg); #endif /* USART_CR1_OVER8 */ /*-------------------------- USART CR3 Configuration -----------------------*/ /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */ MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl); - 8006154: 687b ldr r3, [r7, #4] - 8006156: 681b ldr r3, [r3, #0] - 8006158: 695b ldr r3, [r3, #20] - 800615a: f423 7140 bic.w r1, r3, #768 @ 0x300 - 800615e: 687b ldr r3, [r7, #4] - 8006160: 699a ldr r2, [r3, #24] - 8006162: 687b ldr r3, [r7, #4] - 8006164: 681b ldr r3, [r3, #0] - 8006166: 430a orrs r2, r1 - 8006168: 615a str r2, [r3, #20] + 80063d0: 687b ldr r3, [r7, #4] + 80063d2: 681b ldr r3, [r3, #0] + 80063d4: 695b ldr r3, [r3, #20] + 80063d6: f423 7140 bic.w r1, r3, #768 @ 0x300 + 80063da: 687b ldr r3, [r7, #4] + 80063dc: 699a ldr r2, [r3, #24] + 80063de: 687b ldr r3, [r7, #4] + 80063e0: 681b ldr r3, [r3, #0] + 80063e2: 430a orrs r2, r1 + 80063e4: 615a str r2, [r3, #20] if(huart->Instance == USART1) - 800616a: 687b ldr r3, [r7, #4] - 800616c: 681b ldr r3, [r3, #0] - 800616e: 4a2c ldr r2, [pc, #176] @ (8006220 ) - 8006170: 4293 cmp r3, r2 - 8006172: d103 bne.n 800617c + 80063e6: 687b ldr r3, [r7, #4] + 80063e8: 681b ldr r3, [r3, #0] + 80063ea: 4a2c ldr r2, [pc, #176] @ (800649c ) + 80063ec: 4293 cmp r3, r2 + 80063ee: d103 bne.n 80063f8 { pclk = HAL_RCC_GetPCLK2Freq(); - 8006174: f7ff f95a bl 800542c - 8006178: 60f8 str r0, [r7, #12] - 800617a: e002 b.n 8006182 + 80063f0: f7ff f95a bl 80056a8 + 80063f4: 60f8 str r0, [r7, #12] + 80063f6: e002 b.n 80063fe } else { pclk = HAL_RCC_GetPCLK1Freq(); - 800617c: f7ff f942 bl 8005404 - 8006180: 60f8 str r0, [r7, #12] + 80063f8: f7ff f942 bl 8005680 + 80063fc: 60f8 str r0, [r7, #12] else { huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); } #else huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); - 8006182: 68fa ldr r2, [r7, #12] - 8006184: 4613 mov r3, r2 - 8006186: 009b lsls r3, r3, #2 - 8006188: 4413 add r3, r2 - 800618a: 009a lsls r2, r3, #2 - 800618c: 441a add r2, r3 - 800618e: 687b ldr r3, [r7, #4] - 8006190: 685b ldr r3, [r3, #4] - 8006192: 009b lsls r3, r3, #2 - 8006194: fbb2 f3f3 udiv r3, r2, r3 - 8006198: 4a22 ldr r2, [pc, #136] @ (8006224 ) - 800619a: fba2 2303 umull r2, r3, r2, r3 - 800619e: 095b lsrs r3, r3, #5 - 80061a0: 0119 lsls r1, r3, #4 - 80061a2: 68fa ldr r2, [r7, #12] - 80061a4: 4613 mov r3, r2 - 80061a6: 009b lsls r3, r3, #2 - 80061a8: 4413 add r3, r2 - 80061aa: 009a lsls r2, r3, #2 - 80061ac: 441a add r2, r3 - 80061ae: 687b ldr r3, [r7, #4] - 80061b0: 685b ldr r3, [r3, #4] - 80061b2: 009b lsls r3, r3, #2 - 80061b4: fbb2 f2f3 udiv r2, r2, r3 - 80061b8: 4b1a ldr r3, [pc, #104] @ (8006224 ) - 80061ba: fba3 0302 umull r0, r3, r3, r2 - 80061be: 095b lsrs r3, r3, #5 - 80061c0: 2064 movs r0, #100 @ 0x64 - 80061c2: fb00 f303 mul.w r3, r0, r3 - 80061c6: 1ad3 subs r3, r2, r3 - 80061c8: 011b lsls r3, r3, #4 - 80061ca: 3332 adds r3, #50 @ 0x32 - 80061cc: 4a15 ldr r2, [pc, #84] @ (8006224 ) - 80061ce: fba2 2303 umull r2, r3, r2, r3 - 80061d2: 095b lsrs r3, r3, #5 - 80061d4: f003 03f0 and.w r3, r3, #240 @ 0xf0 - 80061d8: 4419 add r1, r3 - 80061da: 68fa ldr r2, [r7, #12] - 80061dc: 4613 mov r3, r2 - 80061de: 009b lsls r3, r3, #2 - 80061e0: 4413 add r3, r2 - 80061e2: 009a lsls r2, r3, #2 - 80061e4: 441a add r2, r3 - 80061e6: 687b ldr r3, [r7, #4] - 80061e8: 685b ldr r3, [r3, #4] - 80061ea: 009b lsls r3, r3, #2 - 80061ec: fbb2 f2f3 udiv r2, r2, r3 - 80061f0: 4b0c ldr r3, [pc, #48] @ (8006224 ) - 80061f2: fba3 0302 umull r0, r3, r3, r2 - 80061f6: 095b lsrs r3, r3, #5 - 80061f8: 2064 movs r0, #100 @ 0x64 - 80061fa: fb00 f303 mul.w r3, r0, r3 - 80061fe: 1ad3 subs r3, r2, r3 - 8006200: 011b lsls r3, r3, #4 - 8006202: 3332 adds r3, #50 @ 0x32 - 8006204: 4a07 ldr r2, [pc, #28] @ (8006224 ) - 8006206: fba2 2303 umull r2, r3, r2, r3 - 800620a: 095b lsrs r3, r3, #5 - 800620c: f003 020f and.w r2, r3, #15 - 8006210: 687b ldr r3, [r7, #4] - 8006212: 681b ldr r3, [r3, #0] - 8006214: 440a add r2, r1 - 8006216: 609a str r2, [r3, #8] + 80063fe: 68fa ldr r2, [r7, #12] + 8006400: 4613 mov r3, r2 + 8006402: 009b lsls r3, r3, #2 + 8006404: 4413 add r3, r2 + 8006406: 009a lsls r2, r3, #2 + 8006408: 441a add r2, r3 + 800640a: 687b ldr r3, [r7, #4] + 800640c: 685b ldr r3, [r3, #4] + 800640e: 009b lsls r3, r3, #2 + 8006410: fbb2 f3f3 udiv r3, r2, r3 + 8006414: 4a22 ldr r2, [pc, #136] @ (80064a0 ) + 8006416: fba2 2303 umull r2, r3, r2, r3 + 800641a: 095b lsrs r3, r3, #5 + 800641c: 0119 lsls r1, r3, #4 + 800641e: 68fa ldr r2, [r7, #12] + 8006420: 4613 mov r3, r2 + 8006422: 009b lsls r3, r3, #2 + 8006424: 4413 add r3, r2 + 8006426: 009a lsls r2, r3, #2 + 8006428: 441a add r2, r3 + 800642a: 687b ldr r3, [r7, #4] + 800642c: 685b ldr r3, [r3, #4] + 800642e: 009b lsls r3, r3, #2 + 8006430: fbb2 f2f3 udiv r2, r2, r3 + 8006434: 4b1a ldr r3, [pc, #104] @ (80064a0 ) + 8006436: fba3 0302 umull r0, r3, r3, r2 + 800643a: 095b lsrs r3, r3, #5 + 800643c: 2064 movs r0, #100 @ 0x64 + 800643e: fb00 f303 mul.w r3, r0, r3 + 8006442: 1ad3 subs r3, r2, r3 + 8006444: 011b lsls r3, r3, #4 + 8006446: 3332 adds r3, #50 @ 0x32 + 8006448: 4a15 ldr r2, [pc, #84] @ (80064a0 ) + 800644a: fba2 2303 umull r2, r3, r2, r3 + 800644e: 095b lsrs r3, r3, #5 + 8006450: f003 03f0 and.w r3, r3, #240 @ 0xf0 + 8006454: 4419 add r1, r3 + 8006456: 68fa ldr r2, [r7, #12] + 8006458: 4613 mov r3, r2 + 800645a: 009b lsls r3, r3, #2 + 800645c: 4413 add r3, r2 + 800645e: 009a lsls r2, r3, #2 + 8006460: 441a add r2, r3 + 8006462: 687b ldr r3, [r7, #4] + 8006464: 685b ldr r3, [r3, #4] + 8006466: 009b lsls r3, r3, #2 + 8006468: fbb2 f2f3 udiv r2, r2, r3 + 800646c: 4b0c ldr r3, [pc, #48] @ (80064a0 ) + 800646e: fba3 0302 umull r0, r3, r3, r2 + 8006472: 095b lsrs r3, r3, #5 + 8006474: 2064 movs r0, #100 @ 0x64 + 8006476: fb00 f303 mul.w r3, r0, r3 + 800647a: 1ad3 subs r3, r2, r3 + 800647c: 011b lsls r3, r3, #4 + 800647e: 3332 adds r3, #50 @ 0x32 + 8006480: 4a07 ldr r2, [pc, #28] @ (80064a0 ) + 8006482: fba2 2303 umull r2, r3, r2, r3 + 8006486: 095b lsrs r3, r3, #5 + 8006488: f003 020f and.w r2, r3, #15 + 800648c: 687b ldr r3, [r7, #4] + 800648e: 681b ldr r3, [r3, #0] + 8006490: 440a add r2, r1 + 8006492: 609a str r2, [r3, #8] #endif /* USART_CR1_OVER8 */ } - 8006218: bf00 nop - 800621a: 3710 adds r7, #16 - 800621c: 46bd mov sp, r7 - 800621e: bd80 pop {r7, pc} - 8006220: 40013800 .word 0x40013800 - 8006224: 51eb851f .word 0x51eb851f + 8006494: bf00 nop + 8006496: 3710 adds r7, #16 + 8006498: 46bd mov sp, r7 + 800649a: bd80 pop {r7, pc} + 800649c: 40013800 .word 0x40013800 + 80064a0: 51eb851f .word 0x51eb851f -08006228 : - 8006228: 4603 mov r3, r0 - 800622a: 4402 add r2, r0 - 800622c: 4293 cmp r3, r2 - 800622e: d100 bne.n 8006232 - 8006230: 4770 bx lr - 8006232: f803 1b01 strb.w r1, [r3], #1 - 8006236: e7f9 b.n 800622c +080064a4 : + 80064a4: 4603 mov r3, r0 + 80064a6: 4402 add r2, r0 + 80064a8: 4293 cmp r3, r2 + 80064aa: d100 bne.n 80064ae + 80064ac: 4770 bx lr + 80064ae: f803 1b01 strb.w r1, [r3], #1 + 80064b2: e7f9 b.n 80064a8 -08006238 <__errno>: - 8006238: 4b01 ldr r3, [pc, #4] @ (8006240 <__errno+0x8>) - 800623a: 6818 ldr r0, [r3, #0] - 800623c: 4770 bx lr - 800623e: bf00 nop - 8006240: 20000024 .word 0x20000024 +080064b4 <__errno>: + 80064b4: 4b01 ldr r3, [pc, #4] @ (80064bc <__errno+0x8>) + 80064b6: 6818 ldr r0, [r3, #0] + 80064b8: 4770 bx lr + 80064ba: bf00 nop + 80064bc: 20000040 .word 0x20000040 -08006244 <__libc_init_array>: - 8006244: b570 push {r4, r5, r6, lr} - 8006246: 2600 movs r6, #0 - 8006248: 4d0c ldr r5, [pc, #48] @ (800627c <__libc_init_array+0x38>) - 800624a: 4b0d ldr r3, [pc, #52] @ (8006280 <__libc_init_array+0x3c>) - 800624c: 1b5b subs r3, r3, r5 - 800624e: 109c asrs r4, r3, #2 - 8006250: 42a6 cmp r6, r4 - 8006252: d109 bne.n 8006268 <__libc_init_array+0x24> - 8006254: 2600 movs r6, #0 - 8006256: f000 f8db bl 8006410 <_init> - 800625a: 4d0a ldr r5, [pc, #40] @ (8006284 <__libc_init_array+0x40>) - 800625c: 4b0a ldr r3, [pc, #40] @ (8006288 <__libc_init_array+0x44>) - 800625e: 1b5b subs r3, r3, r5 - 8006260: 109c asrs r4, r3, #2 - 8006262: 42a6 cmp r6, r4 - 8006264: d105 bne.n 8006272 <__libc_init_array+0x2e> - 8006266: bd70 pop {r4, r5, r6, pc} - 8006268: f855 3b04 ldr.w r3, [r5], #4 - 800626c: 4798 blx r3 - 800626e: 3601 adds r6, #1 - 8006270: e7ee b.n 8006250 <__libc_init_array+0xc> - 8006272: f855 3b04 ldr.w r3, [r5], #4 - 8006276: 4798 blx r3 - 8006278: 3601 adds r6, #1 - 800627a: e7f2 b.n 8006262 <__libc_init_array+0x1e> - 800627c: 080064a4 .word 0x080064a4 - 8006280: 080064a4 .word 0x080064a4 - 8006284: 080064a4 .word 0x080064a4 - 8006288: 080064a8 .word 0x080064a8 +080064c0 <__libc_init_array>: + 80064c0: b570 push {r4, r5, r6, lr} + 80064c2: 2600 movs r6, #0 + 80064c4: 4d0c ldr r5, [pc, #48] @ (80064f8 <__libc_init_array+0x38>) + 80064c6: 4b0d ldr r3, [pc, #52] @ (80064fc <__libc_init_array+0x3c>) + 80064c8: 1b5b subs r3, r3, r5 + 80064ca: 109c asrs r4, r3, #2 + 80064cc: 42a6 cmp r6, r4 + 80064ce: d109 bne.n 80064e4 <__libc_init_array+0x24> + 80064d0: 2600 movs r6, #0 + 80064d2: f000 f8db bl 800668c <_init> + 80064d6: 4d0a ldr r5, [pc, #40] @ (8006500 <__libc_init_array+0x40>) + 80064d8: 4b0a ldr r3, [pc, #40] @ (8006504 <__libc_init_array+0x44>) + 80064da: 1b5b subs r3, r3, r5 + 80064dc: 109c asrs r4, r3, #2 + 80064de: 42a6 cmp r6, r4 + 80064e0: d105 bne.n 80064ee <__libc_init_array+0x2e> + 80064e2: bd70 pop {r4, r5, r6, pc} + 80064e4: f855 3b04 ldr.w r3, [r5], #4 + 80064e8: 4798 blx r3 + 80064ea: 3601 adds r6, #1 + 80064ec: e7ee b.n 80064cc <__libc_init_array+0xc> + 80064ee: f855 3b04 ldr.w r3, [r5], #4 + 80064f2: 4798 blx r3 + 80064f4: 3601 adds r6, #1 + 80064f6: e7f2 b.n 80064de <__libc_init_array+0x1e> + 80064f8: 08006820 .word 0x08006820 + 80064fc: 08006820 .word 0x08006820 + 8006500: 08006820 .word 0x08006820 + 8006504: 08006824 .word 0x08006824 -0800628c : - 800628c: 440a add r2, r1 - 800628e: 4291 cmp r1, r2 - 8006290: f100 33ff add.w r3, r0, #4294967295 - 8006294: d100 bne.n 8006298 - 8006296: 4770 bx lr - 8006298: b510 push {r4, lr} - 800629a: f811 4b01 ldrb.w r4, [r1], #1 - 800629e: 4291 cmp r1, r2 - 80062a0: f803 4f01 strb.w r4, [r3, #1]! - 80062a4: d1f9 bne.n 800629a - 80062a6: bd10 pop {r4, pc} +08006508 : + 8006508: 440a add r2, r1 + 800650a: 4291 cmp r1, r2 + 800650c: f100 33ff add.w r3, r0, #4294967295 + 8006510: d100 bne.n 8006514 + 8006512: 4770 bx lr + 8006514: b510 push {r4, lr} + 8006516: f811 4b01 ldrb.w r4, [r1], #1 + 800651a: 4291 cmp r1, r2 + 800651c: f803 4f01 strb.w r4, [r3, #1]! + 8006520: d1f9 bne.n 8006516 + 8006522: bd10 pop {r4, pc} -080062a8 : - 80062a8: b538 push {r3, r4, r5, lr} - 80062aa: 4604 mov r4, r0 - 80062ac: f000 f81a bl 80062e4 <__ieee754_sqrtf> - 80062b0: 4621 mov r1, r4 - 80062b2: 4605 mov r5, r0 - 80062b4: 4620 mov r0, r4 - 80062b6: f7fa fdbb bl 8000e30 <__aeabi_fcmpun> - 80062ba: b920 cbnz r0, 80062c6 - 80062bc: 4620 mov r0, r4 - 80062be: 2100 movs r1, #0 - 80062c0: f7fa fd8e bl 8000de0 <__aeabi_fcmplt> - 80062c4: b908 cbnz r0, 80062ca - 80062c6: 4628 mov r0, r5 - 80062c8: bd38 pop {r3, r4, r5, pc} - 80062ca: f7ff ffb5 bl 8006238 <__errno> - 80062ce: 2221 movs r2, #33 @ 0x21 - 80062d0: 4603 mov r3, r0 - 80062d2: 2100 movs r1, #0 - 80062d4: 601a str r2, [r3, #0] - 80062d6: 4608 mov r0, r1 - 80062d8: f7fa fc98 bl 8000c0c <__aeabi_fdiv> - 80062dc: 4605 mov r5, r0 - 80062de: 4628 mov r0, r5 - 80062e0: bd38 pop {r3, r4, r5, pc} - 80062e2: bf00 nop +08006524 : + 8006524: b538 push {r3, r4, r5, lr} + 8006526: 4604 mov r4, r0 + 8006528: f000 f81a bl 8006560 <__ieee754_sqrtf> + 800652c: 4621 mov r1, r4 + 800652e: 4605 mov r5, r0 + 8006530: 4620 mov r0, r4 + 8006532: f7fa fc7d bl 8000e30 <__aeabi_fcmpun> + 8006536: b920 cbnz r0, 8006542 + 8006538: 4620 mov r0, r4 + 800653a: 2100 movs r1, #0 + 800653c: f7fa fc50 bl 8000de0 <__aeabi_fcmplt> + 8006540: b908 cbnz r0, 8006546 + 8006542: 4628 mov r0, r5 + 8006544: bd38 pop {r3, r4, r5, pc} + 8006546: f7ff ffb5 bl 80064b4 <__errno> + 800654a: 2221 movs r2, #33 @ 0x21 + 800654c: 4603 mov r3, r0 + 800654e: 2100 movs r1, #0 + 8006550: 601a str r2, [r3, #0] + 8006552: 4608 mov r0, r1 + 8006554: f7fa fb5a bl 8000c0c <__aeabi_fdiv> + 8006558: 4605 mov r5, r0 + 800655a: 4628 mov r0, r5 + 800655c: bd38 pop {r3, r4, r5, pc} + 800655e: bf00 nop -080062e4 <__ieee754_sqrtf>: - 80062e4: f020 4200 bic.w r2, r0, #2147483648 @ 0x80000000 - 80062e8: f1b2 4fff cmp.w r2, #2139095040 @ 0x7f800000 - 80062ec: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 80062f0: 4604 mov r4, r0 - 80062f2: d24f bcs.n 8006394 <__ieee754_sqrtf+0xb0> - 80062f4: 2a00 cmp r2, #0 - 80062f6: d04b beq.n 8006390 <__ieee754_sqrtf+0xac> - 80062f8: 2800 cmp r0, #0 - 80062fa: 4603 mov r3, r0 - 80062fc: db54 blt.n 80063a8 <__ieee754_sqrtf+0xc4> - 80062fe: f010 42ff ands.w r2, r0, #2139095040 @ 0x7f800000 - 8006302: d14f bne.n 80063a4 <__ieee754_sqrtf+0xc0> - 8006304: 005b lsls r3, r3, #1 - 8006306: 0218 lsls r0, r3, #8 - 8006308: 4611 mov r1, r2 - 800630a: f102 0201 add.w r2, r2, #1 - 800630e: d5f9 bpl.n 8006304 <__ieee754_sqrtf+0x20> - 8006310: 4249 negs r1, r1 - 8006312: 2400 movs r4, #0 - 8006314: f3c3 0216 ubfx r2, r3, #0, #23 - 8006318: f1a1 057f sub.w r5, r1, #127 @ 0x7f - 800631c: 07cb lsls r3, r1, #31 - 800631e: f04f 0e19 mov.w lr, #25 - 8006322: f04f 7c80 mov.w ip, #16777216 @ 0x1000000 - 8006326: 4621 mov r1, r4 - 8006328: f442 0200 orr.w r2, r2, #8388608 @ 0x800000 - 800632c: bf58 it pl - 800632e: 0052 lslpl r2, r2, #1 - 8006330: 106d asrs r5, r5, #1 - 8006332: 0052 lsls r2, r2, #1 - 8006334: eb01 030c add.w r3, r1, ip - 8006338: 4293 cmp r3, r2 - 800633a: bfcf iteee gt - 800633c: 4613 movgt r3, r2 - 800633e: eb03 010c addle.w r1, r3, ip - 8006342: 4464 addle r4, ip - 8006344: 1ad3 suble r3, r2, r3 - 8006346: f1be 0e01 subs.w lr, lr, #1 - 800634a: ea4f 0243 mov.w r2, r3, lsl #1 - 800634e: ea4f 0c5c mov.w ip, ip, lsr #1 - 8006352: d1ef bne.n 8006334 <__ieee754_sqrtf+0x50> - 8006354: b1bb cbz r3, 8006386 <__ieee754_sqrtf+0xa2> - 8006356: 4e1a ldr r6, [pc, #104] @ (80063c0 <__ieee754_sqrtf+0xdc>) - 8006358: 4f1a ldr r7, [pc, #104] @ (80063c4 <__ieee754_sqrtf+0xe0>) - 800635a: 6830 ldr r0, [r6, #0] - 800635c: 6839 ldr r1, [r7, #0] - 800635e: f7fa fa97 bl 8000890 <__aeabi_fsub> - 8006362: f8d6 8000 ldr.w r8, [r6] - 8006366: 4601 mov r1, r0 - 8006368: 4640 mov r0, r8 - 800636a: f7fa fd43 bl 8000df4 <__aeabi_fcmple> - 800636e: b150 cbz r0, 8006386 <__ieee754_sqrtf+0xa2> - 8006370: 6830 ldr r0, [r6, #0] - 8006372: 6839 ldr r1, [r7, #0] - 8006374: f7fa fa8e bl 8000894 <__addsf3> - 8006378: 6836 ldr r6, [r6, #0] - 800637a: 4601 mov r1, r0 - 800637c: 4630 mov r0, r6 - 800637e: f7fa fd2f bl 8000de0 <__aeabi_fcmplt> - 8006382: b1c8 cbz r0, 80063b8 <__ieee754_sqrtf+0xd4> - 8006384: 3402 adds r4, #2 - 8006386: 1060 asrs r0, r4, #1 - 8006388: f100 507c add.w r0, r0, #1056964608 @ 0x3f000000 - 800638c: eb00 50c5 add.w r0, r0, r5, lsl #23 - 8006390: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 8006394: 4601 mov r1, r0 - 8006396: f7fa fb85 bl 8000aa4 <__aeabi_fmul> - 800639a: 4621 mov r1, r4 - 800639c: f7fa fa7a bl 8000894 <__addsf3> - 80063a0: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 80063a4: 15c1 asrs r1, r0, #23 - 80063a6: e7b4 b.n 8006312 <__ieee754_sqrtf+0x2e> - 80063a8: 4601 mov r1, r0 - 80063aa: f7fa fa71 bl 8000890 <__aeabi_fsub> - 80063ae: 4601 mov r1, r0 - 80063b0: f7fa fc2c bl 8000c0c <__aeabi_fdiv> - 80063b4: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 80063b8: 3401 adds r4, #1 - 80063ba: f024 0401 bic.w r4, r4, #1 - 80063be: e7e2 b.n 8006386 <__ieee754_sqrtf+0xa2> - 80063c0: 08006498 .word 0x08006498 - 80063c4: 08006494 .word 0x08006494 +08006560 <__ieee754_sqrtf>: + 8006560: f020 4200 bic.w r2, r0, #2147483648 @ 0x80000000 + 8006564: f1b2 4fff cmp.w r2, #2139095040 @ 0x7f800000 + 8006568: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 800656c: 4604 mov r4, r0 + 800656e: d24f bcs.n 8006610 <__ieee754_sqrtf+0xb0> + 8006570: 2a00 cmp r2, #0 + 8006572: d04b beq.n 800660c <__ieee754_sqrtf+0xac> + 8006574: 2800 cmp r0, #0 + 8006576: 4603 mov r3, r0 + 8006578: db54 blt.n 8006624 <__ieee754_sqrtf+0xc4> + 800657a: f010 42ff ands.w r2, r0, #2139095040 @ 0x7f800000 + 800657e: d14f bne.n 8006620 <__ieee754_sqrtf+0xc0> + 8006580: 005b lsls r3, r3, #1 + 8006582: 0218 lsls r0, r3, #8 + 8006584: 4611 mov r1, r2 + 8006586: f102 0201 add.w r2, r2, #1 + 800658a: d5f9 bpl.n 8006580 <__ieee754_sqrtf+0x20> + 800658c: 4249 negs r1, r1 + 800658e: 2400 movs r4, #0 + 8006590: f3c3 0216 ubfx r2, r3, #0, #23 + 8006594: f1a1 057f sub.w r5, r1, #127 @ 0x7f + 8006598: 07cb lsls r3, r1, #31 + 800659a: f04f 0e19 mov.w lr, #25 + 800659e: f04f 7c80 mov.w ip, #16777216 @ 0x1000000 + 80065a2: 4621 mov r1, r4 + 80065a4: f442 0200 orr.w r2, r2, #8388608 @ 0x800000 + 80065a8: bf58 it pl + 80065aa: 0052 lslpl r2, r2, #1 + 80065ac: 106d asrs r5, r5, #1 + 80065ae: 0052 lsls r2, r2, #1 + 80065b0: eb01 030c add.w r3, r1, ip + 80065b4: 4293 cmp r3, r2 + 80065b6: bfcf iteee gt + 80065b8: 4613 movgt r3, r2 + 80065ba: eb03 010c addle.w r1, r3, ip + 80065be: 4464 addle r4, ip + 80065c0: 1ad3 suble r3, r2, r3 + 80065c2: f1be 0e01 subs.w lr, lr, #1 + 80065c6: ea4f 0243 mov.w r2, r3, lsl #1 + 80065ca: ea4f 0c5c mov.w ip, ip, lsr #1 + 80065ce: d1ef bne.n 80065b0 <__ieee754_sqrtf+0x50> + 80065d0: b1bb cbz r3, 8006602 <__ieee754_sqrtf+0xa2> + 80065d2: 4e1a ldr r6, [pc, #104] @ (800663c <__ieee754_sqrtf+0xdc>) + 80065d4: 4f1a ldr r7, [pc, #104] @ (8006640 <__ieee754_sqrtf+0xe0>) + 80065d6: 6830 ldr r0, [r6, #0] + 80065d8: 6839 ldr r1, [r7, #0] + 80065da: f7fa f959 bl 8000890 <__aeabi_fsub> + 80065de: f8d6 8000 ldr.w r8, [r6] + 80065e2: 4601 mov r1, r0 + 80065e4: 4640 mov r0, r8 + 80065e6: f7fa fc05 bl 8000df4 <__aeabi_fcmple> + 80065ea: b150 cbz r0, 8006602 <__ieee754_sqrtf+0xa2> + 80065ec: 6830 ldr r0, [r6, #0] + 80065ee: 6839 ldr r1, [r7, #0] + 80065f0: f7fa f950 bl 8000894 <__addsf3> + 80065f4: 6836 ldr r6, [r6, #0] + 80065f6: 4601 mov r1, r0 + 80065f8: 4630 mov r0, r6 + 80065fa: f7fa fbf1 bl 8000de0 <__aeabi_fcmplt> + 80065fe: b1c8 cbz r0, 8006634 <__ieee754_sqrtf+0xd4> + 8006600: 3402 adds r4, #2 + 8006602: 1060 asrs r0, r4, #1 + 8006604: f100 507c add.w r0, r0, #1056964608 @ 0x3f000000 + 8006608: eb00 50c5 add.w r0, r0, r5, lsl #23 + 800660c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8006610: 4601 mov r1, r0 + 8006612: f7fa fa47 bl 8000aa4 <__aeabi_fmul> + 8006616: 4621 mov r1, r4 + 8006618: f7fa f93c bl 8000894 <__addsf3> + 800661c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8006620: 15c1 asrs r1, r0, #23 + 8006622: e7b4 b.n 800658e <__ieee754_sqrtf+0x2e> + 8006624: 4601 mov r1, r0 + 8006626: f7fa f933 bl 8000890 <__aeabi_fsub> + 800662a: 4601 mov r1, r0 + 800662c: f7fa faee bl 8000c0c <__aeabi_fdiv> + 8006630: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8006634: 3401 adds r4, #1 + 8006636: f024 0401 bic.w r4, r4, #1 + 800663a: e7e2 b.n 8006602 <__ieee754_sqrtf+0xa2> + 800663c: 08006814 .word 0x08006814 + 8006640: 08006810 .word 0x08006810 -080063c8 : - 80063c8: b508 push {r3, lr} - 80063ca: f3c0 53c7 ubfx r3, r0, #23, #8 - 80063ce: 3b7f subs r3, #127 @ 0x7f - 80063d0: 2b16 cmp r3, #22 - 80063d2: 4601 mov r1, r0 - 80063d4: dc0e bgt.n 80063f4 - 80063d6: 2b00 cmp r3, #0 - 80063d8: 4602 mov r2, r0 - 80063da: db10 blt.n 80063fe - 80063dc: 480b ldr r0, [pc, #44] @ (800640c ) - 80063de: 4118 asrs r0, r3 - 80063e0: 4201 tst r1, r0 - 80063e2: d005 beq.n 80063f0 - 80063e4: f44f 0180 mov.w r1, #4194304 @ 0x400000 - 80063e8: 4119 asrs r1, r3 - 80063ea: 4411 add r1, r2 - 80063ec: ea21 0100 bic.w r1, r1, r0 - 80063f0: 4608 mov r0, r1 - 80063f2: bd08 pop {r3, pc} - 80063f4: 2b80 cmp r3, #128 @ 0x80 - 80063f6: d1fb bne.n 80063f0 - 80063f8: f7fa fa4c bl 8000894 <__addsf3> - 80063fc: bd08 pop {r3, pc} - 80063fe: 3301 adds r3, #1 - 8006400: f000 4100 and.w r1, r0, #2147483648 @ 0x80000000 - 8006404: d1f4 bne.n 80063f0 - 8006406: f041 517e orr.w r1, r1, #1065353216 @ 0x3f800000 - 800640a: e7f1 b.n 80063f0 - 800640c: 007fffff .word 0x007fffff +08006644 : + 8006644: b508 push {r3, lr} + 8006646: f3c0 53c7 ubfx r3, r0, #23, #8 + 800664a: 3b7f subs r3, #127 @ 0x7f + 800664c: 2b16 cmp r3, #22 + 800664e: 4601 mov r1, r0 + 8006650: dc0e bgt.n 8006670 + 8006652: 2b00 cmp r3, #0 + 8006654: 4602 mov r2, r0 + 8006656: db10 blt.n 800667a + 8006658: 480b ldr r0, [pc, #44] @ (8006688 ) + 800665a: 4118 asrs r0, r3 + 800665c: 4201 tst r1, r0 + 800665e: d005 beq.n 800666c + 8006660: f44f 0180 mov.w r1, #4194304 @ 0x400000 + 8006664: 4119 asrs r1, r3 + 8006666: 4411 add r1, r2 + 8006668: ea21 0100 bic.w r1, r1, r0 + 800666c: 4608 mov r0, r1 + 800666e: bd08 pop {r3, pc} + 8006670: 2b80 cmp r3, #128 @ 0x80 + 8006672: d1fb bne.n 800666c + 8006674: f7fa f90e bl 8000894 <__addsf3> + 8006678: bd08 pop {r3, pc} + 800667a: 3301 adds r3, #1 + 800667c: f000 4100 and.w r1, r0, #2147483648 @ 0x80000000 + 8006680: d1f4 bne.n 800666c + 8006682: f041 517e orr.w r1, r1, #1065353216 @ 0x3f800000 + 8006686: e7f1 b.n 800666c + 8006688: 007fffff .word 0x007fffff -08006410 <_init>: - 8006410: b5f8 push {r3, r4, r5, r6, r7, lr} - 8006412: bf00 nop - 8006414: bcf8 pop {r3, r4, r5, r6, r7} - 8006416: bc08 pop {r3} - 8006418: 469e mov lr, r3 - 800641a: 4770 bx lr +0800668c <_init>: + 800668c: b5f8 push {r3, r4, r5, r6, r7, lr} + 800668e: bf00 nop + 8006690: bcf8 pop {r3, r4, r5, r6, r7} + 8006692: bc08 pop {r3} + 8006694: 469e mov lr, r3 + 8006696: 4770 bx lr -0800641c <_fini>: - 800641c: b5f8 push {r3, r4, r5, r6, r7, lr} - 800641e: bf00 nop - 8006420: bcf8 pop {r3, r4, r5, r6, r7} - 8006422: bc08 pop {r3} - 8006424: 469e mov lr, r3 - 8006426: 4770 bx lr +08006698 <_fini>: + 8006698: b5f8 push {r3, r4, r5, r6, r7, lr} + 800669a: bf00 nop + 800669c: bcf8 pop {r3, r4, r5, r6, r7} + 800669e: bc08 pop {r3} + 80066a0: 469e mov lr, r3 + 80066a2: 4770 bx lr diff --git a/Fertirrega_v6/Debug/Fertirrega_v6.map b/Fertirrega_v6/Debug/Fertirrega_v6.map index 2497adb..44493b3 100644 --- a/Fertirrega_v6/Debug/Fertirrega_v6.map +++ b/Fertirrega_v6/Debug/Fertirrega_v6.map @@ -29,7 +29,7 @@ C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externalt C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-lock.o) C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-findfp.o) (__retarget_lock_init_recursive) C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-memcpy-stub.o) - ./Core/Src/ad5934_driver.o (memcpy) + ./Core/Src/ads1015_driver.o (memcpy) C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-strlen.o) ./Core/Src/main.o (strlen) C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-freer.o) @@ -147,13 +147,16 @@ Discarded input sections .text 0x00000000 0x0 ./Core/Src/ad5934_driver.o .data 0x00000000 0x0 ./Core/Src/ad5934_driver.o .bss 0x00000000 0x0 ./Core/Src/ad5934_driver.o + .bss.temperature_display + 0x00000000 0x40 ./Core/Src/ad5934_driver.o .bss.ec_display - 0x00000000 0x20 ./Core/Src/ad5934_driver.o + 0x00000000 0x40 ./Core/Src/ad5934_driver.o .text.AD5934_ReadRegister 0x00000000 0x9c ./Core/Src/ad5934_driver.o - .rodata 0x00000000 0x60 ./Core/Src/ad5934_driver.o - .text.AD5934_Get_Target_Conductivity - 0x00000000 0x120 ./Core/Src/ad5934_driver.o + .text.AD5934_Calibrate + 0x00000000 0x78 ./Core/Src/ad5934_driver.o + .text.ADG715_SetChannels + 0x00000000 0x26 ./Core/Src/ad5934_driver.o .group 0x00000000 0xc ./Core/Src/adc.o .group 0x00000000 0xc ./Core/Src/adc.o .group 0x00000000 0xc ./Core/Src/adc.o @@ -293,6 +296,7 @@ Discarded input sections .group 0x00000000 0xc ./Core/Src/ads1015_driver.o .group 0x00000000 0xc ./Core/Src/ads1015_driver.o .group 0x00000000 0xc ./Core/Src/ads1015_driver.o + .group 0x00000000 0xc ./Core/Src/ads1015_driver.o .text 0x00000000 0x0 ./Core/Src/ads1015_driver.o .data 0x00000000 0x0 ./Core/Src/ads1015_driver.o .bss 0x00000000 0x0 ./Core/Src/ads1015_driver.o @@ -308,11 +312,8 @@ Discarded input sections 0x00000000 0x90 ./Core/Src/ads1015_driver.o .text.ADSgetLastConversionResults 0x00000000 0x56 ./Core/Src/ads1015_driver.o - .text.ADSCalculate_ph_Compensated - 0x00000000 0x114 ./Core/Src/ads1015_driver.o - .rodata 0x00000000 0x90 ./Core/Src/ads1015_driver.o - .text.ADSinterpolate_ph - 0x00000000 0x158 ./Core/Src/ads1015_driver.o + .text.ADSCalculate_ph_Uncompensated + 0x00000000 0xd8 ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0xacc ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x22 ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x8e ./Core/Src/ads1015_driver.o @@ -320,6 +321,21 @@ Discarded input sections .debug_macro 0x00000000 0x103 ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x6a ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x1df ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x61 ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x24 ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x43 ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x34 ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x190 ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x364 ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x16 ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x4a ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x34 ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x10 ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x58 ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x8e ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x1c ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x17e ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x19b ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x221 ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x2e ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x22 ./Core/Src/ads1015_driver.o @@ -330,8 +346,6 @@ Discarded input sections .debug_macro 0x00000000 0xe09e ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x6d ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x34a2 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x190 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x5c ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x5bc ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x289 ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x1cb ./Core/Src/ads1015_driver.o @@ -351,21 +365,7 @@ Discarded input sections .debug_macro 0x00000000 0x140 ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x28e ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x83 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x1c1 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x10 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x61 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x24 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x43 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x34 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x364 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x16 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x4a ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x34 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x10 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x58 ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x8e ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x1c ./Core/Src/ads1015_driver.o - .debug_macro 0x00000000 0x17e ./Core/Src/ads1015_driver.o + .debug_macro 0x00000000 0x1c8 ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x10 ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x3c ./Core/Src/ads1015_driver.o .debug_macro 0x00000000 0x20 ./Core/Src/ads1015_driver.o @@ -568,7 +568,7 @@ Discarded input sections .debug_macro 0x00000000 0x140 ./Core/Src/digital_outputs_driver.o .debug_macro 0x00000000 0x28e ./Core/Src/digital_outputs_driver.o .debug_macro 0x00000000 0x83 ./Core/Src/digital_outputs_driver.o - .debug_macro 0x00000000 0x1c1 ./Core/Src/digital_outputs_driver.o + .debug_macro 0x00000000 0x1c8 ./Core/Src/digital_outputs_driver.o .group 0x00000000 0xc ./Core/Src/flash_manager.o .group 0x00000000 0xc ./Core/Src/flash_manager.o .group 0x00000000 0xc ./Core/Src/flash_manager.o @@ -775,7 +775,7 @@ Discarded input sections .debug_macro 0x00000000 0x140 ./Core/Src/gpio.o .debug_macro 0x00000000 0x28e ./Core/Src/gpio.o .debug_macro 0x00000000 0x83 ./Core/Src/gpio.o - .debug_macro 0x00000000 0x1c1 ./Core/Src/gpio.o + .debug_macro 0x00000000 0x1c8 ./Core/Src/gpio.o .group 0x00000000 0xc ./Core/Src/i2c.o .group 0x00000000 0xc ./Core/Src/i2c.o .group 0x00000000 0xc ./Core/Src/i2c.o @@ -858,7 +858,7 @@ Discarded input sections .debug_macro 0x00000000 0x140 ./Core/Src/i2c.o .debug_macro 0x00000000 0x28e ./Core/Src/i2c.o .debug_macro 0x00000000 0x83 ./Core/Src/i2c.o - .debug_macro 0x00000000 0x1c1 ./Core/Src/i2c.o + .debug_macro 0x00000000 0x1c8 ./Core/Src/i2c.o .group 0x00000000 0xc ./Core/Src/main.o .group 0x00000000 0xc ./Core/Src/main.o .group 0x00000000 0xc ./Core/Src/main.o @@ -927,6 +927,8 @@ Discarded input sections .text 0x00000000 0x0 ./Core/Src/main.o .data 0x00000000 0x0 ./Core/Src/main.o .bss 0x00000000 0x0 ./Core/Src/main.o + .rodata.ADG715_Channel_Map + 0x00000000 0xf ./Core/Src/main.o .bss.rx_buffer 0x00000000 0x100 ./Core/Src/main.o .data.tx_data 0x00000000 0x18 ./Core/Src/main.o @@ -937,9 +939,8 @@ Discarded input sections 0x00000000 0x6 ./Core/Src/main.o .bss.rs485_text 0x00000000 0x6 ./Core/Src/main.o - .data.newline 0x00000000 0x2 ./Core/Src/main.o .data.doubleSpace - 0x00000000 0x2 ./Core/Src/main.o + 0x00000000 0x3 ./Core/Src/main.o .data.newline_imag 0x00000000 0x6 ./Core/Src/main.o .data.newline_485 @@ -997,8 +998,7 @@ Discarded input sections .debug_macro 0x00000000 0x140 ./Core/Src/main.o .debug_macro 0x00000000 0x28e ./Core/Src/main.o .debug_macro 0x00000000 0x83 ./Core/Src/main.o - .debug_macro 0x00000000 0x1c1 ./Core/Src/main.o - .debug_macro 0x00000000 0x10 ./Core/Src/main.o + .debug_macro 0x00000000 0x1c8 ./Core/Src/main.o .debug_macro 0x00000000 0x61 ./Core/Src/main.o .debug_macro 0x00000000 0x24 ./Core/Src/main.o .debug_macro 0x00000000 0x43 ./Core/Src/main.o @@ -1012,15 +1012,16 @@ Discarded input sections .debug_macro 0x00000000 0x8e ./Core/Src/main.o .debug_macro 0x00000000 0x1c ./Core/Src/main.o .debug_macro 0x00000000 0x17e ./Core/Src/main.o + .debug_macro 0x00000000 0x19b ./Core/Src/main.o .debug_macro 0x00000000 0x10 ./Core/Src/main.o + .debug_macro 0x00000000 0x16 ./Core/Src/main.o .debug_macro 0x00000000 0x3c ./Core/Src/main.o .debug_macro 0x00000000 0x20 ./Core/Src/main.o - .debug_macro 0x00000000 0x198 ./Core/Src/main.o - .debug_macro 0x00000000 0x19b ./Core/Src/main.o + .debug_macro 0x00000000 0x199 ./Core/Src/main.o .debug_macro 0x00000000 0x16 ./Core/Src/main.o .debug_macro 0x00000000 0x16 ./Core/Src/main.o .debug_macro 0x00000000 0x29 ./Core/Src/main.o - .debug_macro 0x00000000 0x23f ./Core/Src/main.o + .debug_macro 0x00000000 0x1f8 ./Core/Src/main.o .group 0x00000000 0xc ./Core/Src/rs485_driver.o .group 0x00000000 0xc ./Core/Src/rs485_driver.o .group 0x00000000 0xc ./Core/Src/rs485_driver.o @@ -1188,7 +1189,7 @@ Discarded input sections .debug_macro 0x00000000 0x140 ./Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x00000000 0x28e ./Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x00000000 0x83 ./Core/Src/stm32f1xx_hal_msp.o - .debug_macro 0x00000000 0x1c1 ./Core/Src/stm32f1xx_hal_msp.o + .debug_macro 0x00000000 0x1c8 ./Core/Src/stm32f1xx_hal_msp.o .group 0x00000000 0xc ./Core/Src/stm32f1xx_it.o .group 0x00000000 0xc ./Core/Src/stm32f1xx_it.o .group 0x00000000 0xc ./Core/Src/stm32f1xx_it.o @@ -1269,7 +1270,7 @@ Discarded input sections .debug_macro 0x00000000 0x140 ./Core/Src/stm32f1xx_it.o .debug_macro 0x00000000 0x28e ./Core/Src/stm32f1xx_it.o .debug_macro 0x00000000 0x83 ./Core/Src/stm32f1xx_it.o - .debug_macro 0x00000000 0x1c1 ./Core/Src/stm32f1xx_it.o + .debug_macro 0x00000000 0x1c8 ./Core/Src/stm32f1xx_it.o .group 0x00000000 0xc ./Core/Src/syscalls.o .group 0x00000000 0xc ./Core/Src/syscalls.o .group 0x00000000 0xc ./Core/Src/syscalls.o @@ -1633,7 +1634,7 @@ Discarded input sections .debug_macro 0x00000000 0x140 ./Core/Src/usart.o .debug_macro 0x00000000 0x28e ./Core/Src/usart.o .debug_macro 0x00000000 0x83 ./Core/Src/usart.o - .debug_macro 0x00000000 0x1c1 ./Core/Src/usart.o + .debug_macro 0x00000000 0x1c8 ./Core/Src/usart.o .text 0x00000000 0x14 ./Core/Startup/startup_stm32f103c8tx.o .data 0x00000000 0x0 ./Core/Startup/startup_stm32f103c8tx.o .bss 0x00000000 0x0 ./Core/Startup/startup_stm32f103c8tx.o @@ -3744,7 +3745,7 @@ LOAD C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.exte 0x08000000 g_pfnVectors 0x0800010c . = ALIGN (0x4) -.text 0x0800010c 0x631c +.text 0x0800010c 0x6598 0x0800010c . = ALIGN (0x4) *(.text) .text 0x0800010c 0x40 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o @@ -3845,596 +3846,623 @@ LOAD C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.exte .text.AD5934_Sweep 0x0800101a 0x3a ./Core/Src/ad5934_driver.o 0x0800101a AD5934_Sweep + .text.AD5934_Get_Ref_Resistance + 0x08001054 0x118 ./Core/Src/ad5934_driver.o + 0x08001054 AD5934_Get_Ref_Resistance .text.AD5934_GetTemperature - 0x08001054 0x3f8 ./Core/Src/ad5934_driver.o - 0x08001054 AD5934_GetTemperature + 0x0800116c 0x1e4 ./Core/Src/ad5934_driver.o + 0x0800116c AD5934_GetTemperature .text.AD5934_GetImpedance - 0x0800144c 0x1fc ./Core/Src/ad5934_driver.o - 0x0800144c AD5934_GetImpedance + 0x08001350 0x20c ./Core/Src/ad5934_driver.o + 0x08001350 AD5934_GetImpedance .text.AD5934_Wait_For_Data_Valid - 0x08001648 0x4a ./Core/Src/ad5934_driver.o - 0x08001648 AD5934_Wait_For_Data_Valid - *fill* 0x08001692 0x2 + 0x0800155c 0x4a ./Core/Src/ad5934_driver.o + 0x0800155c AD5934_Wait_For_Data_Valid + *fill* 0x080015a6 0x2 .text.AD5934_Round_Float_Precision - 0x08001694 0x5c ./Core/Src/ad5934_driver.o - 0x08001694 AD5934_Round_Float_Precision + 0x080015a8 0x5c ./Core/Src/ad5934_driver.o + 0x080015a8 AD5934_Round_Float_Precision .text.AD5934_Linear_Correction - 0x080016f0 0x34 ./Core/Src/ad5934_driver.o - 0x080016f0 AD5934_Linear_Correction + 0x08001604 0x34 ./Core/Src/ad5934_driver.o + 0x08001604 AD5934_Linear_Correction + .text.AD5934_EC_Compensate_To_25C + 0x08001638 0x5c ./Core/Src/ad5934_driver.o + 0x08001638 AD5934_EC_Compensate_To_25C + .text.AD5934_EC_Calibrate_Temperature + 0x08001694 0x144 ./Core/Src/ad5934_driver.o + 0x08001694 AD5934_EC_Calibrate_Temperature .text.ADG715_SetRegisterValue - 0x08001724 0x30 ./Core/Src/ad5934_driver.o - 0x08001724 ADG715_SetRegisterValue - .text.ADG715_SetChannels - 0x08001754 0x26 ./Core/Src/ad5934_driver.o - 0x08001754 ADG715_SetChannels + 0x080017d8 0x30 ./Core/Src/ad5934_driver.o + 0x080017d8 ADG715_SetRegisterValue .text.ADG715_ResetChannels - 0x0800177a 0xe ./Core/Src/ad5934_driver.o - 0x0800177a ADG715_ResetChannels + 0x08001808 0xe ./Core/Src/ad5934_driver.o + 0x08001808 ADG715_ResetChannels + *fill* 0x08001816 0x2 .text.ADG715_Update - 0x08001788 0x104 ./Core/Src/ad5934_driver.o - 0x08001788 ADG715_Update + 0x08001818 0x40 ./Core/Src/ad5934_driver.o + 0x08001818 ADG715_Update .text.MX_ADC1_Init - 0x0800188c 0x7c ./Core/Src/adc.o - 0x0800188c MX_ADC1_Init + 0x08001858 0x7c ./Core/Src/adc.o + 0x08001858 MX_ADC1_Init .text.MX_ADC2_Init - 0x08001908 0x7c ./Core/Src/adc.o - 0x08001908 MX_ADC2_Init + 0x080018d4 0x7c ./Core/Src/adc.o + 0x080018d4 MX_ADC2_Init .text.HAL_ADC_MspInit - 0x08001984 0xcc ./Core/Src/adc.o - 0x08001984 HAL_ADC_MspInit + 0x08001950 0xcc ./Core/Src/adc.o + 0x08001950 HAL_ADC_MspInit .text.writeRegister - 0x08001a50 0x42 ./Core/Src/ads1015_driver.o + 0x08001a1c 0x42 ./Core/Src/ads1015_driver.o .text.readRegister - 0x08001a92 0x54 ./Core/Src/ads1015_driver.o - .text.ADS1015 0x08001ae6 0x3c ./Core/Src/ads1015_driver.o - 0x08001ae6 ADS1015 + 0x08001a5e 0x54 ./Core/Src/ads1015_driver.o + .text.ADS1015 0x08001ab2 0x3c ./Core/Src/ads1015_driver.o + 0x08001ab2 ADS1015 .text.ADSsetGain - 0x08001b22 0x1c ./Core/Src/ads1015_driver.o - 0x08001b22 ADSsetGain + 0x08001aee 0x1c ./Core/Src/ads1015_driver.o + 0x08001aee ADSsetGain .text.ADSreadADC_Differential_0_1 - 0x08001b3e 0x7e ./Core/Src/ads1015_driver.o - 0x08001b3e ADSreadADC_Differential_0_1 - .text.ADSCalculate_ph_Volts - 0x08001bbc 0xac ./Core/Src/ads1015_driver.o - 0x08001bbc ADSCalculate_ph_Volts - .text.ADSCalculate_ph_Uncompensated - 0x08001c68 0xdc ./Core/Src/ads1015_driver.o - 0x08001c68 ADSCalculate_ph_Uncompensated + 0x08001b0a 0x7e ./Core/Src/ads1015_driver.o + 0x08001b0a ADSreadADC_Differential_0_1 + .text.ADSCalculate_ph_mV + 0x08001b88 0xac ./Core/Src/ads1015_driver.o + 0x08001b88 ADSCalculate_ph_mV + .text.ADSCalculate_ph_Compensated + 0x08001c34 0x88 ./Core/Src/ads1015_driver.o + 0x08001c34 ADSCalculate_ph_Compensated + .text.ADSinterpolate_ph + 0x08001cbc 0x158 ./Core/Src/ads1015_driver.o + 0x08001cbc ADSinterpolate_ph + .text.ADSRound_Float_Precision + 0x08001e14 0x5c ./Core/Src/ads1015_driver.o + 0x08001e14 ADSRound_Float_Precision .text.digital_outputs_init - 0x08001d44 0x84 ./Core/Src/digital_outputs_driver.o - 0x08001d44 digital_outputs_init + 0x08001e70 0x84 ./Core/Src/digital_outputs_driver.o + 0x08001e70 digital_outputs_init .text.Flash_Save_Page - 0x08001dc8 0xb4 ./Core/Src/flash_manager.o - 0x08001dc8 Flash_Save_Page + 0x08001ef4 0xb4 ./Core/Src/flash_manager.o + 0x08001ef4 Flash_Save_Page .text.Flash_Load_Page - 0x08001e7c 0x40 ./Core/Src/flash_manager.o - 0x08001e7c Flash_Load_Page + 0x08001fa8 0x40 ./Core/Src/flash_manager.o + 0x08001fa8 Flash_Load_Page .text.MX_GPIO_Init - 0x08001ebc 0x140 ./Core/Src/gpio.o - 0x08001ebc MX_GPIO_Init + 0x08001fe8 0x140 ./Core/Src/gpio.o + 0x08001fe8 MX_GPIO_Init .text.MX_I2C1_Init - 0x08001ffc 0x5c ./Core/Src/i2c.o - 0x08001ffc MX_I2C1_Init + 0x08002128 0x5c ./Core/Src/i2c.o + 0x08002128 MX_I2C1_Init .text.MX_I2C2_Init - 0x08002058 0x5c ./Core/Src/i2c.o - 0x08002058 MX_I2C2_Init + 0x08002184 0x5c ./Core/Src/i2c.o + 0x08002184 MX_I2C2_Init .text.HAL_I2C_MspInit - 0x080020b4 0xd8 ./Core/Src/i2c.o - 0x080020b4 HAL_I2C_MspInit - .text.main 0x0800218c 0x350 ./Core/Src/main.o - 0x0800218c main + 0x080021e0 0xd8 ./Core/Src/i2c.o + 0x080021e0 HAL_I2C_MspInit + .text.main 0x080022b8 0x4a0 ./Core/Src/main.o + 0x080022b8 main .text.SystemClock_Config - 0x080024dc 0xa0 ./Core/Src/main.o - 0x080024dc SystemClock_Config + 0x08002758 0xa0 ./Core/Src/main.o + 0x08002758 SystemClock_Config .text.FloatToString - 0x0800257c 0x228 ./Core/Src/main.o - 0x0800257c FloatToString + 0x080027f8 0x228 ./Core/Src/main.o + 0x080027f8 FloatToString .text.Error_Handler - 0x080027a4 0xc ./Core/Src/main.o - 0x080027a4 Error_Handler + 0x08002a20 0xc ./Core/Src/main.o + 0x08002a20 Error_Handler .text.LL_GPIO_ReadInputPort - 0x080027b0 0x16 ./Core/Src/rs485_driver.o - *fill* 0x080027c6 0x2 + 0x08002a2c 0x16 ./Core/Src/rs485_driver.o + *fill* 0x08002a42 0x2 .text.rs485_init - 0x080027c8 0x20 ./Core/Src/rs485_driver.o - 0x080027c8 rs485_init + 0x08002a44 0x20 ./Core/Src/rs485_driver.o + 0x08002a44 rs485_init .text.rs485_get_address - 0x080027e8 0x38 ./Core/Src/rs485_driver.o - 0x080027e8 rs485_get_address + 0x08002a64 0x38 ./Core/Src/rs485_driver.o + 0x08002a64 rs485_get_address .text.rs485_send_broadcast - 0x08002820 0x48 ./Core/Src/rs485_driver.o - 0x08002820 rs485_send_broadcast + 0x08002a9c 0x48 ./Core/Src/rs485_driver.o + 0x08002a9c rs485_send_broadcast .text.rs485_enable_tx - 0x08002868 0x18 ./Core/Src/rs485_driver.o - 0x08002868 rs485_enable_tx + 0x08002ae4 0x18 ./Core/Src/rs485_driver.o + 0x08002ae4 rs485_enable_tx .text.rs485_disable_tx - 0x08002880 0x18 ./Core/Src/rs485_driver.o - 0x08002880 rs485_disable_tx + 0x08002afc 0x18 ./Core/Src/rs485_driver.o + 0x08002afc rs485_disable_tx .text.rs485_configure_gpio_address - 0x08002898 0x8c ./Core/Src/rs485_driver.o + 0x08002b14 0x8c ./Core/Src/rs485_driver.o .text.rs485_configure_usart1 - 0x08002924 0x74 ./Core/Src/rs485_driver.o + 0x08002ba0 0x74 ./Core/Src/rs485_driver.o .text.HAL_MspInit - 0x08002998 0x64 ./Core/Src/stm32f1xx_hal_msp.o - 0x08002998 HAL_MspInit + 0x08002c14 0x64 ./Core/Src/stm32f1xx_hal_msp.o + 0x08002c14 HAL_MspInit .text.NMI_Handler - 0x080029fc 0x8 ./Core/Src/stm32f1xx_it.o - 0x080029fc NMI_Handler + 0x08002c78 0x8 ./Core/Src/stm32f1xx_it.o + 0x08002c78 NMI_Handler .text.HardFault_Handler - 0x08002a04 0x8 ./Core/Src/stm32f1xx_it.o - 0x08002a04 HardFault_Handler + 0x08002c80 0x8 ./Core/Src/stm32f1xx_it.o + 0x08002c80 HardFault_Handler .text.MemManage_Handler - 0x08002a0c 0x8 ./Core/Src/stm32f1xx_it.o - 0x08002a0c MemManage_Handler + 0x08002c88 0x8 ./Core/Src/stm32f1xx_it.o + 0x08002c88 MemManage_Handler .text.BusFault_Handler - 0x08002a14 0x8 ./Core/Src/stm32f1xx_it.o - 0x08002a14 BusFault_Handler + 0x08002c90 0x8 ./Core/Src/stm32f1xx_it.o + 0x08002c90 BusFault_Handler .text.UsageFault_Handler - 0x08002a1c 0x8 ./Core/Src/stm32f1xx_it.o - 0x08002a1c UsageFault_Handler + 0x08002c98 0x8 ./Core/Src/stm32f1xx_it.o + 0x08002c98 UsageFault_Handler .text.SVC_Handler - 0x08002a24 0xc ./Core/Src/stm32f1xx_it.o - 0x08002a24 SVC_Handler + 0x08002ca0 0xc ./Core/Src/stm32f1xx_it.o + 0x08002ca0 SVC_Handler .text.DebugMon_Handler - 0x08002a30 0xc ./Core/Src/stm32f1xx_it.o - 0x08002a30 DebugMon_Handler + 0x08002cac 0xc ./Core/Src/stm32f1xx_it.o + 0x08002cac DebugMon_Handler .text.PendSV_Handler - 0x08002a3c 0xc ./Core/Src/stm32f1xx_it.o - 0x08002a3c PendSV_Handler + 0x08002cb8 0xc ./Core/Src/stm32f1xx_it.o + 0x08002cb8 PendSV_Handler .text.SysTick_Handler - 0x08002a48 0xc ./Core/Src/stm32f1xx_it.o - 0x08002a48 SysTick_Handler + 0x08002cc4 0xc ./Core/Src/stm32f1xx_it.o + 0x08002cc4 SysTick_Handler .text.USART1_IRQHandler - 0x08002a54 0x14 ./Core/Src/stm32f1xx_it.o - 0x08002a54 USART1_IRQHandler + 0x08002cd0 0x14 ./Core/Src/stm32f1xx_it.o + 0x08002cd0 USART1_IRQHandler .text.SystemInit - 0x08002a68 0xc ./Core/Src/system_stm32f1xx.o - 0x08002a68 SystemInit + 0x08002ce4 0xc ./Core/Src/system_stm32f1xx.o + 0x08002ce4 SystemInit .text.MX_USART1_UART_Init - 0x08002a74 0x54 ./Core/Src/usart.o - 0x08002a74 MX_USART1_UART_Init + 0x08002cf0 0x54 ./Core/Src/usart.o + 0x08002cf0 MX_USART1_UART_Init .text.HAL_UART_MspInit - 0x08002ac8 0xa8 ./Core/Src/usart.o - 0x08002ac8 HAL_UART_MspInit + 0x08002d44 0xa8 ./Core/Src/usart.o + 0x08002d44 HAL_UART_MspInit .text.Reset_Handler - 0x08002b70 0x48 ./Core/Startup/startup_stm32f103c8tx.o - 0x08002b70 Reset_Handler + 0x08002dec 0x48 ./Core/Startup/startup_stm32f103c8tx.o + 0x08002dec Reset_Handler .text.Default_Handler - 0x08002bb8 0x2 ./Core/Startup/startup_stm32f103c8tx.o - 0x08002bb8 RTC_Alarm_IRQHandler - 0x08002bb8 EXTI2_IRQHandler - 0x08002bb8 TIM1_CC_IRQHandler - 0x08002bb8 PVD_IRQHandler - 0x08002bb8 EXTI3_IRQHandler - 0x08002bb8 EXTI0_IRQHandler - 0x08002bb8 I2C2_EV_IRQHandler - 0x08002bb8 ADC1_2_IRQHandler - 0x08002bb8 SPI1_IRQHandler - 0x08002bb8 TAMPER_IRQHandler - 0x08002bb8 DMA1_Channel4_IRQHandler - 0x08002bb8 USART3_IRQHandler - 0x08002bb8 RTC_IRQHandler - 0x08002bb8 DMA1_Channel7_IRQHandler - 0x08002bb8 CAN1_RX1_IRQHandler - 0x08002bb8 TIM4_IRQHandler - 0x08002bb8 I2C1_EV_IRQHandler - 0x08002bb8 DMA1_Channel6_IRQHandler - 0x08002bb8 TIM3_IRQHandler - 0x08002bb8 RCC_IRQHandler - 0x08002bb8 TIM1_TRG_COM_IRQHandler - 0x08002bb8 DMA1_Channel1_IRQHandler - 0x08002bb8 Default_Handler - 0x08002bb8 EXTI15_10_IRQHandler - 0x08002bb8 EXTI9_5_IRQHandler - 0x08002bb8 SPI2_IRQHandler - 0x08002bb8 DMA1_Channel5_IRQHandler - 0x08002bb8 EXTI4_IRQHandler - 0x08002bb8 USB_LP_CAN1_RX0_IRQHandler - 0x08002bb8 USB_HP_CAN1_TX_IRQHandler - 0x08002bb8 DMA1_Channel3_IRQHandler - 0x08002bb8 TIM1_UP_IRQHandler - 0x08002bb8 WWDG_IRQHandler - 0x08002bb8 TIM2_IRQHandler - 0x08002bb8 TIM1_BRK_IRQHandler - 0x08002bb8 EXTI1_IRQHandler - 0x08002bb8 USART2_IRQHandler - 0x08002bb8 I2C2_ER_IRQHandler - 0x08002bb8 DMA1_Channel2_IRQHandler - 0x08002bb8 CAN1_SCE_IRQHandler - 0x08002bb8 FLASH_IRQHandler - 0x08002bb8 I2C1_ER_IRQHandler - 0x08002bb8 USBWakeUp_IRQHandler - *fill* 0x08002bba 0x2 + 0x08002e34 0x2 ./Core/Startup/startup_stm32f103c8tx.o + 0x08002e34 RTC_Alarm_IRQHandler + 0x08002e34 EXTI2_IRQHandler + 0x08002e34 TIM1_CC_IRQHandler + 0x08002e34 PVD_IRQHandler + 0x08002e34 EXTI3_IRQHandler + 0x08002e34 EXTI0_IRQHandler + 0x08002e34 I2C2_EV_IRQHandler + 0x08002e34 ADC1_2_IRQHandler + 0x08002e34 SPI1_IRQHandler + 0x08002e34 TAMPER_IRQHandler + 0x08002e34 DMA1_Channel4_IRQHandler + 0x08002e34 USART3_IRQHandler + 0x08002e34 RTC_IRQHandler + 0x08002e34 DMA1_Channel7_IRQHandler + 0x08002e34 CAN1_RX1_IRQHandler + 0x08002e34 TIM4_IRQHandler + 0x08002e34 I2C1_EV_IRQHandler + 0x08002e34 DMA1_Channel6_IRQHandler + 0x08002e34 TIM3_IRQHandler + 0x08002e34 RCC_IRQHandler + 0x08002e34 TIM1_TRG_COM_IRQHandler + 0x08002e34 DMA1_Channel1_IRQHandler + 0x08002e34 Default_Handler + 0x08002e34 EXTI15_10_IRQHandler + 0x08002e34 EXTI9_5_IRQHandler + 0x08002e34 SPI2_IRQHandler + 0x08002e34 DMA1_Channel5_IRQHandler + 0x08002e34 EXTI4_IRQHandler + 0x08002e34 USB_LP_CAN1_RX0_IRQHandler + 0x08002e34 USB_HP_CAN1_TX_IRQHandler + 0x08002e34 DMA1_Channel3_IRQHandler + 0x08002e34 TIM1_UP_IRQHandler + 0x08002e34 WWDG_IRQHandler + 0x08002e34 TIM2_IRQHandler + 0x08002e34 TIM1_BRK_IRQHandler + 0x08002e34 EXTI1_IRQHandler + 0x08002e34 USART2_IRQHandler + 0x08002e34 I2C2_ER_IRQHandler + 0x08002e34 DMA1_Channel2_IRQHandler + 0x08002e34 CAN1_SCE_IRQHandler + 0x08002e34 FLASH_IRQHandler + 0x08002e34 I2C1_ER_IRQHandler + 0x08002e34 USBWakeUp_IRQHandler + *fill* 0x08002e36 0x2 .text.HAL_Init - 0x08002bbc 0x2c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x08002bbc HAL_Init + 0x08002e38 0x2c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x08002e38 HAL_Init .text.HAL_InitTick - 0x08002be8 0x60 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x08002be8 HAL_InitTick + 0x08002e64 0x60 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x08002e64 HAL_InitTick .text.HAL_IncTick - 0x08002c48 0x24 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x08002c48 HAL_IncTick + 0x08002ec4 0x24 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x08002ec4 HAL_IncTick .text.HAL_GetTick - 0x08002c6c 0x14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x08002c6c HAL_GetTick + 0x08002ee8 0x14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x08002ee8 HAL_GetTick .text.HAL_Delay - 0x08002c80 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x08002c80 HAL_Delay + 0x08002efc 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x08002efc HAL_Delay .text.HAL_ADC_Init - 0x08002cc8 0x1b0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o - 0x08002cc8 HAL_ADC_Init + 0x08002f44 0x1b0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o + 0x08002f44 HAL_ADC_Init .text.HAL_ADC_ConfigChannel - 0x08002e78 0x1f0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o - 0x08002e78 HAL_ADC_ConfigChannel + 0x080030f4 0x1f0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o + 0x080030f4 HAL_ADC_ConfigChannel .text.ADC_ConversionStop_Disable - 0x08003068 0x82 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o - 0x08003068 ADC_ConversionStop_Disable - *fill* 0x080030ea 0x2 + 0x080032e4 0x82 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o + 0x080032e4 ADC_ConversionStop_Disable + *fill* 0x08003366 0x2 .text.__NVIC_SetPriorityGrouping - 0x080030ec 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x08003368 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.__NVIC_GetPriorityGrouping - 0x08003134 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x080033b0 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.__NVIC_EnableIRQ - 0x08003150 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x080033cc 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.__NVIC_SetPriority - 0x08003188 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x08003404 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.NVIC_EncodePriority - 0x080031dc 0x64 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x08003458 0x64 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.SysTick_Config - 0x08003240 0x44 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x080034bc 0x44 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.HAL_NVIC_SetPriorityGrouping - 0x08003284 0x16 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x08003284 HAL_NVIC_SetPriorityGrouping + 0x08003500 0x16 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x08003500 HAL_NVIC_SetPriorityGrouping .text.HAL_NVIC_SetPriority - 0x0800329a 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x0800329a HAL_NVIC_SetPriority + 0x08003516 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x08003516 HAL_NVIC_SetPriority .text.HAL_NVIC_EnableIRQ - 0x080032d2 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x080032d2 HAL_NVIC_EnableIRQ + 0x0800354e 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0800354e HAL_NVIC_EnableIRQ .text.HAL_SYSTICK_Config - 0x080032ee 0x18 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x080032ee HAL_SYSTICK_Config + 0x0800356a 0x18 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0800356a HAL_SYSTICK_Config .text.HAL_DMA_Abort - 0x08003306 0x76 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o - 0x08003306 HAL_DMA_Abort + 0x08003582 0x76 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + 0x08003582 HAL_DMA_Abort .text.HAL_DMA_Abort_IT - 0x0800337c 0xf0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o - 0x0800337c HAL_DMA_Abort_IT + 0x080035f8 0xf0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + 0x080035f8 HAL_DMA_Abort_IT .text.HAL_FLASH_Program - 0x0800346c 0xe0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - 0x0800346c HAL_FLASH_Program + 0x080036e8 0xe0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + 0x080036e8 HAL_FLASH_Program .text.HAL_FLASH_Unlock - 0x0800354c 0x4c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - 0x0800354c HAL_FLASH_Unlock + 0x080037c8 0x4c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + 0x080037c8 HAL_FLASH_Unlock .text.HAL_FLASH_Lock - 0x08003598 0x20 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - 0x08003598 HAL_FLASH_Lock + 0x08003814 0x20 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + 0x08003814 HAL_FLASH_Lock .text.FLASH_Program_HalfWord - 0x080035b8 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + 0x08003834 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .text.FLASH_WaitForLastOperation - 0x080035f0 0x8c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - 0x080035f0 FLASH_WaitForLastOperation + 0x0800386c 0x8c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + 0x0800386c FLASH_WaitForLastOperation .text.FLASH_SetErrorCode - 0x0800367c 0xa0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + 0x080038f8 0xa0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .text.HAL_FLASHEx_Erase - 0x0800371c 0xd8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o - 0x0800371c HAL_FLASHEx_Erase + 0x08003998 0xd8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + 0x08003998 HAL_FLASHEx_Erase .text.FLASH_MassErase - 0x080037f4 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + 0x08003a70 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .text.FLASH_PageErase - 0x0800382c 0x40 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o - 0x0800382c FLASH_PageErase + 0x08003aa8 0x40 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + 0x08003aa8 FLASH_PageErase .text.HAL_GPIO_Init - 0x0800386c 0x308 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x0800386c HAL_GPIO_Init + 0x08003ae8 0x308 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x08003ae8 HAL_GPIO_Init .text.HAL_GPIO_ReadPin - 0x08003b74 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x08003b74 HAL_GPIO_ReadPin + 0x08003df0 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x08003df0 HAL_GPIO_ReadPin .text.HAL_GPIO_WritePin - 0x08003ba2 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x08003ba2 HAL_GPIO_WritePin + 0x08003e1e 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x08003e1e HAL_GPIO_WritePin .text.HAL_GPIO_TogglePin - 0x08003bd2 0x32 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x08003bd2 HAL_GPIO_TogglePin + 0x08003e4e 0x32 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x08003e4e HAL_GPIO_TogglePin .text.HAL_I2C_Init - 0x08003c04 0x288 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - 0x08003c04 HAL_I2C_Init + 0x08003e80 0x288 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x08003e80 HAL_I2C_Init .text.HAL_I2C_Master_Transmit - 0x08003e8c 0x1fc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - 0x08003e8c HAL_I2C_Master_Transmit + 0x08004108 0x1fc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x08004108 HAL_I2C_Master_Transmit .text.HAL_I2C_Master_Receive - 0x08004088 0x4d8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - 0x08004088 HAL_I2C_Master_Receive + 0x08004304 0x4d8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x08004304 HAL_I2C_Master_Receive .text.I2C_MasterRequestWrite - 0x08004560 0x104 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x080047dc 0x104 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_MasterRequestRead - 0x08004664 0x19c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x080048e0 0x19c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_WaitOnFlagUntilTimeout - 0x08004800 0xf4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x08004a7c 0xf4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_WaitOnMasterAddressFlagUntilTimeout - 0x080048f4 0x140 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x08004b70 0x140 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_WaitOnTXEFlagUntilTimeout - 0x08004a34 0x90 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x08004cb0 0x90 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_WaitOnBTFFlagUntilTimeout - 0x08004ac4 0x90 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x08004d40 0x90 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_WaitOnRXNEFlagUntilTimeout - 0x08004b54 0xba ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x08004dd0 0xba ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_IsAcknowledgeFailed - 0x08004c0e 0x5c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - *fill* 0x08004c6a 0x2 + 0x08004e8a 0x5c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + *fill* 0x08004ee6 0x2 .text.HAL_RCC_OscConfig - 0x08004c6c 0x504 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x08004c6c HAL_RCC_OscConfig + 0x08004ee8 0x504 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x08004ee8 HAL_RCC_OscConfig .text.HAL_RCC_ClockConfig - 0x08005170 0x1d4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x08005170 HAL_RCC_ClockConfig + 0x080053ec 0x1d4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x080053ec HAL_RCC_ClockConfig .text.HAL_RCC_GetSysClockFreq - 0x08005344 0xac ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x08005344 HAL_RCC_GetSysClockFreq + 0x080055c0 0xac ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x080055c0 HAL_RCC_GetSysClockFreq .text.HAL_RCC_GetHCLKFreq - 0x080053f0 0x14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x080053f0 HAL_RCC_GetHCLKFreq + 0x0800566c 0x14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0800566c HAL_RCC_GetHCLKFreq .text.HAL_RCC_GetPCLK1Freq - 0x08005404 0x28 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x08005404 HAL_RCC_GetPCLK1Freq + 0x08005680 0x28 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x08005680 HAL_RCC_GetPCLK1Freq .text.HAL_RCC_GetPCLK2Freq - 0x0800542c 0x28 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x0800542c HAL_RCC_GetPCLK2Freq + 0x080056a8 0x28 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x080056a8 HAL_RCC_GetPCLK2Freq .text.RCC_Delay - 0x08005454 0x3c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x080056d0 0x3c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .text.HAL_RCCEx_PeriphCLKConfig - 0x08005490 0x16c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o - 0x08005490 HAL_RCCEx_PeriphCLKConfig + 0x0800570c 0x16c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + 0x0800570c HAL_RCCEx_PeriphCLKConfig .text.HAL_UART_Init - 0x080055fc 0xa0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o - 0x080055fc HAL_UART_Init + 0x08005878 0xa0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x08005878 HAL_UART_Init .text.HAL_UART_Transmit - 0x0800569c 0x116 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o - 0x0800569c HAL_UART_Transmit - *fill* 0x080057b2 0x2 + 0x08005918 0x116 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x08005918 HAL_UART_Transmit + *fill* 0x08005a2e 0x2 .text.HAL_UART_IRQHandler - 0x080057b4 0x524 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o - 0x080057b4 HAL_UART_IRQHandler + 0x08005a30 0x524 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x08005a30 HAL_UART_IRQHandler .text.HAL_UART_TxCpltCallback - 0x08005cd8 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o - 0x08005cd8 HAL_UART_TxCpltCallback + 0x08005f54 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x08005f54 HAL_UART_TxCpltCallback .text.HAL_UART_RxCpltCallback - 0x08005cea 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o - 0x08005cea HAL_UART_RxCpltCallback + 0x08005f66 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x08005f66 HAL_UART_RxCpltCallback .text.HAL_UART_ErrorCallback - 0x08005cfc 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o - 0x08005cfc HAL_UART_ErrorCallback + 0x08005f78 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x08005f78 HAL_UART_ErrorCallback .text.HAL_UARTEx_RxEventCallback - 0x08005d0e 0x16 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o - 0x08005d0e HAL_UARTEx_RxEventCallback + 0x08005f8a 0x16 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x08005f8a HAL_UARTEx_RxEventCallback .text.UART_WaitOnFlagUntilTimeout - 0x08005d24 0xb2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x08005fa0 0xb2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o .text.UART_EndRxTransfer - 0x08005dd6 0xc4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x08006052 0xc4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o .text.UART_DMAAbortOnError - 0x08005e9a 0x28 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x08006116 0x28 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o .text.UART_Transmit_IT - 0x08005ec2 0x9e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x0800613e 0x9e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o .text.UART_EndTransmit_IT - 0x08005f60 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x080061dc 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o .text.UART_Receive_IT - 0x08005f90 0x17c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x0800620c 0x17c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o .text.UART_SetConfig - 0x0800610c 0x11c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o - .text.memset 0x08006228 0x10 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-memset.o) - 0x08006228 memset - .text.__errno 0x08006238 0xc C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-errno.o) - 0x08006238 __errno + 0x08006388 0x11c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + .text.memset 0x080064a4 0x10 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-memset.o) + 0x080064a4 memset + .text.__errno 0x080064b4 0xc C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-errno.o) + 0x080064b4 __errno .text.__libc_init_array - 0x08006244 0x48 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-init.o) - 0x08006244 __libc_init_array - .text.memcpy 0x0800628c 0x1c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-memcpy-stub.o) - 0x0800628c memcpy - .text.sqrtf 0x080062a8 0x3c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-wf_sqrt.o) - 0x080062a8 sqrtf + 0x080064c0 0x48 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-init.o) + 0x080064c0 __libc_init_array + .text.memcpy 0x08006508 0x1c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-memcpy-stub.o) + 0x08006508 memcpy + .text.sqrtf 0x08006524 0x3c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-wf_sqrt.o) + 0x08006524 sqrtf .text.__ieee754_sqrtf - 0x080062e4 0xe4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-ef_sqrt.o) - 0x080062e4 __ieee754_sqrtf - .text.roundf 0x080063c8 0x48 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-sf_round.o) - 0x080063c8 roundf + 0x08006560 0xe4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-ef_sqrt.o) + 0x08006560 __ieee754_sqrtf + .text.roundf 0x08006644 0x48 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-sf_round.o) + 0x08006644 roundf *(.glue_7) - .glue_7 0x08006410 0x0 linker stubs + .glue_7 0x0800668c 0x0 linker stubs *(.glue_7t) - .glue_7t 0x08006410 0x0 linker stubs + .glue_7t 0x0800668c 0x0 linker stubs *(.eh_frame) - .eh_frame 0x08006410 0x0 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o + .eh_frame 0x0800668c 0x0 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o *(.init) - .init 0x08006410 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crti.o - 0x08006410 _init - .init 0x08006414 0x8 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtn.o + .init 0x0800668c 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crti.o + 0x0800668c _init + .init 0x08006690 0x8 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtn.o *(.fini) - .fini 0x0800641c 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crti.o - 0x0800641c _fini - .fini 0x08006420 0x8 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtn.o - 0x08006428 . = ALIGN (0x4) - 0x08006428 _etext = . + .fini 0x08006698 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crti.o + 0x08006698 _fini + .fini 0x0800669c 0x8 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtn.o + 0x080066a4 . = ALIGN (0x4) + 0x080066a4 _etext = . -.vfp11_veneer 0x08006428 0x0 - .vfp11_veneer 0x08006428 0x0 linker stubs +.vfp11_veneer 0x080066a4 0x0 + .vfp11_veneer 0x080066a4 0x0 linker stubs -.v4_bx 0x08006428 0x0 - .v4_bx 0x08006428 0x0 linker stubs +.v4_bx 0x080066a4 0x0 + .v4_bx 0x080066a4 0x0 linker stubs -.iplt 0x08006428 0x0 - .iplt 0x08006428 0x0 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o +.iplt 0x080066a4 0x0 + .iplt 0x080066a4 0x0 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o -.rodata 0x08006428 0x74 - 0x08006428 . = ALIGN (0x4) +.rodata 0x080066a4 0x174 + 0x080066a4 . = ALIGN (0x4) *(.rodata) + .rodata 0x080066a4 0x60 ./Core/Src/ad5934_driver.o + .rodata 0x08006704 0x90 ./Core/Src/ads1015_driver.o *(.rodata*) + .rodata.ADG715_Channel_Map + 0x08006794 0xf ./Core/Src/ad5934_driver.o + *fill* 0x080067a3 0x1 .rodata.output_pins - 0x08006428 0x40 ./Core/Src/digital_outputs_driver.o + 0x080067a4 0x40 ./Core/Src/digital_outputs_driver.o .rodata.AHBPrescTable - 0x08006468 0x10 ./Core/Src/system_stm32f1xx.o - 0x08006468 AHBPrescTable + 0x080067e4 0x10 ./Core/Src/system_stm32f1xx.o + 0x080067e4 AHBPrescTable .rodata.APBPrescTable - 0x08006478 0x8 ./Core/Src/system_stm32f1xx.o - 0x08006478 APBPrescTable + 0x080067f4 0x8 ./Core/Src/system_stm32f1xx.o + 0x080067f4 APBPrescTable .rodata.aPLLMULFactorTable.1 - 0x08006480 0x10 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x080067fc 0x10 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .rodata.aPredivFactorTable.0 - 0x08006490 0x2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - *fill* 0x08006492 0x2 - .rodata.tiny 0x08006494 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-ef_sqrt.o) - .rodata.one 0x08006498 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-ef_sqrt.o) - 0x0800649c . = ALIGN (0x4) + 0x0800680c 0x2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + *fill* 0x0800680e 0x2 + .rodata.tiny 0x08006810 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-ef_sqrt.o) + .rodata.one 0x08006814 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-ef_sqrt.o) + 0x08006818 . = ALIGN (0x4) -.ARM.extab 0x0800649c 0x0 - 0x0800649c . = ALIGN (0x4) +.ARM.extab 0x08006818 0x0 + 0x08006818 . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x0800649c . = ALIGN (0x4) + 0x08006818 . = ALIGN (0x4) -.ARM 0x0800649c 0x8 - 0x0800649c . = ALIGN (0x4) - 0x0800649c __exidx_start = . +.ARM 0x08006818 0x8 + 0x08006818 . = ALIGN (0x4) + 0x08006818 __exidx_start = . *(.ARM.exidx*) - .ARM.exidx 0x0800649c 0x8 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-strlen.o) - 0x080064a4 __exidx_end = . - 0x080064a4 . = ALIGN (0x4) + .ARM.exidx 0x08006818 0x8 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-strlen.o) + 0x08006820 __exidx_end = . + 0x08006820 . = ALIGN (0x4) -.preinit_array 0x080064a4 0x0 - 0x080064a4 . = ALIGN (0x4) - 0x080064a4 PROVIDE (__preinit_array_start = .) +.preinit_array 0x08006820 0x0 + 0x08006820 . = ALIGN (0x4) + 0x08006820 PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x080064a4 PROVIDE (__preinit_array_end = .) - 0x080064a4 . = ALIGN (0x4) + 0x08006820 PROVIDE (__preinit_array_end = .) + 0x08006820 . = ALIGN (0x4) -.init_array 0x080064a4 0x4 - 0x080064a4 . = ALIGN (0x4) - 0x080064a4 PROVIDE (__init_array_start = .) +.init_array 0x08006820 0x4 + 0x08006820 . = ALIGN (0x4) + 0x08006820 PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x080064a4 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o - 0x080064a8 PROVIDE (__init_array_end = .) - 0x080064a8 . = ALIGN (0x4) + .init_array 0x08006820 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o + 0x08006824 PROVIDE (__init_array_end = .) + 0x08006824 . = ALIGN (0x4) -.fini_array 0x080064a8 0x4 - 0x080064a8 . = ALIGN (0x4) +.fini_array 0x08006824 0x4 + 0x08006824 . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x080064a8 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o + .fini_array 0x08006824 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o [!provide] PROVIDE (__fini_array_end = .) - 0x080064ac . = ALIGN (0x4) - 0x080064ac _sidata = LOADADDR (.data) + 0x08006828 . = ALIGN (0x4) + 0x08006828 _sidata = LOADADDR (.data) -.rel.dyn 0x080064ac 0x0 - .rel.iplt 0x080064ac 0x0 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o +.rel.dyn 0x08006828 0x0 + .rel.iplt 0x08006828 0x0 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o -.data 0x20000000 0x74 load address 0x080064ac +.data 0x20000000 0x90 load address 0x08006828 0x20000000 . = ALIGN (0x4) 0x20000000 _sdata = . *(.data) *(.data*) + .data.newline 0x20000000 0x2 ./Core/Src/main.o + 0x20000000 newline + *fill* 0x20000002 0x2 .data.newline_ph - 0x20000000 0x5 ./Core/Src/main.o - 0x20000000 newline_ph - *fill* 0x20000005 0x3 + 0x20000004 0x5 ./Core/Src/main.o + 0x20000004 newline_ph + *fill* 0x20000009 0x3 .data.newline_admi - 0x20000008 0x5 ./Core/Src/main.o - 0x20000008 newline_admi - *fill* 0x2000000d 0x3 + 0x2000000c 0x5 ./Core/Src/main.o + 0x2000000c newline_admi + *fill* 0x20000011 0x3 .data.newline_temp - 0x20000010 0x5 ./Core/Src/main.o - 0x20000010 newline_temp - *fill* 0x20000015 0x3 - .data.SystemCoreClock - 0x20000018 0x4 ./Core/Src/system_stm32f1xx.o - 0x20000018 SystemCoreClock - .data.uwTickPrio - 0x2000001c 0x4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x2000001c uwTickPrio - .data.uwTickFreq - 0x20000020 0x1 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x20000020 uwTickFreq + 0x20000014 0x5 ./Core/Src/main.o + 0x20000014 newline_temp + *fill* 0x20000019 0x3 + .data.ad_t 0x2000001c 0x5 ./Core/Src/main.o + 0x2000001c ad_t *fill* 0x20000021 0x3 + .data.ph_t 0x20000024 0x5 ./Core/Src/main.o + 0x20000024 ph_t + *fill* 0x20000029 0x3 + .data.tm_t 0x2000002c 0x5 ./Core/Src/main.o + 0x2000002c tm_t + *fill* 0x20000031 0x3 + .data.SystemCoreClock + 0x20000034 0x4 ./Core/Src/system_stm32f1xx.o + 0x20000034 SystemCoreClock + .data.uwTickPrio + 0x20000038 0x4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x20000038 uwTickPrio + .data.uwTickFreq + 0x2000003c 0x1 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x2000003c uwTickFreq + *fill* 0x2000003d 0x3 .data._impure_ptr - 0x20000024 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-impure.o) - 0x20000024 _impure_ptr + 0x20000040 0x4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-impure.o) + 0x20000040 _impure_ptr .data._impure_data - 0x20000028 0x4c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-impure.o) - 0x20000028 _impure_data + 0x20000044 0x4c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-impure.o) + 0x20000044 _impure_data *(.RamFunc) *(.RamFunc*) - 0x20000074 . = ALIGN (0x4) - 0x20000074 _edata = . + 0x20000090 . = ALIGN (0x4) + 0x20000090 _edata = . -.igot.plt 0x20000074 0x0 load address 0x08006520 - .igot.plt 0x20000074 0x0 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o - 0x20000074 . = ALIGN (0x4) +.igot.plt 0x20000090 0x0 load address 0x080068b8 + .igot.plt 0x20000090 0x0 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o + 0x20000090 . = ALIGN (0x4) -.bss 0x20000078 0x7d0 load address 0x08006520 - 0x20000078 _sbss = . - 0x20000078 __bss_start__ = _sbss +.bss 0x20000090 0x830 load address 0x080068b8 + 0x20000090 _sbss = . + 0x20000090 __bss_start__ = _sbss *(.bss) - .bss 0x20000078 0x1c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o + .bss 0x20000090 0x1c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp/crtbegin.o *(.bss*) .bss.temperature_dut_samples - 0x20000094 0x20 ./Core/Src/ad5934_driver.o - 0x20000094 temperature_dut_samples + 0x200000ac 0x40 ./Core/Src/ad5934_driver.o + 0x200000ac temperature_dut_samples .bss.temperature_ref_samples - 0x200000b4 0x20 ./Core/Src/ad5934_driver.o - 0x200000b4 temperature_ref_samples - .bss.temperature_display - 0x200000d4 0x20 ./Core/Src/ad5934_driver.o - 0x200000d4 temperature_display + 0x200000ec 0x40 ./Core/Src/ad5934_driver.o + 0x200000ec temperature_ref_samples .bss.ec_dut_samples - 0x200000f4 0x20 ./Core/Src/ad5934_driver.o - 0x200000f4 ec_dut_samples - .bss.hadc1 0x20000114 0x30 ./Core/Src/adc.o - 0x20000114 hadc1 - .bss.hadc2 0x20000144 0x30 ./Core/Src/adc.o - 0x20000144 hadc2 - .bss.i2c 0x20000174 0x10 ./Core/Src/ads1015_driver.o - 0x20000174 i2c + 0x2000012c 0x40 ./Core/Src/ad5934_driver.o + 0x2000012c ec_dut_samples + .bss.hadc1 0x2000016c 0x30 ./Core/Src/adc.o + 0x2000016c hadc1 + .bss.hadc2 0x2000019c 0x30 ./Core/Src/adc.o + 0x2000019c hadc2 + .bss.i2c 0x200001cc 0x10 ./Core/Src/ads1015_driver.o + 0x200001cc i2c .bss.ph_dut_samples - 0x20000184 0x20 ./Core/Src/ads1015_driver.o - 0x20000184 ph_dut_samples + 0x200001dc 0x40 ./Core/Src/ads1015_driver.o + 0x200001dc ph_dut_samples .bss.pin_states - 0x200001a4 0x8 ./Core/Src/digital_outputs_driver.o + 0x2000021c 0x8 ./Core/Src/digital_outputs_driver.o .bss.flash_data - 0x200001ac 0x400 ./Core/Src/flash_manager.o - 0x200001ac flash_data - .bss.hi2c1 0x200005ac 0x54 ./Core/Src/i2c.o - 0x200005ac hi2c1 - .bss.hi2c2 0x20000600 0x54 ./Core/Src/i2c.o - 0x20000600 hi2c2 + 0x20000224 0x400 ./Core/Src/flash_manager.o + 0x20000224 flash_data + .bss.hi2c1 0x20000624 0x54 ./Core/Src/i2c.o + 0x20000624 hi2c1 + .bss.hi2c2 0x20000678 0x54 ./Core/Src/i2c.o + 0x20000678 hi2c2 .bss.main_state - 0x20000654 0x1 ./Core/Src/main.o - 0x20000654 main_state - *fill* 0x20000655 0x3 + 0x200006cc 0x1 ./Core/Src/main.o + 0x200006cc main_state + *fill* 0x200006cd 0x3 .bss.device_address - 0x20000658 0x3 ./Core/Src/rs485_driver.o - *fill* 0x2000065b 0x1 - .bss.huart1 0x2000065c 0x48 ./Core/Src/rs485_driver.o - .bss.huart1 0x200006a4 0x48 ./Core/Src/usart.o - 0x200006a4 huart1 - .bss.uwTick 0x200006ec 0x4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x200006ec uwTick - .bss.pFlash 0x200006f0 0x20 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - 0x200006f0 pFlash - .bss.__sf 0x20000710 0x138 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-findfp.o) - 0x20000710 __sf + 0x200006d0 0x3 ./Core/Src/rs485_driver.o + *fill* 0x200006d3 0x1 + .bss.huart1 0x200006d4 0x48 ./Core/Src/rs485_driver.o + .bss.huart1 0x2000071c 0x48 ./Core/Src/usart.o + 0x2000071c huart1 + .bss.uwTick 0x20000764 0x4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x20000764 uwTick + .bss.pFlash 0x20000768 0x20 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + 0x20000768 pFlash + .bss.__sf 0x20000788 0x138 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-findfp.o) + 0x20000788 __sf *(COMMON) - 0x20000848 . = ALIGN (0x4) - 0x20000848 _ebss = . - 0x20000848 __bss_end__ = _ebss + 0x200008c0 . = ALIGN (0x4) + 0x200008c0 _ebss = . + 0x200008c0 __bss_end__ = _ebss ._user_heap_stack - 0x20000848 0x600 load address 0x08006520 - 0x20000848 . = ALIGN (0x8) + 0x200008c0 0x600 load address 0x080068b8 + 0x200008c0 . = ALIGN (0x8) [!provide] PROVIDE (end = .) - 0x20000848 PROVIDE (_end = .) - 0x20000a48 . = (. + _Min_Heap_Size) - *fill* 0x20000848 0x200 - 0x20000e48 . = (. + _Min_Stack_Size) - *fill* 0x20000a48 0x400 - 0x20000e48 . = ALIGN (0x8) + 0x200008c0 PROVIDE (_end = .) + 0x20000ac0 . = (. + _Min_Heap_Size) + *fill* 0x200008c0 0x200 + 0x20000ec0 . = (. + _Min_Stack_Size) + *fill* 0x20000ac0 0x400 + 0x20000ec0 . = ALIGN (0x8) /DISCARD/ libc.a(*) @@ -4544,166 +4572,166 @@ LOAD C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.exte LOAD C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a LOAD C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a -.debug_info 0x00000000 0xfafc - .debug_info 0x00000000 0xf25 ./Core/Src/ad5934_driver.o - .debug_info 0x00000f25 0x825 ./Core/Src/adc.o - .debug_info 0x0000174a 0xd0f ./Core/Src/ads1015_driver.o - .debug_info 0x00002459 0x3c2 ./Core/Src/digital_outputs_driver.o - .debug_info 0x0000281b 0x351 ./Core/Src/flash_manager.o - .debug_info 0x00002b6c 0x396 ./Core/Src/gpio.o - .debug_info 0x00002f02 0x83b ./Core/Src/i2c.o - .debug_info 0x0000373d 0x1067 ./Core/Src/main.o - .debug_info 0x000047a4 0x993 ./Core/Src/rs485_driver.o - .debug_info 0x00005137 0x1f1 ./Core/Src/stm32f1xx_hal_msp.o - .debug_info 0x00005328 0x5eb ./Core/Src/stm32f1xx_it.o - .debug_info 0x00005913 0x222 ./Core/Src/system_stm32f1xx.o - .debug_info 0x00005b35 0x92a ./Core/Src/usart.o - .debug_info 0x0000645f 0x30 ./Core/Startup/startup_stm32f103c8tx.o - .debug_info 0x0000648f 0x704 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_info 0x00006b93 0xc50 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o - .debug_info 0x000077e3 0xa87 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_info 0x0000826a 0x6d2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o - .debug_info 0x0000893c 0x4f8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - .debug_info 0x00008e34 0x777 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o - .debug_info 0x000095ab 0x5ab ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_info 0x00009b56 0x2524 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - .debug_info 0x0000c07a 0x7d5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_info 0x0000c84f 0x3c0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o - .debug_info 0x0000cc0f 0x2eed ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o +.debug_info 0x00000000 0xff7c + .debug_info 0x00000000 0x113e ./Core/Src/ad5934_driver.o + .debug_info 0x0000113e 0x825 ./Core/Src/adc.o + .debug_info 0x00001963 0xda0 ./Core/Src/ads1015_driver.o + .debug_info 0x00002703 0x3c2 ./Core/Src/digital_outputs_driver.o + .debug_info 0x00002ac5 0x378 ./Core/Src/flash_manager.o + .debug_info 0x00002e3d 0x396 ./Core/Src/gpio.o + .debug_info 0x000031d3 0x83b ./Core/Src/i2c.o + .debug_info 0x00003a0e 0x1216 ./Core/Src/main.o + .debug_info 0x00004c24 0x993 ./Core/Src/rs485_driver.o + .debug_info 0x000055b7 0x1f1 ./Core/Src/stm32f1xx_hal_msp.o + .debug_info 0x000057a8 0x5eb ./Core/Src/stm32f1xx_it.o + .debug_info 0x00005d93 0x222 ./Core/Src/system_stm32f1xx.o + .debug_info 0x00005fb5 0x92a ./Core/Src/usart.o + .debug_info 0x000068df 0x30 ./Core/Startup/startup_stm32f103c8tx.o + .debug_info 0x0000690f 0x704 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_info 0x00007013 0xc50 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o + .debug_info 0x00007c63 0xa87 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_info 0x000086ea 0x6d2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_info 0x00008dbc 0x4f8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_info 0x000092b4 0x777 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_info 0x00009a2b 0x5ab ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_info 0x00009fd6 0x2524 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_info 0x0000c4fa 0x7d5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_info 0x0000cccf 0x3c0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_info 0x0000d08f 0x2eed ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o -.debug_abbrev 0x00000000 0x3352 - .debug_abbrev 0x00000000 0x309 ./Core/Src/ad5934_driver.o - .debug_abbrev 0x00000309 0x1e5 ./Core/Src/adc.o - .debug_abbrev 0x000004ee 0x322 ./Core/Src/ads1015_driver.o - .debug_abbrev 0x00000810 0x1ba ./Core/Src/digital_outputs_driver.o - .debug_abbrev 0x000009ca 0x1b7 ./Core/Src/flash_manager.o - .debug_abbrev 0x00000b81 0x1a1 ./Core/Src/gpio.o - .debug_abbrev 0x00000d22 0x1e4 ./Core/Src/i2c.o - .debug_abbrev 0x00000f06 0x31e ./Core/Src/main.o - .debug_abbrev 0x00001224 0x215 ./Core/Src/rs485_driver.o - .debug_abbrev 0x00001439 0xdb ./Core/Src/stm32f1xx_hal_msp.o - .debug_abbrev 0x00001514 0x176 ./Core/Src/stm32f1xx_it.o - .debug_abbrev 0x0000168a 0x13f ./Core/Src/system_stm32f1xx.o - .debug_abbrev 0x000017c9 0x205 ./Core/Src/usart.o - .debug_abbrev 0x000019ce 0x24 ./Core/Startup/startup_stm32f103c8tx.o - .debug_abbrev 0x000019f2 0x201 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_abbrev 0x00001bf3 0x225 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o - .debug_abbrev 0x00001e18 0x2f8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_abbrev 0x00002110 0x20b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o - .debug_abbrev 0x0000231b 0x250 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - .debug_abbrev 0x0000256b 0x247 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o - .debug_abbrev 0x000027b2 0x1ca ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_abbrev 0x0000297c 0x2a3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - .debug_abbrev 0x00002c1f 0x2b3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_abbrev 0x00002ed2 0x188 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o - .debug_abbrev 0x0000305a 0x2f8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o +.debug_abbrev 0x00000000 0x3374 + .debug_abbrev 0x00000000 0x316 ./Core/Src/ad5934_driver.o + .debug_abbrev 0x00000316 0x1e5 ./Core/Src/adc.o + .debug_abbrev 0x000004fb 0x317 ./Core/Src/ads1015_driver.o + .debug_abbrev 0x00000812 0x1ba ./Core/Src/digital_outputs_driver.o + .debug_abbrev 0x000009cc 0x1b7 ./Core/Src/flash_manager.o + .debug_abbrev 0x00000b83 0x1a1 ./Core/Src/gpio.o + .debug_abbrev 0x00000d24 0x1e4 ./Core/Src/i2c.o + .debug_abbrev 0x00000f08 0x33e ./Core/Src/main.o + .debug_abbrev 0x00001246 0x215 ./Core/Src/rs485_driver.o + .debug_abbrev 0x0000145b 0xdb ./Core/Src/stm32f1xx_hal_msp.o + .debug_abbrev 0x00001536 0x176 ./Core/Src/stm32f1xx_it.o + .debug_abbrev 0x000016ac 0x13f ./Core/Src/system_stm32f1xx.o + .debug_abbrev 0x000017eb 0x205 ./Core/Src/usart.o + .debug_abbrev 0x000019f0 0x24 ./Core/Startup/startup_stm32f103c8tx.o + .debug_abbrev 0x00001a14 0x201 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_abbrev 0x00001c15 0x225 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o + .debug_abbrev 0x00001e3a 0x2f8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_abbrev 0x00002132 0x20b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_abbrev 0x0000233d 0x250 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_abbrev 0x0000258d 0x247 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_abbrev 0x000027d4 0x1ca ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_abbrev 0x0000299e 0x2a3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_abbrev 0x00002c41 0x2b3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_abbrev 0x00002ef4 0x188 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_abbrev 0x0000307c 0x2f8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o -.debug_aranges 0x00000000 0xe10 +.debug_aranges 0x00000000 0xe30 .debug_aranges - 0x00000000 0x98 ./Core/Src/ad5934_driver.o + 0x00000000 0xb0 ./Core/Src/ad5934_driver.o .debug_aranges - 0x00000098 0x38 ./Core/Src/adc.o + 0x000000b0 0x38 ./Core/Src/adc.o .debug_aranges - 0x000000d0 0x90 ./Core/Src/ads1015_driver.o + 0x000000e8 0x98 ./Core/Src/ads1015_driver.o .debug_aranges - 0x00000160 0x40 ./Core/Src/digital_outputs_driver.o + 0x00000180 0x40 ./Core/Src/digital_outputs_driver.o .debug_aranges - 0x000001a0 0x28 ./Core/Src/flash_manager.o + 0x000001c0 0x28 ./Core/Src/flash_manager.o .debug_aranges - 0x000001c8 0x28 ./Core/Src/gpio.o + 0x000001e8 0x28 ./Core/Src/gpio.o .debug_aranges - 0x000001f0 0x38 ./Core/Src/i2c.o + 0x00000210 0x38 ./Core/Src/i2c.o .debug_aranges - 0x00000228 0x40 ./Core/Src/main.o + 0x00000248 0x40 ./Core/Src/main.o .debug_aranges - 0x00000268 0x68 ./Core/Src/rs485_driver.o + 0x00000288 0x68 ./Core/Src/rs485_driver.o .debug_aranges - 0x000002d0 0x20 ./Core/Src/stm32f1xx_hal_msp.o + 0x000002f0 0x20 ./Core/Src/stm32f1xx_hal_msp.o .debug_aranges - 0x000002f0 0x68 ./Core/Src/stm32f1xx_it.o + 0x00000310 0x68 ./Core/Src/stm32f1xx_it.o .debug_aranges - 0x00000358 0x28 ./Core/Src/system_stm32f1xx.o + 0x00000378 0x28 ./Core/Src/system_stm32f1xx.o .debug_aranges - 0x00000380 0x30 ./Core/Src/usart.o + 0x000003a0 0x30 ./Core/Src/usart.o .debug_aranges - 0x000003b0 0x28 ./Core/Startup/startup_stm32f103c8tx.o + 0x000003d0 0x28 ./Core/Startup/startup_stm32f103c8tx.o .debug_aranges - 0x000003d8 0xe0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x000003f8 0xe0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_aranges - 0x000004b8 0xf0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o + 0x000004d8 0xf0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o .debug_aranges - 0x000005a8 0x100 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x000005c8 0x100 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_aranges - 0x000006a8 0x80 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + 0x000006c8 0x80 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .debug_aranges - 0x00000728 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + 0x00000748 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .debug_aranges - 0x000007b0 0x98 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + 0x000007d0 0x98 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .debug_aranges - 0x00000848 0x58 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x00000868 0x58 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_aranges - 0x000008a0 0x2a8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x000008c0 0x2a8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .debug_aranges - 0x00000b48 0x90 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x00000b68 0x90 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_aranges - 0x00000bd8 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + 0x00000bf8 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .debug_aranges - 0x00000c08 0x208 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x00000c28 0x208 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o .debug_rnglists - 0x00000000 0xad0 + 0x00000000 0xae8 .debug_rnglists - 0x00000000 0x73 ./Core/Src/ad5934_driver.o + 0x00000000 0x85 ./Core/Src/ad5934_driver.o .debug_rnglists - 0x00000073 0x26 ./Core/Src/adc.o + 0x00000085 0x26 ./Core/Src/adc.o .debug_rnglists - 0x00000099 0x6e ./Core/Src/ads1015_driver.o + 0x000000ab 0x74 ./Core/Src/ads1015_driver.o .debug_rnglists - 0x00000107 0x2c ./Core/Src/digital_outputs_driver.o + 0x0000011f 0x2c ./Core/Src/digital_outputs_driver.o .debug_rnglists - 0x00000133 0x1a ./Core/Src/flash_manager.o + 0x0000014b 0x1a ./Core/Src/flash_manager.o .debug_rnglists - 0x0000014d 0x1a ./Core/Src/gpio.o + 0x00000165 0x1a ./Core/Src/gpio.o .debug_rnglists - 0x00000167 0x26 ./Core/Src/i2c.o + 0x0000017f 0x26 ./Core/Src/i2c.o .debug_rnglists - 0x0000018d 0x2f ./Core/Src/main.o + 0x000001a5 0x2f ./Core/Src/main.o .debug_rnglists - 0x000001bc 0x4a ./Core/Src/rs485_driver.o + 0x000001d4 0x4a ./Core/Src/rs485_driver.o .debug_rnglists - 0x00000206 0x13 ./Core/Src/stm32f1xx_hal_msp.o + 0x0000021e 0x13 ./Core/Src/stm32f1xx_hal_msp.o .debug_rnglists - 0x00000219 0x49 ./Core/Src/stm32f1xx_it.o + 0x00000231 0x49 ./Core/Src/stm32f1xx_it.o .debug_rnglists - 0x00000262 0x1a ./Core/Src/system_stm32f1xx.o + 0x0000027a 0x1a ./Core/Src/system_stm32f1xx.o .debug_rnglists - 0x0000027c 0x20 ./Core/Src/usart.o + 0x00000294 0x20 ./Core/Src/usart.o .debug_rnglists - 0x0000029c 0x19 ./Core/Startup/startup_stm32f103c8tx.o + 0x000002b4 0x19 ./Core/Startup/startup_stm32f103c8tx.o .debug_rnglists - 0x000002b5 0xa3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x000002cd 0xa3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_rnglists - 0x00000358 0xbc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o + 0x00000370 0xbc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o .debug_rnglists - 0x00000414 0xbb ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000042c 0xbb ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_rnglists - 0x000004cf 0x64 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + 0x000004e7 0x64 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .debug_rnglists - 0x00000533 0x66 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + 0x0000054b 0x66 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .debug_rnglists - 0x00000599 0x73 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + 0x000005b1 0x73 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .debug_rnglists - 0x0000060c 0x3f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x00000624 0x3f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_rnglists - 0x0000064b 0x23c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x00000663 0x23c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .debug_rnglists - 0x00000887 0x6c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0000089f 0x6c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_rnglists - 0x000008f3 0x21 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + 0x0000090b 0x21 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .debug_rnglists - 0x00000914 0x1bc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + 0x0000092c 0x1bc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o -.debug_macro 0x00000000 0x19a5e +.debug_macro 0x00000000 0x19a99 .debug_macro 0x00000000 0x2e8 ./Core/Src/ad5934_driver.o .debug_macro 0x000002e8 0xacc ./Core/Src/ad5934_driver.o .debug_macro 0x00000db4 0x221 ./Core/Src/ad5934_driver.o @@ -4760,96 +4788,98 @@ LOAD C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.exte .debug_macro 0x00016231 0x10 ./Core/Src/ad5934_driver.o .debug_macro 0x00016241 0x3c ./Core/Src/ad5934_driver.o .debug_macro 0x0001627d 0x20 ./Core/Src/ad5934_driver.o - .debug_macro 0x0001629d 0x1c7 ./Core/Src/ad5934_driver.o - .debug_macro 0x00016464 0x19b ./Core/Src/ad5934_driver.o - .debug_macro 0x000165ff 0x16 ./Core/Src/ad5934_driver.o - .debug_macro 0x00016615 0x16 ./Core/Src/ad5934_driver.o - .debug_macro 0x0001662b 0x29 ./Core/Src/ad5934_driver.o - .debug_macro 0x00016654 0x23f ./Core/Src/ad5934_driver.o - .debug_macro 0x00016893 0x1c5 ./Core/Src/adc.o - .debug_macro 0x00016a58 0x1c1 ./Core/Src/adc.o - .debug_macro 0x00016c19 0x2a7 ./Core/Src/ads1015_driver.o - .debug_macro 0x00016ec0 0x198 ./Core/Src/ads1015_driver.o - .debug_macro 0x00017058 0x1c9 ./Core/Src/digital_outputs_driver.o - .debug_macro 0x00017221 0x289 ./Core/Src/flash_manager.o - .debug_macro 0x000174aa 0x1ca ./Core/Src/gpio.o - .debug_macro 0x00017674 0x16 ./Core/Src/gpio.o - .debug_macro 0x0001768a 0x1c5 ./Core/Src/i2c.o - .debug_macro 0x0001784f 0x36a ./Core/Src/main.o - .debug_macro 0x00017bb9 0x1c ./Core/Src/main.o - .debug_macro 0x00017bd5 0x229 ./Core/Src/main.o - .debug_macro 0x00017dfe 0x28 ./Core/Src/main.o - .debug_macro 0x00017e26 0x1c4 ./Core/Src/rs485_driver.o - .debug_macro 0x00017fea 0x1bb ./Core/Src/stm32f1xx_hal_msp.o - .debug_macro 0x000181a5 0x1c5 ./Core/Src/stm32f1xx_it.o - .debug_macro 0x0001836a 0x1ac ./Core/Src/system_stm32f1xx.o - .debug_macro 0x00018516 0x1c5 ./Core/Src/usart.o - .debug_macro 0x000186db 0x1d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_macro 0x000188ab 0x1c9 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o - .debug_macro 0x00018a74 0x1ac ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_macro 0x00018c20 0x1ac ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o - .debug_macro 0x00018dcc 0x1ac ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - .debug_macro 0x00018f78 0x1be ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o - .debug_macro 0x00019136 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_macro 0x0001934d 0x1fa ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - .debug_macro 0x00019547 0x1be ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_macro 0x00019705 0x1ac ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o - .debug_macro 0x000198b1 0x1ad ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + .debug_macro 0x0001629d 0x1ce ./Core/Src/ad5934_driver.o + .debug_macro 0x0001646b 0x19b ./Core/Src/ad5934_driver.o + .debug_macro 0x00016606 0x16 ./Core/Src/ad5934_driver.o + .debug_macro 0x0001661c 0x16 ./Core/Src/ad5934_driver.o + .debug_macro 0x00016632 0x29 ./Core/Src/ad5934_driver.o + .debug_macro 0x0001665b 0x1f8 ./Core/Src/ad5934_driver.o + .debug_macro 0x00016853 0x1c5 ./Core/Src/adc.o + .debug_macro 0x00016a18 0x1c8 ./Core/Src/adc.o + .debug_macro 0x00016be0 0x2b4 ./Core/Src/ads1015_driver.o + .debug_macro 0x00016e94 0x56 ./Core/Src/ads1015_driver.o + .debug_macro 0x00016eea 0x16 ./Core/Src/ads1015_driver.o + .debug_macro 0x00016f00 0x199 ./Core/Src/ads1015_driver.o + .debug_macro 0x00017099 0x1c9 ./Core/Src/digital_outputs_driver.o + .debug_macro 0x00017262 0x289 ./Core/Src/flash_manager.o + .debug_macro 0x000174eb 0x1ca ./Core/Src/gpio.o + .debug_macro 0x000176b5 0x16 ./Core/Src/gpio.o + .debug_macro 0x000176cb 0x1c5 ./Core/Src/i2c.o + .debug_macro 0x00017890 0x364 ./Core/Src/main.o + .debug_macro 0x00017bf4 0x1c ./Core/Src/main.o + .debug_macro 0x00017c10 0x229 ./Core/Src/main.o + .debug_macro 0x00017e39 0x28 ./Core/Src/main.o + .debug_macro 0x00017e61 0x1c4 ./Core/Src/rs485_driver.o + .debug_macro 0x00018025 0x1bb ./Core/Src/stm32f1xx_hal_msp.o + .debug_macro 0x000181e0 0x1c5 ./Core/Src/stm32f1xx_it.o + .debug_macro 0x000183a5 0x1ac ./Core/Src/system_stm32f1xx.o + .debug_macro 0x00018551 0x1c5 ./Core/Src/usart.o + .debug_macro 0x00018716 0x1d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_macro 0x000188e6 0x1c9 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o + .debug_macro 0x00018aaf 0x1ac ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_macro 0x00018c5b 0x1ac ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_macro 0x00018e07 0x1ac ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_macro 0x00018fb3 0x1be ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_macro 0x00019171 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_macro 0x00019388 0x1fa ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x00019582 0x1be ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_macro 0x00019740 0x1ac ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_macro 0x000198ec 0x1ad ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o -.debug_line 0x00000000 0x143c6 - .debug_line 0x00000000 0xf1f ./Core/Src/ad5934_driver.o - .debug_line 0x00000f1f 0x80a ./Core/Src/adc.o - .debug_line 0x00001729 0xcc1 ./Core/Src/ads1015_driver.o - .debug_line 0x000023ea 0x81f ./Core/Src/digital_outputs_driver.o - .debug_line 0x00002c09 0x917 ./Core/Src/flash_manager.o - .debug_line 0x00003520 0x76c ./Core/Src/gpio.o - .debug_line 0x00003c8c 0x7ef ./Core/Src/i2c.o - .debug_line 0x0000447b 0xc7c ./Core/Src/main.o - .debug_line 0x000050f7 0x89c ./Core/Src/rs485_driver.o - .debug_line 0x00005993 0x718 ./Core/Src/stm32f1xx_hal_msp.o - .debug_line 0x000060ab 0x7de ./Core/Src/stm32f1xx_it.o - .debug_line 0x00006889 0x796 ./Core/Src/system_stm32f1xx.o - .debug_line 0x0000701f 0x78e ./Core/Src/usart.o - .debug_line 0x000077ad 0x78 ./Core/Startup/startup_stm32f103c8tx.o - .debug_line 0x00007825 0x9ca ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_line 0x000081ef 0xfec ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o - .debug_line 0x000091db 0xb91 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_line 0x00009d6c 0xdd1 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o - .debug_line 0x0000ab3d 0xa81 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - .debug_line 0x0000b5be 0xb8e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o - .debug_line 0x0000c14c 0xa21 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_line 0x0000cb6d 0x3bc4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - .debug_line 0x00010731 0xe80 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_line 0x000115b1 0x932 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o - .debug_line 0x00011ee3 0x24e3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o +.debug_line 0x00000000 0x1439d + .debug_line 0x00000000 0xe84 ./Core/Src/ad5934_driver.o + .debug_line 0x00000e84 0x80a ./Core/Src/adc.o + .debug_line 0x0000168e 0xcb2 ./Core/Src/ads1015_driver.o + .debug_line 0x00002340 0x81f ./Core/Src/digital_outputs_driver.o + .debug_line 0x00002b5f 0x917 ./Core/Src/flash_manager.o + .debug_line 0x00003476 0x76c ./Core/Src/gpio.o + .debug_line 0x00003be2 0x7ef ./Core/Src/i2c.o + .debug_line 0x000043d1 0xcfd ./Core/Src/main.o + .debug_line 0x000050ce 0x89c ./Core/Src/rs485_driver.o + .debug_line 0x0000596a 0x718 ./Core/Src/stm32f1xx_hal_msp.o + .debug_line 0x00006082 0x7de ./Core/Src/stm32f1xx_it.o + .debug_line 0x00006860 0x796 ./Core/Src/system_stm32f1xx.o + .debug_line 0x00006ff6 0x78e ./Core/Src/usart.o + .debug_line 0x00007784 0x78 ./Core/Startup/startup_stm32f103c8tx.o + .debug_line 0x000077fc 0x9ca ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_line 0x000081c6 0xfec ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o + .debug_line 0x000091b2 0xb91 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_line 0x00009d43 0xdd1 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_line 0x0000ab14 0xa81 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_line 0x0000b595 0xb8e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_line 0x0000c123 0xa21 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_line 0x0000cb44 0x3bc4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_line 0x00010708 0xe80 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_line 0x00011588 0x932 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_line 0x00011eba 0x24e3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o -.debug_str 0x00000000 0x8d3f3 - .debug_str 0x00000000 0x8d3f3 ./Core/Src/ad5934_driver.o - 0x88195 (size before relaxing) - .debug_str 0x0008d3f3 0x838a4 ./Core/Src/adc.o - .debug_str 0x0008d3f3 0x8776a ./Core/Src/ads1015_driver.o - .debug_str 0x0008d3f3 0x8361b ./Core/Src/digital_outputs_driver.o - .debug_str 0x0008d3f3 0x8600d ./Core/Src/flash_manager.o - .debug_str 0x0008d3f3 0x835ad ./Core/Src/gpio.o - .debug_str 0x0008d3f3 0x839b9 ./Core/Src/i2c.o - .debug_str 0x0008d3f3 0x89def ./Core/Src/main.o - .debug_str 0x0008d3f3 0x8436d ./Core/Src/rs485_driver.o - .debug_str 0x0008d3f3 0x83474 ./Core/Src/stm32f1xx_hal_msp.o - .debug_str 0x0008d3f3 0x838c4 ./Core/Src/stm32f1xx_it.o - .debug_str 0x0008d3f3 0x82d30 ./Core/Src/system_stm32f1xx.o - .debug_str 0x0008d3f3 0x83c4f ./Core/Src/usart.o - .debug_str 0x0008d3f3 0x6e ./Core/Startup/startup_stm32f103c8tx.o - .debug_str 0x0008d3f3 0x83463 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_str 0x0008d3f3 0x83414 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o - .debug_str 0x0008d3f3 0x833af ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_str 0x0008d3f3 0x830d9 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o - .debug_str 0x0008d3f3 0x8300b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - .debug_str 0x0008d3f3 0x831b9 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o - .debug_str 0x0008d3f3 0x830b6 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_str 0x0008d3f3 0x83df7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - .debug_str 0x0008d3f3 0x8315f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_str 0x0008d3f3 0x82eaf ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o - .debug_str 0x0008d3f3 0x837d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o +.debug_str 0x00000000 0x8d606 + .debug_str 0x00000000 0x8d606 ./Core/Src/ad5934_driver.o + 0x88360 (size before relaxing) + .debug_str 0x0008d606 0x838cb ./Core/Src/adc.o + .debug_str 0x0008d606 0x87fe8 ./Core/Src/ads1015_driver.o + .debug_str 0x0008d606 0x83642 ./Core/Src/digital_outputs_driver.o + .debug_str 0x0008d606 0x86023 ./Core/Src/flash_manager.o + .debug_str 0x0008d606 0x835d4 ./Core/Src/gpio.o + .debug_str 0x0008d606 0x839e0 ./Core/Src/i2c.o + .debug_str 0x0008d606 0x89f36 ./Core/Src/main.o + .debug_str 0x0008d606 0x8436d ./Core/Src/rs485_driver.o + .debug_str 0x0008d606 0x8349b ./Core/Src/stm32f1xx_hal_msp.o + .debug_str 0x0008d606 0x838eb ./Core/Src/stm32f1xx_it.o + .debug_str 0x0008d606 0x82d30 ./Core/Src/system_stm32f1xx.o + .debug_str 0x0008d606 0x83c76 ./Core/Src/usart.o + .debug_str 0x0008d606 0x6e ./Core/Startup/startup_stm32f103c8tx.o + .debug_str 0x0008d606 0x83463 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_str 0x0008d606 0x83414 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o + .debug_str 0x0008d606 0x833af ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_str 0x0008d606 0x830d9 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_str 0x0008d606 0x8300b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_str 0x0008d606 0x831b9 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_str 0x0008d606 0x830b6 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_str 0x0008d606 0x83df7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_str 0x0008d606 0x8315f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_str 0x0008d606 0x82eaf ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_str 0x0008d606 0x837d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o .comment 0x00000000 0x43 .comment 0x00000000 0x43 ./Core/Src/ad5934_driver.o @@ -4878,49 +4908,49 @@ LOAD C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.exte .comment 0x00000043 0x44 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .comment 0x00000043 0x44 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o -.debug_frame 0x00000000 0x3a60 - .debug_frame 0x00000000 0x250 ./Core/Src/ad5934_driver.o - .debug_frame 0x00000250 0xa0 ./Core/Src/adc.o - .debug_frame 0x000002f0 0x238 ./Core/Src/ads1015_driver.o - .debug_frame 0x00000528 0xc4 ./Core/Src/digital_outputs_driver.o - .debug_frame 0x000005ec 0x5c ./Core/Src/flash_manager.o - .debug_frame 0x00000648 0x58 ./Core/Src/gpio.o - .debug_frame 0x000006a0 0x90 ./Core/Src/i2c.o - .debug_frame 0x00000730 0xbc ./Core/Src/main.o - .debug_frame 0x000007ec 0x15c ./Core/Src/rs485_driver.o - .debug_frame 0x00000948 0x34 ./Core/Src/stm32f1xx_hal_msp.o - .debug_frame 0x0000097c 0x114 ./Core/Src/stm32f1xx_it.o - .debug_frame 0x00000a90 0x50 ./Core/Src/system_stm32f1xx.o - .debug_frame 0x00000ae0 0x74 ./Core/Src/usart.o - .debug_frame 0x00000b54 0x2e4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_frame 0x00000e38 0x3e0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o - .debug_frame 0x00001218 0x3f0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_frame 0x00001608 0x1e8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o - .debug_frame 0x000017f0 0x1e8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - .debug_frame 0x000019d8 0x240 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o - .debug_frame 0x00001c18 0x130 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_frame 0x00001d48 0xbf4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - .debug_frame 0x0000293c 0x1f8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_frame 0x00002b34 0x7c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o - .debug_frame 0x00002bb0 0x8dc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o - .debug_frame 0x0000348c 0x144 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-findfp.o) - .debug_frame 0x000035d0 0x20 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-memset.o) - .debug_frame 0x000035f0 0x20 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-errno.o) - .debug_frame 0x00003610 0x2c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-init.o) - .debug_frame 0x0000363c 0x28 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-memcpy-stub.o) - .debug_frame 0x00003664 0x20 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-strlen.o) - .debug_frame 0x00003684 0x2c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-wf_sqrt.o) - .debug_frame 0x000036b0 0x30 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-ef_sqrt.o) - .debug_frame 0x000036e0 0x28 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-sf_round.o) - .debug_frame 0x00003708 0x30 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_muldf3.o) - .debug_frame 0x00003738 0xac C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_addsubdf3.o) - .debug_frame 0x000037e4 0xc4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_cmpdf2.o) - .debug_frame 0x000038a8 0x24 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_fixdfsi.o) - .debug_frame 0x000038cc 0x4c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_addsubsf3.o) - .debug_frame 0x00003918 0x38 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_muldivsf3.o) - .debug_frame 0x00003950 0xc8 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_cmpsf2.o) - .debug_frame 0x00003a18 0x24 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_unordsf2.o) - .debug_frame 0x00003a3c 0x24 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_fixsfsi.o) +.debug_frame 0x00000000 0x3af8 + .debug_frame 0x00000000 0x2c4 ./Core/Src/ad5934_driver.o + .debug_frame 0x000002c4 0xa0 ./Core/Src/adc.o + .debug_frame 0x00000364 0x25c ./Core/Src/ads1015_driver.o + .debug_frame 0x000005c0 0xc4 ./Core/Src/digital_outputs_driver.o + .debug_frame 0x00000684 0x5c ./Core/Src/flash_manager.o + .debug_frame 0x000006e0 0x58 ./Core/Src/gpio.o + .debug_frame 0x00000738 0x90 ./Core/Src/i2c.o + .debug_frame 0x000007c8 0xbc ./Core/Src/main.o + .debug_frame 0x00000884 0x15c ./Core/Src/rs485_driver.o + .debug_frame 0x000009e0 0x34 ./Core/Src/stm32f1xx_hal_msp.o + .debug_frame 0x00000a14 0x114 ./Core/Src/stm32f1xx_it.o + .debug_frame 0x00000b28 0x50 ./Core/Src/system_stm32f1xx.o + .debug_frame 0x00000b78 0x74 ./Core/Src/usart.o + .debug_frame 0x00000bec 0x2e4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_frame 0x00000ed0 0x3e0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.o + .debug_frame 0x000012b0 0x3f0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_frame 0x000016a0 0x1e8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_frame 0x00001888 0x1e8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_frame 0x00001a70 0x240 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_frame 0x00001cb0 0x130 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_frame 0x00001de0 0xbf4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_frame 0x000029d4 0x1f8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_frame 0x00002bcc 0x7c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_frame 0x00002c48 0x8dc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.o + .debug_frame 0x00003524 0x144 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-findfp.o) + .debug_frame 0x00003668 0x20 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-memset.o) + .debug_frame 0x00003688 0x20 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-errno.o) + .debug_frame 0x000036a8 0x2c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-init.o) + .debug_frame 0x000036d4 0x28 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-memcpy-stub.o) + .debug_frame 0x000036fc 0x20 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(libc_a-strlen.o) + .debug_frame 0x0000371c 0x2c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-wf_sqrt.o) + .debug_frame 0x00003748 0x30 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-ef_sqrt.o) + .debug_frame 0x00003778 0x28 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(libm_a-sf_round.o) + .debug_frame 0x000037a0 0x30 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_muldf3.o) + .debug_frame 0x000037d0 0xac C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_addsubdf3.o) + .debug_frame 0x0000387c 0xc4 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_cmpdf2.o) + .debug_frame 0x00003940 0x24 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_fixdfsi.o) + .debug_frame 0x00003964 0x4c C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_addsubsf3.o) + .debug_frame 0x000039b0 0x38 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_muldivsf3.o) + .debug_frame 0x000039e8 0xc8 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_cmpsf2.o) + .debug_frame 0x00003ab0 0x24 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_unordsf2.o) + .debug_frame 0x00003ad4 0x24 C:/ST/STM32CubeIDE_2.1.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.14.3.rel1.win32_1.0.100.202602081740/tools/bin/../lib/gcc/arm-none-eabi/14.3.1/thumb/v7-m/nofp\libgcc.a(_arm_fixsfsi.o) .debug_line_str 0x00000000 0x52