GreenWaves-Technologies / gap_sdk

SDK for Greenwaves Technologies' GAP8 IoT Application Processor
https://greenwaves-technologies.com/en/gap8-the-internet-of-things-iot-application-processor/
Apache License 2.0
137 stars 75 forks source link

nntool example problems #86

Closed Microtronics-DC-FW closed 4 years ago

Microtronics-DC-FW commented 4 years ago

I'm using gap_sdk f23a8be with configs/gapoc_a_v2.sh. I'm building examples/nntool/mnist with make clean all run MNIST_BITS=16.

Following problems occur:

-#define STACK_SIZE 2048 +#define STACK_SIZE 1024

define MOUNT 1

define UNMOUNT 0

define CID 0

@@ -187,6 +187,7 @@ int main() printf("Graph constructor exited with an error\n"); return 1; }

Pafrak commented 4 years ago

Hi GregorBader, thanks for the comments, we will release an sdk update by the end on this week, with these fixes as well.

roshantha9 commented 4 years ago

Hi Pafrak and GregorBader, I applied GregorBader's patch. Then the "load_jtag_hyper" error goes away. But, not sure if the board is flashed correctly. Please see log below. I do not get anything on the UART pins (P4.7, 4.8). Tested on Gapuino Model 1.1. UART works when I load and run from jtag.

I'm testing the following example: examples\pmsis\test_features\uart_delegate in the makefile I added this : PLPBRIDGE_FLAGS += -f -hyper

---------------------------------GAPUINO------------------------------------

Reading ELF file Segment : 1b000004 440 Segment : 1b000444 83c Segment : 1c000000 4018 Segment : 1c004170 18 Generating boot binary Nb areas: 4 Area 0: offset: 0x400, base: 0x1b000004, size: 0x440, nbBlocks: 2 Area 1: offset: 0xc00, base: 0x1b000444, size: 0x83c, nbBlocks: 3 Area 2: offset: 0x1800, base: 0x1c000000, size: 0x4018, nbBlocks: 17 Area 3: offset: 0x5c00, base: 0x1c004170, size: 0x18, nbBlocks: 1 Generating files (header offset: 0x6000) Bridge init - log level 2 Program exited Program exited Loading binary through jtag Notifying to boot code new boot mode (mode: 1) ftdi2232 libftdi version 1.4 (major: 1, minor: 4, micro: 0, snapshot ver: unknown) Found ftdi device i:0x403:0x6010:0 Connecting to ftdi device i:0x403:0x6010:0 Cable state change connected Waiting for notification from boot code Received for notification from boot code Loading binary from /home/osboxes/Documents/gap_sdk/install/workstation/bin/flasher Loading section (base: 0x1b000004, size: 0x324) Loading section (base: 0x1b000328, size: 0x908) Loading section (base: 0x1c000000, size: 0x650c) Init section to 0 (base: 0x1c00650c, size: 0xec) Loading section (base: 0x1c0065f8, size: 0x44) debug address 0x1c000090 contents 0x1c0062d8 Starting execution [Flasher]: Flasher Version 1.0 start [Flasher]: pad config done [Flasher]: conf finished. Initializing bridge flasher Flash address buffer 0x1c028730 Bridge flasher completed [Flasher]: Flasher Finish Detected end of application, exiting with status: 0 Loop exited commands completed Bridge init - log level 2 Program exited Loading binary through jtag_hyper Notifying to boot code that we are doing a JTAG boot from hyperflash ftdi2232 libftdi version 1.4 (major: 1, minor: 4, micro: 0, snapshot ver: unknown) Found ftdi device i:0x403:0x6010:0 Connecting to ftdi device i:0x403:0x6010:0 Cable state change connected Loop exited commands completed