Hello!
I recently obtained a couple of ESP32 cards from "Banggood.com". I installed the Arduino IDE on my Win10 box, installed the ESP32 stuff
through the IDE's preferences, adding "https://dl.espressif.com/dl/package_esp32_index.json" to the additional board URLs field. Then
started trying the sample sketches. Uploaded one - it worked, yay!
But then, a couple of uploads later, it stopped working. Now when I try to upload a sketch it compiles successfully, and then immediately dies with a null pointer exception.
Here's an output:
-------------------- snip ----------------------------
Sketch uses 206908 bytes (15%) of program storage space. Maximum is 1310720 bytes.
Global variables use 13484 bytes (4%) of dynamic memory, leaving 314196 bytes for local variables. Maximum is 327680 bytes.
java.lang.NullPointerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingProgrammer(SerialUploader.java:295)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:90)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
at processing.app.SketchController.upload(SketchController.java:732)
at processing.app.SketchController.exportApplet(SketchController.java:703)
at processing.app.Editor$UploadHandler.run(Editor.java:2055)
at java.lang.Thread.run(Thread.java:748)
-------------------- endsnip ------------------------
The only thing I can see is that it says "uploadUsingProgrammer".
Here's the preferences.txt:
----------------- snip -----------------------------
board=esp32doit-espduino
boardsmanager.additional.urls=https://dl.espressif.com/dl/package_esp32_index.json
build.verbose=false
build.warn_data_percentage=75
cache.enable=true
compiler.cache_core=true
compiler.warning_level=none
console=true
console.auto_clear=true
console.error.file=stderr.txt
console.length=500
console.lines=4
console.output.file=stdout.txt
custom_DebugLevel=esp32doit-espduino_none
custom_FlashFreq=esp32doit-espduino_80
custom_UploadSpeed=esp32doit-espduino_921600
editor.antialias=true
editor.auto_close_braces=true
editor.caret.blink=true
editor.code_folding=false
editor.divider.size=2
editor.external=false
editor.font=Monospaced,plain,14
editor.indent=true
editor.invalid=false
editor.keys.alternative_cut_copy_paste=true
editor.keys.home_and_end_beginning_end_of_doc=false
editor.keys.shift_backspace_is_delete=true
editor.languages.current=
editor.linenumbers=false
editor.save_on_verify=true
editor.tabs.expand=true
editor.tabs.size=2
editor.update_extension=true
editor.window.height.default=600
editor.window.height.min=290
editor.window.width.default=500
editor.window.width.min=400
export.applet.separate_jar_files=false
export.application.fullscreen=false
export.application.platform=true
export.application.stop=true
export.delete_target_folder=true
gui.scale=auto
ide.accessible=false
last.ide.1.8.13.daterun=1614533311
last.ide.1.8.13.hardwarepath=C:\Program Files (x86)\Arduino\hardware
last.screen.height=1440
last.screen.width=2560
last.serial.location=1329,519,873,427
last.sketch.count=1
last.sketch.default.location=2915,320,1649,903,441,0
last.sketch.default.path=C:\Users\jerry\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\ESP32\examples\ChipID\GetChipID\GetChipID.ino
last.sketch0.location=2915,320,1649,903,441,0
last.sketch0.path=C:\Users\jerry\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\ESP32\examples\ChipID\GetChipID\GetChipID.ino
last.sketch1.location=1372,233,767,903,717,0
last.sketch1.path=C:\Users\jerry\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\ESP32\examples\ChipID\GetChipID\GetChipID.ino
platform.auto_file_type_associations=true
preferences.readonly=false
preproc.color_datatype=true
preproc.enhanced_casting=true
preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.*
preproc.output_parse_tree=false
preproc.save_build_files=false
preproc.substitute_floats=true
preproc.substitute_unicode=true
preproc.web_colors=true
programmer=arduino:avrispmkii
proxy.manual.hostname=
proxy.manual.password=
proxy.manual.port=
proxy.manual.type=HTTP
proxy.manual.username=
proxy.pac.url=
proxy.type=auto
recent.sketches=C:\Users\jerry\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\ESP32\examples\Time\SimpleTime\SimpleTime.ino,C:\Users\jerry\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\ESP32\examples\ChipID\GetChipID\GetChipID.ino
run.display=1
run.options=
run.options.memory=false
run.options.memory.initial=64
run.options.memory.maximum=256
run.present.bgcolor=#666666
run.present.exclusive=false
run.present.stop.color=#cccccc
serial.databits=8
serial.debug_rate=2000000
serial.line_ending=1
serial.parity=N
serial.port=COM8
serial.port.file=COM8
serial.port.iserial=null
serial.stopbits=1
sketchbook.path=C:\Users\jerry\Documents\Arduino
software=ARDUINO
target_package=esp32
target_platform=esp32
theme.file=
update.check=true
update.id=-1701494494404269850
update.last=1614484244064
upload.using=bootloader
upload.verbose=false
upload.verify=true
----------------- endsnip ------------------------
Does anybody have a clue? Because I sure don't, and mighty google comes up dry.
Thanks in advance,
-jerryk1234
Null Pointer on Upload
-
- Posts: 1
- Joined: Mon Mar 01, 2021 12:27 am
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 85 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.