mcuxpressoide-11.8.1, gdb error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mcuxpressoide-11.8.1, gdb error

1,716 Views
denisgottardello
Contributor II

Hi, I try to run mcuxpresso on Debian 12. When I try to run my app I obtain the error

Could not determine GDB version using command: arm-none-eabi-gdb --version
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = '/usr/local/bld-tools/bld-tools-virtual-env/bin/python'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/usr/local/bld-tools/bld-tools-virtual-env/bin/python'
  sys.base_prefix = '/usr'
  sys.base_exec_prefix = '/usr'
  sys.executable = '/usr/local/bld-tools/bld-tools-virtual-env/bin/python'
  sys.prefix = '/usr'
  sys.exec_prefix = '/usr'
  sys.path = [
    '/usr/lib/python38.zip',
    '/usr/lib/python3.8',
    '/usr/lib/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f562539fc00 (most recent call first):
<no Python frame>

What can I do in order to resolve?

 

Many thanks

0 Kudos
Reply
4 Replies

1,375 Views
stefanct
Contributor III

I originally have been using bookworm's gdb-multiarch with MCUXpresso but ran into issues, especially when debugging FreeRTOS applications - but in general it can work.

Alternatively, one can install Python 3.8, which can actually be done without compiling it manually:

1. Install a prerequisite from http://ftp.at.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_amd64.deb (e.g., wget http://ftp.de.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_amd64.deb && sudo apt install ./libssl1.1_1.1.1w-0+deb11u1_amd64.deb)

2. install a minimal Python 3.8:

2.1 https://people.debian.org/~paravoid/python-all/buster-pool/libpython3.8-minimal_3.8.1-2~buster1_amd6...

2.2 https://people.debian.org/~paravoid/python-all/buster-pool/python3.8-minimal_3.8.1-2~buster1_amd64.d...

Not exactly great but seems to work. I am not sure if MCUX uses the Python capabilities at all anyway...

0 Kudos
Reply

1,547 Views
jplathuile
Contributor III

Hi,

Same error Ubuntu22.04.

Regards

JP

0 Kudos
Reply

1,543 Views
jplathuile
Contributor III
Hi
My solution, use arm-none-eabi-gdb from an other installation.
the version provided seems to be bugged.
JP
0 Kudos
Reply

1,703 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @denisgottardello 

MCUXpresso IDE v11.8.1 official supports

• Linux – Ubuntu 20.04 LTS and 22.04 LTS
• Only 64-bit versions of Linux are supported.

Dot supports Debian 12.

If you have interest, you can try to install python 3.8 to have a try, or google the error message to find some methods.

Recommend use the Linux versions  install guide mentioned.

 

BR

Alice

 

0 Kudos
Reply