Mac 사용자의 ATmega128 소프트웨어 개발환경 삽질기

2025.02.03
·
5 min read

주의

  • 결국 Parallels 및 Bootcamp Windows에서 Microchip Studio 돌리고 있음.

  • 즉, Mac에서 AVR 개발환경 구축하는 방법을 찾은 사람이 있나!? 하고 들어오신 거라면 빨리 뒤로가기를 누르시는 편이 정신 건강에 좋습니다.

개요

  • 컴퓨터와 ATmega를 연결해서, ATmega의 Flash Memory에 펌웨어를 넣어야 한다.

    • 그러려면 드라이버 등 개발환경이 필요할 것이다.

    • Windows 기준 자료는 많은데... Mac에서 환경 구축하는 방법은 자료가 많지 않은 듯하다.

    • 잡담

      • 이것 때문에라도 지금 Mac을 Apple Silicon Mac으로 갈아타는 것은 '확실히 괜찮다'는 게 보장될 때까진 좀 보류해야 하겠다.

      • 어차피 Cross-Compile 되면 가능한 일이긴 한데...

IDE : Atmel Studio? Microchip Studio?

  • 아닛 왜... 초도 검색(? 선행 검색?) 때에는 Atmel Studio 쓰라고 했던 것 같은데 왜 Microchip Studio 설치하라는 문서랑 Atmel Studio 설치하라는 문서가 혼재되어 있지...?

    • (일단 AVR Studio -> Atmel Studio로 변경된 역사는 아는데...)

Microchip Studio, fomerly known as Atmel Studio is an Integrated Development Environment (IDE) for developing and debugging AVR and SAM microcontroller applications.

  • Microchip Studio는 이전에 Atmel Studio라고 알려져 있던 AVR, SAM Microcontroller Application 개발 및 디버깅 IDE이다.

It merges all of the great features and functionality of Atmel Studio into Microchip's well-supported portfolio of development tools to give you a seamless and easy-to-use environment for writing, building and debugging your applications written in C/C++ or assembly code.

  • 그것(Microchip Studio)는 Atmel Studio의 모든 기능을 통합, C/C++로 작성된 Application을 쉽게 작성, 빌드, 디버깅할 수 있는 환경을 제공한다.

Even though it comes with a new name and look, the user will still be able to use any existing documentation and videos about Atmel Studio to learn how to use Microchip Studio and no migration documents are needed.

  • 새로운 외관과 이름을 제공하지만, 사용자는 여전히, Atmel Studio에 관한 문서와 영상으로 Microchip Studio를 배울 수 있으며 별도의 Migration 문서는 필요치 않다.

아하!

  • Atmel Studio가 Microchip Studio로 바뀐 거구나!

    • Atmel Studio 사용법 공부하면 그게 Microchip Studio 공부하는 거구나!

  • 그냥 Microchip Studio 설치하면 되는구나!

    • 아하!


삽질 시작

앗! Microchip Studio는 Windows만 지원한다고?

Wine? Wineskin?

  • WineHQ 들어가볼까-

    3133
  • 으악 Garbage래

    • 포기

Parallels?

  • 당연히... 되겠지...?

    • 하지만 무지막지한 배터리 소모와 성능저하를 감당하고 싶진 않다.

    • 구형 맥북이라 그런지... 느려용...

Microchip Studio vs. VS Code + avr-gcc?

Microchip Studio가 후자 대비 대체불가한 편의성을 제공하는지 따져보자!

  • Microchip Studio 안 쓰면 크게 손해보는 게 있나 따져보기.

Parallels Windows에 Microchip Studio 설치-실행해보기

  • 그냥 Native Windows에서 설치하는 방법과 같은데 굳이 길게 쓸 필요가 있을까...?

    3135
  • 어디보자...

    • 어차피

      • 코드 작성 - 컴파일

      • Target에 다운로드 따로 해야 하넹...

  • 그럼

    • 코드 작성 - 컴파일

      • VS Code에서 작성하고... gcc로 Cross-Compile하고...

      • Makefile 직접 하고...

    • Target에 다운로드 via ISP

      • 여기까진 그냥 bash Shell에서 해도 손해보는 건 없겠는디?

      • 다만 Debugging은 Microchip Studio가 압도적으로 편할 것.

        • avr-gdb 이용한 디버깅은 CLI에서 모든 걸 다 해야 함.

    • 어... 어... 음...

      • 초짜가 해낼 수 있을까...?

아... 결국은 Microchip Studio가 대체불가한 편의성을 제공하는구나...

  • 그럼... RDP, Bootcamp, Parallels 등등 알아봐야 하겠구나... 이런...

  • 결론이 이상한데...







- 컬렉션 아티클