Alpha testing of new AVR calculator

Go To Last Post
74 posts / 0 new

Pages

Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm attaching an initial version of a freeware AVR calculator (for UART and timers). Any suggestions for improvement would be most welcome.

The windows .exe file can be downloaded from http://b9.com/elect/avr/avrcalc/...

Attachment(s): 

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

There is a special wizard for NEC microcontrollers called Aplilet. It is given for free at the american site of NEC (www.necel.something......). Also there is a compiler for PIC called CCS which includes a very good wizard for PIC micros.
Is there any profetional wizzard for ATMEL AVR micros?

Michael.

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

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

There is a wizard in one of the commercial C compilers (IAR ??)

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

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

Jim,

This may make you lough;;; I use the IAR 4.20A and I didn't know it. Does my compiler includes this tool?

Michael

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

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

ICCAVR has an Application Builder. It doesn't support all devices though but it's very handy.

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

Codevision has a wizard as does Atman AVR

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

Finally,

Does anyone knows this tool that IAR supports, as Jim said in one of the above posts???

I am talking about an AVR wizzard.

Thanks.

Michael

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

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

Michael, the IAR C/C++ compiler and embedded workbench do not come with a code wizard. However, IAR sells some other tool to help rapidly code finite state systems -- but I haven't tried it.

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

