Hello,
I'm interested in ChibiOS to use in Arduino UNO (Atmega 328) project.
I've downloaded ChibiStudio and WinAVR and tried to create a project but still not able to create a project for AVR microcontroller. Does ChibiStudio support AVR microcontroller?
If yes, please give me the direction how to create a project for AVR microcontroller.
Thanks in advance,
pak
Does ChibiStudio support AVR microcontroller Topic is solved
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: Does ChibiStudio support AVR microcontroller
Hi,
You need to create a makefile project in Eclipse, it will use the Makefile into the AVR project:
New->Project->C/C++->Makefile Project with Existing Code
Then give the project a name.
You need to install the compiler separately because it is not included in ChibiStudio, the debug depends on the availability of a GDB server, I don't know how this is done for AVR frankly.
Giovanni
You need to create a makefile project in Eclipse, it will use the Makefile into the AVR project:
New->Project->C/C++->Makefile Project with Existing Code
Then give the project a name.
You need to install the compiler separately because it is not included in ChibiStudio, the debug depends on the availability of a GDB server, I don't know how this is done for AVR frankly.
Giovanni
Re: Does ChibiStudio support AVR microcontroller
Thank for reply,
I've tried the following setup:
- Windows 7 (32-bit)
- Eclipse Oxygen (32-bit)
- AVR Eclipse Plugin (2.4.2)
- NIL-ARDUINO-UNO from ChibiOS_21.11.1
I've some error message as follow:
Best regards,
pak
I've tried the following setup:
- Windows 7 (32-bit)
- Eclipse Oxygen (32-bit)
- AVR Eclipse Plugin (2.4.2)
- NIL-ARDUINO-UNO from ChibiOS_21.11.1
I've some error message as follow:
Code: Select all
23:17:46 **** Build of configuration Default for project NIL-ARDUINO-UNO ****
make all
Usage: egrep [OPTION]... PATTERN [FILE]...
Try `egrep --help' for more information.
Usage: egrep [OPTION]... PATTERN [FILE]...
Try `egrep --help' for more information.
Usage: egrep [OPTION]... PATTERN [FILE]...
Try `egrep --help' for more information.
Compiler Options
avr-gcc -c -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=16000000UL -O2 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./build/lst/ -DTEST_CFG_SIZE_REPORT=0 -std=gnu11 -mrelax -fdata-sections -ffunction-sections -Wundef -MMD -MP -I. -I./cfg -I../../../os/license -I../../../os/hal/include -I../../../os/hal/boards/ARDUINO_UNO -I../../../os/hal/ports/AVR/MEGA/ATMEGAxx -I../../../os/hal/ports/AVR/MEGA/LLD/ADCv1 -I../../../os/hal/ports/AVR/MEGA/LLD/EXTv1 -I../../../os/hal/ports/AVR/MEGA/LLD/GPIOv1 -I../../../os/hal/ports/AVR/MEGA/LLD/I2Cv1 -I../../../os/hal/ports/AVR/MEGA/LLD/SPIv1 -I../../../os/hal/ports/AVR/MEGA/LLD/TIMv1 -I../../../os/hal/ports/AVR/MEGA/LLD/USARTv1 -I../../../os/hal/ports/AVR/MEGA/LLD/USBv1 -I../../../os/hal/osal/rt-nil -I../../../os/nil/include -I../../../os/oslib/include -I../../../os/common/portability/GCC -I../../../os/common/ports/AVR -I../../../os/common/ports/AVR/compilers/GCC main.c -o main.o
Compiling hal.c
cc1.exe: error: unrecognized command line option "-std=gnu11"
make: *** [build/obj/hal.o] Error 1
23:17:46 Build Finished (took 390ms)
Best regards,
pak
Re: Does ChibiStudio support AVR microcontroller
paksoft wrote:Thank for reply,
I've tried the following setup:
- Windows 7 (32-bit)
- Eclipse Oxygen (32-bit)
- AVR Eclipse Plugin (2.4.2)
- WinAVR20100110
- NIL-ARDUINO-UNO from ChibiOS_21.11.1
I've some error message as follow:Code: Select all
23:17:46 **** Build of configuration Default for project NIL-ARDUINO-UNO ****
make all
Usage: egrep [OPTION]... PATTERN [FILE]...
Try `egrep --help' for more information.
Usage: egrep [OPTION]... PATTERN [FILE]...
Try `egrep --help' for more information.
Usage: egrep [OPTION]... PATTERN [FILE]...
Try `egrep --help' for more information.
Compiler Options
avr-gcc -c -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=16000000UL -O2 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./build/lst/ -DTEST_CFG_SIZE_REPORT=0 -std=gnu11 -mrelax -fdata-sections -ffunction-sections -Wundef -MMD -MP -I. -I./cfg -I../../../os/license -I../../../os/hal/include -I../../../os/hal/boards/ARDUINO_UNO -I../../../os/hal/ports/AVR/MEGA/ATMEGAxx -I../../../os/hal/ports/AVR/MEGA/LLD/ADCv1 -I../../../os/hal/ports/AVR/MEGA/LLD/EXTv1 -I../../../os/hal/ports/AVR/MEGA/LLD/GPIOv1 -I../../../os/hal/ports/AVR/MEGA/LLD/I2Cv1 -I../../../os/hal/ports/AVR/MEGA/LLD/SPIv1 -I../../../os/hal/ports/AVR/MEGA/LLD/TIMv1 -I../../../os/hal/ports/AVR/MEGA/LLD/USARTv1 -I../../../os/hal/ports/AVR/MEGA/LLD/USBv1 -I../../../os/hal/osal/rt-nil -I../../../os/nil/include -I../../../os/oslib/include -I../../../os/common/portability/GCC -I../../../os/common/ports/AVR -I../../../os/common/ports/AVR/compilers/GCC main.c -o main.o
Compiling hal.c
cc1.exe: error: unrecognized command line option "-std=gnu11"
make: *** [build/obj/hal.o] Error 1
23:17:46 Build Finished (took 390ms)
I've the same result and error with ChibiStudio and AVR Eclipse Plugin (2.4.2) & WinAVR20100110.
Is it correct way to add AVR toolchain?
Best regards,
pak
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: Does ChibiStudio support AVR microcontroller Topic is solved
Hi,
You also need updated GNU utilities (egrep etc), probably errors are caused by that.
If you start from a packaged ChibiStudio then all utilities are already included.
Giovanni
You also need updated GNU utilities (egrep etc), probably errors are caused by that.
If you start from a packaged ChibiStudio then all utilities are already included.
Giovanni
Re: Does ChibiStudio support AVR microcontroller
Giovanni wrote:Hi,
You also need updated GNU utilities (egrep etc), probably errors are caused by that.
If you start from a packaged ChibiStudio then all utilities are already included.
Giovanni
I think make.exe will cause the problem, now I tested with ChibiStudio, it's working fine,
Thank you, so much,
pak
Who is online
Users browsing this forum: No registered users and 8 guests