New project- no defined board??

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

Why should the IDE care about a defined board?

I created a new project for the mega128 and just want to add code for the GLCD in the ASF, it should simply be a matter of changing the port and port bits used-Nothing else.

I have a GLCD with the same driver chip HX8347 as shown here https://www.avrfreaks.net/index.p... and want to try the Atmel version.

What's my next step please? ...anything but RTFM..

Attachment(s): 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

I think you want to follow it's advice then select one of these "User board" templates...

Attachment(s): 

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

But the isn't one for the Mega 128 which is what I have :( and yes I watched the video.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Quote:

But the isn't one for the Mega 128 which is what I have

Then you have mis-understood what ASF is. Have a read of this:

https://www.avrfreaks.net/index.p...

So unless you are interested in an ADC driver then there is nothing in ASF for Tiny or Mega. I guess Atmel think those chips are "too simple" and nothing warrants having library code support?

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

Quote:

So unless you are interested in an ADC driver then there is nothing in ASF for Tiny or Mega. I guess Atmel think those chips are "too simple" and nothing warrants having library code support?

There's a couple of other basic drivers for MEGA, but yes, right now support is "sparse" at best. The reason is an engineering one; while the other architectures are binary compatible with one another, each MEGA chip is very different to each other which makes designing a framework for them very difficult.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

Quote:

each MEGA chip is very different to each other which makes designing a framework for them very difficult.

Look at the way Fleury and Stang do it. I think the:

#ifdef __AVR_something__
#define UDR_GENERIC_NAME something_specific_UDR
#elif...

way of doing things is probably the best (though maybe doesn't account for its actually displaced into other registers).

I guess someone could prepare a single header file that tried to amalgamate all registers of all devices and call it asf/generic.h or something then always use that and the generic names from then on?

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

Yup - there are a few "classes" of related ATMEGA chips which reduces the combinations somewhat, but this is still a huge engineering effort for a segment that traditionally hates frameworks. There's some work being done, but the majority of the code monkeys (e.g. me) are working on UC3/XMEGA/SAM code.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

Quote:

for a segment that traditionally hates frameworks.

Yup there seems to be no interest in that Ardu-wots-it-called thing at all ;-)

(the cynic in me would wonder if ASF is deliberately trying to avoid stepping on Arduino toes perhaps? :twisted: )

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

Quote:

(the cynic in me would wonder if ASF is deliberately trying to avoid stepping on Arduino toes perhaps? Twisted Evil )

Hrm, good point.

The Arduino platform runs well on the MEGAs, but it's targeted at just one or two devices. I think for us it's just a question of resources; given limited people the development is focused on the newer and more framework-friendly chips.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

I can understand framworks and stuff for the really BIG AVRs (all 32-bitters, and the X'es) or for something where there is some quite intricate stuff needed to get it going and at the same time the boards available are quite few (since I'm currently trodding that terrain, I associate e.g. to Atmels wireless stuff).

For the tinys and megas there is no small, well defined set of boards from Atmel that can be the base for a framework. And as has been noted above, that turf is already well trodden by the Arduinos. From this outside vista it seems wise for Atmel to not bother with anything smaller than the XMegas when it comes to ASF.

[conspiracy theroy mode]I just fear one thing: That LwMesh is ultimately destined for inclusion into ASF, and that there will be some undesired coupling to the rest of the ASF. Please, $DEITY, don't make that happen..[/conspiracy theroy mode]

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

OK so as I suspected the ASF is a waste of space on my HDD as I don't care about the UC3/SAM and very little for the XMEGAs. :(

So far AS6 is living up to my lack of expectations.

And NO I don't expect to use or WANT to use the Arduino for my future projects.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

hehe

I rather came to the same conclusion. Whenever I get around to any of the big projects I'll probably never make, it might be useful.

 

"We trained hard... but it seemed that every time we were beginning to form up into a team, we would be reorganized. I was to learn later in life that we tend to meet any new situation by reorganizing. And a wonderful method it can be of creating the illusion of progress while producing confusion, inefficiency and demoralization." Petronius Arbiter, approx. 2000 years ago.

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

I probably do things differently than anyone else. I don't use ASF. I don't choose a board. I just click on GCC Executable Project.

.

Attachment(s): 

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

