How to flashing NuttX to IMXRT1050 EVK board?

395 views
Skip to first unread message

wig....@relajet.com

unread,
Jul 2, 2018, 6:41:58 AM7/2/18
to NuttX
As title, I already compiled nuttx and nuttx.hex file using arm-none-eabi-gcc 6.3.1 on Ubuntu 18.04, but I can't found anything about flashing image to EVK board in README file, could anyone helps me if possible?

On EVK board, it supports Hyper Flash boot and SD boot only, but I think the SDIO driver is not implement yet, so if I have to flashing image to hyper flash, I think I will prepare something as following:

1. CMSIS-DAP tool? Or FT232H (FTDI) is enough? Actually I already tested openocd but failed...
2. If no support openocd tool, what is the correct way?

Thanks, really want to see the NuttX running well on IMXRT1050 platform in the future.


Wig




Embedded Systems

unread,
Jul 2, 2018, 7:47:50 AM7/2/18
to NuttX
Hello,

You can just use the MCUXpresso studio to flash the image in to the IMXRT1050 hyper flash, thats how i flash it.

Best regards,
Ivan

--
You received this message because you are subscribed to the Google Groups "NuttX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nuttx+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Kind regards,
Ivan Ucherdzhiev

Team Lead @ Barin Sports
Bulgaria
skype: ipy_44

Embedded Systems

unread,
Jul 2, 2018, 7:49:11 AM7/2/18
to NuttX
P.S. Nuttx is already running perfectlly fine on IMXRT1050 I use it in our project and so far everything is perfect.

Embedded Systems

unread,
Jul 2, 2018, 7:55:56 AM7/2/18
to NuttX
Dear Wig Cheng,

You can also see in the other discution about IMXRT1050 how to use the on board Nor Flash , which is also tested and working. Here is the breaf explanation on how to setup nuttx and MCUXpresso for working with QSPI NOR Flash.


Embedded Systems <ivanuch...@gmail.com>

Jun 22 (10 days ago)
to NuttX
Hello Guys,

I wish to give you a short update and let you know that MCUXpresso studio already has support for QuadSPI Nor Flash , so now we are able to program debug and work with QuadSPI from MCUXpresso studio(mounth ago that was not possible and the only tool able to do that was Keil). If someone wants to work with QuadSPI Nor Flash (I already do that) can use MCUXpresso and if you have any problems with the configuration please feel free to contact me.

Here are the steps needed to be done in order to use the QSPI Nor flash.
1. Depending on the board revision you have to unsolder the Hyper flash or few 0 Ohm resistors;
2. You have to upload a new firmware on the onboard openSDA debugger, which can be downloaded from here 

3. In nuttx you have to configure CONFIG_IMXRT1050_EVK_NOR_FLASH;
4. In MCUXpresso studio you have to change the programing driver : right click on the project -> properties -> C/C++ build ->MCU settings->Edit-> on the driver column click on the chosen driver and change it from 
MIMXRT1050-EVK_S26KS512S.cfx to MIMXRT1020-EVK_IS25LP064.cfx. Keep in mind thats this is only supported in the newest version MCUXpresso studio 10.2.0_759.

Thats all in general.

Best regards,
Ivan Ucherdzhiev

Alan Carvalho de Assis

unread,
Jul 2, 2018, 8:34:16 AM7/2/18
to Embedded Systems, NuttX
Hi Ivan,

Maybe OpenOCD could be another option:

http://openocd.zylin.com/#/c/4370/

It needs a +1 from a user and then from a developer to be accepted
into mainline.

BR,

Alan

On 7/2/18, Embedded Systems <ivanuch...@gmail.com> wrote:
> Dear Wig Cheng,
>
> You can also see in the other discution about IMXRT1050 how to use the on
> board Nor Flash , which is also tested and working. Here is the breaf
> explanation on how to setup nuttx and MCUXpresso for working with QSPI NOR
> Flash.
>
>
> Embedded Systems <ivanuch...@gmail.com>
> Jun 22 (10 days ago)
> to NuttX
>>>> an email to nuttx+un...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> Kind regards,
>>> Ivan Ucherdzhiev
>>>
>>> Team Lead @ Barin Sports
>>> Bulgaria
>>> skype: ipy_44
>>> tel: +359888927760
>>>
>>
>>
>>
>> --
>> Kind regards,
>> Ivan Ucherdzhiev
>>
>> Team Lead @ Barin Sports
>> Bulgaria
>> skype: ipy_44
>> tel: +359888927760
>>
>
>
>
> --
> Kind regards,
> Ivan Ucherdzhiev
>
> Team Lead @ Barin Sports
> Bulgaria
> skype: ipy_44
> tel: +359888927760
>
> --
> You received this message because you are subscribed to the Google Groups
> "NuttX" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nuttx+un...@googlegroups.com.

patacongo

unread,
Jul 2, 2018, 8:45:43 AM7/2/18
to NuttX

On EVK board, it supports Hyper Flash boot and SD boot only, but I think the SDIO driver is not implement yet, so if I have to flashing image to hyper flash, I think I will prepare something as following:

1. CMSIS-DAP tool? Or FT232H (FTDI) is enough? Actually I already tested openocd but failed...
2. If no support openocd tool, what is the correct way?


I use a Segger J-Link and never had any problem.  It is a great development tool (although pricey and Windows focused).

Greg
 

wig....@relajet.com

unread,
Jul 2, 2018, 11:45:25 AM7/2/18
to NuttX
Thanks for your kindly help. Actually I prefer use openocd first if it works because I just did another NuttX project using Onsemi LC823450 platform, it adapted FT232H and connect to JTAG, I thought it can move to IMXRT1050 but got failed message as attached file. I will keep trying it tomorrow, if still not work, I will adapted Segger J-Link tool, thanks!


My project is focus on audio signal process on application layer, so I have to solve the WM8960 codec driver issue ( it seems not support now), then I saw the defconfig is support SRAM as main memory, it's not enough for my algorithm ( huge stack size), so I still need to survey how to use SDRAM, hope everything is works fine in the future, I'm a MCU rookie but I will do my best :)

So appreciate everyone's help, thanks!!

Wig
openocd-error.txt

Embedded Systems

unread,
Jul 2, 2018, 2:43:19 PM7/2/18
to NuttX
Dear Wig Cheng, 

I am very sorry that i cannot help more. So far i use MCUXpresso for flasing imxrt and i do not know how to flash it with openOCD. I know that the onboard debugger is using openSDA and maybe the link below can help you to achieve your goal. Good luck! 


Best regards, 
Ivan Ucherdzhiev 


--

patacongo

unread,
Jul 2, 2018, 5:54:06 PM7/2/18
to NuttX
My project is focus on audio signal process on application layer, so I have to solve the WM8960 codec driver issue ( it seems not support now), then I saw the defconfig is support SRAM as main memory, it's not enough for my algorithm ( huge stack size), so I still need to survey how to use SDRAM, hope everything is works fine in the future, I'm a MCU rookie but I will do my best :)

i.MXRT is a work in progress.  There are still many things that you expect to see in a basic board support are still missing.

There are WM8775 and WM9804 drivers available in drivers/audio.  To get the WM8960 working you would need several things (assuming it is similar to the other WM parts):

1. A WM8960 driver,
2. An I2C driver, and
3. An I2S driver.

That is a lot of work.

Greg
Reply all
Reply to author
Forward
0 new messages