Atmel Studio puts wrong name in auto-generated file header comment.

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

I used 'New Project...' from the AS7 'Start' page, then chose 'GCC C Executable Project'

 

It creates the project, and a main.c file containing the usual "skeleton":

 

 

But it's put the wrong name in the automatically-generated header comment, Gromit! 

 

In this case, it's put 'uart.c' - when it's actually 'main.c'

 

In general, it puts '<project-name>.c' - but the file name is always 'main.c'

 

Not a big deal, of course - but not right.

 

When I create a new file, it does put the correct name into the automatically-generated header comment.

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Thu. Jun 25, 2020 - 10:41 AM