I was trying to program atmega 328p using vscode its not working
Richu Bini last edited by salmanfaris
I try to program atmega328p using vscode the extension i used is avr helper ... In avr helper when i try to build the code it is showing
1 task in folder intrrepts: make -f/home/pi/Documents/intrrepts/.vscode/avr.targets.mk build <
===== Making .vscode/avr.build/output.elf
/usr/lib/gcc/avr/5.4.0/../../../avr/lib/avr5/crtatmega328p.o:(.init9+0x0): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [/home/pi/Documents/intrrepts/.vscode/avr.targets.mk:52: .vscode/avr.build/output.elf] Error 1
The terminal process "/bin/bash '-c', 'make -f/home/pi/Documents/intrrepts/.vscode/avr.targets.mk build'" terminated with exit code: 2.
Terminal will be reused by tasks, press any key to close it.
i think this is the problem with avr-gcc can anyone help to solve this
Richu Bini last edited by
@Richu-Bini sry guys its my fault i forget to put 'a' in int main (void) .... 2 days to find an 'a'
salmanfaris last edited by
. solved right?
@salmanfaris Actually, I can't connect my NodeMCU device with the localhost server. I can establish a connection using the test.mosquitto.org server.
This is my required case: YouTube link
@sivanath From your last message looks like the MQTT broker already running on your computer. Could you please try to do a test with nodeRED and see it's working or not.
@swalahamani I may not be able to come tomorrow. I think we could set up a call. How can I contact you personally?
Please bring your device if you're coming for the upcoming MakerChat 0x13 tomorrow (IST). Either I and @salmanfaris or both of us will be there.
Or else we can set up a call sometime this weekend or the next week and sort it out.
Let me know.