Quote:
I don't use ASF
The point of the exercise WAS to use the GLCD project in ASF. :(

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Quote:

The point of the exercise WAS to use the GLCD project in ASF.

You could just "nick" (parts of) the source code..

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

I thought of doing that too and looked at some of the functions, however again that was not what I wanted to do.

I'm REALLY TRYING HARD to like AS6 and the ASF but it aint happening. :(

Even looked through the hundreds of example project..well quite a few at least...to see if there was a GLCD example for the Xmega but no cigars.

It looks as if Atmel sees their growth and future in the UC3, SAMs and maybe the Xmegas and will possibly try to abandon the humble Tinys and Mega range like Motoscale did with the HC05 and HC11.

Or let the Arduino handle those.

I don't need the GLCD code, I have code which has been easily ported from the M128 to the Xmega128A1 and the NXP Cortex M0 with very little change but the low level drivers. Have been able to use it with about 8 or more GLCD controllers again with little change.

It's a shame that there isn't one example that will run on all reasonably sized chips starting with something like a M164p-M644p which is quite adequate for the job.

So AS6 may just have a few weeks left on my computer, I may just delete it after the "tech tour" next month unless something there will convince me that it's a useful tool for my work.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Quote:

Even looked through the hundreds of example project..well quite a few at least...to see if there was a GLCD example

You do realise the ASF wizard has a search box?

As for deleting AS6 - don't - you will find the VAssistX editing to be a revelation compared to AS4 but it is kind of a shame that the install doesn't offer options for "AVR8", "AVR32", "ARM", "ASF" then you could untick all but the first and save a whole load of time and space! After installation you could go "in behind the scenes" and just simply dlete the ARM and UC3 directories I suppose and if you could actually find where the ASF files are hidden you could delete that too.

Attachment(s): 

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

Quote:

Even looked through the hundreds of example project..well quite a few at least...to see if there was a GLCD example for the Xmega but no cigars.

As Cliff says, nonsense - there's at least two low level driver demos, plus a bunch of higher level (Widget Toolkit and Common Graphics Library) demos in ASF 3.4.1 for XMEGA.

Quote:

It looks as if Atmel sees their growth and future in the UC3, SAMs and maybe the Xmegas and will possibly try to abandon the humble Tinys and Mega range like Motoscale did with the HC05 and HC11.

We just released two new Tiny devices, so you already know this isn't correct. Heck we still make 8051 devices, so do you really think we would stop making AVRs?

Quote:

So AS6 may just have a few weeks left on my computer, I may just delete it after the "tech tour" next month unless something there will convince me that it's a useful tool for my work.

ASF is but one component - AS6 has a better debugger, editor, project management and newer toolchain in one solution. The negatives (slow speed, large install size) are both being actively worked on.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

Quote:

Heck we still make 8051 devices, so do you really think we would stop making AVRs?

I really hope that Atmel does not base their portfolio content primarily on the age/maturity of the device.. If 8051's would still be selling good and sales in AVRs would plummet, then I'd expect Atmel to make the rational descision. All this just to point out that the argument you used to make your case was bad. Repeat: The argument, not the case.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

Quote:

We just released two new Tiny devices

Just out of interest which ones? You mean the ATtiny1634? What's the other one? Would it have been the 167?

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

Quote:

Just out of interest which ones? You mean the ATtiny1634? What's the other one? Would it have been the 167?

The ATTINY828:

http://www.atmel.com/devices/ATT...

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

Digikey lists them but has 0 available. Mouser doesn't list them yet.

Your tagline about Service Pack 1: Is this new or something I don't remember installing weeks ago?

 

"We trained hard... but it seemed that every time we were beginning to form up into a team, we would be reorganized. I was to learn later in life that we tend to meet any new situation by reorganizing. And a wonderful method it can be of creating the illusion of progress while producing confusion, inefficiency and demoralization." Petronius Arbiter, approx. 2000 years ago.

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

It's been out a few weeks, just wanted to update my signature to reflect it to make sure everyone updates.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

Dean! MAybe add the version/build number one ends up with after SP1 to your footer/sig?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

Quote:
As Cliff says
Quote:
Using "LCD" as search term in ASF wizard - seems to be all SAM-ARMs or else Xmega with segmented glass controllers
Quote:
there's at least two low level driver demos, plus a bunch of higher level (Widget Toolkit and Common Graphics Library) demos in ASF 3.4.1 for XMEGA.
I could only see stuff for SAM ...(not John :? )

Which one could I use for the Xmega128A1 (older xplained board) and the HX8347 based GLCD?

I may even have an ILIxxx GLCD around but not too sure.

Quote:
you will find the VAssistX editing to be a revelation
I think I clicked on the disable and it never came back, if it does I will hit the computer.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Just checked. Mine says I have SP1.

 

"We trained hard... but it seemed that every time we were beginning to form up into a team, we would be reorganized. I was to learn later in life that we tend to meet any new situation by reorganizing. And a wonderful method it can be of creating the illusion of progress while producing confusion, inefficiency and demoralization." Petronius Arbiter, approx. 2000 years ago.

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

Quote:

I could only see stuff for SAM ...(not John )

Which one could I use for the Xmega128A1 (older xplained board) and the HX8347 based GLCD?

I may even have an ILIxxx GLCD around but not too sure.

We only have a pre-baked demo on the old (green) XPLAIN board for the HX847A controller, since that's what the old Display Xplained board uses. However, if you really want the ILI9341 controller code start a new XPLAIN board project and add it from the ASF module wizard.

The ILI9341 controller demos are available pre-baked for the new XPLAIN boards only.

Quote:

I think I clicked on the disable and it never came back, if it does I will hit the computer.

If you don't want SAM support, an improved editor, newer device/board support or ASF, perhaps you really should just stick with AS4 and the tools/parts you already have.

Quote:

Dean! MAybe add the version/build number one ends up with after SP1 to your footer/sig?

Hrm, I can add that. If you have SP1 installed however it will say so clearly in the help screen ("Build 1938 - Service Pack 1") so it should be easy to tell on a system if it is installed or not.

- Dean :twisted:

Attachment(s): 

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

Ohh I see, it's like the website, only Atmel people can find stuff. :lol:
Entering LCD or GLCD doesn't bring it up but putting the chip number or even display does. Xplain bring up 370 projetcs including the GLCD ones but I didn't scroll down far enough.

So in the next couple of days I'll see if I can get it working.

Quote:
If you don't want SAM support
I don't.
Quote:
an improved editor
I do but just. If the editor tries to second guess what I want to do (most of the time even I don't know what I want to do ) and keeps on dropping stuff in front of me then it's out of line.

I haven't worked with AS6 enough to see if this is the case but I have been annoyed by Visual Studio in the past.

Quote:
newer device/board support
Newer devices yes, don't know about newer "board support" as I make my own boards.

Is your hairline receding yet? Losec is a great antiacid and may even prevent ulcers. :wink:

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Quote:

Ohh I see, it's like the website, only Atmel people can find stuff.

Now that Dean has revealed the magic (search "ili" not "LCD") I too can see those ILI9341 projects for Xmega too. The reason they did not appear in a (more obvious!!) search for "LCD" is that the Xmega ones do not actually contain the letters "LCD" anywhere! They use the term "display controller" instead. Well, yeah, so THAT's an obvious search term - NOT!

Suggest that when template descriptions are being written they go out of their way to include what are the likely search terms. So an ADC example should contain "ADC" and not just "Analog to Digital conversion example" because people are far more likely to search on "ADC" than "Analog" (not least because the educated part of the world calls it analogue!). Same goes for LCD, SPI and so on and remember that most people search UART not USART (so include both if you have to).

Quote:
and keeps on dropping stuff in front of me then it's out of line.

So far I haven't seen it drop anything I didn't actually want.

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

Quote:

I do but just. If the editor tries to second guess what I want to do (most of the time even I don't know what I want to do ) and keeps on dropping stuff in front of me then it's out of line.

I haven't worked with AS6 enough to see if this is the case but I have been annoyed by Visual Studio in the past.


Yes, intellisense and auto-completion makes most sense when you

- Know exactly what you want (I'm a REALLY slow typer and do like long descriptive names on things, so I appreciate someone typing the last 2/3rds for me)

- Know roughly what you a looking for but e.g. don't know the name - you will get a list of things

- Are coding a function call - you will get tips on the parameters (data-type, name and often some short description).

If nothing of this is to your liking, then just turn it off.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

I find intellisense often knows what I want to do when I don't.

Except in SQL where the counfounded thing always wants to turn:

... in ( select ...

into

... in ( selectedmembertype

 

"We trained hard... but it seemed that every time we were beginning to form up into a team, we would be reorganized. I was to learn later in life that we tend to meet any new situation by reorganizing. And a wonderful method it can be of creating the illusion of progress while producing confusion, inefficiency and demoralization." Petronius Arbiter, approx. 2000 years ago.