This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm368 can't boot from usb

Hi,

  I try to use dm368 boot from usb,but  the board does not respond.

  Will the dm368 really support usb boot it?

Attach my usb start python program,I print through the serial port to check whether the success.

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import usb.core
import usb.util

dev = usb.core.find(idVendor=0x0451, idProduct=0x9815)

# was it found?
if dev is None:
    raise ValueError('Device not found')

# set the active configuration. With no arguments, the first
# configuration will be the active one
dev.set_configuration()

# get an endpoint instance
cfg = dev.get_active_configuration()
# print cfg
intf = cfg[(0,0)]

ep = usb.util.find_descriptor(
        intf,
        # match the first OUT endpoint
        custom_match = \
                lambda e: \
                usb.util.endpoint_direction(e.bEndpointAddress) == \
                usb.util.ENDPOINT_OUT)

assert ep is not None
print ep

bootData = file("boot.bin").read()
msg = bytearray.fromhex('A1ACED01')
msg += bytearray.fromhex('00000100') #entry address
msg += bytearray.fromhex('%08x' % len(bootData)) #block length
msg += bytearray.fromhex('00000020') #store address
msg += bytearray.fromhex('00000000')

head = file("head", "w")
head.write(msg)
head.close()

ep.write(file("head").read())
ep.write(bootData)

