PROGMEM Causes Section Type Conflict - ESP8266 Community Forum

× ESP8266 Community Forum

Explore... Chat... Share...

  • Board index
  • ESP8266 Platforms
  • ESP8266 Arduino
  • General Discussions

PROGMEM causes section type conflict

Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

Search
  • 2 posts
  • Page 1 of 1
  • 2 posts
Reply User avatar

PROGMEM causes section type conflict #65112

By mwinther - Fri Apr 21, 2017 9:02 am
  • ×

    User mini profile

    User avatar View full profile

    mwinther

    • Posts: 1
    • Joined: Tue Apr 12, 2016 6:25 pm
    • Status: Off-line
- Fri Apr 21, 2017 9:02 am #65112 Hi, I'm trying to compile a piece of code using PlatformIO and espressif8266 arduino framework.This code used to compile fine in the past, but with the current PlatformIO install it fails.This is the line that causes the error:Code: Select allstatic const int8_t enc_states [] PROGMEM = {0,-1,1,0,1,0,0,-1,-1,0,0,1,0,1,-1,0}; //encoder lookup tableThis is the error I'm getting:
src\main.cpp:66:21: error: enc_states causes a section type conflict with __cconst static int8_t enc_states [] PROGMEM = {0,-1,1,0,1,0,0,-1,-1,0,0,1,0,1,-1,0}; //encoder lookup table
If I remove the const keyword it will just proceed to the next place where const and PROGMEM is used, ex.:
In file included from .piolibdeps\ESP8266_SSD1306_ID562/OLEDDisplay.h:32:0,from .piolibdeps\ESP8266_SSD1306_ID562/SSD1306Wire.h:31,from .piolibdeps\ESP8266_SSD1306_ID562/SSD1306.h:30,from src\main.cpp:40:.piolibdeps\ESP8266_SSD1306_ID562/OLEDDisplayFonts.h:851:12: error: ArialMT_Plain_24 causes a section type conflict with __cconst char ArialMT_Plain_24[] PROGMEM = {
I suspect that the installation is corrupted somehow (I've tried on two different computers, same results) but I have not idea where to look to get it fixed..Any recommendations? User avatar

Re: PROGMEM causes section type conflict #68235

By AgroMe - Thu Jul 13, 2017 10:15 pm
  • ×

    User mini profile

    User avatar View full profile

    AgroMe

    • Posts: 4
    • Joined: Thu Jul 13, 2017 1:21 pm
    • Status: Off-line
- Thu Jul 13, 2017 10:15 pm #68235 I believe the correct declaration should be:Code: Select allconst PROGMEM int8_t enc_states [] static const int8_t enc_states [] = {0,-1,1,0,1,0,0,-1,-1,0,0,1,0,1,-1,0}; Reply
  • Options
  • 2 posts
  • Page 1 of 1
  • 2 posts
  • Page 1 of 1
Return to General Discussions Display: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject Sort by AscendingDescending Go Jump to: Select a forum ------------------ THESE FORUMS ARE CLOSED ESP8266 Platforms ESP8266 Arduino WIFIO Dual Arduino WIFI module General Discussions Example Sketches Downloading and installing News Github code chat for ESP8266 Arduino IDE Connecting existing modules Bug Reports Video Tutorials MMISCOOL's Basic Interpreter News General Programming Examples Projects Bugs Feature Requests Hardware Questions IoT (Internet of Things) Lua NodeMCU.com Lua Firmware Bug Reports Script Examples Requested new features and API Tools and IDE Random Lua Chat Arduino Native SDK Sming - Open Source Framework Javascript for ESP8266 (Espruino and Smart.js) ESP8266 Forum General Discussions Hardware Specific Newbie Corner Advanced Users Compiler Chat Documentation ESP8266 Videos ESP8266 Projects Users Projects ESPUSB Community Project ESPUSB - General - Announce ESPUSB - Software ESPUSB - Arduino ESPUSB - Hardware ESP-HTTPD Project Community Project to fix AT+ Commands ESPlocalizer Electronic Forum General Chat and Questions NEWS News Contests 1st Annual ESP8266 Design Contest Rules Vote Entrants ScopeMeter Giveway (June 2019) Go User avatar 06 Jul

Announcement: esp8266.com is closed; specifically,[…]

READ MORE User avatar 05 Jul

It takes about 20-25 seconds for home assistant c[…]

READ MORE User avatar 04 Jul

I tried to upgrade tof my sonoff basic R2 with the[…]

READ MORE User avatar 28 Jun

Hi, I'm developing a mobile IoT solution. It's a t[…]

READ MORE User avatar 23 Jun

Does your NodeMCU actually have a CH340 and not […]

READ MORE User avatar 23 Jun

a problem Perhaps you want to define "Probl[…]

READ MORE User avatar 21 Jun

Does this give you any pointers? Of course doesn[…]

READ MORE User avatar 21 Jun

Good morning, I don't know if it is possible to co[…]

READ MORE User avatar 19 Jun

Good day How to do it so that, for example, the st[…]

READ MORE User avatar 19 Jun

Hello, I can no longer find where I have to go to […]

READ MORE User avatar 19 Jun

Rebooting your router will not give you a faster I[…]

READ MORE User avatar 18 Jun

There are no other notifications from esptool.py i[…]

READ MORE User avatar 18 Jun

Using the Arduino IDE, you'll learn how to set up […]

READ MORE User avatar 18 Jun

In this project, you will post to Twitter using an[…]

READ MORE User avatar 18 Jun

In this project, we will build a water level contr[…]

READ MORE User avatar 18 Jun

I removed a large amount pf pcb from under the ant[…]

READ MORE User avatar 17 Jun

I guess I'm late, but I had the same problem and f[…]

READ MORE User avatar 16 Jun

Last night I received my first D1 Minis for a lear[…]

READ MORE User avatar 12 Jun

Hi Guys, [url="https://vancedyoutube.org/&quo[…]

READ MORE User avatar 11 Jun

Although I am aware that this is an old post, I fe[…]

READ MORE VIEW MORE TOPICS

Follow on Twitter @ESP8266COM

Tag » Arduino Section Type Conflict