The link have me an error, that the file is not on the server... :-(

There are pointy haired bald people.
Time flies when you have a bad prescaler selected.

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

daqq,

There was no error for me. Are you trying to downlod something?

Michael

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

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

The link routed me to this: http://www.b9.com//elect/avr/avr... . Strange... I am trying to download the file in the link. Tried it with firefox, opera. It gives me:

Not Found
The requested URL /elect/avr/avrcalc/avrcalc.zip was not found on this server.

There are pointy haired bald people.
Time flies when you have a bad prescaler selected.

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

Yes, there was a (separate) tool from IAR that allows to configure AVR's, but I didn't check it, and right now I don't know if it is still there. I used the ARM version of that, and I found it too heavy to use, since it creates a whole amount of files, headers, functions, etc. If it is the same vor AVR's, then it could be useless.

I found ICC wizard very handy, but just on the opposite side, since it don't use the more understandable notation like TIMSK=(1<<TOVF1) but TIMSK=0x01.

IIRC, there is some AVRCalculator at some web like forestmoon or similar.

Guillem.
"Common sense is the least common of the senses" Anonymous.

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

I see the same error even trying with Maxthon Browser.

Michael

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

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

daqq,

I downloaded the avrcalc.exe from this link 5 days ago and I will upload it from my pc asap. Please wait a little bit.

Michael.

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

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

What about now?

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

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

Grrrrrrr...

I can't upload it. Why is this hapened?
I upload the file named avrcalc.exe

Michael.

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

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

Try to zip it first.

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

What about now???

Michael

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

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

What about now?

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

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

Oh, I found it. It says Attachment is too big (max 1Mb). The .zip file is ~1,6MB. What can I do for you???

Michael

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

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

Split it into two files.

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

Thanks for the effort! I'll try downloading it later.

There are pointy haired bald people.
Time flies when you have a bad prescaler selected.

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

Daqq,

Try entering the site (http://www.b9.com/elect/avr/avrc...). There is a link in there.

Better yet, here is the link

Felipe Maimon

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

Sorry about the change of URL. As posted in a different thread, I change the name of the program to avoid confusion with an earlier progrma of the same name.

The canonical URL for the current version is http://b9.com/elect/avr/kavrcalc...

Thanks for looking!

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

Here's a screenshot from the latest version for people deciding whether to download or not.

Attachment(s): 

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

Thanks! Works great!

There are pointy haired bald people.
Time flies when you have a bad prescaler selected.

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

Thanks for the report, David. Please forward any feature requests that you have.

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

Do you plan on releasing the source? You said freeware, just curious how "free". In any case, this looks great however the linux binary fails with:

20610978 201DA931 -> 201DA85A = ("SYMBOL-FUNCTION-VECTOR" 4258)
206109B8 201E7669 -> 201E75FA = ("SYMBOL-FUNCTION-VECTOR" 629)
206109E0 2023019E -> 2023003A = #:||
20610A00 2025D500 -> 2025D3FA = ("SYMBOL-FUNCTION-VECTOR" 4269)
20610A14 2025FD35 -> 2025FCBA = ("SYMBOL-FUNCTION-VECTOR" 2644)
20610A44 2025C387 -> 2025C242 = ("SYMBOL-FUNCTION-VECTOR" 2235)
20610A8C 20321050 -> 20321042 = ("SYMBOL-FUNCTION-VECTOR" 1305)
20610A98 20321194 -> 2032116A = ("SYMBOL-FUNCTION-VECTOR" 1182)
20610AA0 20098DAB -> 20098D9A = "Unknown"
20610AB0 201C190A -> 201C17CA = "Unknown"
20610B90 2028A49B -> 2028A472 = #:||

Can you provide details on the required libraries? It appears to be some sort of Ruby/Lisp type binary linked against libXm?

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

Good question, uidzer0. I'll add a license file. In summary: free to use and redistribute unmodified binary for any commercial or non-commercial application, no warranty, etc.

As for the linux binary, yes it is Lisp linked against libXm. I'll test and see if I can duplicate your error results. What Linux distribution are you using?

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

Quote:
Thanks for the report, David. Please forward any feature requests that you have.
It would be nice if it wrote some DAMN CODE I'm figthing with for a few hours :-D

Just joking :-D Seems perfect to me - simple, useful, gives you what you need and is small - in terms of GUI. Although a "string to hex to binary and back again" is always useful (I use an opera plugin for the task).

And I hate to be a nitpick, but where did the 5.5MB for a single for application come from?

A little more nitpicking: When I enter a value into the Value text thingie under "Desired Timing" it does not update immediately. It updates only when I press one of the Radio buttons. Or do something else.

Thanks for a valuable tool!

There are pointy haired bald people.
Time flies when you have a bad prescaler selected.

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

Ahhh, great =]. I'm running Ubuntu 7.10 here at work, I can check it against Gentoo when I get home. I'm guessing I'm just missing a library here so I'll keep messing with it and let you know exactly what I came up with.

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

daqq wrote:
Quote:
Thanks for the report, David. Please forward any feature requests that you have.
It would be nice if it wrote some DAMN CODE
I think the next major addition of functionality will be an explorer of AVR parts. That is, modules and registers for each AVR part. At some point, I might add the ability to generate code.

Quote:
Although a "string to hex to binary and back again" is always useful
That sounds useful to add. String back and forth to hex certainly. But, do you really want binary 0 and 1 representation? About how many characters would you say the field should hold. 32?

Quote:
And I hate to be a nitpick, but where did the 5.5MB for a single for application come from?
The Lisp runtime libraries. Advatage: using those libraries allows the program to be compiled on Windows, Linux, and Mac. Though, I don't own the Mac compiler.

Quote:
A little more nitpicking: When I enter a value into the Value text thingie under "Desired Timing" it does not update immediately. It updates only when I press one of the Radio buttons. Or do something else.
Excellent note. Thank you that's just the kind of feedback I need. Is this with version 1.4?

Quote:
Thanks for a valuable tool!
And thanks for your feedback and suggestions!

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

uidzer0 wrote:
Ahhh, great =]. I'm running Ubuntu 7.10 here at work, I can check it against Gentoo when I get home. I'm guessing I'm just missing a library here so I'll keep messing with it and let you know exactly what I came up with.
I have Ubuntu 7.10 here as well. Are you using 32-bit or 64-bit Intel distribution?

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

Quote:
Excellent note. Thank you that's just the kind of feedback I need. Is this with version 1.4?

Version 1.4
Build date: January 14, 2008

From the about box.

About the code thingie: I was really just joking :-D

There are pointy haired bald people.
Time flies when you have a bad prescaler selected.

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

Exactly! I reinstalled lesstif-dev and then had to modify my LD_LIBRARY_PATH to include /usr/lib (not sure why it wasn't...), ldconfig, then finally found the problem:

 libXm.so.2: wrong ELF class: ELFCLASS64.

So =], any chance for a 64bit binary?

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

daqq wrote:
Version 1.4
Thanks, David.
Quote:
About the code thingie: I was really just joking
I know, you were asking for it to write some really smart code for you. But, I was not joking, after an AVR Explorer module, I'm going to look at writing an application to produce some rather dumb, but necessary, code.

