**** BEGIN LOGGING AT Wed Jan 17 02:59:57 2007 Jan 17 08:34:12 hi together, i've got a problem with my ATMEL AT91RM9200 Jan 17 08:34:24 does anybody has any expirience with this device ? Jan 17 10:11:26 aproemel: what kind of problems? Jan 17 10:12:11 I've created a asm starup (with KEIL IDE) and wrote a small function that should toggle port B Jan 17 10:12:34 If i upload the hex file to the prozessor with XMODEM nothing happens Jan 17 10:12:44 I don't have a JTAG Debugger Jan 17 10:13:22 I'll explain what i want to do Jan 17 10:13:40 I build a own board, only prozessor, SDRAM and Serial Interface Jan 17 10:13:56 with this board i want to test the SDRAM interface Jan 17 10:14:24 i haven't spent Flash to the board, so i'm not able to use uboot Jan 17 10:16:53 aproemel: you're using the AT91RM9200's buildin bootloader? Jan 17 10:17:00 yes Jan 17 10:18:21 and which tool did you use for the upload? Jan 17 10:18:41 CuteCom with XMODEM protocol Jan 17 10:20:58 you said you tried to upload the hex file - i believe the bootloader expects a plain binary Jan 17 10:21:53 mhh, maybe thats my fault Jan 17 10:22:02 do you work with a AT91RM9200 ? Jan 17 10:22:12 i used to work with one, but I never used the builtin bootloader Jan 17 10:22:36 you had u-boot in flash, or ? Jan 17 10:22:38 anyway, the bootloader definitely expects a binary file Jan 17 10:22:39 yeah Jan 17 10:23:00 and I had JTAG (my own JTAG debugger, OpenOCD) Jan 17 10:24:02 mhh, well a Jtag Debugger would be nice, i've to talk to my boss, that i'll get one Jan 17 10:51:01 vmaster: did you build your board at your own? or was it a Demo Board like the one from ATMEL ? Jan 17 10:53:42 I only worked with a CSB337 (cogent). Originally my university wanted to design a board of their own, but this was never completed. Jan 17 10:54:56 what are your long-term goals for the AT91RM9200? Linux? Jan 17 10:56:16 I've to build a own board, and have to do a linux adaption Jan 17 10:56:19 ist my Diplom Arbeit Jan 17 10:57:06 ok, so you'll end up using the GNU tools anyway, right? Jan 17 10:57:14 sure Jan 17 10:57:23 my toolchain works fine with the embest demo board Jan 17 10:59:03 but i haven't found a documentation which parameters i have to use for gas to compile my startup assembler file Jan 17 10:59:13 regarding the JTAG debugger (you said you'd have to ask your boss): You can use inexpensive hardware (Wiggler, FT2232 based USB dongle) with the OpenOCD (which is free/open software) Jan 17 10:59:45 mhh, what shall it cost? Jan 17 11:00:09 that i can tell him a price on friday Jan 17 11:00:31 I don't think you need any parameter for gas at all - just a linker script, that tells the linker (ld) where to put your code and data Jan 17 11:00:42 you can build a wiggler yourself for around 10€, I suppose Jan 17 11:00:47 You can get one ready-made for ~20€ Jan 17 11:01:33 The cheapest USB based dongle is 29€ (+ VAT and shipping from .ch) Jan 17 11:02:19 well, <200? for all ? Jan 17 11:03:20 what do you thin about this device: http://www.amontec.com/jtagkey.shtml Jan 17 11:04:05 I have one on my desk - but it's only worth the money if you're considering non-3.3V devices Jan 17 11:05:25 if you just want to use it with the AT91RM9200 you can do with the much cheaper JTAGkey-tiny Jan 17 11:05:57 you'll have to use the OpenOCD with all FT2232 based dongles (Amontec JTAGkeys, Olimex ARM-USB-OCD, Signalyzer, home-made) Jan 17 11:06:15 Rowley's CrossWorks will support them with the next release, too Jan 17 11:06:46 the OpenOCD is quite stable, but as most of the free tools it's not as easy to use for a beginner as the commerical ones Jan 17 11:06:53 well, if the JTAGkey-tiny works with my AT91RM9200 everything will be fine Jan 17 11:07:17 is there good docu fpr OpenOCD ? Jan 17 11:08:23 there's an active forum at sparkfun.com and a Wiki explaining most of the config options and commands at http://openfacts.berlios.de/index-en.phtml?title=Open_On-Chip_Debugger Jan 17 11:08:23 the manual in the berlios files section is outdated Jan 17 11:08:38 the major problem for a beginner is getting the .cfg file right Jan 17 11:10:22 well, i think i have to try it Jan 17 11:11:36 it's by far the cheapest solution, and I've used it for exact the same job - getting U-Boot and Linux to run Jan 17 11:12:09 other JTAG debuggers are >200$ and require the use of software >1000$ Jan 17 11:12:15 ok, then i'll do so too Jan 17 11:12:15 :-) Jan 17 11:12:28 i think <200? wont be a big problem Jan 17 11:14:42 thanks for your help Jan 17 11:14:57 I'll tell you if it works :-) if i get such a debugger :-) Jan 17 11:17:01 vmaster: one question about your work Jan 17 11:17:28 did your write anything in assembly language ? Jan 17 11:18:38 the low-level startup files for u-boot Jan 17 11:19:11 would you tell me your gas parameters? Jan 17 11:19:55 U-Boot sets them globally, I didn't have to change anything Jan 17 11:20:11 aahh, ok Jan 17 11:20:16 search the web for Jim Lynch's tutorial Jan 17 11:20:40 on using the GNU tools with Eclipse to program Philips LPC2000 (ARM7) Jan 17 11:21:19 http://gnuarm.alexthegeek.com/ Jan 17 11:21:23 i think you mean this Jan 17 11:22:07 mhh, yeah, but I think that's the big package with all the software, which you don't need Jan 17 11:22:24 i download it, an look what i need, and what not Jan 17 11:24:50 he has an example using a .S startup file, a .c main file, and a linker script Jan 17 11:25:33 that is great Jan 17 11:29:09 http://www.olimex.com/dev/pdf/ARM%20Cross%20Development%20with%20Eclipse%20version%203.pdf Jan 17 11:29:17 found the pdf Jan 17 11:29:50 yeah, version 3 is slightly older, but the gas/ld stuff should be the same Jan 17 11:30:14 i'm searching for a later version then Jan 17 12:20:47 re * Jan 17 12:23:20 Hi all, can openocd run on Linux platform ? Jan 17 12:39:26 vmaster: do you build your toolchain at your own? Jan 17 12:39:46 or do you used something like "crosstool" from dan kegel or "buildroot" Jan 17 12:47:57 nm: yes, that's what i wrote it on. Support for Cygwin, native Windows and FreeBSD was added later Jan 17 12:49:01 aproemel: I've used binary releases (ELDK from denx), toolchains built with crosstool and built on my own Jan 17 13:52:51 vmaster: thanks Jan 17 15:31:45 <[g2]> vmaster rocks! :) Jan 18 02:59:19 re * **** ENDING LOGGING AT Thu Jan 18 02:59:57 2007