St link usb communication error

Русские Блоги Keil:ST-LINK USB communication error error:flash download failed — target dll has been cancelled (1) Проблема с портом USB: источник питания USB неисправен, или есть проблема с драйвером USB или драйвером ST-Link. Мое решение — изменить порт USB на другой порт USB для отладки. Затем удалите драйвер ключа STMicroelectronics STLink. Система ST-Link автоматически […]

Содержание

  1. Русские Блоги
  2. Keil:ST-LINK USB communication error
  3. Русские Блоги
  4. Keil:ST-LINK USB communication error
  5. St link usb communication error
  6. QUESTION
  7. ANSWER
  8. CHECK THE WINDOWS DEVICE MANAGER
  9. CHECK THE USB SETTINGS
  10. CHECK THE ST-LINK DRIVERS AND FIRMWARE
  11. CHECK THE BOARD SETTINGS
  12. FOR SYSTEMS RUNNING OLDER VERSIONS OF MDK
  13. MORE INFORMATION
  14. SEE ALSO
  15. ATTACHED FILES
  16. FORUM THREADS
  17. st link usb communication error
  18. 1 Answer
  19. Как программировать платы на основе STM32 с помощью утилиты ST-Link?
  20. Генерация Hex-файлов
  21. Перепрошивка с использованием графического интерфейса ST-Link Utility
  22. Использование Flash make (ST-Link CLI)

Русские Блоги

Keil:ST-LINK USB communication error

error:flash download failed — target dll has been cancelled

(1) Проблема с портом USB: источник питания USB неисправен, или есть проблема с драйвером USB или драйвером ST-Link. Мое решение — изменить порт USB на другой порт USB для отладки. Затем удалите драйвер ключа STMicroelectronics STLink. Система ST-Link автоматически переустановит драйвер ST-Link_V2_USBdriver.exe после его повторного подключения или отключения. Сделав это несколько раз, я снова перезагрузил компьютер. Наконец откройте его и обнаружите, что его можно смоделировать.

(2) Одна из них — это проблема конфигурации,

Во-вторых, драйвер ST-компоновщика не был успешно установлен или возникла проблема с установкой, и его необходимо установить несколько раз, чтобы его можно было нормально распознать.

3. Может потребоваться перезагрузить компьютер.

(3)

У меня проблема с этим шагом, модель чипа должна быть выбрана правильно

Конфигурация правильная, SWDIO отобразит конкретный, иначе он не будет найден

Или затем снова прошейте прошивку stlink и прошейте ее до версии V2J15S4, и ее можно будет использовать.

помнить! ! ! ! ! Если ST-LinkLinkLink можно использовать как обычно, не выполняйте обновление легко.

Источник

Русские Блоги

Keil:ST-LINK USB communication error

error:flash download failed — target dll has been cancelled

(1) Проблема с портом USB: источник питания USB неисправен, или есть проблема с драйвером USB или драйвером ST-Link. Мое решение — изменить порт USB на другой порт USB для отладки. Затем удалите драйвер ключа STMicroelectronics STLink. Система ST-Link автоматически переустановит драйвер ST-Link_V2_USBdriver.exe после его повторного подключения или отключения. Сделав это несколько раз, я снова перезагрузил компьютер. Наконец откройте его и обнаружите, что его можно смоделировать.

(2) Одна из них — это проблема конфигурации,

Во-вторых, драйвер ST-компоновщика не был успешно установлен или возникла проблема с установкой, и его необходимо установить несколько раз, чтобы его можно было нормально распознать.

3. Может потребоваться перезагрузить компьютер.

(3)

У меня проблема с этим шагом, модель чипа должна быть выбрана правильно

Конфигурация правильная, SWDIO отобразит конкретный, иначе он не будет найден

Или затем снова прошейте прошивку stlink и прошейте ее до версии V2J15S4, и ее можно будет использовать.

помнить! ! ! ! ! Если ST-LinkLinkLink можно использовать как обычно, не выполняйте обновление легко.

Источник

St link usb communication error

I have a custom PCB (based heavily on the Nucleo board) using the STM32F767II. I am using Atollic TrueStudio on Windows 10 and programming it through the ST-LINK on the Nucleo board (header CN6). I have set all the jumpers and connected my PCB to the Nucleo.

