Imported project missing mcu, no svd during debug

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Imported project missing mcu, no svd during debug

1,590件の閲覧回数
anthony_asterisk
Contributor II

I am debugging a zephyr project application with VSCode using the MCUXpresso for VS Code extentsion.

I created my freestanding application based on the zephyr example_application.  
I created a custom board which is outside the zephyr repository, in a boards folder parallel to the app folder.

I am able to bulid with west command  e.g.

west build -b custom_board -d build_board_app --pristine auto app

 

I imported the application into VSCode using MCUXpresso extension.

I had to copy some files over from another project that I originally created with "Import Example Application" to trigger the extension to detect the project as type "Zephyr" 

I manually edited cmake-kits.json to modify BOARD to use my custom board definition.

I am able to build and debug, however when debugging the debugger lacks svd file and cannot display peripherals.

Normally when building with west I build from above the app directory e.g.

west build -b custom_board1 -d build_custom_board1  app

which results in buidling app in build directory above app

However the extension builds from within the app directory.

Questions:

1) What is best way for an imported project to select board?

2) How should I inform extension of the board mcu type?

3) Do I need to manually configure the svd file for debugging?  How do I do that?

4) Is it possible for extension to build in the same place as west (outside of app folder)?

 

0 件の賞賛
返信
3 返答(返信)

1,518件の閲覧回数
anthony_asterisk
Contributor II

MCUXpresso for VSCode gets imported in VSCode as an extenssion.  

Zephyr tool installation is documented here:

https://docs.zephyrproject.org/latest/develop/getting_started/index.html

Also install VSCode from Microsoft.

Inside VSCode in the left-sidebar select extensions, in the search bar type MCUxpresso, click on result and select install..

Then setup an example application as documented here

https://github.com/zephyrproject-rtos/example-application

I based mine on zephyr release v3.5.0:

west init --mr zephyr-v3.5.0 v3.5.0

west update

The board I'm using is a customization off of mimxrt1062-evkb.

 

0 件の賞賛
返信

1,457件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hello @anthony_asterisk 

Your question is related with Zephyr. We have specific policy for Zephyr support:

https://community.nxp.com/t5/Zephyr-Project/bd-p/Zephyr-Project

“If the support request is a question, or if unsure the symptoms/behavior is an Issue, please create a Discussion.  The GitHub Discussions has a category for Q&A.

If the support request is clearly an Issue, and repository code needs to be updated to address the Issue, create a new Issue in GitHub.”

Hope this will help you.

Jun Zhang

0 件の賞賛
返信

1,524件の閲覧回数
Harry_Zhang
NXP Employee
NXP Employee

Hi @anthony_asterisk 

I'd like you to reproduce what you mentioned, but I'm having some difficulties.

I downloaded the zephyr SDK from the official github and can't import MCUXpresso for VSCode,

Can you provide a link to the zephyr SDK you downloaded?

Best regards,
Hang

0 件の賞賛
返信