//__attribute__((at(0x20005000))) static uint16_t adc2_raw_copy[ADC2_RAW_NRS];
//__attribute__((at(0x20000000))) static float adc2_curr[ADC2_RAW_NRS];
-__attribute__((section(".DTCM"))) static uint16_t adc2_raw_copy[ADC2_RAW_NRS];
-__attribute__((section(".DTCM"))) static float adc2_curr[ADC2_RAW_NRS];
+__attribute__((section(".DTCM"),zero_init)) static uint16_t adc2_raw_copy[ADC2_RAW_NRS];
+__attribute__((section(".DTCM"),zero_init)) static float adc2_curr[ADC2_RAW_NRS];
extern dev_info_t g_dev;
void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
.priority = (osPriority_t) osPriorityNormal,
};
-__attribute__((section(".DTCM"))) static ota_t g_ota;
+__attribute__((section(".DTCM"),zero_init)) static ota_t g_ota;
int32_t ota_start( uint32_t link, char * url, char *ver )
#define WIFI_RX_BUF_SIZE (512*4)
#define WIFI_RX_BUF_SIZE_MASK (WIFI_RX_BUF_SIZE-1)
-__attribute__((section(".DTCM"))) static char wifi_rx_buf[WIFI_RX_BUF_SIZE];
+__attribute__((section(".DTCM"),zero_init)) static char wifi_rx_buf[WIFI_RX_BUF_SIZE];
static char g_wifi_ver[50];
-__attribute__((section(".DTCM"))) static uint8_t tcp_rx_buf[ 512 ];
+__attribute__((section(".DTCM"),zero_init)) static uint8_t tcp_rx_buf[ 512 ];
static uint16_t tcp_rx_n;
-__attribute__((section(".DTCM"))) static uint8_t ota_rx_buf[2048];
+__attribute__((section(".DTCM"),zero_init)) static uint8_t ota_rx_buf[2048];
static uint16_t ota_rx_n;
static int32_t wifi_tcp_tx( uint8_t link, uint8_t *data, uint32_t sz );