I was testing some minor firmware changes and re-programming the board three or four times successfully before I suddenly just got the error «USB communication error». I have double-checked that my wiring is the same as on the previous successful times. I get this error in Atollic TrueStudio and when I try to connect to the board from ST-LINK Utility.

To my knowledge I followed the same procedure for programming the board on all my attempts, so I am confused as to why it suddenly fails now. Are there debug settings or configurations in Atollic TrueStudio that could prevent me from being able to reprogram a chip? Is it possible to recover the chip?

I am also powering my board separately from the programming interface, so would it matter if I connect the Nucleo to the board before I power the board? Could I damage it by doing that?

Information in this knowledgebase article applies to:

  • MDK-ARM Version 5
  • ST-LINK with firmware

QUESTION

Using a ST-Link with MDK, when starting a debug session or a flash downloading, µVision issues the following error:

What’s the reason for this error and how do you troubleshoot it?

ANSWER

If you are using a recent version of MDK.

download, install, and open the ST-Link Utility. Configure it and program the device.

If unsuccessful, this test shows that either the board, the jumper configuration, the windows drivers, the board firmware or the USB interface has an issue.

CHECK THE WINDOWS DEVICE MANAGER

Windows device manager should show under the Universal Serial Bus devices section a STM32 STLINK.

There is a low level issue if, this entry is missing, there is a «caution» symbol on the USB icon, or there is an entry under the Universal Serial Bus controllers section labeled USB Composite device with a «caution» icon.

CHECK THE USB SETTINGS

  • Verify that only one application is connected to the ST-Link at a time (ex. if both µVision and the ST-Link Utility try to use the ST-Link at the same time, this can cause connection issues).
  • Try using another USB port on the PC. If using a Hub, try connecting directly to the PC.
  • Try using another USB cable.
  • Make sure that the Microsoft Windows Device Manager recognizes the ST-Link. If it is having issues, check the power settings as described in their help article Error: “USB Device not recognized” when you try to access a USB external hard drive.

CHECK THE ST-LINK DRIVERS AND FIRMWARE

  • Upgrade to the latest version of MDK. New releases contain a more recent version of the ST-Link drivers. Improvements and fixes are added over time to stabilize debug connections.
  • In other cases, upgrading the ST-Link firmware is the correct approach. On some ST-Link versions, multiple drivers are loaded, from the debug unit itself, when the ST-Link is first connected to a PC. Try the latest firmware and drivers from ST’s website, instead.
  • Uninstall and reinstall the ST Link driver on the PC, using Windows Device Manager. See the steps in the article µVision DEBUGGER: ST-Link Does Not Connect to STM32F4 Discovery Board

CHECK THE BOARD SETTINGS

  • If this is a board provided by STMicroelectronics, check the Boot jumpers on the board to make sure you are booting to the correct memory. Pull the BOOT (sometimes labeled BOOT0) pin high by jumpering it to the VDD pin, and restart the board. At reset, since BOOT is pulled high with 3V the device boots up in a different memory location. Perform a flash full chip flash erase.
  • If there is also the error message «Internal command error» a previous program running on the board is locking up.

In the Keil IDE, under Project-> Options for Target -> on the «Debug» tab, on the top right of the dialog, next the «USE: ST-Link Debugger, click the «Settings» button — the «Cortex-M Target Driver Setup» dialog appears. Try using «connect under reset», close the dialogs and then perform a flash erase.

FOR SYSTEMS RUNNING OLDER VERSIONS OF MDK

These are items that have already been fixed in modern versions of MDK.

If there is also the error message «Internal DLL Error» follow the steps in µVision DEBUGGER: Internal DLL Error Debugging with ST-Link Driver.

For MDK 5.11a or older.

