LEGO Mindstorms NXT AVR

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello, is it possible to realize control of Lego Mindstorms NXT "Atmel AVR co-processor" with Atmel Studio, using C or assembler?  NXT brick can be used to control actuators, so i want control integrated sound generator or motors or at least lights.

There are a lot of materials related to nxtgcc and other environments, but i can't find any comprehensive materials on Atmel Studio.

This topic has a solution.
Last Edited: Thu. Feb 21, 2019 - 06:57 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

From what i have read, lego provide all the source code for the nxt. The source for the AVR is for the IAR compiler. It may not be possible to use avr-gcc. Most of the useful work is done with tha SAM7 processor - you should probably look there for your modifications.

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Kartman wrote:
Most of the useful work is done with tha SAM7 processor ...
An instance of such in Ada :

Gem #115: Lego Mindstorms Ada Environment — Part 2 - Adacore

though, IIRC, AdaCore did create an AVR toolchain on Windows because of LEGO Mindstorms NXT.

When FSF AVR GCC is configured for Ada, typically one also builds compiler front-ends for C and Ada (reason: Ada package Interfaces.C)

 

Downloads - Adacore (Select your platform pull-down menu, AVR)

https://learn.adacore.com/courses/intro-to-ada/chapters/interfacing_with_c.html

Homes - Mindstorms LEGO.com

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kartman wrote:
The source for the AVR is for the IAR compiler.
targeted to mega48; so, IAR EWAVR KickStart.

NXt Intelligent Brick - Lego Mindstorms NXT | Wiki | Everipedia

IAR Embedded Workbench - AVR (expand Download a free trial!)

 

"Dare to be naïve." - Buckminster Fuller