Skip to content

Add Spresense board #2207

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

Merged
merged 19 commits into from
Oct 14, 2019
Merged

Conversation

kamtom480
Copy link

Add support for Spresense. It is a compact development board based on Sony’s power-efficient multicore microcontroller CXD5602. This port uses the built and exported NuttX SDK.

Supported features:

  • analogio
  • board
  • busio
  • digitalio
  • microcontroller
  • os
  • pulseio
  • rtc
  • supervisor
  • time

Unsupported features:

  • audioio
  • audiobusio
  • i2cslave
  • rotaryio
  • touchio
  • gamepad
  • neopixel_write
  • nvm
  • displayio
  • freqencyio

Refer to developer.sony.com/develop/spresense/ for further information about this board.

@tannewt tannewt self-requested a review October 10, 2019 19:58
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Overall it looks really good. I have a few questions inline.

I'd also suggest adding board folders even though only one board is currently supported. It'll make it feel like the others. It'll also work with our tools which also need to be update to auto-build this version. I believe the two spots are https://github.com/kamtom480/micropython/blob/circuitpython-spresense/tools/build_board_info.py#L15 and https://github.com/kamtom480/micropython/blob/circuitpython-spresense/.github/workflows/build.yml#L75.

Thanks!

// e.g.)
// - Reference Voltage of A4 and A5 pins on Main Board is 0.7V.
// - Reference Voltage of A0 ~ A5 pins on External Interface board
// is selected 3.3V or 5.0V by a IO Volt jumper pin.
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if it'd be better to return None to imply that it's unknown. Some boards could also define it per board.

Copy link
Author

Choose a reason for hiding this comment

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

I didn't change it. This function returns a float variable. Do you want me to change the CircuitPython source code to interpret 0.0 here as None?

Copy link
Member

Choose a reason for hiding this comment

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

Ya, I think changing shared-bindings to interpret 0.0 as None makes sense. That way an exception will be thrown if the user code uses it in any calculations.

@kamtom480
Copy link
Author

Some changes. I added Spresense to your tools, but I'm not sure if it's correct. I'm also not sure what to do with Reference Voltage.

@kamtom480 kamtom480 requested a review from tannewt October 11, 2019 13:02
@tannewt
Copy link
Member

tannewt commented Oct 11, 2019

Workflow looks good and I successfully got a REPL on my board! This is ready after tweaking the analog reference voltage.

@kamtom480
Copy link
Author

@tannewt I have added requested changes.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you!

@tannewt tannewt merged commit 51582ab into adafruit:master Oct 14, 2019
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.

2 participants