Browse Source

Robin Nano v1.3 fix

pull/48/head
Sergey 3 years ago
parent
commit
9fb7f75bfb
  1. 7
      Marlin/src/module/mks_wifi/mks_wifi_sd.cpp
  2. 13
      ini/stm32f4.ini
  3. 2
      platformio.ini

7
Marlin/src/module/mks_wifi/mks_wifi_sd.cpp

@ -201,6 +201,10 @@ void mks_wifi_start_file_upload(ESP_PROTOC_FRAME *packet){
#endif #endif
#ifdef STM32F4 #ifdef STM32F4
RCC->APB1ENR &= ~RCC_APB1ENR_TIM5EN;
RCC->APB2ENR &= ~RCC_APB2ENR_TIM10EN;
DMA2_Stream5->CR = 0; DMA2_Stream5->CR = 0;
DMA2->HIFCR=DMA_S5_CLEAR; DMA2->HIFCR=DMA_S5_CLEAR;
@ -356,6 +360,9 @@ void mks_wifi_start_file_upload(ESP_PROTOC_FRAME *packet){
#endif #endif
#ifdef STM32F4 #ifdef STM32F4
RCC->APB1ENR |= RCC_APB1ENR_TIM5EN;
RCC->APB2ENR |= RCC_APB2ENR_TIM10EN;
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk; SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
#endif #endif

13
ini/stm32f4.ini

@ -358,17 +358,22 @@ build_flags = -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
[env:mks_robin_nano_v1_3] [env:mks_robin_nano_v1_3]
platform = ${common_stm32.platform} platform = ${common_stm32.platform}
extends = stm32_variant extends = stm32_variant
board = marlin_STM32F407VE board = marlin_STM32F407VGT6_CCM
board_build.variant = MARLIN_F4_FSMC_SDIO board_build.variant = MARLIN_F4x7Vx
board_build.offset = 0x8000 board_build.offset = 0x8000
board_upload.offset_address = 0x08008000 board_upload.offset_address = 0x08008000
board_build.rename = Robin_nano35.bin board_build.rename = Robin_nano35.bin
build_flags = ${stm32_variant.build_flags} build_flags = ${stm32_variant.build_flags}
-DHAL_PCD_MODULE_ENABLED -DHAL_SD_MODULE_ENABLED -DHAL_SRAM_MODULE_ENABLED -DMCU_STM32F407VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
-DSTM32_FLASH_SIZE=512
-DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
-DHAL_SD_MODULE_ENABLED
-DHAL_SRAM_MODULE_ENABLED
build_unflags = ${stm32_variant.build_unflags}
-DUSBCON -DUSBD_USE_CDC
debug_tool = jlink debug_tool = jlink
upload_protocol = jlink upload_protocol = jlink
# #
# MKS Robin Nano V3 # MKS Robin Nano V3
# #

2
platformio.ini

@ -13,7 +13,7 @@
[platformio] [platformio]
src_dir = Marlin src_dir = Marlin
boards_dir = buildroot/share/PlatformIO/boards boards_dir = buildroot/share/PlatformIO/boards
default_envs = mks_robin_nano35 default_envs = mks_robin_nano_v1_3
include_dir = Marlin include_dir = Marlin
extra_configs = extra_configs =
ini/avr.ini ini/avr.ini

Loading…
Cancel
Save