There was an incompatibility between ST-Link Firmware versionV2.J21.S0 and the µVision ST-Link Debugger driver(ST-LINKIII-KEIL_SWO.dll) version 2.0.6.0 which is part of MDK-ARM 5.11a. There are two ways to solve this problem:

  1. Update the µVision ST-Link Debug driver (recommended way):
    Download the ZIP file attached to this knowledgebase article and unzip it to the folder
    [MDK-ARM install path]ARMST-LINK
  2. Downgrade the firmware of the ST-LINK debug adapter:
    Start the tool [MDK install path]ARMSTLINKST-LinkUpgrade.exe to downgrade the ST-LINK firmware to V2.J20.S0
  • MDK V4.62a and older.
    If there is also the error message «Internal Command Error» follow the steps in µVision DEBUGGER: ST-Link Does Not Connect to STM32F4 Discovery Board.
  • For MDK 4.14 or older.
    If there is also the error message «memory verification error» follow the steps in µVision DEBUGGER: DEBUGGING WITH ST-LINK THROUGH A USB HUB.

    MORE INFORMATION

    SEE ALSO

    • Microsoft help article Error: “USB Device not recognized” when you try to access a USB external hard drive.
    • µVision DEBUGGER: Not a genuine ST Device
    • Refer to µVision DEBUGGER: STM32F3-Discovery: Modifying the Board for SWO Trace

    ATTACHED FILES

    Request the files attached to this knowledgebase article.

    FORUM THREADS

    The following Discussion Forum threads may provide information related to this topic.

    All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.

    1 year, 6 months ago.

    st link usb communication error

    I am using the swd pins(cn6) of the nucleo f767zi . I am using the st link v2 dongle for programming the board ,I have download the drivers of the dongle from the link on the mbed platform . In device manager under the usb it is showing the st link but in the port section it is not showing that it is connected to com ports. In st link utility platform it is showing the that st link usb communication error and target not connected I also tried connecting the NRST pin from swd connector to gnd to remove it from its gpio function but the full chip errase is not taking place .

    1 Answer

    Wim Huiskamp
    1 year, 6 months ago.

    Not sure I understand what you are trying to do. Are you using an external ST-Link dongle/programmer instead of the nucleo onboard ST-Link programmer? In case you want to use an external programmer and connect it to CN6 make sure that the onboard ST-Link is disabled (remove the 2 jumpers next to CN6). Also note that the F767 com port to the host PC is not connected through CN6. External ST-Link dongles may not support that virtual com port over USB feature at all and if they do, you need separate wiring between the F767 and the dongle and you also need to disable the nucleo onboard ST-Link com port connection by changing some solderbridges.

    can u tell me how to remove solder joint sb111

    It is not clear to me what you are trying to do. Please explain and/or show a schematic setup. External programmers should best be connected to CN11 (SWCLK CN11 pin 15, SWDIO CN11 pin 13 and NRST CN11 pin 14, also connect GND and probably 3V3 target voltage). You must have seen the manual for the F767 nucleo. That should give you details on the function and location of all solder joints and the pins on the headers. Figure 5 in the manual shows where SB111 is (bottom side of the ST-Link part, near the cut line area).

    Источник

    Как программировать платы на основе STM32 с помощью утилиты ST-Link?

    ST-Link Utility также может быть использован для программирования пользовательского оборудования с использованием , например ST-Link / V2 программиста .

    Генерация Hex-файлов

    ST-Link Utility может программировать файлы .hex и .bin. Они автоматически генерируются Make-файлами ARM gcc, поставляемыми с проектом TouchGFX. IAR и Keil IDE настроены для преобразования выходных файлов .elf в файл .hex.

    • Для проектов IAR дополнительный вывод преобразуется ( intel extended форматируется) в DebugExeapplication.hex
    • Для проектов Keil выполняется следующий шаг после сборки: в
      fromelf —only=ExtFlashSection —bin —output=binary .Objectskeil5-2.axf
      результате получается файл .hex: Objectskeil5-2.hex

    Перепрошивка с использованием графического интерфейса ST-Link Utility

    Процесс, описанный в этой статье, описывает, как использовать утилиту ST-Link для программирования внутренней и внешней флэш-памяти плат ST. Для внутренней вспышки ST-Link автоматически определит тип подключенного устройства. Однако для внешней вспышки внешний флэш-загрузчик должен быть настроен вручную. ST-Link предлагает поддержку для каждого флэш-чипа на платах, поддерживаемых TouchGFX.

    При прошивке двоичного файла с помощью утилиты ST-Link вы должны указать правильный флэш-адрес вручную. Этот адрес должен совпадать с адресом, используемым в скрипте компоновщика. По умолчанию это первый адрес во флэш-памяти. При перепрошивке файла .hex утилита ST-Link найдет правильный адрес в файле .hex.

    ST-Link автоматически определит диапазоны памяти для программирования и выберет подходящие флэш-загрузчики для использования, если так настроено, при открытии .hex-файла. В приведенном ниже примере target.hex приложение было открыто в ST-Link, и были обнаружены диапазоны как внутренней, так и внешней флэш-памяти.

    Как упоминалось ранее, внутренняя флэш-память всегда распознается ST-Link для микроконтроллеров STM32, но флэш-загрузчик для диапазонов, начинающихся с 0x90000000, должен быть настроен вручную. В приведенном ниже примере мы настроим внешнюю вспышку для STM32F746G-DISCO платы:

    1. Выберите « Добавить внешний загрузчик » в меню « Внешний загрузчик ».
    2. Выберите соответствующий флэш-загрузчик в списке поддерживаемых плат (т.е. MT25QL512A_STM32756G-EVAL для STM32756G-EVAL и N25Q128A_STM32F746G-DISCO для STM32F746G-DISCO ) и выберите Подтвердить .
    3. Откройте .hex, который вы хотите мигать: диапазоны адресов автоматически определяются ST-Link. Как упоминалось ранее, разные двоичные файлы создаются IAR, Keil и gcc соответственно и могут использоваться ST-Link.
    4. Выберите « Program » в меню « Target » и начните загрузку.

    Ниже приведен полный список внешних флэш-загрузчиков, которые будут использоваться для плат ST, поддерживаемых TouchGFX (ST-Link версия 4.2):

    доска Флеш загрузчик
    STM32F429I-DISCO Только внутренняя вспышка
    STM324x9I-EVAL M29W128GL_STM324x9I-EVAL
    STM32469I-DISCO N25Q128A_STM32469I-DISCO
    STM32469I-EVAL MT25QL512A_STM32469I-EVAL
    STM32F746G-DISCO N25Q128A_STM32F746G-DISCO
    STM32756G-EVAL MT25QL512A_STM32756G-EVAL
    STM32F769I-EVAL MT25QL512A_STM32769I-EVAL
    STM32F769I-DISCO MX25L512G_STM32769I-DISCO
    STM32L4R9-EVAL MX25LM51245G_STM32L4R9I-EVAL
    STM32L4R9-DISCO MX25LM51245G_STM32L4R9I-DISCO

    Использование Flash make (ST-Link CLI)

    Кроме того, вы можете создать и прошить приложение (используя ST-Link CLI) с помощью любой makefile (т.е. app/example/button_example/target/ST/STM32F746G-DISCO/gcc/Makefile ), используя следующую команду:

    Makefile знает, какую внешнюю флэш-память (см. Таблицу выше) использовать для каждой из поддерживаемых плат ST. ST-LINK имеет встроенную поддержку внутренней вспышки для каждой платы, и вы можете прошить только внутреннюю вспышку, используя следующую команду:

    В некоторых случаях вы не сможете запрограммировать свою доску указанным выше способом из-за следующей ошибки:

    В этом случае вы можете попытаться отключить драйвер устройства USB для этой конкретной платы в диспетчере устройств Windows, чтобы устранить проблему.

    Источник

  • Форум РадиоКот • Просмотр темы — TE-ST-LINK у кого есть такой от ТЕРРА электроника, помогите!

    Сообщения без ответов | Активные темы

    ПРЯМО СЕЙЧАС:

    Автор Сообщение

    Не в сети

    Заголовок сообщения: TE-ST-LINK у кого есть такой от ТЕРРА электроника, помогите!

    СообщениеДобавлено: Ср ноя 16, 2011 00:19:42 

    Нашел транзистор. Понюхал.
    Аватар пользователя

    Карма: 3

    Рейтинг сообщений: 4

    Зарегистрирован: Чт авг 13, 2009 08:22:53
    Сообщений: 160
    Откуда: Vinnitsa

    Рейтинг сообщения: 0

    Привет всем!!!
    Проблема с моим прошивателем ST-LINK. Брал вот такой: http://www.terraelectronica.ru/news_made.php?ID=52
    Keil перестал его видеть, в винде тоже через раз появляется. Обнаружил, что снизу отвалился резистор R4. Братцы, у кого такой же программатор, гляньте плиз, какой номинал этого резистора.
    Заранее спасибо!!!

    Вернуться наверх
     

    ПрофильПрофиль

     

    Реклама

    md5sum

    Не в сети

    Заголовок сообщения: Re: TE-ST-LINK у кого есть такой от ТЕРРА электроника, помог

    СообщениеДобавлено: Ср ноя 16, 2011 05:58:27 

    Вымогатель припоя
    Аватар пользователя

    Зарегистрирован: Вт окт 27, 2009 22:39:19
    Сообщений: 672
    Откуда: Москва

    Рейтинг сообщения: 0

    R4 у меня не установлен.


    _________________
    — Не говорите мне что делать и я не скажу куда Вам идти…

    Вернуться наверх
    Реклама

    masterpc

    Не в сети

    Заголовок сообщения: Re: TE-ST-LINK у кого есть такой от ТЕРРА электроника, помог

    СообщениеДобавлено: Ср ноя 16, 2011 10:24:52 

    Нашел транзистор. Понюхал.
    Аватар пользователя

    Карма: 3

    Рейтинг сообщений: 4

    Зарегистрирован: Чт авг 13, 2009 08:22:53
    Сообщений: 160
    Откуда: Vinnitsa

    Рейтинг сообщения: 0

    Спасибо!!! На Терре мне уже дали такой же ответ. Может кто сталкивался с глюками как у меня, выкладываю куски с переписки с террой:

    Здравствуйте!
    Пользуюсь программатором TE-ST-LINK Вашей компании. Сегодня он перестал
    видется компилятором, а также утилита от ST STM32 ST-LINK Utility не может
    видеть таргет. ПО при этом обновляет. Иногда бывают глюки с WinXP, не
    определяется системой. Я обнаружил, что на плате отсутствует резистор R4?
    такое ощущение, что он отвалился. Вы не могли бы проконсультирвать меня в
    данном вопросе. Если там должен быть резистор, то какого номинала? Никаких
    претензий к компании я не имею, нужно срочно запустить программатор и
    продожать работу либо покупать другой.

    Добрый день, Петр!

    Резистор R4 должен отсутствовать.
    Определяется ли TE-ST-LINK в WINDOWS?
    После подключения к USB красный светодиод включен постоянно или моргает?
    Вы писали «ПО при этом обновляет», о каком ПО идет речь?

    Для обновления ПО устройства используется утилита ST-LinkUpgrade. Для этого
    нужно скачать ST Toolset
    http://www.st.com/internet/com/SOFTWARE … oolset.zip
    После установки утилита будет находится в папке C:Program
    FilesSTMicroelectronicsst_toolsetstlink

    Здравствуйте!
    Спасибо за быстрый ответ!!!
    В Windows как когда. Сейчас выдает сообщение: «Гстройство USB не опознано» моргает красный светодиод, но может и опознать через некоторое время. Систематичность этой ошибки я не выявил. Но даже если опознается и в диспетчере устройств определяется как: STMicroelectronics STLink dongle, то все равно ни компилятор (Keil) ни STM32 ST-LINK Utility (скачана с оф. сайта ST) не могут работать с устройством.
    Последний выдает сообщение:
    09:15:02 : STLink USB communication error
    09:15:27 : Cannot connect to ST-LINK!

    Обновлял прошивку через ST-LinkUpgrade, но опять же это чудом удолось. В основном выдается сообщение: «ST-LINK is nonexistent. Please connect it and then reply»

    Вернуться наверх

    SubDia

    Не в сети

    Заголовок сообщения: Re: TE-ST-LINK у кого есть такой от ТЕРРА электроника, помог

    СообщениеДобавлено: Ср ноя 16, 2011 10:33:05 

    Держит паяльник хвостом
    Аватар пользователя

    Карма: 9

    Рейтинг сообщений: 40

    Зарегистрирован: Сб апр 02, 2011 17:59:22
    Сообщений: 995
    Откуда: Город-герой Севастополь

    Рейтинг сообщения: 0

    Оу, знакомая проблема.
    Это произошло после обновления прошивки, как я понимаю?
    Там какие-то козни с дровами на ST-Link. Найдите файл STLinkUSBDriver.dll (собсно дрова) и назовите объем.


    _________________
    pavel_cydenov: Вобще я праAVRославный человек. Но и про ислARM слышал много хорошего )
    MrYuran: Самые ортодоксальные — это PICудеи )
    Katz: Не, 51-ники. )
    Изображение

    Вернуться наверх
    Реклама

    Выгодные LED-драйверы для решения любых задач

    КОМПЭЛ представляет со склада и под заказ широкий выбор LED-драйверов производства MEAN WELL, MOSO, Snappy, Inventronics, EagleRise. Линейки LED-драйверов этих компаний, выполненные по технологии Tunable White и имеющие возможность непосредственного встраивания в систему умного дома (димминг по шине KNX), перекрывают практически полный спектр применений: от простых световых указателей и декоративной подсветки до диммируемых по различным протоколам светильников внутреннего и наружного освещения.

    Подобрать LED-драйвер>>

    masterpc

    Не в сети

    Заголовок сообщения: Re: TE-ST-LINK у кого есть такой от ТЕРРА электроника, помог

    СообщениеДобавлено: Ср ноя 16, 2011 10:56:14 

    Нашел транзистор. Понюхал.
    Аватар пользователя

    Карма: 3

    Рейтинг сообщений: 4

    Зарегистрирован: Чт авг 13, 2009 08:22:53
    Сообщений: 160
    Откуда: Vinnitsa

    Рейтинг сообщения: 0

    SubDia писал(а):

    Оу, знакомая проблема.
    Это произошло после обновления прошивки, как я понимаю?
    Там какие-то козни с дровами на ST-Link. Найдите файл STLinkUSBDriver.dll (собсно дрова) и назовите объем.

    Подключил другой комп, скачал и установил ST Toolset. Программатор вообще не видится,, пишет «Гстройство USB не опознано» моргает красный светодиод. Как я ни пытался ничего не вышло. В папке C:Program FilesSTMicroelectronicsst_toolsetstlink лежит STLinkUSBDriver.dll 64кб весом, но как я ни пытался заставить винду схавать этот файл как дрова, ничего не вышло… Сижу плачу…

    ЗЫ
    Это произошло до обновления прошивки, прошивку потом обновил, но все равно ничего не дало…

    Вернуться наверх
    Реклама

    Реклама

    LIMF – источники питания High-End от MORNSUN со стандартным функционалом на DIN-рейку

    На склад Компэл поступили ИП MORNSUN (крепление на DIN-рейку) с выходной мощностью 240 и 480 Вт. Данные источники питания обладают 150% перегрузочной способностью, активной схемой коррекции коэффициента мощности (ККМ; PFC), наличием сухого контакта реле для контроля работоспособности (DC OK) и возможностью подстройки выходного напряжения. Источники питания выполнены в металлическом корпусе, ПП с компонентами покрыта лаком с двух сторон, что делает ее устойчивой к соляному туману и пыли. Изделия соответствуют требованиям ANSI/ISA 71.04-2013 G3 на устойчивость к коррозии, а также нормам ATEX для взрывоопасных зон.

    Подробнее>>

    SubDia

    Не в сети

    Заголовок сообщения: Re: TE-ST-LINK у кого есть такой от ТЕРРА электроника, помог

    СообщениеДобавлено: Ср ноя 16, 2011 11:01:41 

    Держит паяльник хвостом
    Аватар пользователя

    Карма: 9

    Рейтинг сообщений: 40

    Зарегистрирован: Сб апр 02, 2011 17:59:22
    Сообщений: 995
    Откуда: Город-герой Севастополь

    Рейтинг сообщения: 2

    Попробуйте ему скормить драйвер, что я прикрепил (просто замените файл этим). Распаковать только не забудьте. =)


    _________________
    pavel_cydenov: Вобще я праAVRославный человек. Но и про ислARM слышал много хорошего )
    MrYuran: Самые ортодоксальные — это PICудеи )
    Katz: Не, 51-ники. )
    Изображение

    Вернуться наверх

    masterpc

    Не в сети

    Заголовок сообщения: Re: TE-ST-LINK у кого есть такой от ТЕРРА электроника, помог

    СообщениеДобавлено: Ср ноя 16, 2011 13:31:47 

    Нашел транзистор. Понюхал.
    Аватар пользователя

    Карма: 3

    Рейтинг сообщений: 4

    Зарегистрирован: Чт авг 13, 2009 08:22:53
    Сообщений: 160
    Откуда: Vinnitsa

    Рейтинг сообщения: 0

    Проблемма решена!!! Причина банальная — плохой кабель USB. Спасибо огромное всем, кто откликнулся!!!!!
    Кто в Виннице, заходите на пиво либо на колу :beer:

    Вернуться наверх

    Кто сейчас на форуме

    Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0

    Вы не можете начинать темы
    Вы не можете отвечать на сообщения
    Вы не можете редактировать свои сообщения
    Вы не можете удалять свои сообщения
    Вы не можете добавлять вложения

    I have a custom PCB (based heavily on the Nucleo board) using the STM32F767II. I am using Atollic TrueStudio on Windows 10 and programming it through the ST-LINK on the Nucleo board (header CN6). I have set all the jumpers and connected my PCB to the Nucleo.

    I was testing some minor firmware changes and re-programming the board three or four times successfully before I suddenly just got the error «USB communication error». I have double-checked that my wiring is the same as on the previous successful times. I get this error in Atollic TrueStudio and when I try to connect to the board from ST-LINK Utility.

    To my knowledge I followed the same procedure for programming the board on all my attempts, so I am confused as to why it suddenly fails now. Are there debug settings or configurations in Atollic TrueStudio that could prevent me from being able to reprogram a chip? Is it possible to recover the chip?

    I am also powering my board separately from the programming interface, so would it matter if I connect the Nucleo to the board before I power the board? Could I damage it by doing that?

    Information in this knowledgebase article applies to:

    • MDK-ARM Version 5
    • ST-LINK with firmware

    QUESTION

    Using a ST-Link with MDK, when starting a debug session or a flash downloading, µVision issues the following error:

    What’s the reason for this error and how do you troubleshoot it?

    ANSWER

    If you are using a recent version of MDK.

    download, install, and open the ST-Link Utility. Configure it and program the device.

    If unsuccessful, this test shows that either the board, the jumper configuration, the windows drivers, the board firmware or the USB interface has an issue.

    CHECK THE WINDOWS DEVICE MANAGER

    Windows device manager should show under the Universal Serial Bus devices section a STM32 STLINK.

    There is a low level issue if, this entry is missing, there is a «caution» symbol on the USB icon, or there is an entry under the Universal Serial Bus controllers section labeled USB Composite device with a «caution» icon.

    CHECK THE USB SETTINGS

    • Verify that only one application is connected to the ST-Link at a time (ex. if both µVision and the ST-Link Utility try to use the ST-Link at the same time, this can cause connection issues).
    • Try using another USB port on the PC. If using a Hub, try connecting directly to the PC.
    • Try using another USB cable.
    • Make sure that the Microsoft Windows Device Manager recognizes the ST-Link. If it is having issues, check the power settings as described in their help article Error: “USB Device not recognized” when you try to access a USB external hard drive.

    CHECK THE ST-LINK DRIVERS AND FIRMWARE

    • Upgrade to the latest version of MDK. New releases contain a more recent version of the ST-Link drivers. Improvements and fixes are added over time to stabilize debug connections.
    • In other cases, upgrading the ST-Link firmware is the correct approach. On some ST-Link versions, multiple drivers are loaded, from the debug unit itself, when the ST-Link is first connected to a PC. Try the latest firmware and drivers from ST’s website, instead.
    • Uninstall and reinstall the ST Link driver on the PC, using Windows Device Manager. See the steps in the article µVision DEBUGGER: ST-Link Does Not Connect to STM32F4 Discovery Board

    CHECK THE BOARD SETTINGS

    • If this is a board provided by STMicroelectronics, check the Boot jumpers on the board to make sure you are booting to the correct memory. Pull the BOOT (sometimes labeled BOOT0) pin high by jumpering it to the VDD pin, and restart the board. At reset, since BOOT is pulled high with 3V the device boots up in a different memory location. Perform a flash full chip flash erase.
    • If there is also the error message «Internal command error» a previous program running on the board is locking up.

    In the Keil IDE, under Project-> Options for Target -> on the «Debug» tab, on the top right of the dialog, next the «USE: ST-Link Debugger, click the «Settings» button — the «Cortex-M Target Driver Setup» dialog appears. Try using «connect under reset», close the dialogs and then perform a flash erase.

    FOR SYSTEMS RUNNING OLDER VERSIONS OF MDK

    These are items that have already been fixed in modern versions of MDK.

    If there is also the error message «Internal DLL Error» follow the steps in µVision DEBUGGER: Internal DLL Error Debugging with ST-Link Driver.

    For MDK 5.11a or older.

    There was an incompatibility between ST-Link Firmware versionV2.J21.S0 and the µVision ST-Link Debugger driver(ST-LINKIII-KEIL_SWO.dll) version 2.0.6.0 which is part of MDK-ARM 5.11a. There are two ways to solve this problem:

    1. Update the µVision ST-Link Debug driver (recommended way):
      Download the ZIP file attached to this knowledgebase article and unzip it to the folder
      [MDK-ARM install path]ARMST-LINK
    2. Downgrade the firmware of the ST-LINK debug adapter:
      Start the tool [MDK install path]ARMSTLINKST-LinkUpgrade.exe to downgrade the ST-LINK firmware to V2.J20.S0
  • MDK V4.62a and older.
    If there is also the error message «Internal Command Error» follow the steps in µVision DEBUGGER: ST-Link Does Not Connect to STM32F4 Discovery Board.
  • For MDK 4.14 or older.
    If there is also the error message «memory verification error» follow the steps in µVision DEBUGGER: DEBUGGING WITH ST-LINK THROUGH A USB HUB.
  • MORE INFORMATION

    SEE ALSO

    • Microsoft help article Error: “USB Device not recognized” when you try to access a USB external hard drive.
    • µVision DEBUGGER: Not a genuine ST Device
    • Refer to µVision DEBUGGER: STM32F3-Discovery: Modifying the Board for SWO Trace

    ATTACHED FILES

    Request the files attached to this knowledgebase article.

    FORUM THREADS

    The following Discussion Forum threads may provide information related to this topic.

    All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.

    1 year, 6 months ago.

    I am using the swd pins(cn6) of the nucleo f767zi . I am using the st link v2 dongle for programming the board ,I have download the drivers of the dongle from the link on the mbed platform . In device manager under the usb it is showing the st link but in the port section it is not showing that it is connected to com ports. In st link utility platform it is showing the that st link usb communication error and target not connected I also tried connecting the NRST pin from swd connector to gnd to remove it from its gpio function but the full chip errase is not taking place .

    1 Answer

    Wim Huiskamp
    1 year, 6 months ago.

    Not sure I understand what you are trying to do. Are you using an external ST-Link dongle/programmer instead of the nucleo onboard ST-Link programmer? In case you want to use an external programmer and connect it to CN6 make sure that the onboard ST-Link is disabled (remove the 2 jumpers next to CN6). Also note that the F767 com port to the host PC is not connected through CN6. External ST-Link dongles may not support that virtual com port over USB feature at all and if they do, you need separate wiring between the F767 and the dongle and you also need to disable the nucleo onboard ST-Link com port connection by changing some solderbridges.

    can u tell me how to remove solder joint sb111

    It is not clear to me what you are trying to do. Please explain and/or show a schematic setup. External programmers should best be connected to CN11 (SWCLK CN11 pin 15, SWDIO CN11 pin 13 and NRST CN11 pin 14, also connect GND and probably 3V3 target voltage). You must have seen the manual for the F767 nucleo. That should give you details on the function and location of all solder joints and the pins on the headers. Figure 5 in the manual shows where SB111 is (bottom side of the ST-Link part, near the cut line area).

    Понравилась статья? Поделить с друзьями:
  • Stack overflow error java
  • Ssrs service unavailable http error 503 the service is unavailable
  • Ssps ssangyong rexton ошибка
  • Sspi handshake failed with error code 0x80090311
  • Sspi handshake failed with error code 0x8009030c state 14