Closed kucukonur closed 9 months ago
Please post your code for main.cpp so I can see what is going on. Seems you are trying to call loop() function before it is defined/declared
&& !ARDUINO_USB_MODE
TaskHandle_t loopTaskHandle = NULL;
void yieldIfNecessary(void){ static uint64_t lastYield = 0; uint64_t now = millis(); if((now - lastYield) > 2000) { lastYield = now; vTaskDelay(5); //delay 1 RTOS tick } }
bool loopTaskWDTEnabled;
attribute((weak)) size_t getArduinoLoopTaskStackSize(void) { return ARDUINO_LOOP_STACK_SIZE; }
void loopTask(void *pvParameters) { setup(); for(;;) {
yieldIfNecessary();
if(loopTaskWDTEnabled){
esp_task_wdt_reset();
}
loop();
if (serialEventRun) serialEventRun();
}
}
extern "C" void app_main() {
Serial.begin();
MSC_Update.begin();
USB.enableDFU();
USB.begin();
loopTaskWDTEnabled = false;
initArduino();
xTaskCreateUniversal(loopTask, "loopTask", getArduinoLoopTaskStackSize(),
NULL, 1, &loopTaskHandle, ARDUINO_RUNNING_CORE); }
Paul @.***>, 20 Kas 2023 Pzt, 21:45 tarihinde şunu yazdı:
Please post your code for main.cpp so I can see what is going on. Seems you are trying to call loop() function before it is defined/declared
— Reply to this email directly, view it on GitHub https://github.com/pkerspe/ESP-StepperMotor-Server/issues/40#issuecomment-1819616713, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCYOIGUEG2QUMTKENKIUYCDYFOQLXAVCNFSM6AAAAAA7TLK4TSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZGYYTMNZRGM . You are receiving this because you authored the thread.Message ID: @.***>
i downloaded ESP_StepperMotor_Server-0.4.11.zip
i didnt change nothing i coudnt loaded
Just follow the instruction in the readme file to setup a new project in platform Io, it is explained there step by step, and the fact you are posting a completely different main.cpp file, means you did not follow the readme so far
"I downloaded the code without making any changes. I am trying to upload it without making any modifications, but I continue to encounter errors
what can i do i dont know i m trying to load since a day
You don't need to download any code, platformio does dependency management for you if you follow the instructions from the readme and simply use the dependency management in platformio.ini file. Follow readme step by step as described in the firmware upload section
"Can I directly upload the downloaded zip file from PlatformIO? The instructions are too long, so I wanted to upload the project directly. Can you add the variables to the interface and modify the project for a fee? My time is limited."
Paul @.***>, 20 Kas 2023 Pzt, 23:24 tarihinde şunu yazdı:
You don't need to download any code, platformio does dependency management for you if you follow the instructions from the readme and simply use the dependency management in platformio.ini file. Follow readme step by step as described in the firmware upload section
— Reply to this email directly, view it on GitHub https://github.com/pkerspe/ESP-StepperMotor-Server/issues/40#issuecomment-1819752557, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCYOIGQAGZHJNCNQGUQRJ4LYFO4BPAVCNFSM6AAAAAA7TLK4TSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZG42TENJVG4 . You are receiving this because you authored the thread.Message ID: @.***>
The zip file you downloaded is not a project file, it is just a library. You use the library in you own project. The manual for setting up the project is basically 4-5 steps, you just need to read the manual, would take less than 5 minutes. I am afraid I cannot implement your requested project for the given fee, you project seems much more complex than just using the library as-is. Maybe you can post your job on platforms like upwork or other freelancer platforms to find a developer with a lower hourly fee that can implement it for the given budget. I will close this issue now, since it is not an issue of the library itself.
hi how are you doing ? i liked ur project i wanted to try to your esp stepper server but i coudnt load i tried so much thing my esp = nodemcu-32s
But first, I need to upload your code into the NodeMCU-32S. I'm encountering the following error. Could you please help?"
: C:/Users/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:48: undefined reference to `loop()' collect2.exe: error: ld returned 1 exit status *** [.pio\build\esp32devServer\firmware.elf] Error 1
can u load a video from youtube how can we load ?
than can u help me for this project after project i can give donate 100 €
"I want to drive two stepper motors simultaneously. For motor 1, I will input speed and direction information through the interface, and I want to read the angle of rotation from the encoder. I need to modify the web interface as well. For motor 2, I will connect it to a linear axis, and it will move 13.08cm with each step. The linear axis is 2 meters long. Motor 2 will move back and forth between two positions entered in the interface at the desired speed on the linear axis. How can I make these changes? you can contact of me from mail to onurkucuk58@gmail.com im working in vocational high school :))