Skip to content

Latest commit

 

History

History
285 lines (206 loc) · 13.4 KB

RASynTroubleshootingGuide.md

File metadata and controls

285 lines (206 loc) · 13.4 KB

RASynBoard Out-of-Box Troubleshooting Guide

This document captures common errors that may be encountered while using/modifying the Avnet RASynBaord Out-of-Box (OOB) application

Table of Contents

Hardware Issues

The RASynBoard EVK (I/O board + core board) does not power up when using just a LiPo battery

This entry captures two issues.

  1. If powering the RASynBoard EVK from just a LiPo battery the OOB application does not startup
  2. After powering up the EVK with a USB-C cable and a LiPo battery, after removing the USB-C power source the RGB LED on the I/O board is not operational

Note: You can power just the core board (the smaller of the two boards) with a LiPo battery, the application boots normally and there are not any other known issues. To flash your model files and configuration to the SPI Flash on the core board, see . . .

How to identify this issues

  • When powering the EVK (I/O board + core board) using a LiPo battery connected to the application does not boot.
    • No debug is output from either debug source
  • The RGB LED on the I/O board is non-functional
    • Usually this LED lights on power-up while the application loads the NDP120 images
    • Usually this LED lights whenever a feature is detected by the Syntiant NDP120

How to resolve this issue

Unfortunately this is a hardware issue. Until this issue is resolved, the EVK can be run on a LiPo battery by following these simple steps:

  1. Power the RASynBoard EVK from either USB-C connectors
  2. Plug in the LiPo battery to the battery connector on the core board
  3. After the application has started, remove the USB-C cable

The application will run as expected with the exception of the RGB LED, that will not work when the EVK is powered by the LiPo battery.

Hardware modification to resolve this issue

We've identified a hardware modification that will resolve this issue. The only downside is that there is about a 1mW of additional current pulled from the LiPo battery with the modification.

There are two hardware changes required to boot and run the EVK (I/O board + core board) from a LiPo battery. The modification will permanently disable the U1 buck regulator on the I/O board and instead bridge the 3.3V_MCU and 3.3V_MCU_1 power rails. These changes can be made to the top side of the I/O board.

  1. Disable U1 by desoldering the L1 inductor from the I/O board (L1 is much easier to remove than the tiny R13, R16 resistors) Functionally U1 is now disabled. External 3.3V voltage applied across it’s internal FETs should not be a problem. The risk of energy getting stored-in and discharged-from this L1 inductor when external 3.3V is applied, is also eliminated.

  2. Add a short wire-mod between:

    • Pmod connector J11 pin 13 (3v3_MCU) and
    • Debug MCU header J3 pin 4 (3V3_MCU_1)



Notes:

  • This will keep the I/O Board RX231 MCU and RGB LED powered from 3v3_MCU when USB power is not present.
  • With the RUN jumper across J3 pins 1 and 2, the RX231 is kept in reset state, so current consumed by this MCU should be very low



Application Issues

Application hangs, buttons not working

This error has been identified to be an issue between the OOB FSP microSD card driver and a microSD card that may have errors

How to identify this issue

  • The OOB application stops running, or does not perform some features
  • The user button (button closest to the corner of the board) does not respond when pressed
  • The issue is not reproducible when powering the board from the USB-C connector on the I/O board (the larger bottom board)
  • Is only reproducible when powering the EVK using the USB-C connector on the core board (the smaller board)

How to resolve the issue

To resolve the issue, fix any errors with the microSD card's file system by reformatting the card

  1. Copy all the files from the microSD card to a temporary folder on your development PC
  2. Format the drive as a FAT32 device
  3. Move the saved files back onto the microSD card
  4. Insert the microSD card back into the RASynBoard's I/O board
  5. Verify that the issue is not reproducible

NDP Failed to Load Models

ndp_core2_platform_tiny_start failed 9

How to identify this issue

  • The ML model does not load
  • You see debug similar to



How to resolve the issue

This error occurred because the *.synpkg filenames defined in the selected config.ini [Function_x] block are not found in the root directory of the microSD card.

  • Use the debug output to verify that the filenames defined in the selected config.ini [Function_x] block are spelled correctly
  • Verify that the files specified in the selected config.ini [Function_x] block exist on the microSD card in the root directory

