Go Down

Topic: getting compilation error for example programs like 'blink led', 'anaolog value (Read 103 times) previous topic - next topic

santhoshkantharaj

I just installed the soft ware version 1.8.9, when above programs are loaded viz. 'blink led', 'analog value reader' getting error message after compiling telling ' a function-definition is not allowed here before '{' token'. Pl. tell me solution for this.

ballscrewbob




Please READ THIS POST to help you get the best out of the forum.

SIMPLE TROUBLESHOOTING.
These steps may also save you some unnecessary time and effort in the forum.
  • Always provide as much detail as possible to your issue it may be important.
  • If applicable provide your SKETCH inside CODE TAGS ( </> ) or a CREATE share link.
  • If applicable provide a schematic even if hand drawn.
  • How to insert a picture into your post
  • If applicable provide a proper LINK to the hardware / sensors etc. you are using.
COMMON ISSUES
  • Check you have a COMMON GROUND where required.
  • Where possible use USB 2.0 ports or a USB 2.0 POWERED HUB to rule out USB 3.0 issues.
  • Try other computers where possible.
  • Try other USB leads where possible.
  • You may not have the correct driver installed. CH340/341 or CP2102
  • There may be a problem with the board check your wiring first.
  • Remove any items connected to pins 0 and 1.
COMPUTER RELATED
  • Ensure you turn off any additional security / antivirus just to test.
  • There may be a problem with the PC try RESTARTING it.
  • You may be selecting the wrong COM port.
  • Avoid cloud/network based installations where possible OR ensure your Network/Cloud software is RUNNING.
  • Clear your browsers CACHE.
  • Close the IDE before using any other serial programs.
  • Preferably install IDE's as ADMINISTRATOR or your OS equivalent
Performing the above actions may help resolve your problem without further help.

Bob.
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

spycatcher2k

Hi - I can't see the code you are using, so I'm unable to help!

It's like going to your local mechanic and saying 'my car makes a funny noise', What can the mechanic do? Nothing, as he does not have enough information.
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

Go Up