TMC429 Eval1.10

Miniaturized tripple stepper motor controller ICs

TMC429 Eval1.10

Postby txzfw » 17 May 2011, 05:46

hello!
I am a user in China!
I bought one TMC429Eval several days ago,from http://www.servodynamics.com.cn/!

I have read TMC429 Eval board datum and now I have two questions:

First,could you tell me how to use TMCL language to control this eval borad, because TMC_IDE does not have a selection for TMC429Eval.
Second,would you please send a demo for TMC429Eval board to me and tell me how to compile it. I want to develop new functions base of your demo.
txzfw
User
User
 
Posts: 8
Joined: 17 May 2011, 05:06

Re: TMC429 Eval1.10

Postby Dr.LarsLarsson (TRINAMIC) » 18 May 2011, 09:44

I asked a colleague from the software department concerning the TMCL issue. He will answer soon.
User avatar
Dr.LarsLarsson (TRINAMIC)
Site Admin
 
Posts: 323
Joined: 21 Jul 2006, 14:46

Re: TMC429 Eval1.10

Postby Dr.LarsLarsson (TRINAMIC) » 18 May 2011, 19:15

Currently, one can use the ROR, MST, MVP, SAP, and GAP as direct commands fomr the TMCL IDE. Running TMCL Programms on the Eval Board ist not yet supported by the current version of the Firmware. The current version of the firmware is a sub-set f the TMCL interpreter and it is available as source code http://www.trinamic.com/tmc/render.php?sess_pid=486. I hope this helps you.
User avatar
Dr.LarsLarsson (TRINAMIC)
Site Admin
 
Posts: 323
Joined: 21 Jul 2006, 14:46

Re: TMC429 Eval1.10

Postby txzfw » 19 May 2011, 12:45

thanks very much!

I had download the TMC429+262 Evaluation source code.
First,can you help me ask a question to you colleague who is the software engineer,that which Develop envrionment(Keil + winARM ,gcc under linux OS, or what)use to compile the source code !
Second,form the source code i can find out the sub-set of TMCL!but how can i use those instruction control The TMC429 Eval
by RS232(eg,other MCU to control,I am sorry about that this is first time use Trinamic IC,I had never use it before,so i don't know how to write TMCL instruction!),could you give me an example!

I am a MCU enginner of China and my English not well,maybe some sentence not right !if you can't undersand what mean that,please connect me!

wating you answer Cordiality!
txzfw
User
User
 
Posts: 8
Joined: 17 May 2011, 05:06

Re: TMC429 Eval1.10

Postby Dr.LarsLarsson (TRINAMIC) » 20 May 2011, 11:48

FYI: I removed your Email address from your last post so that it is not visible public - we still have it.

Your English is well to understand. I ask my colleague to answer your questions.
User avatar
Dr.LarsLarsson (TRINAMIC)
Site Admin
 
Posts: 323
Joined: 21 Jul 2006, 14:46

Re: TMC429 Eval1.10

Postby txzfw » 21 May 2011, 04:32

Thanks very much for you answer ,help and protect my private information!

Give my best regards to you all!
txzfw
User
User
 
Posts: 8
Joined: 17 May 2011, 05:06

Re: TMC429 Eval1.10

Postby Dr.LarsLarsson (TRINAMIC) » 22 May 2011, 22:22

We currently use Codesourcery G++ Light Edition for ARM (Release Fall 2009.3-68), GCC V4.4.1 (GNU), Binutils Version 2.19.51, Newlib V1.17.0 under Windows XP.
User avatar
Dr.LarsLarsson (TRINAMIC)
Site Admin
 
Posts: 323
Joined: 21 Jul 2006, 14:46

Re: TMC429 Eval1.10

Postby txzfw » 23 May 2011, 05:06

I am learning ARM only several day no more than one month!
I don't knows how to develop ARM using GUN tool chain under commond line!
Can I building the source file by Keil MDK+winARM?
txzfw
User
User
 
Posts: 8
Joined: 17 May 2011, 05:06

Re: TMC429 Eval1.10

Postby Olav Kahlbaum (TRINAMIC) » 23 May 2011, 07:35

Yes, you can also use any other C compiler for ARM7 microcontrollers. But I only have experience with GCC. Maybe Keil (and also other commercial ARM C compilers) have their own startup code. But this wont't be a problem: I think that you can make the Keil C compiler not use its own startup code, or remove the startup code from our project and use Keil's startup code (but then you will have to take care that we have a 16MHz crytsal on the board - I think that you will have to select this in some settings in the Keil startup code then). I don't think that there are any other changes necessary.
By the way, you can also have the Codesourcery edition of GCC with a commercial GUI: just google for "Codesourcery", you can buy it from there.
User avatar
Olav Kahlbaum (TRINAMIC)
Site Admin
 
Posts: 3356
Joined: 11 Aug 2006, 08:02

Re: TMC429 Eval1.10

Postby txzfw » 26 May 2011, 10:08

part one
1.In this sentence"Codesourcery G++ Light Edition for ARM (Release Fall 2009.3-68)" ,the word"Light" maybe is"lite"isn't it?
2.In my opinion:Codesourcery G++ Tool chain include GCC? that's ringht? If my understand is right? how to understand "GCC V4.4.1 (GNU), Binutils Version 2.19.51"
3.under Windows xp how to use Codesourcery G++? Commond line?

part two
I try to compiled the source code by(keil IDE +Codesourcery G++ Tool chain[also use gun compiler]) ,but the error resultis that "undefined reference to 'AT91F_Default_FIQ_handler' ...and so on!
I can't find that where define the 'interrupter vector table' in source code ?

My fundament of ARm is vevy little!
You are so kindly that you will help me to complied the source code successfully! Is't you?
Last edited by txzfw on 27 May 2011, 11:53, edited 1 time in total.
txzfw
User
User
 
Posts: 8
Joined: 17 May 2011, 05:06

Re: TMC429 Eval1.10

Postby Olav Kahlbaum (TRINAMIC) » 27 May 2011, 07:37

1) Yes, it should be "Lite".
2) Yes, it is GCC. The version numbers do not matter.
3) Yes, with he Lite version, you will need to use the command line.

