UC3 programming in Assembly language

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

The UC3 series are excellent products if you know about Assebly language. I have a load of driver code etc, but no website. Is it anyone out there that would like to open an "svn" etc for UC3 Assembly code?

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

One alternative would be to set up a project at Atmel Spaces.

Another would be to set up your own site, e.g. using Bluehost or One.com. A few $ a month..

Or look at one of the free "project sites" out there, like Google 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

JohanEkdahl wrote:
One alternative would be to set up a project at Atmel Spaces.

Another would be to set up your own site, e.g. using Bluehost or One.com. A few $ a month..

Or look at one of the free "project sites" out there, like Google Code.

Thanks. Perhaps I should start writing some tutorial with code examples. And most likely I will be the first one?

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

GitHub hosts Jekyll generated websites for free (see GitHub pages).

Quick Start:

1) Create a GitHub account
2) Create new repository named as accout_name.github.com
3) Put your html in that repository

You could also use my blogging template from https://github.com/kblomqvist/gh... as a starting point.

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

Please write some tutorial and post some example project!

Last Edited: Sat. Dec 20, 2014 - 12:10 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Note that the last post (before yours) in this thread was over a year and a half ago - if the OP hasn't already done it, I suspect it's unlikely that (s)he will now.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well I made some good progress finally. Working on making my own template now.

Sending ppl to google is pretty useless since there is not much (usefull) IAR AVR32 examples to be found.

The docs are quite bad, I guess atmel thought ppl dont need detailed info when they use their .c libs...

 

 

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

You didn't mention anything specifically about IAR.

 

So what, exactly, are you looking for?

 

What, exactly, is missing from the stuff found by google - which does include these from Atmel themselves:

 

Quote:

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I find it difficult to understand why anyone would want to write complete projects in Assembly Language.

Most Peripheral tasks on a microcontroller will work just as fast in a HLL as in ASM.

 

Yes,  you probably write "crts.o" and Maths Library routines in ASM.

And if there is a performance bottleneck in a time-critical routine,   you might optimise a sequence in ASM.

 

David.

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

In this case we need quite strict timing,so not every project can run on HLL.

What made it difficult is finding all the resources from IAR and AVR32. But I got most of them collected now.

Made the linker file using info from the IAR compiler reference.

Next up is finding out the difference of a application or a supervisor stack and how to use or initialize them.

Setting the stackpointer to a custom begin address still won't work, but at least the stack seems to work on the default location.

(which is in the end of HSB-PB Bridge A SRAM.. still need to see how much space it may even use there..eek)

LDDPC SP,PC[8]

or

??SPS: DC32 SFE(SSTACK) & -3

LDDPC SP, ??SPS

 

Both didnt work, even though they are used in the disassembled c code, examples and tutorials, what did work was the simple:

mov SP, SFE(SSTACK) (you need to RSEG the SSTACK or it will fail too)

 

The sstack and cstack size is fixed on 0x1000 and 0x2000,defined in a greyed out general option/runtime tab.

Manually putting them in the linker file will throw a warning, so I guess one is not supposed to change it.

 

Thanks for now.

Last Edited: Mon. Dec 22, 2014 - 08:55 PM