Skip to content
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

Cannot compile WiFi_LoRa_32_V3_FactoryTest_V2 #145

Open
romoloman opened this issue May 7, 2024 · 5 comments
Open

Cannot compile WiFi_LoRa_32_V3_FactoryTest_V2 #145

romoloman opened this issue May 7, 2024 · 5 comments

Comments

@romoloman
Copy link

During linking the linker raise the following error:

undefined reference to `ex_32k_start_cnt'

I have installed the latest HELTEC ESP32 development framework following the instructions in https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/blob/master/InstallGuide/windows.md and the latest 2.0.1 library using Arduino 2.3.2 library manager.

where is the ex_32k_start_cnt variable defined ?

If I remove the following part in setup() the example links correctly:

if(ex_32k_start_cnt>5)
{
VextON();
delay(100);
factory_display.init();
factory_display.setFont(ArialMT_Plain_16);
factory_display.setTextAlignment(TEXT_ALIGN_CENTER);
packet ="EX 32K ERROR";
factory_display.clear();
factory_display.drawString(64, 24, packet);
factory_display.display();
while(1);
}

what is ex_32k_start_cnt supposed to count or do ?

Best regards

@rodrigobutta
Copy link

rodrigobutta commented May 7, 2024

After some hours of digging, I've found this Issue that explains that, it appears that indeed was an error in the Heltec ESP32 that they fixed it on a PR of Mar 27 (while the last release is from Mar 22), but Heltec has still not published the release. For others, downgrading worked, not for me, at least not with the LoRaWan_APP library. So I hope they publish this soon (more than a month already, sad).

Heltec-Aaron-Lee/WiFi_Kit_series#248

@MiningPickaxe
Copy link

The ex_32k_start_cnt seems to be linked to an external 32K RTC.
To me it looks like the code is trying to check if the RTC is working properly. The variable might count something like start attempts or similar. If the RTC didn't initialize/start properly, it shows text on the screen "EX 32K ERROR".

I don't see a RTC chip in the schematic published by Heltec for the v3.1, so I assume this code has been added for some internal test unit or maybe a future revision which includes a dedicated rtc.

It should be safe to remove the

  {
    VextON();
    delay(100);
    factory_display.init();
    factory_display.setFont(ArialMT_Plain_16);
    factory_display.setTextAlignment(TEXT_ALIGN_CENTER);
    packet ="EX 32K ERROR";
    factory_display.clear();
    factory_display.drawString(64, 24, packet);
    factory_display.display();
    while(1);
  }

to get it to compile. All it does is output an error in some edge case during startup.

@roberthadow
Copy link

My problem is simpler: 'class WiFiClass' has no member named 'setAutoConnect'

Multiple libraries were found for "WiFi.h"
 Used: /home/rhadow/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/WiFi
 Not used: /snap/arduino/85/libraries/WiFi
Using library WiFi at version 2.0.0 in folder: /home/rhadow/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/WiFi 
Using library Network at version 1.0.0 in folder: /home/rhadow/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/Network 
Using library Heltec_ESP32_Dev-Boards at version 2.0.2 in folder: /home/rhadow/snap/arduino/current/Arduino/libraries/Heltec_ESP32_Dev-Boards 
Using library SPI at version 2.0.0 in folder: /home/rhadow/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/SPI 
Using library Wire at version 2.0.0 in folder: /home/rhadow/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/Wire 

Question (1): How do I point the compiler to the correct WiFi.h so this works?
Question (2): How do I stop the compiler from looking in all the wrong places?

@matthewbullweb
Copy link

Hi Had the same issues tonight. V1 works fine but V2 won't. I dumped the original fw before so I can put back. Doesn't help complie though.

@VeniceInventors
Copy link

Hi Had the same issues tonight. V1 works fine but V2 won't. I dumped the original fw before so I can put back. Doesn't help complie though.

How do you dump the firmware?

I have a slightly different issue, trying to compile the factory test for the Lora32_V3 before replacing it with my own code, and getting errors where a bunch of constants are undefined:

  pinMode(RADIO_DIO_1,ANALOG);
  pinMode(RADIO_NSS,ANALOG);
  pinMode(RADIO_RESET,ANALOG);
  pinMode(RADIO_BUSY,ANALOG);
  pinMode(LORA_CLK,ANALOG);
  pinMode(LORA_MISO,ANALOG);
  pinMode(LORA_MOSI,ANALOG);

I can probably fix the errors by defining the constants according to the pins_arduino.h file but I'd still like to have a copy of the current firmware until I figure out where the library is broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants