Skip to main content
Visitor II
July 29, 2019
Question

Could not debug the OpenAMP_TTY_echo

  • July 29, 2019
  • 1 reply
  • 1554 views

Hi,

I am following the tutorial of developing on M4 with the STM32MP1 but when I do the

"debug as" to this project, it comes out an error.

0690X000009ZaoFQAS.png

The STM32MP1 has connected to my PC through the STLINK usb; the boot0 and boot2 on the board have been set to "on"; and no another Console view.

I could not find out the problem.

Any suggestion would be a great help.

Thanks.

Duncan

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    July 29, 2019

    Please have a look in https://wiki.st.com/stm32mpu/wiki/STM32-CoPro-MPU_plugin_for_SW4STM32

    If you have set boot0 and boot2 to ON this mean 'production mode' (Boot from SD cars and debugging with Linux) and so you need to use (in addition to STLINK) another USB or Ethernet connection to PC to allow the debugger to load the FW to the target prior to debug it using JTAG/SWD.

    • Engineering Mode, with Cortex®-M firmware download via JTAG/SWD
    • Production Mode, with Cortex®-M firmware download :
      • via Ethernet Link to the LAN or Point-to-Point
      • via Ethernet-over-USB for point-to-point connection

    Alternatively, to use Engineering mode (i.e. debugging Cortex-M4 FW alone) you need to use boot0=OFF and boot2=ON. Note that in that case, your FW need to make all initialization usually devoted to Linux (i.e. clock and some other init).

    DXuAuthor
    Visitor II
    July 30, 2019

    Thank you for the answer, Patrick. I added an Ethernet cable (connecting my PC and the development board, could not connect to the LAN for some reasons) as you said in the production mode. But I still got the same error.