MakerGram Logo

    MakerGram

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups

    I was trying to program atmega 328p using vscode its not working

    Arduino
    2
    3
    394
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      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

      R 1 Reply Last reply Reply Quote 0
      • R
        Richu Bini @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'

        1 Reply Last reply Reply Quote 1
        • salmanfaris
          salmanfaris last edited by

          😀 👍 . solved right?

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Recent Posts

          • @codelery Awesome. That's great news. Kudos to @rafitc99 . 🙌

            @codelery Please keep us updated about your project, looking forward to seeing it in action 🤩

            • read more
          • C

            @rafitc99 I changed the buffer and that solved the problem. Thanks a lot for coming to my rescue.

            • read more
          • C

            @salmanfaris I did change the buffer size and everything is working perfectly. Thanks coming to my rescue.

            • read more
          • @codelery said in Help needed: Arduino Wireless Notice Board project:

            I am using the hardware serial (pin 0 and 1 on Arduino Uno)

            As @rafitc99 mentioned, you need to expand the Serila buffer, in the hardware serial also the Arduino board package implements a 64-byte ring buffer for send and receive on the hardware serial messages. So you need to change that to 256 as per your message length.

            • read more
          • C

            @rafitc99 The thing is that I am not using the SoftwareSerial library in receiving the message from the first microcontroller. I am using the hardware serial (pin 0 and 1 on Arduino Uno)

            • read more
          By MakerGram | A XiStart Initiative | Built with ♥ NodeBB
          Copyright © 2023 MakerGram, All rights reserved.
          Privacy Policy | Terms & Conditions | Disclaimer | Code of Conduct