diff --git a/Core/Src/Runes/Runes.hpp b/Core/Src/Runes/Runes.hpp index f851beba..8b012ab2 100644 --- a/Core/Src/Runes/Runes.hpp +++ b/Core/Src/Runes/Runes.hpp @@ -213,9 +213,7 @@ map InputCapture::available_instances = { ***********************************************/ #if defined(HAL_ADC_MODULE_ENABLED) && defined(HAL_LPTIM_MODULE_ENABLED) -uint16_t adc_buf1[ADC_BUF_LEN]; -uint16_t adc_buf2[ADC_BUF_LEN]; -uint16_t adc_buf3[ADC_BUF_LEN]; +MPUManager::config MPUManager::MPUConfig = {}; LowPowerTimer lptim1(*LPTIM1, hlptim1, LPTIM1_PERIOD, "LPTIM 1"); LowPowerTimer lptim2(*LPTIM2, hlptim2, LPTIM2_PERIOD, "LPTIM 2"); @@ -230,9 +228,9 @@ ADC::InitData init_data2(ADC2, ADC_RESOLUTION_16B, ADC_EXTERNALTRIG_LPTIM2_OUT, ADC::InitData init_data3(ADC3, ADC_RESOLUTION_12B, ADC_EXTERNALTRIG_LPTIM3_OUT, channels3, DMA::Stream::DMA1Stream2, "ADC 3"); ADC::Peripheral ADC::peripherals[3] = { - ADC::Peripheral(&hadc1, adc_buf1, lptim1, init_data1), - ADC::Peripheral(&hadc2, adc_buf2, lptim2, init_data2), - ADC::Peripheral(&hadc3, adc_buf3, lptim3, init_data3) + ADC::Peripheral(&hadc1, lptim1, init_data1), + ADC::Peripheral(&hadc2, lptim2, init_data2), + ADC::Peripheral(&hadc3, lptim3, init_data3) }; map ADC::available_instances = { diff --git a/STM32H723ZGTX_FLASH.ld b/STM32H723ZGTX_FLASH.ld index b2932600..59294e27 100644 --- a/STM32H723ZGTX_FLASH.ld +++ b/STM32H723ZGTX_FLASH.ld @@ -177,7 +177,12 @@ SECTIONS *(.TxDecripSection) } >RAM_D2 - + .stlib_no_cache_ram_pool : + { + . = ABSOLUTE(0x38000000); + _no_cached_ram_start = .; + + } >RAM_D3 /* Remove information from the standard libraries */ /DISCARD/ : {