-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Silabs xG24 devkits ports #7833
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
Conversation
Build immediately after slc generate
Thank you for opening this pull request! I've ordered the boards so I have ones here to test with. The Discord is the best place to get help with the CI: https://adafru.it/discord |
Don't these devices have native USB? You should provide USB VID and PID for them. The creation IDs will be derived from them. No need to add them explicitly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow! This is an amazing amount of work. My comments are mostly style, because I don't have a board to test.
# Settings for the Macronix MX25R3235F 32MiB SPI flash. | ||
# Datasheet: https://www.macronix.com/Lists/Datasheet/Attachments/8385/MX25R3235F,%20Wide%20Range,%2032Mb,%20v1.0.pdf | ||
# By default its in lower power mode which can only do 8mhz. In high power mode it can do 80mhz. | ||
total_size = 0x2000000 # 32 MiB | ||
start_up_time_us = 5000 | ||
manufacturer_id = 0xc2 | ||
memory_type = 0x28 | ||
capacity = 0x16 | ||
max_clock_speed_mhz = 8 | ||
quad_enable_bit_mask = 0x40 | ||
has_sector_protection = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about submitting this to https://github.com/adafruit/nvm.toml so it can be used by anyone?
ports/silabs/boards/sparkfun_thingplus_matter_mgm240p_brd2704a/board.c
Outdated
Show resolved
Hide resolved
CIRCUITPY_USB = 0 | ||
CIRCUITPY_BUSIO = 1 | ||
CIRCUITPY_BLEIO = 1 | ||
CIRCUITPY_NEOPIXEL_WRITE = 0 | ||
CIRCUITPY_FRAMEBUFFERIO = 1 | ||
CIRCUITPY_PULSEIO = 0 | ||
CIRCUITPY_PWMIO = 1 | ||
CIRCUITPY_DISPLAYIO = 1 | ||
CIRCUITPY_BLEIO_HCI = 0 | ||
CIRCUITPY_SDCARDIO = 1 | ||
CIRCUITPY_I2CTARGET = 0 | ||
CIRCUITPY_DIGITALIO = 1 | ||
CIRCUITPY_ANALOGIO = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alphabetize
|
||
void common_hal_watchdog_set_timeout(watchdog_watchdogtimer_obj_t *self, | ||
mp_float_t new_timeout) { | ||
if ((uint64_t)new_timeout > 256) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd do a float comparison here, because some floats will not fit even in 64 bits.
ports/silabs/mpconfigport.mk
Outdated
CIRCUITPY_I2CPERIPHERAL ?= 0 | ||
CIRCUITPY_ROTARYIO ?= 0 | ||
USB_NUM_ENDPOINT_PAIRS = 0 | ||
UF2_FAMILY_ID ?= 0x57755a57 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused; I thought these boards don't have native USB support, so there is no UF2 support?
I just ran it locally from the main branch. I think you need to add the silabs port to this list: https://github.com/adafruit/circuitpython/blob/main/docs/shared_bindings_matrix.py#L34 When it comes to CI fixes, I generally just test by pushing. That way it'll match it is run in reality. |
I am trying to build from this PR and got the following:
I am using the Debian 10.2.1 202110110 gcc rather than gcc-arm-none-eabi-10.3-2021.10-x86_64-linux specified in the readme but that doesn't look to me like the problem here. |
|
To fix the doc build, you'll want to exclude your directory from ReadTheDocs here: https://github.com/adafruit/circuitpython/blob/main/conf.py#L167 |
Thanks @silabs-ChatNguyen, sorry for my delayed response. This week is a bit hectic with some travel thrown in the mix. It doesn't look like I'll be back home again to pick this up until early next week.
I did pull the code again this evening and tried without the -j option. I think the build got further this time:
|
Hello @RetiredWizard |
@silabs-ChatNguyen Thanks! that did it 😄
|
Hello @dhalbert, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! -- just a request for three trivial alphabetizations.
@silabs-ChatNguyen I reran it. This can happen because GitHub Actions is unreliable. |
@tannewt Still fail. Seem CI needs to update the package cache (sudo apt update) before installing the package. |
The GitHub Actions bug is a GitHub problem; there's an issue about it: actions/runner-images#7452. I'll merge now anyway, because this should be a transient problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this excellent PR!
@silabs-BelaV @silabs-ChatNguyen I merged this PR, and then realized that the I undid the merge commit by force-pushing to get rid of the history with these files. |
@dhalbert @tannewt @RetiredWizard We appreciate your quick and extensive assistance to merge our pull request, and we are thrilled to have made it to this stage. Our new Pull Request for submoduling the ports/silabs/tools/slc_cli_linux/ is created: #7874 |
Peripheral and Bluetooth support for xG24 explorer kit, xG24 devkit and Sparkfun Thingplus Matter MGM240 board.
Please refer to README.md in ports/silabs for the list of supported modules.