HOWTO: Program Serial RCON using S32 Debug Probe S32R4xx on S32R45 EVB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

HOWTO: Program Serial RCON using S32 Debug Probe S32R4xx on S32R45 EVB

HOWTO: Program Serial RCON using S32 Debug Probe S32R4xx on S32R45 EVB

This document details the steps to program external EEPROM with the 32 reset configuration bits in support of the 'Boot from serial RCON' method detailed in the S32R Reference Manual. The Python scripts used for this task are designed and tested to work on the S32R45 EVB and the Atmel AT24C01C it contains.

 

The RCON can be set by the following:

  1. Fuses (internal to the device)
  2. Parallel (GPIO pins/DIP Switches on S32R45 EVB)
  3. Serial (EEPROM connected via I2C)

The Serial option can be programmed using a debug probe connected via JTAG. This enables the RCON to be controlled remotely, assuming the debug probe is setup to allow remote connections. 


Preparation

  1. Install S32 Design Studio IDE 
  2. Install the Development Package for the device you are debugging. This is important as the S32 Debugger support within it contains the device-specific Python scripts required for initialization of the cores. 

    image.png

  3. Connect the S32 Debug Probe to the S32R45 EVB and the host PC containing S32 Design Studio installation.
  4. Set BMODE pins to Boot from RCON

    mikedoidge_0-1610146358196.png

  5. Set BOOT_CFG[8]=1 on the S32R EVB, for serial RCON mode

    image.png

    See the EVB documentation and device reference manual for more details on BOOT_CFG settings, etc.

 

Procedure 

  1. Open cmd window to the S32 Debugger folder where the device-specific scripts are located.
    C:\NXP\S32DS.3.4\S32DS\tools\S32Debugger\Debugger\scripts\s32r45

  2. Set Python path so correct version is used (if not already set in env vars)
    set PYTHONPATH=C:\NXP\S32DS.3.4\S32DS\build_tools\msys32\mingw32\lib\python2.7;C:\NXP\S32DS.3.4\S32DS\build_tools\msys32\mingw32\lib\python2.7\site-packages

    image.png

  3. Edit the python script to adjust the value to be programmed to RCON, s32r45_i2c_RCON.pyNote: The listed examples show only the minimum values required to configure each of the external memory types. Additional settings may be required for your specific application.

     

     

    image.png

     

    1. Adjust the RCON_DATA for the configuration you wish to program. 
    2. Do not adjust RCON_ADDR.
    3. Adjust the S32DBG_IP for the IP address of your S32 Debug Probe. 
    4. Adjust the INTERACTIVE_MODE
      1. Set True, if desired to be prompted in the command window to enter RCON_DATA
      2. Set False, if desired to have script automatically enter RCON_DATA, based on the value set within the file.

  4. Enter the command to start GDB, passing in the RCON Python script:
    Windows OS: C:\NXP\S32DS.3.4\S32DS\tools\gdb-arm\arm32-eabi\bin\arm-none-eabi-gdb-py.exe -x s32r45_i2c_RCON.py
    Linux OS: arm-none-eabi-gdb-py -x .\s32r45_i2c_RCON.py

     

    image.png

  5. You may need to press enter a couple of times. If everything worked properly, then the value you programmed will be displayed to the screen.

    image.png

  6. To exit GDB, enter 'quit'.
  7. Before performing boot from serial RCON, remember to set BOOT_CFG[8] = 1. See the EVB documentation and device reference manual for more details.
无评分
版本历史
最后更新:
‎05-27-2021 08:54 AM
更新人: