This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PGA460-Q1: 'Serial1' was not declared in this scope

Part Number: PGA460-Q1
Other Parts Discussed in Thread: ENERGIA, PGA460

Hello,

We are using PGA460- Q1 EVM. We are trying to interface this EVM with Espressif micro controller. We are getting 'Serial1' was not declared in this scope error  while running sample code.

Kindly requesting you to suggest the way to sort out this problem.

  • Hello Padmaraj,
    'Serial1' is specific to the Energia and Arduino IDEs. What IDE are you using to write code for your Espressif MCU?
    'Serial1' is the equivalent of any MCUs UART port function; thus, you may need to convert/port the PGA460 example code to support the Espressif library.
  • Hello Sir,
    Thank you for your reply.
    We are currently using atom IDE for our Espressif MCU.
    We need further clarification regarding these serial issues.
    Is both serial 1 and serial0 required ?
    Currently we are using UART0 of espressif to display purpose. We cannot use any of the other UART, since we are running out of the GPIOs.

    Could you please give me the solution for this.
    Can't we use UART0 of Espressif alone?
    Thank you in advance.

    Regards,
    Padmaraj.
  • Padmaraj,
    Currently, 'Serial' is used to display information on the COM terminal. 'Serial1' is used to read and write information to the device. Therefore, only 'Serial1' is required to operate the device. Displaying information on the COM terminal is optional.

    Keep in mind that the PGA460 has three communication modes: standard UART, TCI, and One-Wire UART (OWU). TCI and OWU interface the the PGA460's IO pin, and can use two timer enabled or bit-banged GPIOs instead of a UART port, but the Energia code is currently only developed for standard UART. UART is also recommended since it is the fastest and most configurable communication mode.

    I recommend that you allocate your UART port to the PGA460, and find an alternative method to display the information on your COM terminal.
  • Hi,

    We are trying to detect:

    1] human presence through PGA460 on 40 Khz transducer

    2] Human movement 

    we want to differentiate from other inanimate objects in the environment

    Is there a method or setting that can help us do this?

    Your help is greatly appreciated.

    Regards,

    Padmaraj

  • Hi Padmaraj,

    Check out my response to a similar question on the following E2E post:
    e2e.ti.com/.../2259816