Ender 5 setup and Loop undefined.

So I’m new at this sort of thing. Got a silent board and BLTouch for my printer. I’m getting setup loop undefined. Lines 43 and 46. I see where I can add the proper syntax to void these two out. Do I just put this code in the lines mentioned? I can access my error logs later if needed. This just feels like I’m missing a major but simple step. Thank you in advance.

Lines 43 and 46

of what ?

Post the complete program and full error message

You have missed a major point if you omitted the setup() and loop() functions. Every Arduino program is expected to have them. We will know more when we see some properly posted code.

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:43: undefined reference to `setup’

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:46: undefined reference to `loop’

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Sanguino.

Ender_5_Marlin.ino (1.93 KB)

The OP's "code"

/*
================================================================================

  Marlin Firmware

  (c) 2011-2019 MarlinFirmware
  Portions of Marlin are (c) by their respective authors.
  All code complies with GPLv2 and/or GPLv3

================================================================================

Greetings! Thank you for choosing Marlin 2 as your 3D printer firmware.

To configure Marlin you must edit Configuration.h and Configuration_adv.h
located in the root 'Marlin' folder. Check the config/examples folder to see if
there's a more suitable starting-point for your specific hardware.

Before diving in, we recommend the following essential links:

Marlin Firmware Official Website

  - http://marlinfw.org/
    The official Marlin Firmware website contains the most up-to-date
    documentation. Contributions are always welcome!

Configuration

  - https://www.youtube.com/watch?v=3gwWVFtdg-4
    A good 20-minute overview of Marlin configuration by Tom Sanladerer.
    (Applies to Marlin 1.0.x, so Jerk and Acceleration should be halved.)
    Also... https://www.google.com/search?tbs=vid%3A1&q=configure+marlin

  - http://marlinfw.org/docs/configuration/configuration.html
    Marlin's configuration options are explained in more detail here.

Getting Help

  - http://forums.reprap.org/list.php?415
    The Marlin Discussion Forum is a great place to get help from other Marlin
    users who may have experienced similar issues to your own.

  - https://github.com/MarlinFirmware/Marlin/issues
    With a free GitHub account you can provide us with feedback, bug reports,
    and feature requests via the Marlin Issue Queue.

Contributing

  - http://marlinfw.org/docs/development/contributing.html
    If you'd like to contribute to Marlin, read this first!

  - http://marlinfw.org/docs/development/coding_standards.html
    Before submitting code get to know the Coding Standards.
*/

Not a single line of code in sight

Did you guys open the INO file with the config h and adv config h as well

Please take a look at this one. Sorry for the confusion

Ender_5_Marlin.ino (1.93 KB)

Here’s a zip so you dont have to create folders. I know dealing with new folks is not easy, I can read, I do have an electronics backround, I am smart, but this code thing is somewhat greek. And compilers and C++ is lost on me. Trust me I’m trying to be respectful of the forum and it’s guidelines

This thread is a complete train wreck...

Please take a moment to review the forum rules

Where are the 300+ other files that make up the Marlin sources?

It should have all come in the download of the Creality Ender 5 firmware V1.1.6.3 from this page:
https://creality.com/creality-ender-5-p00261p1.html

So no 7z
Trying to get the zip to go

Ender_5_Marlin1152020.zip (52.6 KB)

johnwasser:
Where are the 300+ other files that make up the Marlin sources?

It should have all come in the download of the Creality Ender 5 firmware V1.1.6.3 from this page:
https://creality.com/creality-ender-5-p00261p1.html

Ive got those files, no clue how to load a .rar. Do i use the the arduino, or once i burn the bootloader, can I use the usb.

Gripdog:
Ive got those files, no clue how to load a .rar. Do i use the the arduino, or once i burn the bootloader, can I use the usb.

A .rar file is like a .zip file. You expand it into a folder full of 300+ individual files. Then you open the .ino file with the Arduino IDE. Then you select the proper board in Tools->Board, selevct the proper USB serial port in Tools->Port, and select Sketch->Upload to compile and upload the firmware.