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

I encounter the following error when programming the lolin 32 pro #10

Open
alalal80 opened this issue Apr 2, 2024 · 10 comments
Open

I encounter the following error when programming the lolin 32 pro #10

alalal80 opened this issue Apr 2, 2024 · 10 comments

Comments

@alalal80
Copy link

alalal80 commented Apr 2, 2024

Good evening,
I am currently creating your esp 32 dcf assembly to analyze on your web page.
but I encounter the following error when programming the lolin 32 pro:
here is the error:
Compilation error: 'LGFX_SPI' in namespace 'lgfx' does not name a template type
could you help me.
Sincerely.

@tobozo
Copy link
Owner

tobozo commented Apr 3, 2024

hi,

using Brett's config file will produce errors as it is no longer compatible with LGFX config syntax

LoLin D32 Pro has two official displays that work with the special socket, if you picked one of those (or use the same pinout with similar display model) then LGFX autodetection should work along with the default config, provided you selected the right board from arduino tools menu.

enabling the default config requires to comment out board-specific defines

@alalal80
Copy link
Author

alalal80 commented Apr 3, 2024 via email

@alalal80
Copy link
Author

alalal80 commented Apr 3, 2024

Thank you for your answers,
I use an ili9341 screen as in the original assembly as mentioned in the url: http://www.brettoliver.org.uk/DCF77_ESP32_Analyzer/ESP32_DCF77_Analyzer.htm?i=1

how can I program my edit without error.
Sincerely.

@tobozo
Copy link
Owner

tobozo commented Apr 3, 2024

that's good news, ili9341 is one of the official displays so it will get detected

you just need to use specific pins in your wiring along with enabling the default config

        // LoLin D32 Pro => ILI9341
        GPIO_NUM_23     // MOSI (tft and touch)
        GPIO_NUM_19     // MISO (tft and touch)
        GPIO_NUM_18     // SCLK (tft and touch)
        GPIO_NUM_27     // DC (tft)
        GPIO_NUM_14     // CS (tft)
        GPIO_NUM_33     // RST (tft)
        GPIO_NUM_12     // CS (touch)

you will have to edit the default config, pick three available pins for the DCF (available pins are: 0, 2, 4, 13, 15), and update SDA/SCL too (SDA=21, SCL=22)

image

@alalal80
Copy link
Author

alalal80 commented Apr 3, 2024

ok, for the connections, but for the .ino code, which file do I take?

@alalal80
Copy link
Author

alalal80 commented Apr 3, 2024

Good evening, here is my config file:
#ifndef _CONFIG_H
#define _CONFIG_H

// enable either one or none of those:

//#define CONFIG_WROVER_KIT
//#define CONFIG_TTGO // default
//#define CONFIG_BRETT
// Contributed by dl9sec 06.11.2021 (https://github.com/dl9sec)
//#define CONFIG_OGO
#define CONFIG_M5Core2

#if defined CONFIG_WROVER_KIT
#include "configs/Config.WROVER_KIT.h"
#elif defined CONFIG_TTGO
#include "configs/Config.TTGO-T1.h"
#elif defined CONFIG_BRETT
#include "configs/Config.Brett.h"
#elif defined CONFIG_OGO
#include "configs/Config.OGO.h"
#elif defined CONFIG_M5Core2
#include "configs/Config.M5Core2.h"
#else
#include "configs/Config.Default.h"
#endif

//#if defined SPEAKER_PIN
//#warning USING SPEAKER
// #define USE_SPEAKER
//#endif

#endif // _CONFIG_H

Is the speaker used in this weather montage?
What is the line for:
//#define CONFIG_BRETT
have you planned a new version?
Sincerely.

@tobozo
Copy link
Owner

tobozo commented Apr 4, 2024

here is my config file

you need to comment out this line otherwise it'll load M5Stack configuration (with buttons and buzzer enabled):

#define CONFIG_M5Core2

Is the speaker used in this weather montage?

when available (e.g. if Chimera-Core detects a board known to have a speaker), the speaker emits a beep every second to reflect the DCF77 receiving the signal.

speaker is not enabled in the default config

comment this out if you're not using an external RTC module:

#define USE_RTC

comment this out if you're not using any buttons:

#define USE_BUTTONS

after that, make sure the pin numbers are declared from configs/Config.Default.h as it will be selected.

have you planned a new version?

nope, but this project accepts pull requests, so if you find bugs or ways to improve the app, contributions are welcome

@alalal80
Copy link
Author

alalal80 commented Apr 4, 2024

Good evening,
the screen lights up, I also added an RTC but from a dcf77 receiver for the moment, but every 6 seconds, the screen reboots.
is this normal?
Sincerely.

@alalal80
Copy link
Author

alalal80 commented Apr 4, 2024

the numbers below the hourglass scroll for 5 to 6 seconds and the screen reboots.

@tobozo
Copy link
Owner

tobozo commented Apr 4, 2024

numbers scrolling is the UI testing itself, right after it gets the time from the RTC and starts listening to the DCF77, so if it's crashing at this stage, then something must be wrong with the pins assignment

more info on the crash should be available in the serial console when this happens

there's also a an Exception decoder to help you identify what line of code caused the crash

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

2 participants