AT91SAM7_Target.js

Comments

2 comments

  • Avatar
    Paul Curtis

    Hi,

    That project is provided by Richard Barry and isn't one of ours.  ;-)  The AT91SAM7X256-EK is supported by a BSP in CrossWorks, so have you tried installing the BSP and opening the examples and trying them out to ensure that the board, J-Link, and software all work in perfect harmony?

    0
    Comment actions Permalink
  • Avatar
    Dharper08

    Hi Paul,

    Sorry about the misunderstanding - the project is indeed one of the Demo projects supplied by FreeRTOS.  The reason I thought Richard got the script from you is the comment at the top - "Copyright (c) 2004 Rowley Associates Limited."  It's a minor issue either way.

    As for the project, I am in the process of trying to migrate away from a 5 year old Eclipse based development environment with the goal of porting previous projects to the CrossWorks environment.  The AT91SAM7X256-EK board, J-Link and an Eclipse version of the software run fine on the board and produce the expected output.  Under CrossWorks I do have the AT91SAM7X-EK BSP installed and configured for the project.  The J-Link connects as a target okay and I can read and write SRAM on the board.  However, at this point I cannot even perform an Erase All operation.  The Output window shows that the operation now makes it through the FLASHReset() function in the script and the file Loader_rpc.elf is downloaded and verified on the SEGGER J-Link.  The last step is "Erasing all memory" but that never appears to start (no advancement in the progress bar) and the operation eventually aborts with the error message "Server terminate operation failed".  I have enabled the J-Link Log File but there is nothing in there that indicates any type of communication problem.  I can see the TargetInterface peeks and pokes from the FLASHReset() operation followed by a number of other operations, finally ending with a JLINK_Close().  I have also tried reducing the JTAG speed down to 100KHz with no change in behavior.  This has been tried with two different AT91SAM7X256-EK boards and two different J-Link units.  With the logic analyzer on the JTAG lines, I can see the TAP controller start out with a TAP reset and then proceed to load an instruction so it is trying to do something to the CPU on the Erase All.  At this point I suspect I have something in the project configured incorrectly.  This is probably a good thing - it is forcing me to go through things thoroughly and I will end up with a better understanding of CrossStudio as a result. 

    Dave

    0
    Comment actions Permalink

Please sign in to leave a comment.