Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Segmentation fault when downloading bin with segger jlink
PostPosted: Wed Oct 14, 2009 11:50 am 
Offline

Joined: Thu Jun 29, 2006 2:22 pm
Posts: 12
Hi, (sorry if wrong forum)

First let me tell you a little about my system:
I am running Ubuntu 9.04, I have binutils-2.19.1 installed
and are using jlink from segger. I have an AT91SAM7S-EK board populated with at91sam7s64.
I have downloaded J-Link Beta Software version for Linux from http://www.segger.com/cms/jlink-software.html.
This runs nicly and it detects my jlink and board.

Next I have also downloaded the AT91SAM7S-EK Software Package for IAR 5.2, Keil and GNU, me using GNU offcourse, from here:
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3784

Here I have selected to test "basic-pwm-project-at91sam7s-ek-gnu"
The only thing I had to do to make it compile was to change Makefile to use my toolchain and target CPU (CHIP = 64 not 256).
In original Makefile CROSS_COMPILE in line 70 was set to arm-none-eabi- I changed this to arm-elf-
Maybe this is my problem but then I have no knowledge how to solve it, even if simple. But It compiles fine

Problem is that when using jlink and loadbin option I am not able to load my image. I am given the "Segmentation fault" message when loading and jlink terminates. I am able through jlink to write and read to sram correctly using w4 commands. I may issue an h(alt) c(ontinue) or r(eset) command as well but no point of doing that when no program is loaded.



Any comment regarding my problem or how to set up a proper tool for using jlink on ubuntu is welcome


Thanks in advance
Vidar

_________________
-------------------------
Best regards
Vidar (Z)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: