platformio-core icon indicating copy to clipboard operation
platformio-core copied to clipboard

Add support for Spresense

Open Teggu opened this issue 3 years ago • 10 comments

Please add support for Spresense

Document : https://developer.sony.com/develop/spresense/docs/home_en.html

Teggu avatar Aug 01 '22 10:08 Teggu

Are you more interested in the Arduino core or Spresense SDK (aka, NuttX)?

maxgerhardt avatar Aug 01 '22 11:08 maxgerhardt

I'm interested in the Arduino core.

Teggu avatar Aug 01 '22 11:08 Teggu

I've started working on https://github.com/maxgerhardt/platform-sonyspresense, but it's not finished yet.

maxgerhardt avatar Aug 02 '22 09:08 maxgerhardt

@EguchiTomoaki The platform is ready for its first test with a real board, but I don't have one. Can you follow the instructions at https://github.com/maxgerhardt/platform-sonyspresense and see if arduino-blinky works?

maxgerhardt avatar Aug 05 '22 15:08 maxgerhardt

arduino-blinky worked on all cores. Also, when I tried changing the LED_BUILTIN on line 3 to LED1, LED1 blinked normally. *(1) I will try other sample programs from now.

↓ (1) Blinking of LED1

https://user-images.githubusercontent.com/93034341/183296726-1c2aec80-e4d5-4289-aba7-34bcabf8c060.MOV

Teggu avatar Aug 06 '22 13:08 Teggu

That's great!

Does the Serial output from the arduino-blinky example also appear when using the "monitor" task?

And in the examples do the GNSS and multiprocessing-message examples work too? (Latter one has special instructions for flashing).

maxgerhardt avatar Aug 06 '22 17:08 maxgerhardt

I confirmed that arduino-blinky outputs serial every second as shown in the picture.

Screen Shot 2022-08-06 at 22 26 23

I also confirmed that GNSS successfully obtains location information from GPS.

And I confirmed that multiprocessing-message can communicate with the main core and all sub-cores as shown in the video below.

https://user-images.githubusercontent.com/93034341/183315253-8e52ab2c-bfba-47c4-8fd2-cdefc35bb914.mov

These three examples are working as well as they did when run on the Arduino ide so far.

Teggu avatar Aug 07 '22 14:08 Teggu

Great, I'll add the MP3DEC downloader and MP3Player sample in a bit for you to test, but it seems it all works properly and is equal with the Arduino IDE featureset.

maxgerhardt avatar Aug 09 '22 13:08 maxgerhardt

Thanks devs for supporting this not-so-mainstream MCU, is there any usable progress in the main for the main branch?

Tanmax-Payne avatar Mar 02 '24 11:03 Tanmax-Payne

I've updated the project to use the latest SPresense Arduino core v3.2.0 and added more examples. (Update per instructions).

maxgerhardt avatar Mar 03 '24 19:03 maxgerhardt