AM2320 in normal build ?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Micha_he
Normal user
Posts: 369
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

AM2320 in normal build ?

#1 Post by Micha_he » 17 Aug 2021, 18:26

According to the RTD-documentation, the P51-plugin (AM2320) should be included in the normal build. Look here:
am2320_normal.jpg
am2320_normal.jpg (4.46 KiB) Viewed 5830 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 ?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: AM2320 in normal build ?

#2 Post by TD-er » 17 Aug 2021, 18:50

Bug in the docs, so it seems....
See: https://github.com/letscontrolit/ESPEas ... 1042-L1058
It is in the "testing" builds.

Micha_he
Normal user
Posts: 369
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Re: AM2320 in normal build ?

#3 Post by Micha_he » 17 Aug 2021, 19:39

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 ?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: AM2320 in normal build ?

#4 Post by TD-er » 17 Aug 2021, 20:12

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.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: AM2320 in normal build ?

#5 Post by TD-er » 17 Aug 2021, 20:15

Just added it to the current code base in the 'mega' branch

Micha_he
Normal user
Posts: 369
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Re: AM2320 in normal build ?

#6 Post by Micha_he » 17 Aug 2021, 20:29

Thanks for your help.

Micha_he
Normal user
Posts: 369
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Re: AM2320 in normal build ?

#7 Post by Micha_he » 20 Aug 2021, 12:51


Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests