Giter VIP home page Giter VIP logo

tunerok / milandr_vscode_windows Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 12.2 MB

Проект подготовлен для работы с отладочной платой Milandr 1986BE92 через VSCode (версия для Windows) с работой через j-link

License: MIT License

C 5.68% HTML 0.18% Makefile 0.33% SWIG 8.49% Assembly 2.17% C++ 0.23% PureBasic 82.91% Batchfile 0.01%
vscode milandr j-link

milandr_vscode_windows's Introduction

Протестировано с отладочным комплектом для 1986BE92У

Данный проект работает с классическими j-link-программаторами и их ПО.

Актуальная версия с OpenOCD-отладчиком и RTOS

Проект подготовлен для работы с отладочной платой Milandr 1986BE92 через VSCode (версия для Windows). Подобный проект можно собрать для нескольких устройств от Milandr. Проделаны основные шаги и дан пример. Используемый программатор: j-link pro

В файлы библиотеки был добавлен небольшой код, который определяет некоторые переменные в зависимости от используемого компилятора (в частности, DMA). Добавлена папка автозагрузки для компилятора GCC. В новых версиях библиотеки такой папки нет. Добавлен файл MDR32F9Qx_board.h, который прописан в зависимостях библиотеки. Чип выбирается в этом файле (если у вас другой чип, не забудъте внести изменения во все зависимые файлы, которые используются для сборки - включая изменение областей доступной памяти в .jlink-файлах и в линковщике .ld). Чтобы при отладке видеть содержимое регистров контроллера, были подправлены SVD файлы.

Требуется установка следующих программ: Система:

Не забудьте добавить папку GnuWin32\bin в среду PATH

Код VS:

  • Cortex-Debug расширение
  • Для корректной работы IntelliSense и определения .h файлов из makefile

Самые последние SPL-файлы и .SVD-файлы можно найти здесь или здесь. Они также приложены к данному репозиторию в директории MDR32F9_1986VE4_2015\IDE\keil\SVD.


Необязательно, но необходимо для запуска из "коробки"

Добавить информацию о MCU в j-link

Для правильного определения типа контроллера вы можете добавить файлы .FLM (они также приложены в MDR32F9_1986VE4_2015\Flash) в папку j-link HOWTO или посмотрите здесь (\info_backup), если ссылка недоступна.

Для JLink GDB

Для отладчика jlink нужно добавить пару строк. Один, два, три клика. image image

"cortex-debug.JLinkGDBServerPath": "<ВАШ ПУТЬ>\\JLinkGDBServerCL.exe",

Вы можете найти дополнительную информацию об интеграции jLink-vscode


Tested at 1986BE92

A project prepared for working with the Milandr board via vscode (windows version). A similar project can be assembled for a couple of devices from Milandr. Here are just the main steps and an example.

A small code has been added to the library files that defines some variables depending on the compiler used (in particular the DMA). A startup folder for the GCC compiler has been added. New versions of the library do not have such a folder. Added the MDR32F9Qx_board.h file, which is registered in the library dependencies. The chip is selected in this file. To see the contents of the controller registers during debugging, the SVD files were corrected.

Installation of the following programs is required:
System:

Do not forget add GnuWin32\bin folder to PATH envirovement

VS Code:

SPL-files and .SVD-files can be found here or here


Optional

Add info about MCU to j-link

For the correct definition of the controller type, you can add .FLM files to the j-link folder HOWTO or look here if link unavailable

For JLink GDB

For the jlink debugger, you need to add a couple of lines.
One, two, three clicks.
image
image

"cortex-debug.JLinkGDBServerPath": "<YOUR PATH>\\JLinkGDBServerCL.exe",

You can found more information about jLink-vscode integration

milandr_vscode_windows's People

Contributors

tunerok avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

xrombik

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.