Application flooded by inference events even though there should be none

How to identify this issue

  • The RGB LED lights and does not turn off
  • The debug terminal is flooded with "NDP MATCH!!" messages

The following debug was a result of loading V1.4.0 models while running the V1.5.0 Out-of-Box application



Syntiant SDK version mismatch

The OOB application is built using a specific Syntiant SDK version. Any ML models loaded to the NDP120 must have been generated using the same Syntiant SDK version.

SDK Versions by OOB Release

OOB Application Version Syntiant SDK Version
v1.1.0 v100
v1.2.0 v100
v1.3.0 v100
v1.4.0 v103
v1.5.0 v105

History of Edge Impulse Generated Models

Release Date Syntiant SDK Version used to generate ML models Compatible Out-of-Box Release
Oct 2022 v103 V1.4.0
Feb x 2023 v105 V1.5.0

How to resolve the issue

  1. If using the pre-built ML models that come with the OOB application verify that you're using the microSD card files that correspond with the OOB application version. Each release is delivered with compatible ML models and the matching config.ini file.
  2. If you're building the application from source, verify that your microSD card contains the files from the ndp120/synpkg_files/ directory.
  3. If using models generated by Edge Impulse, refer to the table above to identify a compatible Out-of-Box release that supports the models generated by Edge Impulse.

Debug Issues

No debug from PMOD UART even though the application is configured to do so

How to identify this issue

If the application is configured to send debug output to the PMOD UART config.ini:[Debug Print]-->Port=1 but you never see any debug from that UART, or maybe you only see one print statement FreeRTOS ndp_thread running

How to resolve the issue

  • Verify that the config.ini file is correctly configured



  • Verify that the microSD card is inserted into the RASynBoard I/O board
  • Verify that the microSD card contains the config.ini file

When the microSD card is not inserted or if the config.ini file is not found on the microSD card, the application defaults to sending debug out the Virtual COM port associated with the USB-C connector on the core board

When using the Virtual COM port associated with the USB-C connector on the core board I don't see startup debug

This is an implementation artifact. Since this COM port is implemented in software, the application must bring the hardware interface up at boot time. This action takes longer than the initial NDP120 load/boot time.

How to resolve this issue

There is an undocumented feature where the user can enter log in the terminal to dump the early debug after the fact. There's lots of room for improvement on this feature; however it works.

Development Issues

This section captures issues you may encounter when developing custom applications for the RASynBaord. The content here is specific to the Avnet RASynBoard OOB application, but should apply to other projects developed in the Renesas e^2 studio

Debugger fails to load The device R7FA2A1AB set in the launch configuration does not match . . . "

How to identify this issue

When trying to debug the application (clicking on the small green bug icon in e^2 studio) the following dialog is displayed . . .



How to resolve this issue

Debug connection failed

This error will occur if the Renesas e^2 debugger is not found on the development system

How to identify this issue

When trying to debug the application (clicking on the small green bug icon in e^2 studio) the following dialog is displayed . . .



How to resolve this issue

  • Verify that the RASynBoard is correctly configured to enable the debugger
  • Make sure to use the USB-C connector on the I/O board



If you still can't connect to the debugger, verify that the driver is correctly installed on your development PC

  • Verify the hardware configuration as above
  • Open your device manager and look for the Renesas USB Development Tools --> Renesas E2 Lite device
  • If not found . . .
    • Try to reboot your PC
    • Try reinstalling the Renesas e^2 Studio application



Renesas Flash Programming (RFP) Errors

RFP Error(E3000107): This device does not match the connection parameters

How to identify this issue

When trying to flash a new image (*.srec) to the RASynBoard, the user sees the error below.



How to resolve this issue

This is a known FSP issue. To resolve the issue start a new FSP project

  1. Launch the Renesas Flash Programmer (version 3.11.02 or later)
  2. Select File -> New Project, the "Create New Project" dialog opens
  3. Use the configuration shown, click on the Connect button



  1. You should see that the application connected to your RASynBoard



  1. Flash the board
    1. Select the Operation Tab
    2. Browse to and select the *.srec file to load to the board
    3. Click on the Start button
    4. The image is flashed to the board, and you should see the application update as shown below