Skip to content

Undeclared Identifier OUTPUT for STM32 Boards #508

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

Closed
imk2021 opened this issue Sep 19, 2021 · 2 comments
Closed

Undeclared Identifier OUTPUT for STM32 Boards #508

imk2021 opened this issue Sep 19, 2021 · 2 comments
Assignees
Labels
conclusion: duplicate Has already been submitted criticality: low Of low impact topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project

Comments

@imk2021
Copy link

imk2021 commented Sep 19, 2021

Describe the bug
Function call Parameter eg OUTPUT are underscored in Red in Ver 2 IDE beta 11 when using STM32 library

To Reproduce
Steps to reproduce the behavior:

  1. Install STM32 generic library's
  2. Import Blink Example
  3. Select board black pill STM32 F411CE

Expected behavior
I would expect the OUTPUT parameter not to be highlighted (Red underscored) as Undeclared Identifier

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10 Pro 64 Bit

Additional context
Version Two IDE behaves as expected (Not Highlighted Red) when board type is Arduino NANO

I have Arduino IDE 1.8.16 Installed and installed all my libraries via it.
Same libraries are visible in Version 2 Beta 11 so i assume are included.
The Blink program compiles uploads and works as expected
For both the NANO and Black Pill STM32 F411CE boards. ( Pin C13 and predefined LED_BUILTIN )

STM32 Upload is via STM CubeProgrammer SWD Genuine ST Link Programmer

Hope that helps, code below;

void setup()
{ // initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop()
{
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(20); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(20); // wait for a second
}

@per1234 per1234 added type: imperfection type: imperfection Perceived defect in any part of project and removed type: imperfection labels Sep 20, 2021
@ubidefeo
Copy link

@imk2021
please also post this one in the STM32 repo, because it might be due to how the OUTPUT macro is defined there.
We'll investigate on our end, but it has low priority

@ubidefeo ubidefeo added the priority: low Resolution is a low priority label Oct 21, 2021
@per1234 per1234 added the topic: language server Related to the Arduino Language Server label Oct 24, 2021
@rsora rsora added criticality: low Of low impact and removed priority: low Resolution is a low priority labels Nov 2, 2021
@per1234
Copy link
Contributor

per1234 commented Nov 3, 2021

Hi @imk2021. Thanks for taking the time to submit an issue.

I see we already have a prior issue report about this at #220.

It's best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as completed Nov 3, 2021
@per1234 per1234 added the conclusion: duplicate Has already been submitted label Nov 3, 2021
@per1234 per1234 self-assigned this Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted criticality: low Of low impact topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

4 participants