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

boards: lilygo: ttgo_lora32: enable SDHC support #79247

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lfelten
Copy link
Contributor

@lfelten lfelten commented Oct 1, 2024

enable support for the SDHC controller to use the micro SD card slot

Copy link
Collaborator

@danieldegrasse danieldegrasse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the sdhc tag to the list of features this board supports so the SDHC tests run on it?

Also, we should update the documentation page for this board to indicate SDHC support

@lfelten
Copy link
Contributor Author

lfelten commented Oct 3, 2024

Thanks for you feedback!

Can you add the sdhc tag to the list of features this board supports so the SDHC tests run on it?
added

Also, we should update the documentation page for this board to indicate SDHC support
It mentioned SD before, I updated it to SDHC

Copy link
Collaborator

@sylvioalves sylvioalves left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now, add ' sdhc' to the ignore list in ttgo_lora32_esp32_appcpu.yaml.

@lfelten
Copy link
Contributor Author

lfelten commented Oct 4, 2024

Now, add ' sdhc' to the ignore list in ttgo_lora32_esp32_appcpu.yaml.

Added it.
I also added CONFIG_ESP32_USE_UNSUPPORTED_REVISION=y in the procpu defconfig, which is required since I rebased to main

raffarost
raffarost previously approved these changes Oct 4, 2024
@lfelten
Copy link
Contributor Author

lfelten commented Oct 5, 2024

This fails during linking, undefined symbols are ctime_r and asctime_r.
I'll rebase to main.

@sylvioalves
Copy link
Collaborator

This fails during linking, undefined symbols are ctime_r and asctime_r. I'll rebase to main.

Indeed. Fix in #79455.

@sylvioalves
Copy link
Collaborator

@lfelten please rebase.

danieldegrasse
danieldegrasse previously approved these changes Oct 15, 2024
@sylvioalves
Copy link
Collaborator

@lfelten Is this completed?

enable support for the SDHC controller to use the micro SD card slot

documentation: added instructions for SD card and OLED samples

Signed-off-by: Lothar Felten <[email protected]>
Copy link
Collaborator

@kartben kartben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nit and an actual request for change. Thanks for rebasing, too!

@@ -8,3 +8,4 @@ CONFIG_UART_CONSOLE=y

CONFIG_GPIO=y
CONFIG_I2C=y
CONFIG_ESP32_USE_UNSUPPORTED_REVISION=y
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment on why this is needed (if this is needed?). This way it's not only clearer to the user but also helps knowing when we might be able to remove it in the future

Comment on lines +223 to +241
The following sample application lists the contents of the SD card:

.. zephyr-app-commands::
:tool: west
:zephyr-app: samples/subsys/fs/fs_sample
:board: ttgo_lora32/esp32/procpu
:goals: build
:west-args: --sysbuild
:compact:

The following sample application displays numbers on the OLED display:

.. zephyr-app-commands::
:tool: west
:zephyr-app: samples/subsys/display/cfb
:board: ttgo_lora32/esp32/procpu
:goals: build
:west-args: --sysbuild
:compact:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not blocking but I'd rather you link to the samples instead. I understand that this is useful to give ready to copy-paste build instructions but it's also content that might be left behind should something change in the way these samples should be built (arguably unlikely, but still)
I would simply say something like "You may also run :zephyr:code-sample:XXX to blah blah or ... to ...".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kartben
Yes, I can change them to be links.
Since I usually compare with documentation files from other boards, is there a reference documentation you'd recommend? Especially how to make the links.
The copy-paste build instructions did actually change not so long ago, and I had to update them. So, removing those would be good.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I add links like this?

  • :zephyr:code-sample:lora-send
  • :zephyr:code-sample:lora-receive
  • :zephyr:code-sample:fs-fs-sample
  • :zephyr:code-sample:display-cfb

(how do subdirectories/catgories get handled?)

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

Successfully merging this pull request may close these issues.

5 participants