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

Does usart1 work ? #148

Closed
forhuan opened this issue Jan 26, 2017 · 2 comments
Closed

Does usart1 work ? #148

forhuan opened this issue Jan 26, 2017 · 2 comments

Comments

@forhuan
Copy link

forhuan commented Jan 26, 2017

Code example

HardwareSerial Serial1(1);

void setup() {
    Serial1.begin(115200);
}

Error

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0008,len:8
load:0x3fff0010,len:1760
load:0x40078000,len:6668
load:0x40080000,len:252
entry 0x40080034
Guru Meditation Error of type StoreProhibited occurred on core  1. Exception was unhandled.
Register dump:
PC      : 0x400d0944  PS      : 0x00060530  A0      : 0x800d0c2c  A1      : 0x3ffc9aa0  
A2      : 0x3ffc1090  A3      : 0x00000009  A4      : 0x00000000  A5      : 0x00000000  
A6      : 0x00000000  A7      : 0x3ffc62b0  A8      : 0x00000001  A9      : 0x3ffc9a80  
A10     : 0x3ff440a4  A11     : 0x00000011  A12     : 0x00000000  A13     : 0x00000000  
A14     : 0x00000000  A15     : 0x00000001  SAR     : 0x00000017  EXCCAUSE: 0x0000001d  
EXCVADDR: 0x000003fd  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000  

Backtrace: 0x400d0944:0x3ffc9aa0 0x400d0c2c:0x3ffc9ac0 0x400d06f4:0x3ffc9af0 0x400d0599:0x3ffc9b20 0x400dfa52:0x3ffc9b40

CPU halted.
@me-no-dev
Copy link
Member

UART1 defaults to pins 9 and 10 which are used by the onboard flash. Either use UART2 on pins 16 and 17 or define the pins you want to use when starting UART1

@forhuan
Copy link
Author

forhuan commented Jan 27, 2017

thank you and i'll try it later

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

No branches or pull requests

2 participants