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

Prepare v7 lcd_driver.c to be ready for IDF 5.3 #285

Closed
martinberlin opened this issue Mar 11, 2024 · 6 comments
Closed

Prepare v7 lcd_driver.c to be ready for IDF 5.3 #285

martinberlin opened this issue Mar 11, 2024 · 6 comments
Labels
duplicate This issue or pull request already exists

Comments

@martinberlin
Copy link
Collaborator

When trying to build this component with IDF 5.3 we came upon this errors (5.1 works correct)

1st error: lcd_ll_set_data_width

src/output_lcd/lcd_driver.c:501:5: error: implicit declaration of function 'lcd_ll_set_data_width'; did you mean 'lcd_ll_set_data_wire_width'?

This one I don't know why it comes but in the documentation of ESP32S3 I see only a reference to data_width but I don't find this function. Anyways it compiles correctly in IDF 5.1, and it of course exists:

$ grep -rne lcd_ll_set_data_width .

./components/esp_lcd/src/esp_lcd_panel_rgb.c:503:    lcd_ll_set_data_width(rgb_panel->hal.dev, rgb_panel->data_width);
./components/hal/esp32s3/include/hal/lcd_ll.h:277:static inline void lcd_ll_set_data_width(lcd_cam_dev_t *dev, uint32_t width)

2nd error: Missing argument to function 'lcd_hal_cal_pclk_freq'

src/output_lcd/lcd_driver.c:546:21: error: too few arguments to function 'lcd_hal_cal_pclk_freq'
  546 |     uint32_t freq = lcd_hal_cal_pclk_freq(&lcd.hal, 240000000, lcd.config.pixel_clock, flags);
      |                     ^~~~~~~~~

This happens because in idf 5.3 there is a new argument at the end called hal_utils_clk_div_t* lcd_clk_div

Reference in 5.3 LCD HAL.

@martinberlin martinberlin added the v7 version 7 of the hardware S3 label Mar 11, 2024
@vroland
Copy link
Owner

vroland commented Mar 14, 2024

Good to know, unfortunately the HAL is not guaranteed to be stable, but the high-level drivers don't work for our purposes :/

@martinberlin martinberlin added the help wanted Extra attention is needed label Apr 7, 2024
@martinberlin
Copy link
Collaborator Author

Interesting I didn’t know that.
Just wanted to mention that in 5.2 version of IDF there are also issues #300 so we should prepare to handle those cases because many people will fall there @vroland
Otherwise we need to very explicitly advice to try v7 esp32S3 Firmware only with IDF version 5.1 till is solved

@vroland
Copy link
Owner

vroland commented Apr 29, 2024

Hm, though something else also plays into it, I think I'm using 5.2.1 and that works without problems for me...

@martinberlin
Copy link
Collaborator Author

Ouch I'm then also upgrading to that version. I'm still using 5.1 and didn't saw any signal to move on till I read this. Thanks @vroland

@vroland
Copy link
Owner

vroland commented Apr 30, 2024

Ah, nvm, 5.2.1 also crashes for me.

@martinberlin martinberlin added duplicate This issue or pull request already exists and removed help wanted Extra attention is needed v7 version 7 of the hardware S3 labels Aug 26, 2024
@martinberlin
Copy link
Collaborator Author

Closing this one since there is another Issue about the same subject and better documented in #345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants