Atmel Studio - new project from Makefile error (shell related) Topic is solved

ChibiOS public support forum for topics related to the Atmel AVR family of micro-controllers.

Moderators: utzig, tfAteba

vctrvlad
Posts: 21
Joined: Mon Aug 28, 2017 2:27 pm
Location: Timisoara, Romania
Has thanked: 1 time
Been thanked: 3 times

Re: Atmel Studio - new project from Makefile error (shell related)

Postby vctrvlad » Thu Sep 07, 2017 11:04 pm

meanwhile trying to solve this:
cc1.exe: error: unrecognized command line option "-std=gnu11"
...
Later edit:

"-std=gnu99" and it went through...

vctrvlad
Posts: 21
Joined: Mon Aug 28, 2017 2:27 pm
Location: Timisoara, Romania
Has thanked: 1 time
Been thanked: 3 times

Re: Atmel Studio - new project from Makefile error (shell related)

Postby vctrvlad » Sat Sep 09, 2017 10:31 am

hello again,

I have finally changed my setup to the old fashioned and light weight AVRStudio4.18 instead of the AS7 monster.

I have managed to get the ChibiOS_17.6.0\testhal\AVR\EXT\ up and running on an ArduinoMega board which has attached to it an JTAG ICE MKII probe,

Everything works as expected, but it wasn't easy to gather all the info.

what's the next step?:P

User avatar
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: Atmel Studio - new project from Makefile error (shell related)

Postby Giovanni » Sat Sep 09, 2017 10:35 am

It would be a good idea to write a "getting started with ChibiOS and AVR" guide for the wiki, a lot of work is going in AVR support but it is not just about the code. Something on PlayEmbedded could be a good idea too.

Giovanni

vctrvlad
Posts: 21
Joined: Mon Aug 28, 2017 2:27 pm
Location: Timisoara, Romania
Has thanked: 1 time
Been thanked: 3 times

Re: Atmel Studio - new project from Makefile error (shell related)

Postby vctrvlad » Sat Sep 09, 2017 12:14 pm

I will do this for AVRStudio 4.18, and after that, I will eventually try to do it on AS7 as well, as pointed by MGeo.
I found his instructions in the previous post very usefull!!!!

I will try to put all in a *.doc file and give it for review.

If you think is a better Idea to go directly for the wiki page, I will do so as well, just give me a link to that place...

User avatar
tfAteba
Posts: 547
Joined: Fri Oct 16, 2015 11:03 pm
Location: Strasbourg, France
Has thanked: 91 times
Been thanked: 48 times

Re: Atmel Studio - new project from Makefile error (shell related)

Postby tfAteba » Sat Sep 09, 2017 1:25 pm

Hi all,

Giovanni wrote:
It would be a good idea to write a "getting started with ChibiOS and AVR" guide for the wiki, a lot of work is going in AVR support but it is not just about the code. Something on PlayEmbedded could be a good idea too.


I think that it is a really good idea if we can have an article in the wiki, about (ChibiOS + AVR + AVR Studio).
PlayEmbedded also can be a good place to post this article.

Giovanni, could you say a word to Rocco Marco about that or do you want me or even vctrvlad to contact him if we make the choice to post on PlayEmbedded?

Thanks.
regards,

Theo.

vctrvlad
Posts: 21
Joined: Mon Aug 28, 2017 2:27 pm
Location: Timisoara, Romania
Has thanked: 1 time
Been thanked: 3 times

Re: Atmel Studio - new project from Makefile error (shell related)

Postby vctrvlad » Sat Sep 16, 2017 7:25 am

Hi,

I managed to put together some info which is stored for the moment in the following place:
http://atelieruldigital.ro/tiki/tiki-view_articles.php

Please have a look in the following order:
http://atelieruldigital.ro/tiki/tiki-re ... rticleId=1
http://atelieruldigital.ro/tiki/tiki-re ... rticleId=2

and leave a comment on the articles, or here for any observations.

Have a nice weekend,
Victor

vctrvlad
Posts: 21
Joined: Mon Aug 28, 2017 2:27 pm
Location: Timisoara, Romania
Has thanked: 1 time
Been thanked: 3 times

Re: Atmel Studio - new project from Makefile error (shell related)

Postby vctrvlad » Sat Sep 16, 2017 12:32 pm

So, everything up and running, but the main problem is that i can't seem t be able to trigger an ext interrupt on pin2 of the ArduinoMega board.
Can anyone help with any hint?
Thanks

P.S. uh, and another thing, once the chThdSleepMilliseconds(1000); function was called, the breakpoints have no effect anymore...any idea? :?:

User avatar
tfAteba
Posts: 547
Joined: Fri Oct 16, 2015 11:03 pm
Location: Strasbourg, France
Has thanked: 91 times
Been thanked: 48 times

Re: Atmel Studio - new project from Makefile error (shell related)

Postby tfAteba » Sat Sep 16, 2017 1:45 pm

Hi vctrvlad,

which version of ChibiOS do you use in your project?
regards,

Theo.

vctrvlad
Posts: 21
Joined: Mon Aug 28, 2017 2:27 pm
Location: Timisoara, Romania
Has thanked: 1 time
Been thanked: 3 times

Re: Atmel Studio - new project from Makefile error (shell related)

Postby vctrvlad » Sat Sep 16, 2017 5:07 pm

hello tfAteba,

https://sourceforge.net/projects/chibio ... urce=files

This is ChibiOS_17.6.0

User avatar
tfAteba
Posts: 547
Joined: Fri Oct 16, 2015 11:03 pm
Location: Strasbourg, France
Has thanked: 91 times
Been thanked: 48 times

Re: Atmel Studio - new project from Makefile error (shell related)

Postby tfAteba » Sat Sep 16, 2017 6:33 pm

Ok, this is the current stable release version of the project.

There is a problem with external interruption driver in this particular version due to the implementation of PCINT feature.

For the moment, to solve this problem, I have remove the support of the PCINT, but this change is only present on the trunk repository of the project.

So a quick solution will be to use trunk instead of ChibiOS_17.6.0.

You can download the trunk here: https://sourceforge.net/p/chibios/svn/HEAD/tree/trunk/

The same problem have been pointed out by MGeo here: http://www.chibios.com/forum/viewtopic.php?f=21&t=3601&start=60

So you can just change the version you are using and it will be fine.

I will try to see if I can also resolve this problem in the stable release version.

If you have any question do not hesitate.

Thanks
regards,

Theo.


Return to “AVR Support”

Who is online

Users browsing this forum: No registered users and 7 guests