Tuesday, December 12th 2017, 10:41pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

jrivero

Beginner

Date of registration: Feb 9th 2010

Posts: 1

1

Tuesday, February 9th 2010, 10:20pm

Custom RAMCodes for J-Flash

I have the at91sam9g20-ek board and I'm trying to download to the external Atmel DataFlash or the NAND Flash. Having browsed through the forum, I can see that J-Flash does not currently support these Flash chips, unless I use custom RAMCodes. So are there any instructions on how to write these RAMCodes? Or is there a better way to program these Flash memories? Thanks to anyone who can help.

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,514

2

Friday, February 19th 2010, 2:49pm

Hi jrivero,

There will be a RAMCode SDK in the future which comes with a template, how to write a custom RAMCode.
This RAMCode SDK will be only available upon request.

Nevertheless, we also plan to deliver custom RAMCodes for the SAM9G20 / SAM9G45 for NAND flash and DataFlash programming, in the near future.

These custom RAMCodes can be used with J-Flash and Flasher ARM.

Best regards
Alex

veikkoW

Beginner

Date of registration: Feb 2nd 2012

Posts: 8

3

Tuesday, February 7th 2012, 3:22pm

Is there a way to use the ELF files delivered by microcontroller producers for the KEIL uVision IDE?
There ist a file S3FN41F.FLM for the Samsung S3FN41F that works for the deticated eval board using the J-Link /w SWD in combination.

But I have no insight in how this flash code is actual used.

Veikko

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,514

4

Tuesday, February 7th 2012, 5:01pm

Hi Veikko,

Could you please explain a bit more what you are trying to do?
I do not understand your intention.
Do you want to know how to flash an ELF file with J-Flash?


Best regards
Alex

veikkoW

Beginner

Date of registration: Feb 2nd 2012

Posts: 8

5

Wednesday, February 8th 2012, 9:46am

Alex,

I intend to use the J-Link with an S3FN41F eval board.
I had no success in downloading a binary to the flash using the GDBServer.
Thus I went into using the KEIL IDE where I have a project from Samsung special to the eval board.
Using Keil together with the Segger J-Link is no problem, just select the appropriate JTAG device and configure SWD ...
The next thing was to download a special flash "driver" for the Samsung S3FN41F (a file named S3FN41F.FLM) which is a normal ELF file and seems to be loaded to the target RAM and work as a flash downloader.
Using that approach I had no problem in flashing the device. But using the J-Link with gdb I had no success (maybe also in finding the right settings).

So I was thinking that I maybe can use this special ELF file together with the GDBServer/J-Link to flash the device. Bu tprobably I wont be able to comunicate via the GDB and the RAM program inside the target

Veikko

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,514

6

Wednesday, February 8th 2012, 8:31pm

Hi Veikko,

You need to add the following lines to the GDBInit file in order to enable flash download for the S3FN41F:

Be careful: J-Link makes sure that the SWD protection bit in the smart option protection area is
not cleared by the application image (which would enable SWD protection and makes debugger connection impossible)
but all other smart option bits can be programmed.

C/C++ Source code

1
monitor flash device=S3FN41F



Best regards
Alex