1���1	��8����	�4��4��4 ��R�� B�B!����� R����������� h8�����������)����#������
�������M�������
����-��L� �M� �0��2K�0��0�0��0�2[�S�
 ���0��0��,0�� ���0��,0�,0�0�0��0��~�0��0�� 0�0��0��0�0�S�0�S����0�S�0��(0��D�� � 0�0��0��0��0�0��0� �0�R�����0��(0�(0����K�����
����-��L� �M�(�0��0��0�0c�1��0� �(0�32��0�0�0�	S��0�0��0��0��0�00���� ���K�0�� ��0��0��0�0��0�0�S�����0��0K�!0K��������0�����K����
����-��L� �M�0��2K�0��0��0�0c�1��0�"[�0�R3��0�0�0�	S��0�0��0��0��0�00���� ���K�0�� ��0��0��0�0��0�0�S�����0��0K�0K�����Y���0�����K����
����-��L��M��<��0�0K���� ���0�����K����
����-��L� �M� �$�0��2K�0��0�0��0�0��0�2����0��0��0�0���0��0�0�S�0�S����0�S�0��,0�%�  �0� ��0��0���0�0��0��0��0�S�
0��,0��2[�S�	
  �0�0��0��S�$ �0�0���0�0��0�$0� ��0�R�����0��,0�,0����K�����
����-��L� �M� �0��2K�0��0�0��0�2[�S�
 ���0��0��,0�� ���0��,0�,0�0�0��0�"�v�0��0��0�0��0��0�0�S�0�S����0�S�0��(0��\0��0����  �0�0��0��Q�
0��(0��0�0��0� �0�R����:0��(0�(0����K�����
����-��L�P�M�P�T�0�� 0�0��0�P0�S�0��0�0��0�0��0��P0�#1��0�0��0�0��0�0��(0��(0�!��T0� ��0��0��0��$0�q�!�2��0��0�0�G�0�� 0�0�S� 0�S���� 0�S���X�j�$�1��0���0�0C�; ��1��K�0��0����$0�; ��1��K�0��0��0��S��$�$0�; ��1��K�0��0��0��'C�; ��1��K�0��0�����$0�; ��1��K�0��0��0��	S��$�$0�; ��1��K�0��0��0��C�; ��1��K�0��0�����0��0��0�S�
��X�&�(0�!��T0���(0�!��T0�0�����$0�; ��1��K�0��0����$0�!��0�0b�3��0��0��$0�0��$0�$ �0�R���:(0�0��(0�( �0�R�y��:0��X0�X0����K�����
����-��L��M��0��0��0�0��0� �0�0��0��S�
0��S�����0�S�0��0��0�0�0����K����
����-��L��M�0��0�L"��0�� 0��@"��0��$0��4"��0��0��("��0��0��"��0��0��"��0��0��"��0��0���!��0��0���0������(���������!�������� ��������'��������!����!��1��80��3��80��!��1��<0��3��<0��x!��t1��0��1��0��d!��`1��0��1��0��P!��L1��80��2��80��<!��81��<0��2��<0��(!��$1��80��0��80��!��1��<0��0��<0��0�S��0��0����J� ��0�0��0�0�S���0�� �0��0�0�S��0�� �0��0�0�S�l�0�� �0��0�0�S�{�0�� �0��0�0�S���0�� �0��0�0�S���0�� �0��0�0����K������UUUTUUp��'
����-��L�00���0��0�S�
� ��8��0�� ��0��0������������
����-��L��M�0��0�q'��q7��D0��0��D0��\ ��X0��:��0��0��:��D�� �0��2�� 1��00��(!��0�23��0�S����0��8��0�S�����K�����
����-��L��M�0��
0K�0��0K�0��0K��0��(�� [�0��2��0�S����� ��
0[�<��1�� �0[�R�"
���
[� ��
0[�
=��1�� ��0[� ��
=��!��`��\0�� �� [�0��2��0�� 1��@0��(�� [�0��2��0�S����  ��
0[�<��1�� �0[�R�����K�����
����-��L��M��� �q���q'��0�!��0�0��0�1��q����q'��0��� �0�0�0��1���K����
����-��L�q7��0���0�2�������
����-��L��M�q7��0��0�S�
0��0��0��0�0����K����
����-��L��M�0��0K�0��0�0��0K�0��0K�0[�0K�F�0[�S�0��0K�0��0K��0[�S�&0��0K�/0��0K��20��0K�30��0K�0[�0K�����[�� ��0[�
=��1�� ��
=��!��0[�0��0K� [�0[�R�������� �0��2�� 1��|0��(!��0�23��0�S����0[�0K�	�T ��0[�<��1��0�S����0[�0��0K� [�0[�R�����0[�0��0K� [�0[�R�����K�����
����-��L��M��0��0�!��1��1��0��1��!��1��1��<��1��p��l1��!��0�4��0��1��T!��P1��1�� 0��1��@!��<1��1��0��1����@�$!�� 1��1��0��1��K��9�!��1��1��0��1��� ��Q0��1��� ���0��1��� ��G8��1��� ��F8��1��� ��5��1�� ��A8��1�� ��9��(1�� ��0��1�� ��0�� 1�� ��0��`1��| ��0��d1��p ��|0��h1��d ��l0��p1��X ��\0��t1��K���D ��0��81��K���q7��0��4�S���� ��0��1��0��1��0�����K���������
����-��L��M�0��0�!��|1��1��0��1��l!��h1��1��<��1��X��T1��!��0�4��0��1��<!��81��1�� 0��1��(!��$1��1��0��1��2����!��1��1��0��1��K����� ���0��1��0��1��� ��`0��1��� ���0��1��� ��9��(1�� ��G8��1�� ��F8��1�� ��5��1�� ��A8��1�� ��0��1��| ��0�� 1��p ��x0��`1��d ��d0��d1��X ��0��81�����q7��0��4�S����@���( ��$0��1��0��1��q'��$0��H0��0�����K���������?,
����-��L�
���� ��B���q'��q7��t0��:���0��t0��q'��q7��t0��:��t0��q7��t0��9�S����
q'��q7��t0��0��t0��q'��q7��t0��9��@0��t0����^�
���� ��!���
���� �����"���0���0��"��0��0��"��x0��0��"��p0��0��"��h0��0��"���0�� 0��"��T0��0��"��L0��0��"��0��0��
���� ������
���� ������0�������"D�"��)I!z"Dc
����-��L�< ���0��0��0 ��00��0��$ �� 0��`0��0��`0�� ��0��0��0��������@@�
����-��L� ��0��00��d���p ��0��40��d ��
0�� 0��X ��0��$0��L ��0��0��@ ��0��0��4 ��0��0��( ��0��0�� ��0��0�� ��0��00��0���������
����-��L�H ��0��$0��< ��0��00��0 ��0��0��$ ��0��0�� ��0��$0�� 0��$0��0��������
����-��L�h ��d0��$0�� 0��$0�������L ��H0��0��7��7��0��40��(0��0�S����  ��0��$0�� 0��$0������0��������
����-��L�d ��0��0��X ��0�� 0��L ��0��D0��@ ��0��$0��4 ��0��0��( ��0��0�� ��0��0�� ��0��0��0��������'
����-��L�@ ��<0��0��0��0��0 ��0��$0��$ ��0��0�� ��@0�� 0�� ��0��$0��������
����-��L�4 ��00��0��0��0��$ ��0�� 0�� ��0��$0�� ��0��0��������
����-��L�0��0��0��������
����-��L��<��u�80��0����}�,��o� 0��0�� ��0�� ��0��0��3�/�����'@)�'8)
����-��L��M���0��0��0�!��0�0��0����^�X��P�0�0��0�S�@��I�0�0��0� �0�R����:0�0�S���<��K�����'�'
����-��L��M���x��0�0��0��0� ��0�0��0����E�L��$�0�0��0�S�4���0�0��0� �0�R����:����K�����'�'�'
����-��L��M������0��0��0�0��0���\����0�0��0�S�D����0�0��0� �0�R����:0�0�S�
�����K����(�'�'
����-��L��M�������0��0��0�0��0K�0[�����\����0�0��0�S�D����0�0��0� �0�R����:0�0�S�
����K����(�'�'
����-��L��M�1��0� �0��0��0� ��0��0��0� ��0��0��0� ��0��0�����0�0�����l���0�0��0�����P���0�0��0�����4���0�0��0���������K����""33DD�'((
����-��L��M���0��0��0��0�0�0�!��0���0�,��0�8�� ��0�4�� ��0�0��0��0�0��0� �0�R����:0��0��0�!��0�0��0��0�0�� �0�R�
`��L��V�T��H��R�H��D�0�� 0��0�0��0� �0�R����:0�� 0� 0����K����,(@(((
����-��L�!��80��0��4 ��,0��0������@�������=����� ��������U����((���
����-��L� �M�(�0��$0�1��0�4��0�(0�S����	�0�� 0�� � 0�1��0��0� 0�8��#(��0� ��0� �� 0�#8��8��#8��0�� 0�0�� 0�  �0�R����:�l����0�� 0�� 0�!��0�0�� �� 0�R�
 ���4���� 0�0�� 0�  �0�R����:$0����K����D(`(x(
����-��L��M�����0��0�0�S��0��0��@0�S����
����0��S�
�0��0������������0��0����������?������������������0��S����0��0�	�0����h�����z���0�0��0�0�s����[��������������$���(��i�������'�(�(�(�(�())P�
����-��L���u�����)
����-��L�0��0�������<)
����-��L��M�� �0�� ���K����<)
����-��L��M��0�0��0��0�d0�� ��0� ��X0��R��0��0��<0�� ��<0��0��0�(0�� ��0� ��0�� ��0�0�0����K����<)��
����-��L��M� � �����0��0�0��0�0�0�� �0� ��0��0��0�0��0� � 0�R����:0����K����
����-��L��M��0��0����0�0��0� �0�R����:�K����
����-��L��M��������K����
����-��L� �M� �$�( �,0�(0�0�,0�0�,0�0��0�0��0��0�#��0��� �$0�0��0��0!�!�� 0�0��0��0 �0�0�0��0� �0�R����:0�0��0�0����K����
����-��L��M�(�,�<��0�0��$0�&�$����0��<��0�0�� 0��0�S��0� ��,0�0"�0��0�0��0�$0�!��(0�@��� ���0��0�� 0�0�� 0� 0�S�����$0�0��$0�$ �0�R����:�K����
����-��L� �M� �$�( �2K�(0�0�2[�1K�2[�0��1K�0��0��1[�#4��8��#��1[��� �$0�0��0��0!� �� 0�0��0��0 �1K�0�0��0� �0�R����:�1[�0��1K�1[����K����
����-��L��M�(�0��2K�<��0�0��$0�3�$���6�0��8��#8��4��1K�0�� 0�"�1[�8��C8��S���1[�0��8��#8��"[���0��0!�8��#8��1K��1[�0��1K�$0� ��(0�@��1[������0��8��#8��0�� 0�0�� 0� 0�S�����$0�0��$0�$ �0�R����:�K����
����-��L��M���0��0�0��0��0�� �0�0c�#��0�0��0�0�0��0�0�0��0�0� ��0�R�����0����K����
����-��L��M��������0�����K����
����-��L��M��(�������������������0�����K����)0)
����-��L��M�0��0K�,�������0[��������������0�����K����)0)
����-��L��M���!���0�����K����
����-��L��M��0��0�0K���� ��!���0�����K����QcDM36x�'
Jumping to entry point at .
 

printMem : printAddr : printAddr16 : 
Memory test error:  = test all mem with write
test all mem with read
error
 initialization failed!
 initialization passed!
TI UBL Version: 1.50
Booting Catalog Boot Loader
BootMode = UART
		Aborting...
0x

After I execute the following results:

ENDPOINT 0x1: Bulk OUT ===============================
bLength : 0x7 (7 bytes)
bDescriptorType : 0x5 Endpoint
bEndpointAddress : 0x1 OUT
bmAttributes : 0x2 Bulk
wMaxPacketSize : 0x40 (64 bytes)
bInterval : 0x0