Skip to content

Add Nano32 development board #8

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

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e8fd4e5
Add Nano32
Oct 7, 2016
c9c3e78
Change upload.maximum_data_size to 294912
Oct 18, 2016
7eee62e
Update README.md
me-no-dev Oct 7, 2016
6243347
include math.h by default
me-no-dev Oct 7, 2016
3a7ce7e
fix F macro
me-no-dev Oct 7, 2016
9c6fdfa
comment out __FlashStringHelper methods in Print
me-no-dev Oct 7, 2016
6ddf4b6
Print::printf should allocate it's buffer
me-no-dev Oct 7, 2016
d9271d4
add more definitions to pgmspace.h to match ESP8266
me-no-dev Oct 7, 2016
08fb11f
Remove non-working WiFi examples and fix some that require changes
me-no-dev Oct 8, 2016
7f39802
fix i2c hal
me-no-dev Oct 8, 2016
8bfca04
I2C SDA should properly register the ACK bit from some slaves
me-no-dev Oct 10, 2016
a4f3600
prevent some devices from locking the SCL line
me-no-dev Oct 10, 2016
df46317
Prevent I2C Bus locks and wrong data being sent on retry
me-no-dev Oct 10, 2016
afcff1b
use local buffer for printf if size is equal or less than 64
me-no-dev Oct 10, 2016
2f512bc
Do not delete printf buffer if not required
me-no-dev Oct 10, 2016
ae2a984
fix Serial RX
me-no-dev Oct 11, 2016
89a3e09
attach uart isr on the current core
me-no-dev Oct 11, 2016
9b01daa
copy va_list in Print::printf
me-no-dev Oct 11, 2016
d5a59e1
fix GPIO attachInterrupt
me-no-dev Oct 11, 2016
74aeafb
really fix attachInterrupt to work on either core
me-no-dev Oct 11, 2016
713ff09
implement thread-safe i2c
me-no-dev Oct 11, 2016
cff7f69
return proper errors
me-no-dev Oct 11, 2016
13af2c7
implement thread-safe spi
me-no-dev Oct 11, 2016
9d5881a
UART rework
me-no-dev Oct 14, 2016
5cd933e
Implement thread-safe uart
me-no-dev Oct 14, 2016
c36a891
remove unnecessary locks
me-no-dev Oct 14, 2016
c4cd31d
remove unnecessary locks
me-no-dev Oct 14, 2016
a2e3506
fix reported data size and percentage
me-no-dev Oct 17, 2016
74197b1
do not lock for ets_printf
me-no-dev Oct 17, 2016
f0c99ef
Ignore certificates on windows
whatnick Oct 17, 2016
b366e84
ignore ssl only on windows
me-no-dev Oct 17, 2016
5f1a818
First addition of ESP320 support (#19)
Sweet-Peas Oct 17, 2016
6bfaa52
Add Nano32
Oct 7, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,44 @@ esp32.menu.UploadSpeed.460800.macosx=460800
esp32.menu.UploadSpeed.460800.upload.speed=460800
esp32.menu.UploadSpeed.512000.windows=512000
esp32.menu.UploadSpeed.512000.upload.speed=512000


##############################################################
nano32.name=Nano32

nano32.upload.tool=esptool
nano32.upload.maximum_size=1044464
nano32.upload.maximum_data_size=114688
Copy link
Member

Choose a reason for hiding this comment

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

please change upload.maximum_data_size to 294912

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed.

Thank you 👍

nano32.upload.wait_for_upload_port=true

nano32.serial.disableDTR=true
nano32.serial.disableRTS=true

nano32.build.mcu=esp32
nano32.build.core=esp32
nano32.build.variant=nano32
nano32.build.board=NANO32

nano32.build.f_cpu=160000000L
nano32.build.flash_mode=dio
nano32.build.flash_size=4MB

nano32.menu.FlashFreq.80=80MHz
nano32.menu.FlashFreq.80.build.flash_freq=80m
nano32.menu.FlashFreq.40=40MHz
nano32.menu.FlashFreq.40.build.flash_freq=40m

nano32.menu.UploadSpeed.921600=921600
nano32.menu.UploadSpeed.921600.upload.speed=921600
nano32.menu.UploadSpeed.115200=115200
nano32.menu.UploadSpeed.115200.upload.speed=115200
nano32.menu.UploadSpeed.256000.windows=256000
nano32.menu.UploadSpeed.256000.upload.speed=256000
nano32.menu.UploadSpeed.230400.windows.upload.speed=256000
nano32.menu.UploadSpeed.230400=230400
nano32.menu.UploadSpeed.230400.upload.speed=230400
nano32.menu.UploadSpeed.460800.linux=460800
nano32.menu.UploadSpeed.460800.macosx=460800
nano32.menu.UploadSpeed.460800.upload.speed=460800
nano32.menu.UploadSpeed.512000.windows=512000
nano32.menu.UploadSpeed.512000.upload.speed=512000
35 changes: 35 additions & 0 deletions variants/nano32/pins_arduino.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#ifndef Pins_Arduino_h
#define Pins_Arduino_h


#define digitalPinToPort(pin) (0)
#define digitalPinToBitMask(pin) (1UL << (pin))
#define digitalPinToTimer(pin) (0)
#define portOutputRegister(port)
#define portInputRegister(port)
#define portModeRegister(port)

#define NOT_A_PIN -1
#define NOT_A_PORT -1
#define NOT_AN_INTERRUPT -1
#define NOT_ON_TIMER 0

#define EXTERNAL_NUM_INTERRUPTS 16
#define NUM_DIGITAL_PINS 38
#define NUM_ANALOG_INPUTS 18

#define analogInputToDigitalPin(p)
#define digitalPinToInterrupt(p)
#define digitalPinHasPWM(p)

#define LED_BUILTIN 16

static const uint8_t SDA = 21;
static const uint8_t SCL = 22;

static const uint8_t SS = 2;
static const uint8_t MOSI = 23;
static const uint8_t MISO = 19;
static const uint8_t SCK = 18;

#endif /* Pins_Arduino_h */