Page 1 of 1
AM2320 in normal build ?
Posted: 17 Aug 2021, 18:26
by Micha_he
According to the RTD-documentation, the P51-plugin (AM2320) should be included in the normal build. Look here:
- am2320_normal.jpg (4.46 KiB) Viewed 6013 times
But in the tested image 'ESP_Easy_mega_20210802_normal_WROOM02_2M256.bin' I can't found it.
Just like in a slightly older 4M normal-image. Is it a bug in the docs or in the build-config ?
I would like to use a 2MB image on a SWA1 wifi-switch (Flash Chip ID: Vendor: 0xE Device: 0x4015).
But the only 2MB images are shelly1 or wroom02. Is it a problem to use the wroom02_2M256 on this device ?
Re: AM2320 in normal build ?
Posted: 17 Aug 2021, 18:50
by TD-er
Bug in the docs, so it seems....
See:
https://github.com/letscontrolit/ESPEas ... 1042-L1058
It is in the "testing" builds.
Re: AM2320 in normal build ?
Posted: 17 Aug 2021, 19:39
by Micha_he
and the 2nd point: What's the best way to get a custom 2MB image with the P51-plugin ? There is no 2MB custom-env, so my/a custom.h will not be usable, or ?
Re: AM2320 in normal build ?
Posted: 17 Aug 2021, 20:12
by TD-er
You can change the platformio_esp82xx_envs.ini to add this:
Code: Select all
[env:custom_ESP8266_2M256]
extends = espWroom2M256
platform = ${regular_platform.platform}
platform_packages = ${regular_platform.platform_packages}
build_flags = ${regular_platform.build_flags}
${espWroom2M256.build_flags}
-DPLUGIN_BUILD_CUSTOM
lib_ignore = ${esp8266_custom_common.lib_ignore}
extra_scripts = ${esp8266_custom_common.extra_scripts}
I will also add it to the mega branch.
Re: AM2320 in normal build ?
Posted: 17 Aug 2021, 20:15
by TD-er
Just added it to the current code base in the 'mega' branch
Re: AM2320 in normal build ?
Posted: 17 Aug 2021, 20:29
by Micha_he
Thanks for your help.
Re: AM2320 in normal build ?
Posted: 20 Aug 2021, 12:51
by Micha_he