Wednesday, May 23rd 2018, 2:52am UTC+2

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.

ttnickb

Beginner

Date of registration: Apr 10th 2018

Posts: 4

1

Saturday, April 21st 2018, 1:42am

[SOLVED] iMX6UL - DDR initialization for u-boot

I'd like to use a JLink Pro to debug U-boot on the iMX6UL, but DDR needs to be initialized first.

Does SEGGER provide scripts for initialization of DDR on the iMX6ULEVK platform? Or example scripts for some iMX6 platform that can be tailored for the EVK?

Otherwise, is there another recommended procedure for loading U-boot via JTAG?

ttnickb

Beginner

Date of registration: Apr 10th 2018

Posts: 4

2

Saturday, April 21st 2018, 4:53pm

I came up with the attached script for JLink.exe. After running the script, it allows writing U-boot to DDR address x87800000 with this command:

Source code

1
loadbin u-boot.bin 87800000


"verifybin" returns successful.

But after issuing "go", u-boot isn't working properly (no console output). I assume something is still missing or incorrect from the initialization. In particular I'm not sure about the "wreg r13 93ff20" command. I stole that from another forum post. Any guidance would be appreciated.
ttnickb has attached the following file:

v01d

Beginner

Date of registration: Feb 29th 2016

Posts: 121

3

Sunday, April 22nd 2018, 2:15pm

The required DDR (and other SoC init) can be requested from NXP directly, through support request. This been done before.
(Or copied from provided U-boot init in the supplied BSP, if any.)

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,048

4

Monday, April 23rd 2018, 9:49am

Hello,

Thank you for your inquiry.

Quoted

Does SEGGER provide scripts for initialization of DDR on the iMX6ULEVK platform? Or example scripts for some iMX6 platform that can be tailored for the EVK?

We do not provide example scripts for device specific peripheral or memory initialization.
As user v01d correctly suggested we recommend contacting NXP in this case.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


ttnickb

Beginner

Date of registration: Apr 10th 2018

Posts: 4

5

Monday, April 23rd 2018, 2:16pm

Thanks. That makes sense. I will inquire with NXP for further details.

ttnickb

Beginner

Date of registration: Apr 10th 2018

Posts: 4

6

Monday, April 23rd 2018, 2:48pm

I followed the details on this page closer and was successful:
https://community.nxp.com/docs/DOC-334347

Same JLink script from above. Just a different u-boot.bin. I used the u-boot.bin file from the Yocto repo, whereas I had been unsuccessfully using u-boot.bin built from here:
https://github.com/Freescale/u-boot-fslc/tree/2017.11+fslc

I'm not sure what the difference is. But apparently my problem was not a JLink usage issue.

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,048

7

Monday, April 23rd 2018, 2:51pm

Hello,

Great to hear that you are up and running again.
We will consider this thread now as solved.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/