USB Secondary bootloader for external memory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB Secondary bootloader for external memory

1,004 Views
rajendran_varun
Contributor I

Hi,

By using LPCOpen v1.03 and AN10866 LPC1700 secondary USB bootloader as reference and used example software available from NXP. The example will show the system’s flash memory as a folder in a Windows, and the user can update the flash with a binary image using drag-and-drop (e.g., using Windows Explorer).

 

The same way I done for external flash memory to show as a folder in Windows.

/* FAT12 Root directory entry constants */ 
const unsigned char RootDirEntry_LUN0[DIR_ENTRY] = {
 'u', 'C', 'O', 'N', 'T', 'O', 'L','L', 'E', 'R', ' ', 0x28,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 'F', 'I', 'R', 'M', 'W', 'A', 'R', 'E', 'B', 'I', 'N',0x20,0x18,0xbc,0x41,0x97,
0x37,0x38,0x37,0x38,0x00,0x00,0x3d,0x6e,0x2b,0x38,0x02,0x00,0x00,0xD0,0x07,0x00,
 };

 

/* FAT12 Root directory entry constants */
const unsigned char RootDirEntry_LUN1[DIR_ENTRY] = {
 'F', 'P', 'G', 'A', ' ', ' ', ' ',' ', ' ', ' ', ' ', 0x28,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
 'F', 'I', 'R', 'M', 'W', 'A', 'R', 'E', 'H', 'E', 'X',0x20,0x18,0xbc,0x41,0x97,
0x37,0x38,0x37,0x38,0x00,0x00,0x3d,0x6e,0x2b,0x38,0x02,0x00,0x00,0xD0,0x07,0x00,
 };

 

Used SPI bus as communication between LCP1769 and external flash memory.  Everything is working fine with Windows7, both system flash memory and external flash memory is showing as folder and I am able to copy and delete the binary inside the folder.

 

But when I use with Windows 10(it is not working) and try to open the folder, Windows explorer will get hang or closed without opening the selected folder.

From AN10866 document it shows it will support only till Windows9X. I want to know whether this will work with Windows 10?  For that we want to modify anything in the source code? or it is not possible to make AN10866 application to working with Windows10?

In document it is mentioned as it will support in Linux, I want to know till what version of Ubuntu it will support?

 

Thanks,

Varun

Labels (4)
0 Kudos
6 Replies

802 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Varun Rajendran ,

I will check if there is any possibility to contact the AN author for your issue.

I will let you know as soon as I get any news.


Have a great day,
Jun Zhang

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

802 Views
rajendran_varun
Contributor I

Dear Jun Zhang,

Any update from AN author? Could you please support as soon as possible

Thanks,

Varun

0 Kudos

802 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Varun,

I got feedback.

In AN10866 example code, a FAT12 file system is implemented. The FAT12 is no longer supported by Windows. To support new Windows, it need be ported to FAT16/32. This work have not done by NXP yet.


Have a great day,
Jun Zhang

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

802 Views
rajendran_varun
Contributor I

Hi Jun Zhang,

Thanks for the information.

I would like to know whether NXP can support us for porting the FAT16/32 with AN10866 example? If possible could you please share the relevant documents. 

Also could you please share the information, till what version of Linux it will support?(if it is available)

Thanks,

Varun

0 Kudos

802 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Varun,

The fact is this AN author is no longer in NXP, thus we can't know the author's linux version when wrote this article, and we don't have record on it. But please be aware this document was written in Feb,2013. so the testing linux environment is old. We can't guarantee the new version linux can support it.

Regarding to your question: "I would like to know whether NXP can support us for porting the FAT16/32 with AN10866 example? If possible could you please share the relevant documents. " :

We don't have any document on porting FAT12 to FAT16/32. It's a new task for us also. Normally NXP needs to know the end customer and project details, and volume. I suggest you collect those information to NXP FAE , check if it's possible for NXP system application team prioritize the work. 

 


Have a great day,
Jun Zhang

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

802 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

NO, I just sent notification to the manager. I will keep you informed.

0 Kudos