But, how about that string/hex converter. Do you really want a binary 0/1 representation as well?

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

uidzer0 wrote:

 libXm.so.2: wrong ELF class: ELFCLASS64.

So =], any chance for a 64bit binary?

Not unless I find a spare $4500 lying around. But, a less expensive alternative would be for me to bundle the 32-bit Motif libraries with the 32-bit application.

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

Quote:
But, how about that string/hex converter. Do you really want a binary 0/1 representation as well?
Well, I used it a few times (although not for AVR projects. it was for some graphic stuff I did). It's not a requirement, there's a bazilion other programs/pages that do it. In the years when I was starting programming (visual basic) I even wrote my own. So it's not neccesary :-D

There are pointy haired bald people.
Time flies when you have a bad prescaler selected.

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

kmr wrote:
But, a less expensive alternative would be for me to bundle the 32-bit Motif libraries with the 32-bit application.

That'll work =]

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

Okay, David, thanks for the suggestion. It actually won't be hard to add, but I'll probably cut the max string size down. 32 characters converting back and forth to 256 bits is a bit(sorry!) much.

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

uidzer0 wrote:
That'll work =]
For now, I took down the Linux version. I'll announce when I re-add (more robust) Linux support.

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

Quote:

For now, I took down the Linux version. I'll announce when I re-add (more robust) Linux support.

Nice, looking forward to it :)

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

kmr wrote:
Any suggestions for improvement would be most welcome.

a linux version

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

Quote:
a linux version
ROFL .... you Brittish !

Very usefull tool Kevin. I used the Windows version, and tried the linux-version on Ubuntu. Hmmm ..... can somebody help this linux-noob with an instruction how to install it ?

Nard

A GIF is worth a thousend words   They are called Rosa, Sylvia, Tessa and Tina, You can find them https://www.linuxmint.com/

Dragon broken ? http://aplomb.nl/TechStuff/Dragon/Dragon.html for how-to-fix tips

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

Up a couple of posts will give you details on the status of the linux version. It's a binary so to execute it you should be able to just run ./kavrcalc (when it's available again).

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

But where do I install it ?? .... NOT on the desktop. That doesn't work for a normal user, nor for a user with admin-rights. Did I say I am a Linux-noob ?

A GIF is worth a thousend words   They are called Rosa, Sylvia, Tessa and Tina, You can find them https://www.linuxmint.com/

Dragon broken ? http://aplomb.nl/TechStuff/Dragon/Dragon.html for how-to-fix tips

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

Plons wrote:
But where do I install it ?? .... NOT on the desktop. That doesn't work for a normal user, nor for a user with admin-rights. Did I say I am a Linux-noob ?

Ah - gotcha, putting it in /usr/local/bin should make it available to you on the command line. From there adding it to menu's etc is pretty easy.

Assuming you're using gnome and you want to add it to the quick launcher you'd just right click on the panel, click "add to panel". Then click "Custom Application Launcher", fill in the "Name" with whatever you want and "Command" with the path to where you put it ie: /usr/local/bin/kavrcalc

edit: added some screen shots for ya

Attachment(s): 

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

Hi Kevin

Very impressive program.

Suggestion :-
Incorporate a "Delay Calculator" that will generate either the "assembler" or "C" code.
Similar to the
http://www.home.unix-ag.org/tjabo/avr/AVRdelayloop.html
Apparently it can generate the cycles but will not do anything in the time mode.

I did mail to Tjabo Kloppenburg who wrote the program back in November 2006.
To this day, I still not received a reply.

Cheers
Ken

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

Gee Kevin,

With all of the requests for code generation, it looks like I could have just forgone the PM requesting the same...

You can avoid reality, for a while.  But you can't avoid the consequences of reality! - C.W. Livingston

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

pykedgew wrote:
Incorporate a "Delay Calculator"
Thanks for the suggestions, Ken. As a quick feature to add to the next version, I'll add a cycle count to the timing section for use with compilers like IAR which has a __delay_cycles() function that takes a 32-bit integer.

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

uidzer0 wrote:
Ah - gotcha, putting it in /usr/local/bin
Nice explanation and sheetshots!

Pages