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

error: 'SPI_CR1_BR_Msk' undeclared #3

Closed
raf6410 opened this issue Mar 15, 2023 · 3 comments
Closed

error: 'SPI_CR1_BR_Msk' undeclared #3

raf6410 opened this issue Mar 15, 2023 · 3 comments

Comments

@raf6410
Copy link

raf6410 commented Mar 15, 2023

Hello,

I try to use your Library on my nucléo H723ZG.
but i have this error :
image

My setup is : nucléo H723ZG + ILI9488
MX CUBE IDE v1.11.2
TOUCHGFX 4.21.3

image

Could you help me ?

@maudeve-it
Copy link
Owner

maudeve-it commented Mar 16, 2023

I see. H7 has a quite different SPI device structure so CMSIS instructions have to adapt to it, referring to the uC reference manual.
You should change that macro somehow like here:

#define SET_SPI_BAUDRATE(_P_SCALER_) 	DISPL_SPI->CFG1 &= (uint16_t) ~SPI_CFG1_MBR_Msk; \
					DISPL_SPI->CFG1 |= _P_SCALER_
							

but you have to verify and fix it in case of needs: I do not have an H7 in my drawers to check if it works.
Let me know

@raf6410
Copy link
Author

raf6410 commented Mar 17, 2023

hi,

Thanks for your response. Now my project compilation is OK and the display work.

@danad21
Copy link

danad21 commented May 11, 2024

Hello raf6410! Can I see you project folder files? I cannot make it work on my STM32H723. I would much appreciate it, 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

3 participants