Skip to content

Support for Heltec Wireless Stick Lite #298

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
pmelvs opened this issue Mar 5, 2020 · 5 comments
Closed

Support for Heltec Wireless Stick Lite #298

pmelvs opened this issue Mar 5, 2020 · 5 comments

Comments

@pmelvs
Copy link

pmelvs commented Mar 5, 2020

Would it be possible to get the Heltec Wireless Stick Lite board to be supported?

It's very similar to the existing Heltec Wireless Stick but uses a ESP32-PICO instead. I tried for awhile to make a custom board but couldn't get it to work, but I'm very new to PIO and clearly don't know enough to get it working yet.

Thanks!

https://heltec.org/project/wireless-stick-lite/

@ivankravets ivankravets transferred this issue from platformio/platformio-core Mar 5, 2020
@brunohorta82
Copy link

Add this inside you core_dir (https://docs.platformio.org/en/latest/projectconf/section_platformio.html#projectconf-pio-core-dir)

https://github.com/brunohorta82/platformio_heltec_wireless_stick_lite_board

@pmelvs
Copy link
Author

pmelvs commented Mar 18, 2020

Thank you, this works great! It took me a minute to figure out which board it is, in the "heltec_wireless_stick_lite.json" file you have it named as a different board made by Heltec. I changed that and it's perfect now.

"name": "Heltec Wireless Stick",

is now:

"name": "Heltec Wireless Stick Lite",

@aparcar
Copy link

aparcar commented Apr 22, 2020

@brunohorta82 mind creating a PR to add the board?

@aparcar
Copy link

aparcar commented Apr 22, 2020

I just created the two PR mentioning you @brunohorta82
#329
espressif/arduino-esp32#3925

@margau
Copy link

margau commented Apr 26, 2020

Edit: Error seems not to be specific to this board, moved to #334

Old Comment:

Hi, thanks for the PR!
Does this work for you? I'm compiling with PIO 4.3.1 and the following environment, but getting linker errors:

[env:heltec_wireless_stick_lite]
platform = https://github.com/aparcar/platform-espressif32.git#heltec_wireless_stick_lite
board = heltec_wireless_stick_lite
upload_protocol = esptool
monitor_speed = 115200
framework = arduino
monitor_filers = esp32_exception_decoder
platform_packages =
     framework-arduinoespressif32 @ https://github.com/aparcar/arduino-esp32.git#heltec_wireless_stick_lite

A part from my log:

/home/marvin/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld:esp32.project.ld:27: warning: memory region `rtc_iram_seg' not declared
/home/marvin/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld:esp32.project.ld:39: warning: memory region `rtc_data_seg' not declared
/home/marvin/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld:esp32.project.ld:66: warning: memory region `rtc_data_location' not declared
/home/marvin/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld:esp32.project.ld:107: warning: memory region `rtc_slow_seg' not declared
/home/marvin/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld:esp32.project.ld:160: warning: memory region `iram0_0_seg' not declared
/home/marvin/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld:esp32.project.ld:490: warning: memory region `dram0_0_seg' not declared
/home/marvin/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld:esp32.project.ld:599: warning: memory region `drom0_0_seg' not declared
/home/marvin/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld:esp32.project.ld:620: warning: memory region `iram0_2_seg' not declared
/home/marvin/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: section .dram0.data loaded at [0000000000000000,00000000000021cb] overlaps section .iram0.vectors loaded at [0000000000000000,00000000000003ff]
/home/marvin/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: section .flash.rodata loaded at [0000000000000000,000000000000b5ef] overlaps section .dram0.data loaded at [0000000000000000,00000000000021cb]
/home/marvin/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: section .flash.text loaded at [0000000000000000,000000000001859b] overlaps section .flash.rodata loaded at [0000000000000000,000000000000b5ef]
/home/marvin/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: section .iram0.text loaded at [0000000000000400,000000000000ad66] overlaps section .flash.text loaded at [0000000000000000,000000000001859b]

from there on everything fails with dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: __sinit - do you have any idea, where this comes from? Under which environment are you building Wireless Stick Lite successfully?
Thanks!

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

5 participants