Problems including library

Viewing 6 reply threads
  • Author
    Posts
    • #24062
      pallasch
      Participant

        Moin,

        the documentation of your library reads perfect and plausible.

        Sadly, as soon as I include “LoRa_E220.h” or “EByte_LoRa_E220_library.h” from within Arduino IDE, not even using any parts of it, I get a hell of errors.

        Is there anything I might have missed?

        Most errors read like this:
        `In file included from /home/chris/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/2.0.6/tools/sdk/esp32c3/include/soc/esp32c3/include/soc/dport_access.h:23,
        from /home/chris/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/2.0.6/tools/sdk/esp32c3/include/hal/esp32c3/include/hal/cpu_ll.h:11,
        from /home/chris/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/2.0.6/tools/sdk/esp32c3/include/hal/include/hal/cpu_hal.h:16,
        from /home/chris/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/2.0.6/tools/sdk/esp32c3/include/esp_hw_support/include/esp_cpu.h:14,
        from /home/chris/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/2.0.6/tools/sdk/esp32c3/include/esp_hw_support/include/soc/cpu.h:14,
        from /home/chris/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/2.0.6/tools/sdk/esp32c3/include/esp_hw_support/include/soc/spinlock.h:11,
        from /home/chris/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/2.0.6/tools/sdk/esp32c3/include/freertos/port/riscv/include/freertos/portmacro.h:38,
        from /home/chris/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/2.0.6/tools/sdk/esp32c3/include/freertos/include/freertos/portable.h:51,
        from /home/chris/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/2.0.6/tools/sdk/esp32c3/include/freertos/include/freertos/FreeRTOS.h:63,
        from /home/chris/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/2.0.6/cores/esp32/Arduino.h:33,
        from /home/chris/snap/arduino/current/Arduino/mca2_gate/mca2_gate.ino:6:
        /home/chris/snap/arduino/85/.arduino15/packages/esp32/hardware/esp32/2.0.6/tools/sdk/esp32c3/include/soc/esp32c3/include/soc/uart_reg.h:794:22: error: expected identifier before ‘(‘ token
        #define UART_PARITY (BIT(0))
        ^

      • #24063
        Renzo Mischianti
        Keymaster

          Hi,
          can you explain what board you use and the version of the framework.
          Thanks Renzo

        • #24064
          pallasch
          Participant

            ESP32c3 DevKit (Revision C)
            Arduino 1.8.19

          • #24065
            pallasch
            Participant

              No deed to hurry, 22:54 local, I go to bed

            • #24068
              Renzo Mischianti
              Keymaster

                Hi pallasch,
                I fixed It. In the C3 version, Espressif now includes a new definition named UART_PARITY, which is the same name as my internal define.

                Thanks for the issue.
                Bye Renzo

              • #24115
                pallasch
                Participant

                  Many-Many-Thanks!

                  Returning from hospital after surgery (stends in arteria) I was realy existed to test it and after some re-wiring the code does compile and since today I get feedback from the LLCC68 using the 2nd UART 🙂

                  What I yet couldn’t figure out is, how to correctly set the correct frequency.
                  defining FREQUENCY_868 doesnt seam to change a lot and I’ve tried pretty high “chan” values.

                  I’m using the EU/USA version (868MHz, E220-900T22D)

                  Might it be, that printParameters(configuration) alway shows 433+channel?
                  Where is my error?

                  Thank you for your outstanding work!

                  Chris

                  • #24118
                    Renzo Mischianti
                    Keymaster

                      Hi Pallasch,
                      put the define directly in the stateNaming.h file under the include folder, sometime the context can’t be shared.

                    • #24122
                      pallasch
                      Participant

                        Perfect! That did the job 🙂

                        THX, Chris

                    • #24116
                      pallasch
                      Participant

                        My actual pins (at Esp32-c3) are

                        rxPin 4
                        txPin 5
                        Aux 8
                        M0 18
                        M1 19

                        using
                        LoRa_E220 e220ttl(4,5,&Serial1,8,18,19,UART_BPS_RATE_9600,SERIAL_8N1 );

                        Chris

                    Viewing 6 reply threads
                    • You must be logged in to reply to this topic.
                    Exit mobile version