Jump to content
Emeryth

USB mass storage bootloader

Recommended Posts

the DEVICE connector, not debug connector... oh, there's my problem.

 

Shows up fine with the non-prebuilt .bin. For some reason, the prebuilt .bin doesn't work with my system.

 

Thanks for the help!

Share this post


Link to post
Share on other sites

Shows up fine with the non-prebuilt .bin. For some reason, the prebuilt .bin doesn't work with my system.

Weird, the prebuilt bin works for me in xubuntu 12.10.

 

Does this affect any existing functionality like debugging, for example?

 

In theory it should not affect anything, except for the changed code start address.

Share this post


Link to post
Share on other sites

Not able to run it under Ubuntu 12.04. Neither the prebuild nor the one build by my own (strange that only the first time I flashed the one I compiled myself (gcc), it worked and than never again). The prebuild one runs under Windows XT though.

 

Here is what dmesg gives me:

=====================================================

usb 1-1.6: new full-speed USB device number 5 using ehci_hcd
scsi5 : usb-storage 1-1.6:1.0
scsi 5:0:0:0: Direct-Access     TI       MSC Bootloader   1.00 PQ: 0 ANSI: 0
sd 5:0:0:0: Attached scsi generic sg6 type 0
sd 5:0:0:0: [sdf] 1024 512-byte logical blocks: (524 kB/512 KiB)
sd 5:0:0:0: [sdf] Write Protect is off
sd 5:0:0:0: [sdf] Mode Sense: 03 00 00 00
sd 5:0:0:0: [sdf] No Caching mode page present
sd 5:0:0:0: [sdf] Assuming drive cache: write through
usb 1-1.6: reset full-speed USB device number 5 using ehci_hcd
usb 1-1.6: reset full-speed USB device number 5 using ehci_hcd
usb 1-1.6: reset full-speed USB device number 5 using ehci_hcd
usb 1-1.6: reset full-speed USB device number 5 using ehci_hcd
usb 1-1.6: reset full-speed USB device number 5 using ehci_hcd
sd 5:0:0:0: Device offlined - not ready after error recovery
sd 5:0:0:0: rejecting I/O to offline device
sd 5:0:0:0: rejecting I/O to offline device
sd 5:0:0:0: rejecting I/O to offline device
sd 5:0:0:0: rejecting I/O to offline device
sd 5:0:0:0: rejecting I/O to offline device
ldm_validate_partition_table(): Disk read failed.
sd 5:0:0:0: rejecting I/O to offline device
sd 5:0:0:0: rejecting I/O to offline device
sd 5:0:0:0: rejecting I/O to offline device
sd 5:0:0:0: rejecting I/O to offline device
Dev sdf: unable to read RDB block 0
sd 5:0:0:0: rejecting I/O to offline device
sd 5:0:0:0: rejecting I/O to offline device
sd 5:0:0:0: rejecting I/O to offline device
sd 5:0:0:0: rejecting I/O to offline device
sd 5:0:0:0: rejecting I/O to offline device
sd 5:0:0:0: rejecting I/O to offline device
sdf: unable to read partition table
sd 5:0:0:0: [sdf] Attached SCSI removable disk

=====================================================

 

Anyone any idea how to track down the issue?

 

Gerhard

Share this post


Link to post
Share on other sites

Hi,

 

This a great project. I've managed to get the boot loader code to compile within Code Composer Studio 5 and It worked! My PC recognized my stellaris as a usb mass storage device.

 

I have one question:

 

Can the bool loader code be reworked so it occupies the bottom 16k of flash memory?

This way you don't have to change the firmware.bin linker script to address 0x00004000

and just leave it at its default address of 0x00000000.

 

Thanks.

Pete

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...