Advertisement
Guest User

Marlin Error Code

a guest
Jan 21st, 2022
1,221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.10 KB | None | 0 0
  1. In file included from Marlin\src\HAL\STM32\tft\xpt2046.cpp:31:
  2. Marlin\src\HAL\STM32\tft\xpt2046.h:35:4: error: #error "TOUCH_MISO_PIN is not defined."
  3. 35 | #error "TOUCH_MISO_PIN is not defined."
  4. | ^~~~~
  5. In file included from Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:31:
  6. Marlin\src\HAL\STM32\tft\tft_fsmc.h:55:12: error: 'SRAM_HandleTypeDef' does not name a type; did you mean 'SAI_HandleTypeDef'?
  7. 55 | static SRAM_HandleTypeDef SRAMx;
  8. | ^~~~~~~~~~~~~~~~~~
  9. | SAI_HandleTypeDef
  10. In file included from Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:31:
  11. Marlin\src\HAL\STM32\tft\tft_fsmc.h:100:12: error: 'FSMC_NORSRAM_DEVICE' was not declared in this scope; did you mean 'FSMC_NORSRAM_TYPEDEF'?
  12. 100 | {PD_14, FSMC_NORSRAM_DEVICE, FSMC_PIN_DATA}, // FSMC_D00
  13. | ^~~~~~~~~~~~~~~~~~~
  14. | FSMC_NORSRAM_TYPEDEF
  15. In file included from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/PinNames.h:4,
  16. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/pinmap.h:22,
  17. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/PeripheralPins.h:34,
  18. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/analog.h:44,
  19. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino/board.h:8,
  20. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:41,
  21. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
  22. from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/../shared/Marduino.h:36,
  23. from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/HAL.h:28,
  24. from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/HAL.h:30,
  25. from Marlin\src\HAL\STM32\tft\../../../inc/MarlinConfig.h:31,
  26. from Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:27:
  27. Marlin\src\HAL\STM32\tft\tft_fsmc.h:90:69: error: 'GPIO_AF12_FSMC' was not declared in this scope; did you mean 'GPIO_AF12_FMC'?
  28. 90 | #define FSMC_PIN_DATA STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF12_FSMC)
  29. | ^~~~~~~~~~~~~~
  30. C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/PinNamesTypes.h:93:29: note: in definition of macro 'STM_PIN_DEFINE'
  31. 93 | ((AFNUM & STM_PIN_AFNUM_MASK) << STM_PIN_AFNUM_SHIFT))
  32. | ^~~~~
  33. Marlin\src\HAL\STM32\tft\tft_fsmc.h:90:27: note: in expansion of macro 'STM_PIN_DATA'
  34. 90 | #define FSMC_PIN_DATA STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF12_FSMC)
  35. | ^~~~~~~~~~~~
  36. Marlin\src\HAL\STM32\tft\tft_fsmc.h:100:33: note: in expansion of macro 'FSMC_PIN_DATA'
  37. 100 | {PD_14, FSMC_NORSRAM_DEVICE, FSMC_PIN_DATA}, // FSMC_D00
  38. | ^~~~~~~~~~~~~
  39. In file included from Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:31:
  40. Marlin\src\HAL\STM32\tft\tft_fsmc.h:101:12: error: 'FSMC_NORSRAM_DEVICE' was not declared in this scope; did you mean 'FSMC_NORSRAM_TYPEDEF'?
  41. 101 | {PD_15, FSMC_NORSRAM_DEVICE, FSMC_PIN_DATA}, // FSMC_D01
  42. | ^~~~~~~~~~~~~~~~~~~
  43. | FSMC_NORSRAM_TYPEDEF
  44. In file included from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/PinNames.h:4,
  45. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/pinmap.h:22,
  46. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/PeripheralPins.h:34,
  47. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/analog.h:44,
  48. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino/board.h:8,
  49. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:41,
  50. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
  51. from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/../shared/Marduino.h:36,
  52. from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/HAL.h:28,
  53. from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/HAL.h:30,
  54. from Marlin\src\HAL\STM32\tft\../../../inc/MarlinConfig.h:31,
  55. from Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:27:
  56. Marlin\src\HAL\STM32\tft\tft_fsmc.h:90:69: error: 'GPIO_AF12_FSMC' was not declared in this scope; did you mean 'GPIO_AF12_FMC'?
  57. 90 | #define FSMC_PIN_DATA STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF12_FSMC)
  58. | ^~~~~~~~~~~~~~
  59. C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/PinNamesTypes.h:93:29: note: in definition of macro 'STM_PIN_DEFINE'
  60. 93 | ((AFNUM & STM_PIN_AFNUM_MASK) << STM_PIN_AFNUM_SHIFT))
  61. | ^~~~~
  62. Marlin\src\HAL\STM32\tft\tft_fsmc.h:90:27: note: in expansion of macro 'STM_PIN_DATA'
  63. 90 | #define FSMC_PIN_DATA STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF12_FSMC)
  64. | ^~~~~~~~~~~~
  65. Marlin\src\HAL\STM32\tft\tft_fsmc.h:101:33: note: in expansion of macro 'FSMC_PIN_DATA'
  66. 101 | {PD_15, FSMC_NORSRAM_DEVICE, FSMC_PIN_DATA}, // FSMC_D01
  67. | ^~~~~~~~~~~~~
  68. compilation terminated due to -fmax-errors=5.
  69. Compiling .pio\build\BIGTREE_SKR_2_F429\src\src\HAL\shared\backtrace\unwarm.cpp.o
  70. *** [.pio\build\BIGTREE_SKR_2_F429\src\src\HAL\STM32\tft\tft_fsmc.cpp.o] Error 1
  71. In file included from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/PinNames.h:4,
  72. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/pinmap.h:22,
  73. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/PeripheralPins.h:34,
  74. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/analog.h:44,
  75. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino/board.h:8,
  76. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:41,
  77. from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36,
  78. from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/../shared/Marduino.h:36,
  79. from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/HAL.h:28,
  80. from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/HAL.h:30,
  81. from Marlin\src\HAL\STM32\tft\../../../inc/MarlinConfig.h:31,
  82. from Marlin\src\HAL\STM32\tft\xpt2046.cpp:27:
  83. Marlin\src\HAL\STM32\tft\xpt2046.h: In static member function 'static void XPT2046::DataTransferBegin()':
  84. Marlin\src\HAL\STM32\tft\xpt2046.h:72:94: error: 'TOUCH_CS_PIN' was not declared in this scope; did you mean 'TOUCH_INT_PIN'?
  85. 72 | static inline void DataTransferBegin() { if (SPIx.Instance) { HAL_SPI_Init(&SPIx); } WRITE(TOUCH_CS_PIN, LOW); };
  86. | ^~~~~~~~~~~~
  87. C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/PinNamesTypes.h:129:34: note: in definition of macro 'STM_PORT'
  88. 129 | #define STM_PORT(X) (((uint32_t)(X) >> 4) & 0xF)
  89. | ^
  90. Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/fastio.h:59:49: note: in expansion of macro 'digitalPinToPinName'
  91. 59 | #define _WRITE(IO, V) (FastIOPortMap[STM_PORT(digitalPinToPinName(IO))]->BSRR = _BV32(STM_PIN(digitalPinToPinName(IO)) + ((V) ? 0 : 16)))
  92. | ^~~~~~~~~~~~~~~~~~~
  93. Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/fastio.h:70:33: note: in expansion of macro '_WRITE'
  94. 70 | #define WRITE(IO,V) _WRITE(IO,V)
  95. | ^~~~~~
  96. Marlin\src\HAL\STM32\tft\xpt2046.h:72:88: note: in expansion of macro 'WRITE'
  97. 72 | static inline void DataTransferBegin() { if (SPIx.Instance) { HAL_SPI_Init(&SPIx); } WRITE(TOUCH_CS_PIN, LOW); };
  98. | ^~~~~
  99. Marlin\src\HAL\STM32\tft\xpt2046.h: In static member function 'static void XPT2046::DataTransferEnd()':
  100. Marlin\src\HAL\STM32\tft\xpt2046.h:73:48: error: 'TOUCH_CS_PIN' was not declared in this scope; did you mean 'TOUCH_INT_PIN'?
  101. 73 | static inline void DataTransferEnd() { WRITE(TOUCH_CS_PIN, HIGH); };
  102. | ^~~~~~~~~~~~
  103. C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino\stm32/PinNamesTypes.h:129:34: note: in definition of macro 'STM_PORT'
  104. 129 | #define STM_PORT(X) (((uint32_t)(X) >> 4) & 0xF)
  105. | ^
  106. Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/fastio.h:59:49: note: in expansion of macro 'digitalPinToPinName'
  107. 59 | #define _WRITE(IO, V) (FastIOPortMap[STM_PORT(digitalPinToPinName(IO))]->BSRR = _BV32(STM_PIN(digitalPinToPinName(IO)) + ((V) ? 0 : 16)))
  108. | ^~~~~~~~~~~~~~~~~~~
  109. Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/fastio.h:70:33: note: in expansion of macro '_WRITE'
  110. 70 | #define WRITE(IO,V) _WRITE(IO,V)
  111. | ^~~~~~
  112. Marlin\src\HAL\STM32\tft\xpt2046.h:73:42: note: in expansion of macro 'WRITE'
  113. 73 | static inline void DataTransferEnd() { WRITE(TOUCH_CS_PIN, HIGH); };
  114. | ^~~~~
  115. In file included from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/HAL.h:31,
  116. from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/HAL.h:30,
  117. from Marlin\src\HAL\STM32\tft\../../../inc/MarlinConfig.h:31,
  118. from Marlin\src\HAL\STM32\tft\xpt2046.cpp:27:
  119. Marlin\src\HAL\STM32\tft\xpt2046.cpp: In static member function 'static void XPT2046::Init()':
  120. Marlin\src\HAL\STM32\tft\xpt2046.cpp:41:13: error: 'TOUCH_CS_PIN' was not declared in this scope; did you mean 'TOUCH_INT_PIN'?
  121. 41 | OUT_WRITE(TOUCH_CS_PIN, HIGH);
  122. | ^~~~~~~~~~~~
  123. Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/fastio.h:67:41: note: in definition of macro '_SET_OUTPUT'
  124. 67 | #define _SET_OUTPUT(IO) pinMode(IO, OUTPUT) //!< Output Push Pull Mode & GPIO_NOPULL
  125. | ^~
  126. Marlin\src\HAL\STM32\tft\xpt2046.cpp:41:3: note: in expansion of macro 'OUT_WRITE'
  127. 41 | OUT_WRITE(TOUCH_CS_PIN, HIGH);
  128. | ^~~~~~~~~
  129. In file included from C:\Users\josh1\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:56,
  130. from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/../shared/Marduino.h:36,
  131. from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/./STM32/HAL.h:28,
  132. from Marlin\src\HAL\STM32\tft\../../../inc/../HAL/HAL.h:30,
  133. from Marlin\src\HAL\STM32\tft\../../../inc/MarlinConfig.h:31,
  134. from Marlin\src\HAL\STM32\tft\xpt2046.cpp:27:
  135. Marlin\src\HAL\STM32\tft\xpt2046.cpp:48:75: error: 'TOUCH_SCK_PIN' was not declared in this scope; did you mean 'TOUCH_INT_PIN'?
  136. 48 | spiInstance = (SPI_TypeDef *)pinmap_peripheral(digitalPinToPinName(TOUCH_SCK_PIN), PinMap_SPI_SCLK);
  137. | ^~~~~~~~~~~~~
  138. 251 | #define digitalPinToPinName(p) (((uint32_t)p < NUM_DIGITAL_PINS) ? digitalPin[p] : \
  139. | ^
  140. compilation terminated due to -fmax-errors=5.
  141. *** [.pio\build\BIGTREE_SKR_2_F429\src\src\HAL\STM32\tft\xpt2046.cpp.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement