makerbase-mks / MKS-Robin

MKS Robin is a powerful 32-bit 3D printer control board with STM32F103ZET6 . Support Marlin2.0. Support MKS Robin TFT24/28/32... Screens. The motherboard integrates 5 AXIS interface, hot bed, 2 heating heads, 3 NTC100K, 2 MAX31855.Support MKS Robin WIFI for cloud printing.Supports firmware update by SD card…
https://es.aliexpress.com/item/32757129463.html?spm=a219c.12010612.8148356.9.5fc165f4oDUfFM
131 stars 129 forks source link

'X_SLAVE_ADDRESS' was not declared in this scope #184

Open eli76z opened 4 years ago

eli76z commented 4 years ago

Hi all,

i'm trying to upgrade the marlin 2.0 on my ender-5 (with the robin e3d and tmc2209s) to the latest version and i can't compile getting this error over and over again: In file included from Marlin\src\HAL\HAL_STM32F1../../inc/MarlinConfig.h:38:0, from Marlin\src\HAL\HAL_STM32F1\Servo.cpp:26: Marlin\src\HAL\HAL_STM32F1../../inc/SanityCheck.h:2031:23: error: 'X_SLAVE_ADDRESS' was not declared in this scope INVALID_TMC_ADDRESS(X); ^ Marlin\src\HAL\HAL_STM32F1../../inc/SanityCheck.h:2029:52: note: in definition of macro 'INVALID_TMC_ADDRESS'

define INVALID_TMC_ADDRESS(ST) static_assert(0 <= ST##_SLAVE_ADDRESS && ST##_SLAVE_ADDRESS <= 3, "TMC2209 slave address must be 0, 1, 2 or 3")

                                                ^~

Marlin\src\HAL\HAL_STM32F1../../inc/SanityCheck.h:2031:23: note: suggested alternative: 'I2C_ADDRESS' INVALID_TMC_ADDRESS(X); ^ i compared the new files with the old ones i have and the config is the same. tried to change the slave addresses in configuration_adv.h but it didn't change the error

any help will be much appreciated, thanks eli.

3Dangel commented 4 years ago

You might want to report it to Marlin folks.

On Sat, Aug 8, 2020 at 18:31 eli76z notifications@github.com wrote:

Hi all,

i'm trying to upgrade my ender-5 with the latest marlin 2.0 version and i can't compile getting this error over and over again: In file included from Marlin\src\HAL\HAL_STM32F1../../inc/MarlinConfig.h:38:0, from Marlin\src\HAL\HAL_STM32F1\Servo.cpp:26: Marlin\src\HAL\HAL_STM32F1../../inc/SanityCheck.h:2031:23: error: 'X_SLAVE_ADDRESS' was not declared in this scope INVALID_TMC_ADDRESS(X); ^ Marlin\src\HAL\HAL_STM32F1../../inc/SanityCheck.h:2029:52: note: in definition of macro 'INVALID_TMC_ADDRESS'

define INVALID_TMC_ADDRESS(ST) static_assert(0 <= ST##_SLAVE_ADDRESS &&

ST##_SLAVE_ADDRESS <= 3, "TMC2209 slave address must be 0, 1, 2 or 3") ^~ Marlin\src\HAL\HAL_STM32F1../../inc/SanityCheck.h:2031:23: note: suggested alternative: 'I2C_ADDRESS' INVALID_TMC_ADDRESS(X); ^ i compared the new files with the old ones i have and the config is the same.

any help will be much appreciated, thanks eli.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/makerbase-mks/MKS-Robin/issues/184, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFYWWXIEEAHZNUM2WSPOUADR7XU7DANCNFSM4PY47YAQ .

makerbase-mks commented 4 years ago

Hi! If you use MKS Robin E3-E3D path firmware and we has update to laset version marlin2.0.6.

3Dangel commented 4 years ago

Nice to know. Thanks for the update

On Mon, Aug 10, 2020 at 20:33 makerbase notifications@github.com wrote:

Hi! If you use MKS Robin E3-E3D path firmware and we has update to laset version marlin2.0.6.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/makerbase-mks/MKS-Robin/issues/184#issuecomment-671688713, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFYWWXIMOFVNJ5YLYWRKT5LSACUXNANCNFSM4PY47YAQ .

eli76z commented 4 years ago

Thanks for the update. Can't really use the Bin files you are supplying as I have the Robin E3D on an Ender-5 but hope the update is also for the regular Marlin directory, will check if it works now, thanks again.