Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error : 'SPI_FLAG_BSY' was not declared in this scope #3630

Open
Michri opened this issue Jan 19, 2025 · 0 comments
Open

Compiling error : 'SPI_FLAG_BSY' was not declared in this scope #3630

Michri opened this issue Jan 19, 2025 · 0 comments

Comments

@Michri
Copy link

Michri commented Jan 19, 2025

Hello,

I try to get my TFT up and running, using these components:

  • STM32F103C8T6, 64kB, 74MHz
  • TFT Touch-Display 2,8", 320x240, ILI9341V

I am using the Arduino IDE 2.3.4. (STM32duino Bootloader).

When just compiling any of the listed examples - like TFT_Pie_Chart - I am getting a lot of compilation errors:

c:\Users\mchri\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_STM32.h:1035:76: error: 'SPI_FLAG_BSY' was not declared in this scope
   #define SPI_BUSY_CHECK SPI_TXE_CHECK; while( __HAL_SPI_GET_FLAG(&spiHal, SPI_FLAG_BSY)){}

c:\Users\mchri\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_STM32.h:1039:61: note: in expansion of macro 'SPI_BUSY_CHECK'
   #define tft_Write_16(C)  TX_FIFO = (C)>>8; TX_FIFO = (C); SPI_BUSY_CHECK

c:\Users\mchri\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3777:11: note: in expansion of macro 'tft_Write_16'
     DC_D; tft_Write_16(color);

...

I assume, I did one central setting wrong.
In User_Setup_Select.h I enabled #include <User_Setups/Setup32_ILI9341_STM32F103.h> and disabled #include <User_Setup.h> already.

May someone provide some help about how to fix this problem?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant