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.

MSP430F6659: Changing BSL constants to use 16MHZ clock for USB

Part Number: MSP430F6659
Other Parts Discussed in Thread: MSP430F5659, MSP430F5658, MSP430F6658

Hi,

I still struggling with getting the USB BSL to work. I changed the constant from  0F 05 0F 03 11 02 17 01 to  0F 05 0F 03 11 04 17 01 in the firmware for the BSL code as described in a previous post. According to the users manual 02 11 is  the BSL code setting for 4MHZ and 16MHZ should require values of 04 11, if I read the users manual correct.

However it doesn't work. When I try to  run the BSL as is, I get a message from my PC that there is an unknown connection. I expect this because neither of the 4,8,12 or 24Mhz tries works and the device cannot enumerate. However when I change the 02 to an 04, I still get the same message saying an unknown device is connected as soon as I jumpt to location 1000.

Any ideas of what I'm doing wrong??

Thanks,

Jerry

  • After researching the web site more, I see the source code for the USB BSL function may be available for the MSP430F6659. Can someone point me to it? Also, I'm confused by the comment in the slau319 Table 36(below) that says " Factory USB BSL is RAM write only. Full BSL must first be loaded into device RAM and started to perform
    flash write. " ??
    Thanks

    Table 36.
    Devices MSP430F6659, MSP430F6658, MSP430F5659, MSP430F5658
    BSL Version
    00.07.86.36 (Rev A)
    00.08.88.38 (Rev B until May 2015)
    00.08.88.39 (Rev B and later)
    RAM Erased 0x2400 to 0x33FF
    Buffer Size for Core
    Commands 62 bytes
    Notable Information
    1. Device is programmed with the factory USB BSL.
    2. Factory USB BSL is RAM write only. Full BSL must first be loaded into device RAM and started to perform
    flash write. Only the commands RX PASSWORD, RX DATA BLOCK FAST, and SET PC are supported
    3. When starting this BSL from an application, the application should first de-enumerate itself, then delay
    (approximately 500 ms) before starting the BSL. This allows proper re-enumeration with the host.
    Known Bugs
  • Constant for 4MHz and 16MHz can not be the same. If there is no 16MHz value in datasheet you can use my calculator. Constant must be replaced at 2 places in binaries.

    My MSP430  USB BSL with included all commands and software  AES take 2KByte, it can fit to BSL flash. Factory preloaded TI MSP430 USB BSL with all commands can not fit to 2 KByte BSL flash, so instead it is used minimum command set to allow downloading version with full command set (over 2 KByte) to USB RAM.

    8321.MSP430USBCalc.zip

  • Thanks Zrno,
    Using your calculator, it gives values of 1,3,0002h for DivQ,DivM,USBPLLDIVB respectively for 16Mhz
    How do I relate that to the constants in the code image of 0F 05 0F 03 11 02 17 01 ?
    Where are the 2 places it needs to be changed?
    Also, is your version that fits in 2K protected area available?
    Thanks Again
  • My version is not open source. Your value (11 04) is OK. Search text binary file for 2 locations of the same constants array, and replace (for example 12MHz values to 16 MHz). Andreas Haas done, exactly the same process here (16 MHz) with different target device.

  • Zrno,

    Thanks- I read out from a 6659 device using FET tool and searched from 1000 to 17FF and the sequence of  0F 05 0F 03 11 02 17 01 only occurs once?

     


    === BSL Flash Memory Segments 0x1000 - 0x17FF ======


    0x1000: 05 3C 41 3C FF 3F FF 3F 00 08 88 39 B2 40 80 5A | .<A<.?.?...9.@.Z
    0x1010: 5C 01 32 C2 31 40 00 34 B0 13 56 17 FF 3F 06 00 | \.2.1@.4..V..?..
    0x1020: FF 09 01 A1 01 85 3F 95 3F 75 08 25 01 15 01 09 | ......?.?u.%....
    0x1030: 01 81 02 85 3F 95 3F 75 08 25 01 15 01 09 01 91 | ....?.?u.%......
    0x1040: 02 C0 09 02 29 00 01 01 00 80 32 09 04 00 00 02 | ....).....2.....
    0x1050: 03 00 00 00 09 21 01 01 00 01 22 24 00 07 05 81 | .....!...."$....
    0x1060: 03 40 00 01 07 05 01 03 40 00 01 FF 0F 05 0F 03 | .@......@.......
    0x1070: 11 02 17 01 12 01 00 02 00 00 00 08 47 20 00 02 | ............G ..
    0x1080: 09 01 00 00 00 01 3D 90 AD DE 04 20 3E 90 EF BE | ......=.... >...
    0x1090: 01 20 03 3C 0C 43 0D 43 10 01 3C 41 3D 41 10 01 | . .<.C.C..<A=A..
    0x10A0: 0C 43 B2 D0 03 80 82 01 B2 40 28 96 00 09 B2 D0 | .C.......@(.....
    0x10B0: 00 01 04 09 A2 B2 02 09 0A 20 B2 93 FE FF 08 20 | ......... .....
    0x10C0: 3B 40 2C 01 1B 83 FE 23 B2 B2 08 09 01 24 2C D3 | ;@,....#.....$,.
    0x10D0: B2 C0 00 01 04 09 82 43 00 09 10 01 F2 B0 0F 00 | .......C........
    0x10E0: 84 23 09 20 C2 93 84 23 03 34 5E 42 20 09 0B 3C | .#. ...#.4^B ..<
    0x10F0: 5E 42 22 09 08 3C C2 93 84 23 03 34 5E 42 C8 23 | ^B"..<...#.4^B.#
    0x1100: 02 3C 5E 42 88 23 7E F2 C2 4E 60 24 5E 42 60 24 | .<^B.#~..N`$^B`$
    0x1110: 42 19 4E 10 C2 4E 60 24 B0 13 E2 17 3C 40 60 24 | B.N..N`$....<@`$
    0x1120: 80 00 A6 17 F2 43 02 24 C2 43 10 24 C2 43 21 09 | .....C.$.C.$.C!.
    0x1130: 10 01 C2 93 82 23 11 20 5E 42 84 23 7E F0 0F 00 | .....#. ^B.#~...
    0x1140: 0A 24 5E 93 0E 20 C2 93 84 23 03 34 F2 D2 C8 23 | .$^.. ...#.4...#
    0x1150: 02 3C F2 D2 88 23 80 00 24 11 F2 D2 20 09 F2 D2 | .<...#..$... ...
    0x1160: 22 09 10 01 C2 93 80 23 04 34 1F 43 D2 D3 3C 09 | "......#.4.C..<.
    0x1170: 03 3C 0F 43 D2 C3 3C 09 5E 42 80 23 7E B0 60 00 | .<.C..<.^B.#~.`.
    0x1180: 8F 20 5D 42 81 23 4D 83 80 24 5D 83 6B 24 6D 83 | . ]B.#M..$].k$m.
    0x1190: 67 24 6D 83 45 24 5D 83 09 24 6D 83 52 24 5D 83 | g$m.E$]..$m.R$].
    0x11A0: 46 24 5D 83 33 24 5D 83 54 24 7A 3C 1F B3 78 28 | F$].3$].T$z<..x(
    0x11B0: 5E 42 83 23 5E 83 08 24 5E 83 0F 24 7E 80 1F 00 | ^B.#^..$^..$~...
    0x11C0: 1C 24 5E 83 13 24 6C 3C C2 43 23 09 F2 40 12 00 | .$^..$l<.C#..@..
    0x11D0: 02 24 3C 40 74 10 80 00 A6 17 C2 43 23 09 F2 40 | .$<@t......C#..@
    0x11E0: 29 00 02 24 3C 40 42 10 80 00 A6 17 F2 40 24 00 | )..$<@B......@$.
    0x11F0: 02 24 3C 40 1E 10 80 00 A6 17 C2 43 23 09 F2 40 | .$<@.......C#..@
    0x1200: 09 00 02 24 3C 40 54 10 80 00 A6 17 1F B3 48 28 | ...$<@T.......H(
    0x1210: B0 13 E2 17 C2 43 60 24 D2 42 01 24 61 24 3A 3C | .....C`$.B.$a$:<
    0x1220: F2 D2 22 09 D2 42 82 23 3F 09 80 00 24 11 F2 D2 | .."..B.#?...$...
    0x1230: 22 09 D2 42 82 23 00 24 B0 13 24 11 D2 43 12 24 | "..B.#.$..$..C.$
    0x1240: 10 01 C2 43 23 09 D2 43 02 24 3C 40 00 24 80 00 | ...C#..C.$<@.$..
    0x1250: A6 17 F2 D2 22 09 D2 42 84 23 01 24 80 00 24 11 | ...."..B.#.$..$.
    0x1260: 80 00 32 11 5E 42 84 23 7E F0 0F 00 0C 24 5E 93 | ..2.^B.#~....$^.
    0x1270: 1B 20 C2 93 84 23 04 34 F2 F0 D7 00 C8 23 03 3C | . ...#.4.....#.<
    0x1280: F2 F0 D7 00 88 23 80 00 24 11 7E 90 80 00 03 20 | .....#..$.~....
    0x1290: B0 13 E2 17 43 3F 7E 90 82 00 02 20 80 00 DC 10 | ....C?~.... ....
    0x12A0: F2 D2 20 09 F2 D2 22 09 10 01 21 83 32 C2 03 43 | .. ..."...!.2..C
    0x12B0: B2 40 02 1C 5A 24 B2 40 17 24 5C 24 C2 43 0E 24 | .@..Z$.@.$\$.C.$
    0x12C0: C2 43 11 24 B2 40 28 96 00 09 82 43 08 09 03 43 | .C.$.@(....C...C
    0x12D0: B2 40 40 18 08 09 B2 40 80 00 04 09 B0 13 D8 17 | .@@....@........
    0x12E0: C2 43 12 24 F2 40 A5 00 21 01 5E 42 20 01 3E F0 | .C.$.@..!.^B .>.
    0x12F0: 03 00 0F 4E 3F D0 00 44 82 4F 24 01 B0 13 C8 17 | ...N?..D.O$.....
    0x1300: 4F 4E 8F 10 82 DF 24 01 B0 13 C8 17 C2 4E 20 01 | ON....$......N .
    0x1310: 0F DE 3F D0 00 44 82 4F 26 01 92 B3 2C 01 FD 2B | ..?..D.O&...,..+
    0x1320: 92 C3 2C 01 1E 53 2E 92 E4 2B C2 43 21 01 F2 D0 | ..,..S...+.C!...
    0x1330: 0C 00 6A 02 B2 C0 00 01 6C 01 05 3C B2 F0 F4 FF | ..j.....l..<....
    0x1340: 6E 01 A2 C3 02 01 1E 42 6E 01 7E B0 09 00 F6 23 | n......Bn.~....#
    0x1350: B2 40 20 00 66 01 B2 40 53 02 68 01 B2 40 00 02 | .@ .f..@S.h..@..
    0x1360: 6A 01 B2 40 20 02 80 03 B1 40 2C 01 00 00 0C 3C | j..@ ....@,....<
    0x1370: B2 40 00 51 86 03 92 B3 86 03 FD 2B A2 D2 80 03 | .@.Q.......+....
    0x1380: 2F 41 3F 53 81 4F 00 00 81 93 00 00 F1 23 B2 C0 | /A?S.O.......#..
    0x1390: 00 40 86 03 1F 42 96 03 3F 90 96 08 03 28 3F 40 | .@...B..?....(?@
    0x13A0: 0F 05 0E 3C 3F 90 C5 04 03 28 3F 40 0F 03 08 3C | ...<?....(?@...<
    0x13B0: 3F 90 DD 02 03 2C 3F 40 17 01 02 3C 3F 40 11 02 | ?....,?@...<?@..
    0x13C0: 82 4F 14 24 82 43 60 01 B2 40 F3 10 64 01 B2 40 | .O.$.C`..@..d..@
    0x13D0: 40 00 62 01 B2 40 44 02 68 01 B2 B2 08 09 06 28 | @.b..@D.h......(
    0x13E0: B0 13 78 16 B0 13 8C 14 A2 D3 02 09 21 53 10 01 | ..x.........!S..
    0x13F0: 5E 42 3E 09 2E B2 02 28 80 00 BA 16 A2 B3 08 09 | ^B>....(........
    0x1400: 0C 28 B0 13 D8 17 B0 13 78 16 B0 13 8C 14 B2 F0 | .(......x.......
    0x1410: F9 FF 08 09 A2 D3 02 09 10 01 A2 B2 08 09 06 28 | ...............(
    0x1420: B0 13 D8 17 B2 40 04 A5 20 01 10 01 D2 B3 30 09 | .....@.. .....0.
    0x1430: 10 28 F2 D0 10 00 3C 09 C2 43 23 09 D2 93 10 24 | .(....<..C#....$
    0x1440: 03 20 B0 13 76 15 02 3C F2 D2 20 09 D2 C3 30 09 | . ..v..<.. ...0.
    0x1450: 10 01 4E 93 02 34 80 00 8C 14 3E B0 40 00 0B 28 | ..N..4....>.@..(
    0x1460: D2 43 11 24 F2 D0 10 00 3C 09 F2 C0 40 00 3E 09 | .C.$....<...@.>.
    0x1470: 82 43 10 09 10 01 3E B0 20 00 07 28 B0 13 78 16 | .C....>. ..(..x.
    0x1480: F2 F0 9F 00 3E 09 C2 43 11 24 10 01 C2 43 12 24 | ....>..C.$...C.$
    0x1490: C2 43 11 24 C2 43 00 24 C2 43 01 24 C2 43 3C 09 | .C.$.C.$.C.$.C<.
    0x14A0: F2 43 02 24 F2 43 04 24 C2 43 10 24 7E 40 80 00 | .C.$.C.$.C.$~@..
    0x14B0: C2 4E 21 09 C2 4E 23 09 F2 40 8C 00 20 09 F2 40 | .N!..N#..@.. ..@
    0x14C0: 8C 00 22 09 F2 40 03 00 2F 09 F2 40 03 00 2E 09 | .."..@../..@....
    0x14D0: C2 4E C8 23 F2 40 10 00 C9 23 C2 4E CA 23 C2 4E | .N.#.@...#.N.#.N
    0x14E0: CE 23 F2 40 40 00 CF 23 C2 4E 88 23 C2 43 89 23 | .#.@@..#.N.#.C.#
    0x14F0: C2 43 8A 23 F2 40 40 00 8F 23 F2 40 40 00 3C 09 | .C.#.@@..#.@@.<.
    0x1500: C2 43 3E 09 C2 CE 3E 09 10 01 1B 15 1F 42 5A 24 | .C>...>......BZ$
    0x1510: 5B 4F 03 00 0A 43 5E 4F 01 00 5C 4F 02 00 8C 10 | [O...C^O..\O....
    0x1520: 0C DE 0D 4B 6E 4F 7E 80 11 00 0C 24 7E 80 06 00 | ...KnO~....$~...
    0x1530: 12 24 6E 82 1A 20 2F 52 1E 42 5E 24 2E 82 B0 13 | .$n.. /R.B^$....
    0x1540: D4 15 17 3C 1F 53 0C 4F B0 13 26 16 4C 93 09 24 | ...<.S.O..&.L..$
    0x1550: 7C 40 05 00 0C 3C B2 90 A5 A5 56 24 04 20 B0 13 | |@...<....V$. ..
    0x1560: EC 17 4C 43 04 3C 6C 42 02 3C 7C 40 07 00 B0 13 | ..LC.<lB.<|@....
    0x1570: 82 17 1A 17 10 01 5E 42 02 24 7E 93 28 24 7E 90 | ......^B.$~.($~.
    0x1580: 09 00 03 28 7F 42 7E 82 09 3C 7E 92 02 2C 4F 4E | ...(B~..<~..,ON
    0x1590: 07 3C 7F 42 D2 93 0E 24 03 20 4E 43 5D 43 02 3C | .<B...$. NC]C.<
    0x15A0: 7E 43 4D 43 C2 4D 10 24 C2 4E 02 24 4F 93 0C 24 | ~CMC.M.$.N.$O..$
    0x15B0: 3E 40 78 23 4D 4F 1C 42 06 24 EE 4C 00 00 92 53 | >@x#MO.B.$.L...S
    0x15C0: 06 24 1E 53 7D 53 F7 23 C2 4F 21 09 10 01 C2 43 | .$.S}S.#.O!....C
    0x15D0: 10 24 10 01 5B 15 0A 4F 4B 43 08 4C 09 4D 08 5E | .$..[..OKC.L.M.^
    0x15E0: 09 63 0D 99 03 28 1C 20 0C 98 1A 2C 6E 4A B2 90 | .c...(. ...,nJ..
    0x15F0: A5 A5 56 24 0C 20 4B 43 1D 15 0F 16 CF 4E 00 00 | ..V$. KC.....N..
    0x1600: 1D 15 0F 16 66 4F 4E 96 03 24 5B 43 01 3C 6B 42 | ....fON..$[C.<kB
    0x1610: 1A 53 1C 53 0D 63 0D 99 E9 2B 02 20 0C 98 E6 2B | .S.S.c...+. ...+
    0x1620: 4C 4B 56 17 10 01 1B 15 0D 43 3A 40 E0 FF 0B 4C | LKV......C:@...L
    0x1630: 3B 50 20 00 7E 4A 7F 4C 0E EF 0D DE 0C 9B FA 23 | ;P .~JL.......#
    0x1640: 0D 93 05 20 B2 40 A5 A5 56 24 4C 43 13 3C 92 42 | ... .@..V$LC.<.B
    0x1650: 58 24 44 01 1F 42 58 24 3F 50 06 00 82 4F 40 01 | X$D..BX$?P...O@.
    0x1660: C2 43 E0 FF 1F 42 58 24 3F 50 10 00 82 4F 44 01 | .C...BX$?P...OD.
    0x1670: 7C 40 05 00 1A 17 10 01 21 83 81 43 00 00 B2 40 | |@......!..C...@
    0x1680: 28 96 00 09 92 42 14 24 12 09 B2 40 00 03 10 09 | (....B.$...@....
    0x1690: 82 43 14 09 3F 40 4C 01 3F 53 FE 2F 2F 41 0E 4F | .C..?@L.?S.//A.O
    0x16A0: 1E 53 81 4E 00 00 3F 90 E9 03 05 2C 82 93 14 09 | .S.N..?....,....
    0x16B0: EF 23 92 D3 02 09 21 53 10 01 F2 D0 10 00 3C 09 | .#....!S......<.
    0x16C0: F2 40 80 00 23 09 03 3C F2 F0 FA 00 3E 09 C2 43 | .@..#..<....>..C
    0x16D0: 10 24 82 43 60 24 B0 13 64 11 34 40 80 00 82 C4 | .$.C`$..d.4@....
    0x16E0: 20 09 82 C4 22 09 E2 C2 3E 09 82 D4 20 09 82 D4 | ..."...>... ...
    0x16F0: 22 09 D2 B3 3E 09 E8 2F 10 01 C2 43 8A 23 B0 13 | "...>../...C.#..
    0x1700: F0 13 D2 93 12 24 FB 23 C2 93 11 24 F8 23 C2 93 | .....$.#...$.#..
    0x1710: 8A 23 F5 37 F2 B0 7F 00 8A 23 F1 27 5F 42 01 1C | .#.7....#.'_B..
    0x1720: 82 4F 5E 24 5C 43 10 01 7E 40 3F 00 C2 93 CA 23 | .O^$\C..~@?....#
    0x1730: 0F 34 C2 4E 80 1C 3F 40 81 1C 0D 4C 0D 5E FF 4C | .4.N..?@...L.^.L
    0x1740: 00 00 1F 53 0C 9D FB 23 F2 40 40 00 CA 23 01 3C | ...S...#.@@..#.<
    0x1750: 4E 43 4C 4E 10 01 0F 41 3F 50 00 DC 8F 43 FE 23 | NCLN...A?P...C.#
    0x1760: 2F 83 FC 23 82 43 56 24 B2 40 00 A5 58 24 B0 13 | /..#.CV$.@..X$..
    0x1770: AA 12 B0 13 FA 16 5C B3 FC 2B B0 13 0A 15 F9 3F | ......\..+.....?
    0x1780: 03 43 1F 42 5C 24 FF 40 3B 00 00 00 1F 42 5C 24 | .C.B\$.@;....B\$
    0x1790: CF 4C 01 00 E2 43 16 24 3C 40 16 24 B0 13 28 17 | .L...C.$<@.$..(.
    0x17A0: 4C 93 FA 27 10 01 82 4C 06 24 1E 42 86 23 5F 42 | L..'...L.$.B.#_B
    0x17B0: 02 24 0F 9E 04 28 C2 4E 02 24 4E 43 01 3C 5E 43 | .$...(.N.$NC.<^C
    0x17C0: C2 4E 0E 24 80 00 76 15 B2 B0 10 00 2C 01 FC 2B | .N.$..v.....,..+
    0x17D0: B2 C0 10 00 2C 01 10 01 3F 40 DF 2E 3F 53 FE 2F | ....,...?@..?S./
    0x17E0: 10 01 C2 43 23 09 E2 43 02 24 10 01 1D 15 10 01 | ...C#..C.$......
    0x17F0: FF FF A0 10 A5 3C 5A C3 FF FF 00 10 FF FF FF FF | .....<Z.........

    === Information Memory Segments 0x1800 - 0x19FF ======

    0x1800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x1810: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x1820: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x1830: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x1840: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x1850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x1860: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x1870: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x1880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x1890: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x18A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x18B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x18C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x18D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x18E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x18F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    0x1900: ------- b l a n k ----(all 0xFF)-------


    ========== Main Memory Segments 0x8000 - 0x87FFF ======


    0x8000: 40 18 A2 93 5E 06 08 20 40 18 E2 B3 5D 06 FC 27 | @...^.. @...]..'
    0x8010: 40 18 D2 42 4C 06 CE 05 00 13 81 00 00 64 B1 13 | @..BL........d..
    0x8020: 96 00 0C 43 B1 13 00 00 1C 43 B1 13 90 00 32 D0 | ...C.....C....2.
    0x8030: 10 00 FD 3F 03 43 FF FF FF FF FF FF FF FF FF FF | ...?.C..........
    0x8040: ------- b l a n k ----(all 0xFF)-------


    0xFFC0: FF FF FF FF FF FF 2E 80 00 80 2E 80 2E 80 2E 80 | ................
    0xFFD0: 2E 80 2E 80 2E 80 2E 80 2E 80 2E 80 2E 80 2E 80 | ................
    0xFFE0: 2E 80 2E 80 2E 80 2E 80 2E 80 2E 80 2E 80 2E 80 | ................
    0xFFF0: 2E 80 2E 80 2E 80 2E 80 2E 80 2E 80 2E 80 1A 80 | ................

    ===== Extended Main Memory Block #1 (0x10000-0x1FFFF) =====

    0x10000:40 18 B2 40 80 5A 5C 01 03 3C 40 18 92 C3 9C 04 | @..@.Z\..<@.....
    0x10010:40 18 92 B3 9C 04 F9 23 40 18 92 C3 6C 01 40 18 | @......#@...l.@.
    0x10020:B2 D0 0C 00 6C 01 40 18 B2 F0 F4 FF 6E 01 40 18 | ....l.@.....n.@.
    0x10030:A2 C3 02 01 40 18 A2 B3 02 01 F5 23 40 18 F2 D0 | ....@......#@...
    0x10040:0C 00 8A 02 40 18 F2 D0 0C 00 84 02 40 18 C2 43 | ....@.......@..C
    0x10050:82 02 40 18 D2 D3 40 06 40 18 F2 D0 40 00 40 06 | ..@...@.@...@.@.
    0x10060:40 18 F2 40 03 00 46 06 40 18 C2 43 47 06 40 18 | @..@..F.@..CG.@.
    0x10070:F2 40 06 00 48 06 40 18 D2 C3 40 06 40 18 D2 D3 | .@..H.@...@.@...
    0x10080:5C 06 03 43 32 D0 D8 00 03 43 03 43 0C 43 10 01 | \..C2....C.C.C..
    0x10090:03 43 FF 3F 03 43 1C 43 10 01 FF FF FF FF FF FF | .C.?.C.C........
    0x100A0: ------- b l a n k ----(all 0xFF)-------


    ===== Extended Main Memory Block #2 (0x20000-0x2FFFF) =====

    0x20000: ------- b l a n k ----(all 0xFF)-------


    ===== Extended Main Memory Block #3 (0x30000-0x3FFFF) =====

    0x30000: ------- b l a n k ----(all 0xFF)-------


    ===== Extended Main Memory Block #4 (0x40000-0x4FFFF) =====

    0x40000: ------- b l a n k ----(all 0xFF)-------


    ===== Extended Main Memory Block #5 (0x50000-0x5FFFF) =====

    0x50000: ------- b l a n k ----(all 0xFF)-------


    ===== Extended Main Memory Block #6 (0x60000-0x6FFFF) =====

    0x60000: ------- b l a n k ----(all 0xFF)-------


    ===== Extended Main Memory Block #7 (0x70000-0x7FFFF) =====

    0x70000: ------- b l a n k ----(all 0xFF)-------


    ===== Extended Main Memory Block #8 (0x80000-0x87FFF) =====

    0x80000: ------- b l a n k ----(all 0xFF)-------

  • Here is binary from my MSP430F5659 device with marked constants...

    @01000
    09 3C 45 3C FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F
    00 07 86 36 31 40 00 34 B0 13 8A 17 0C 93 00 24
    B0 13 3A 17 FF 3F 06 00 FF 09 01 A1 01 85 3F 95
    3F 75 08 25 01 15 01 09 01 81 02 85 3F 95 3F 75
    08 25 01 15 01 09 01 91 02 C0 09 02 29 00 01 01
    00 80 32 09 04 00 00 02 03 00 00 00 09 21 01 01
    00 01 22 24 00 07 05 81 03 40 00 01 07 05 01 03
    40 00 01 FF 0F 05 0F 03 11 02 17 01 12 01 00 02
    00 00 00 08 47 20 00 02 05 01 00 00 00 01 3D 90
    AD DE 04 20 3E 90 EF BE 01 20 03 3C 0C 43 0D 43
    10 01 3C 41 3D 41 10 01 0C 43 B2 D0 03 80 82 01
    B2 40 28 96 00 09 B2 D0 00 01 04 09 A2 B2 02 09
    0A 20 B2 93 FE FF 08 20 3B 40 2C 01 1B 83 FE 23
    B2 B2 08 09 01 24 2C D3 B2 C0 00 01 04 09 82 43
    00 09 10 01 F2 B0 0F 00 84 23 09 20 C2 93 84 23
    03 34 5E 42 20 09 0B 3C 5E 42 22 09 08 3C C2 93
    84 23 03 34 5E 42 C8 23 02 3C 5E 42 88 23 7E F2
    C2 4E 60 24 5E 42 60 24 42 19 4E 10 C2 4E 60 24
    B0 13 DA 17 3C 40 60 24 80 00 AC 17 F2 43 02 24
    C2 43 10 24 C2 43 21 09 10 01 C2 93 82 23 11 20
    5E 42 84 23 7E F0 0F 00 0A 24 5E 93 0E 20 C2 93
    84 23 03 34 F2 D2 C8 23 02 3C F2 D2 88 23 80 00
    2C 11 F2 D2 20 09 F2 D2 22 09 10 01 C2 93 80 23
    04 34 1F 43 D2 D3 3C 09 03 3C 0F 43 D2 C3 3C 09
    5E 42 80 23 7E B0 60 00 8F 20 5D 42 81 23 4D 83
    80 24 5D 83 6B 24 6D 83 67 24 6D 83 45 24 5D 83
    09 24 6D 83 52 24 5D 83 46 24 5D 83 33 24 5D 83
    54 24 7A 3C 1F B3 78 28 5E 42 83 23 5E 83 08 24
    5E 83 0F 24 7E 80 1F 00 1C 24 5E 83 13 24 6C 3C
    C2 43 23 09 F2 40 12 00 02 24 3C 40 7C 10 80 00
    AC 17 C2 43 23 09 F2 40 29 00 02 24 3C 40 4A 10
    80 00 AC 17 F2 40 24 00 02 24 3C 40 26 10 80 00
    AC 17 C2 43 23 09 F2 40 09 00 02 24 3C 40 5C 10
    80 00 AC 17 1F B3 48 28 B0 13 DA 17 C2 43 60 24
    D2 42 01 24 61 24 3A 3C F2 D2 22 09 D2 42 82 23
    3F 09 80 00 2C 11 F2 D2 22 09 D2 42 82 23 00 24
    B0 13 2C 11 D2 43 12 24 10 01 C2 43 23 09 D2 43
    02 24 3C 40 00 24 80 00 AC 17 F2 D2 22 09 D2 42
    84 23 01 24 80 00 2C 11 80 00 3A 11 5E 42 84 23
    7E F0 0F 00 0C 24 5E 93 1B 20 C2 93 84 23 04 34
    F2 F0 D7 00 C8 23 03 3C F2 F0 D7 00 88 23 80 00
    2C 11 7E 90 80 00 03 20 B0 13 DA 17 43 3F 7E 90
    82 00 02 20 80 00 E4 10 F2 D2 20 09 F2 D2 22 09
    10 01 21 83 32 C2 03 43 B2 40 02 1C 5A 24 B2 40
    17 24 5C 24 B2 40 03 A5 20 01 C2 43 21 01 F2 D0
    0C 00 6A 02 B2 C0 00 01 6C 01 05 3C B2 F0 F4 FF
    6E 01 A2 C3 02 01 1E 42 6E 01 7E B0 09 00 F6 23
    B2 40 20 00 66 01 B2 40 53 02 68 01 B2 40 00 02
    6A 01 B2 40 20 02 80 03 B1 40 2C 01 00 00 0A 3C
    B2 40 00 51 86 03 92 B3 86 03 FD 2B A2 D2 80 03
    B1 53 00 00 81 93 00 00 F3 23 B2 C0 00 40 86 03
    B2 90 96 08 96 03 03 28 3F 40 0F 05 10 3C B2 90
    C5 04 96 03 03 28 3F 40 0F 03 09 3C B2 90 DD 02
    96 03 03 2C 3F 40 17 01 02 3C 3F 40 11 02 82 4F
    14 24 82 43 60 01 B2 40 F3 10 64 01 B2 40 40 00
    62 01 B2 40 44 02 68 01 C2 43 0E 24 C2 43 11 24
    B2 40 28 96 00 09 82 43 08 09 03 43 B2 40 40 18
    08 09 B2 40 80 00 04 09 B0 13 CE 17 C2 43 12 24
    B2 B2 08 09 06 28 B0 13 74 16 B0 13 80 14 A2 D3
    02 09 21 53 10 01 E2 B2 3E 09 17 28 F2 D0 10 00
    3C 09 F2 40 80 00 23 09 C2 43 10 24 C2 43 60 24
    C2 43 61 24 B0 13 6C 11 E2 C2 3E 09 D2 B3 3E 09
    4E 28 F2 F0 FA 00 3E 09 EF 3F A2 B3 08 09 0C 28
    B0 13 CE 17 B0 13 74 16 B0 13 80 14 B2 F0 F9 FF
    08 09 A2 D3 02 09 10 01 A2 B2 08 09 06 28 B0 13
    CE 17 B2 40 04 A5 20 01 10 01 D2 B3 30 09 10 28
    F2 D0 10 00 3C 09 C2 43 23 09 D2 93 10 24 03 20
    B0 13 6A 15 02 3C F2 D2 20 09 D2 C3 30 09 10 01
    C2 93 3E 09 02 34 80 00 80 14 F2 B0 40 00 3E 09
    0B 28 D2 43 11 24 F2 D0 10 00 3C 09 F2 C0 40 00
    3E 09 82 43 10 09 10 01 F2 B0 20 00 3E 09 07 28
    B0 13 74 16 F2 F0 9F 00 3E 09 C2 43 11 24 10 01
    C2 43 12 24 C2 43 11 24 C2 43 00 24 C2 43 01 24
    C2 43 3C 09 F2 43 02 24 F2 43 04 24 C2 43 10 24
    7E 40 80 00 C2 4E 21 09 C2 4E 23 09 F2 40 8C 00
    20 09 F2 40 8C 00 22 09 F2 40 03 00 2F 09 F2 40
    03 00 2E 09 C2 4E C8 23 F2 40 10 00 C9 23 C2 4E
    CA 23 C2 4E CE 23 F2 40 40 00 CF 23 C2 4E 88 23
    C2 43 89 23 C2 43 8A 23 F2 40 40 00 8F 23 F2 40
    40 00 3C 09 C2 43 3E 09 C2 CE 3E 09 10 01 1B 15
    1F 42 5A 24 5B 4F 03 00 0A 43 5E 4F 01 00 5C 4F
    02 00 8C 10 0C DE 0D 4B 6E 4F 7E 80 11 00 0C 24
    7E 80 06 00 12 24 6E 82 1A 20 2F 52 1E 42 5E 24
    2E 82 B0 13 22 16 17 3C 1F 53 0C 4F B0 13 C8 15
    4C 93 09 24 7C 40 05 00 0C 3C B2 90 A5 A5 56 24
    04 20 B0 13 E4 17 4C 43 04 3C 6C 42 02 3C 7C 40
    07 00 B0 13 66 17 1A 17 10 01 5E 42 02 24 7E 93
    28 24 7E 90 09 00 03 28 7F 42 7E 82 09 3C 7E 92
    02 2C 4F 4E 07 3C 7F 42 D2 93 0E 24 03 20 4E 43
    5D 43 02 3C 7E 43 4D 43 C2 4D 10 24 C2 4E 02 24
    4F 93 0C 24 3E 40 78 23 4D 4F 1C 42 06 24 EE 4C
    00 00 92 53 06 24 1E 53 7D 53 F7 23 C2 4F 21 09
    10 01 C2 43 10 24 10 01 1B 15 0D 43 3A 40 E0 FF
    0B 4C 3B 50 20 00 7E 4A 7F 4C 0E EF 0D DE 7E 4A
    7F 4C 0E EF 0D DE 0C 9B F6 23 0D 93 05 20 B2 40
    A5 A5 56 24 4C 43 13 3C 92 42 58 24 44 01 1F 42
    58 24 3F 50 06 00 82 4F 40 01 C2 43 E0 FF 1F 42
    58 24 3F 50 10 00 82 4F 44 01 7C 40 05 00 1A 17
    10 01 5B 15 0A 4F 4B 43 08 4C 09 4D 08 5E 09 63
    0D 99 03 28 1C 20 0C 98 1A 2C 6E 4A B2 90 A5 A5
    56 24 0C 20 4B 43 1D 15 0F 16 CF 4E 00 00 1D 15
    0F 16 66 4F 4E 96 03 24 5B 43 01 3C 6B 42 1A 53
    1C 53 0D 63 0D 99 E9 2B 02 20 0C 98 E6 2B 4C 4B
    56 17 10 01 21 82 81 43 02 00 B2 40 28 96 00 09
    92 42 14 24 12 09 B2 40 00 03 10 09 82 43 14 09
    81 43 00 00 02 3C 91 53 00 00 B1 90 64 00 00 00
    FA 2B 1F 41 02 00 0E 4F 1E 53 81 4E 02 00 3F 90
    E9 03 05 2C 82 93 14 09 E9 23 92 D3 02 09 21 52
    10 01 82 43 5E 24 C2 43 8A 23 B0 13 B6 13 D2 93
    12 24 0D 20 C2 93 11 24 0A 20 4F 43 C2 93 8A 23
    04 34 5F 42 8A 23 7F F0 7F 00 82 4F 5E 24 82 93
    5E 24 EB 27 5F 42 01 1C 82 4F 5E 24 5C 43 10 01
    7E 40 3F 00 C2 93 CA 23 15 34 C2 4E 80 1C 3F 40
    81 1C 0D 4C 0D 5E FF 4C 00 00 1F 53 FF 4C 00 00
    1F 53 FF 4C 00 00 1F 53 0C 9D F5 23 F2 40 40 00
    CA 23 01 3C 4E 43 4C 4E 10 01 82 43 56 24 B2 40
    00 A5 58 24 F2 40 A5 00 21 01 92 C3 30 01 C2 43
    21 01 B0 13 B2 12 B0 13 C2 16 5C B3 FC 2B B0 13
    FE 14 F9 3F 03 43 1F 42 5C 24 FF 40 3B 00 00 00
    1F 42 5C 24 CF 4C 01 00 E2 43 16 24 3C 40 16 24
    B0 13 00 17 4C 93 FA 27 10 01 B2 40 80 5A 5C 01
    32 C2 03 43 3F 40 00 24 04 3C BF 40 4C 57 00 00
    2F 53 0E 41 0F 91 F9 2B 0C 43 10 01 82 4C 06 24
    1E 42 86 23 5F 42 02 24 0F 9E 04 28 C2 4E 02 24
    4E 43 01 3C 5E 43 C2 4E 0E 24 80 00 6A 15 03 43
    3F 40 DE 2E 3F 53 FE 2F 10 01 C2 43 23 09 E2 43
    02 24 10 01 1D 15 10 01 FF FF FF FF FF FF FF FF
    FF FF A8 10 A5 3C 5A C3 FF FF 00 10 FF FF FF FF
    q


    8688.BSL5659.zip

  • Thanks,

    I dont know why I have a different code in the BSL section. I'm using the 6659 in my prototypes, but I dont think that matters because the only difference is the LCD which shouldnt affect the BSL code?. I'll load the text file you sent change the frequency constants and let you know what happens.

  • Thanks,

    I dont know why I have a different code in the BSL section. I'm using the 6659 in my prototypes, but I dont think that matters because the only difference is the LCD which shouldnt affect the BSL code?. I'll load the text file you sent change the frequency constants and let you know what happens.

    I just tried it, I changed 11 02 to 11 04 in both places. When I jump to 1000, my Windows-10 PC says unrecognized. I know my hardware works because when I run an example code from Mware of an HID device it connects properly and VID and PID are correct. 

    Does it matter which of the 4,8,12 or 24MHz settings I change to 11 04? Is there source for the txt code file you sent me? I'm thinking the USBPLLDIVB register is not being set to 2 as I think would be required.?


     

  • The register values are specified in table 42-2 of the User's Guide:
    050F = 101··001111 = 24 MHz
    030F = 011··001111 = 12 MHz
    0211 = 010··010001 = 8 MHz
    0117 = 001··010111 = 4 MHz

    16 MHz = 100··010001 = 0411

    The BSL counts clock cycles with a timer to select which of the four values to use, so if the new frequency is not near the original one, that entry might not be used. To force the BSL to always use the correct PLL value, replace all four entries:
    11 04 11 04 11 04 11 04

    Use the correct BSL for your chip; it should work when replacing the sequence at the one place where it occurs.
  • I changed all four words in the ..88.39.txt that was in my original chip. It didn't work, but then I tried using the version Zrno pointed me to which had the 4 words in 2 places and that worked. I was able to jump to it and reload a new application using the TI GUI program.

    Thanks to both of you!!!  I especially appreciate your responding to me many times over the weekend!! GREAT SERVICE

    Jerry

    UPDATE: I was able to get the other version to work(..88.39.txt). There is another set of these constants further down in the code, that I needed to change also.

**Attention** This is a public forum