With Keil's C compiler, many things are different. But I think that you can create a project that consists of the following files:
Cstartup.S (in this file also the low level interrupt handlers are defined)
Cstartup_SAM7_16MHz.c
Eval429-Main.c
Eval429-ADCIrq.c
Eval429-SPI.c
Eval429-Systimer.c
Eval429-TMC262.c
Eval429-TMC424.c
Eval429-TMC428.c
Eval429-TMCL.c
Eval429-UART.c
Eval429-UARTIrq.c
Eval429-USB.c

You will have to set it up in a way that not Keil's own startup code is used (the startup code mainly is in the Cstartup.S assembler file). I think that it should compile and link successfully then.
User avatar
Olav Kahlbaum (TRINAMIC)
Site Admin
 
Posts: 3356
Joined: 11 Aug 2006, 08:02

Re: TMC429 Eval1.10

Postby txzfw » 27 May 2011, 11:48

Thanks very mach for you answer my question thoughtfully!
1.where can i get Cstartup.s file,other files can get from you company web!
2.In you code, which function used Newlib??

I just use keil IDE,but the compiler is Codesourcery G++ Tool chain(the same to you)! because, i do not want to amend source code for other compiler!
txzfw
User
User
 
Posts: 8
Joined: 17 May 2011, 05:06

Re: TMC429 Eval1.10

Postby Olav Kahlbaum (TRINAMIC) » 30 May 2011, 07:38

1) Sorry, it is missing in the evaluation board firmware source code archive. I will put it into the archive also, then please download it again from our website.
2) Newlib is part of the Codesourcery GCC distribution and contains all the standard C functions. But the C library supplied with Keil's compiler will do the same job. You do not have to care about that (regardless of what you are using).
User avatar
Olav Kahlbaum (TRINAMIC)
Site Admin
 
Posts: 3356
Joined: 11 Aug 2006, 08:02

Re: TMC429 Eval1.10

Postby txzfw » 31 May 2011, 07:09

thanks very much for you help!
I have download new source code,and build it successfully(link script use"AT91SAM7X256-ROM.ld")!
(use "Codesourcery G++ TOOL Gain" in keil IDE! Have an article about how to set in Keil,but it writed by chinese!the web link is:http://diy98.blog.bokee.net/bloggermodule/blog_viewblog.do?id=3970570)

The last question about build source code is what is the difference with three link file (AT91SAM7X256-RAM.ld?AT91SAM7X256-ROM.ld?AT91SAM7X256-TMCL.ld?).Maybe "AT91SAM7X256-RAM.ld" use to boot from RAM and "AT91SAM7X256-ROM.ld use to boot from ROM(for the production). But "AT91SAM7X256-TMCL.ld" use for what?
txzfw
User
User
 
Posts: 8
Joined: 17 May 2011, 05:06

Re: TMC429 Eval1.10

Postby Olav Kahlbaum (TRINAMIC) » 31 May 2011, 07:36

Yes, that's right. Normally you will be using the AT91SAM7X256-ROM.ld linker script, as you will normally be downloading the program to the FlashROM of the CPU and set up the CPU for booting from ROM. The AT91SAM7X256-RAM.ld can be used to get a version that can be downloaded into RAM (some debuggers need that), but I never did that.
The AT91SAM7X256-TMCM.ld is not needed. It relocates the code to some other ROM address, e.g. when there is a special boot loader in the first page of the FlashROM (but you won't be using this option).
So normally use the AT91DAM7X256-ROM.ld linker script and then download the code via JTAG (probably the best method) or via RS232 using SAM-BA.
User avatar
Olav Kahlbaum (TRINAMIC)
Site Admin
 
Posts: 3356
Joined: 11 Aug 2006, 08:02

Next

Return to TMC428 / TMC429

Who is online

Users browsing this forum: No registered users and 1 guest