Wednesday, December 13th 2017, 3:57pm 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.

rgrazee

Beginner

Date of registration: Apr 29th 2015

Posts: 1

1

Wednesday, April 29th 2015, 8:19pm

External Flash debugging on Freescale MK61

I am currently using IAR Embedded Workbench and J-Link Plus and trying to configure the tools to allow running from external flash and setting software breakpoints. My hardware is as follows:
  • Freescale MK61FN1M0VMJ12 ARM M4
  • Micron PC28F512P33EFA 64MB external CFI NOR flash (2 chips selected by CS0 and CS2)
  • Renases R1LV1616R 2MB external SRAM (selected by CS3)
Do you have any IAR or JFLASH samples that I could use as a starting point for the above configuration?
I have seen references to a STM32F407IE_1x16bit_CFI_NOR_nCS0_IARV6405 project. Will the same concept work with my hardware?

Thanks in advance for any information that you can provide.

SEGGER - Erik

Super Moderator

Date of registration: Dec 20th 2011

Posts: 392

2

Monday, May 4th 2015, 10:13am

Hi,

A detailed instruction, of which steps have to be performed to allow debugging (incl. flash breakpoints etc...) in CFI complaint flashes for various debuggers is given in chapter "6.5 Setup for various debuggers (CFI faslh)" of the J-Link user manual (UM08001). The STM32F407IE IAR project can be used as reference but need to be adapted to your setup as a different device (different register layout, different ext. memory controller, etc...) is used.

Quoted

Do you have any IAR or JFLASH samples that I could use as a starting point for the above configuration?
The J-Link software and documentation package includes some J-Flash sample projects for different chips, which shows howto setup the CFI flash in J-Flash. The sample projects are located under %INST_DIR%\Samples\JFlash\ProjectFiles\ (e.g. Fujitsu -> MB9BF618T_1x16_CFI_NORFlash.jflash).


- Erik