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

analogWrite(pin, value); causes a reboot module #2238

Closed
llams opened this issue Jul 6, 2016 · 3 comments
Closed

analogWrite(pin, value); causes a reboot module #2238

llams opened this issue Jul 6, 2016 · 3 comments

Comments

@llams
Copy link

llams commented Jul 6, 2016

Basic Infos

Hardware

Hardware: ESP-12F
Core Version: git master

Description

analogWrite(pin, value); causes a reboot module.

Settings in IDE

Module: Generic ESP8266 Module
Flash Size: 4MB/1MB
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz

@igrr
Copy link
Member

igrr commented Jul 6, 2016

Could you please provide the full sketch code? If the module reboots, please check serial output for the stack dump, then decode the stack dump and paste the result here. Thanks.
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.md

@llams
Copy link
Author

llams commented Jul 6, 2016

listing is very large. I tried a simple example works correctly. At the same time on the core 2.3.0 all fine.
When setting any value for PWM LED starts to flicker slightly, and after some time the module is restarted.
In serial output only:
ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v00000000
~ld

@devyte
Copy link
Collaborator

devyte commented Oct 16, 2017

@llams No MCVE sketch, you didn't specify which pin.
I am using analogWrite() with latest git, and I can't reproduce this (ref: WittyCloud pins 12/13/15).

  • You have to set the pinMode to OUTPUT first (not doing it doesn't cause a reset, though).
  • There are certain pins that can't be used, e.g.: pin 9 on an ESP12F.
  • You have to mind your power supply. For development I use a 5V20A supply (yes, 20 amps) to make sure that any reboots are not due to voltage dips.
    Closing as can't reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants