Fix some compile errors
This commit is contained in:
@ -60,10 +60,10 @@ WASM VM and native extension method can be built into Zephyr, Then we can instal
|
||||
`git clone https://github.com/zephyrproject-rtos/zephyr.git`</br>
|
||||
b. copy samples</br>
|
||||
`cd zephyr/samples/`</br>
|
||||
`cp -a <iwasm_root_dir>samples/littlevgl/vgl-wasm-runtime vgl-wasm-runtime`</br>
|
||||
`cp -a <wamr_root>samples/littlevgl/vgl-wasm-runtime vgl-wasm-runtime`</br>
|
||||
`cd vgl-wasm-runtime/zephyr_build`</br>
|
||||
c. create a link to wamr core</br>
|
||||
` ln -s <iwasm_root_dir>/core core`</br>
|
||||
` ln -s <wamr_root>/core core`</br>
|
||||
d. build source code</br>
|
||||
Since ui_app incorporated LittlevGL source code, so it needs more RAM on the device to install the application.
|
||||
It is recommended that RAM SIZE greater than 512KB.
|
||||
@ -82,27 +82,27 @@ Hardware Connections
|
||||
|
||||
```
|
||||
+-------------------+-+------------------+
|
||||
|NUCLEO-F767ZI || ILI9341 Display |
|
||||
|NUCLEO-F767ZI | ILI9341 Display |
|
||||
+-------------------+-+------------------+
|
||||
| CN7.10 | CLK |
|
||||
| CN7.10 | CLK |
|
||||
+-------------------+-+------------------+
|
||||
| CN7.12 | MISO |
|
||||
| CN7.12 | MISO |
|
||||
+-------------------+-+------------------+
|
||||
| CN7.14 | MOSI |
|
||||
| CN7.14 | MOSI |
|
||||
+-------------------+-+------------------+
|
||||
| CN11.1 | CS1 for ILI9341 |
|
||||
| CN11.1 | CS1 for ILI9341 |
|
||||
+-------------------+-+------------------+
|
||||
| CN11.2 | D/C |
|
||||
| CN11.2 | D/C |
|
||||
+-------------------+-+------------------+
|
||||
| CN11.3 | RESET |
|
||||
| CN11.3 | RESET |
|
||||
+-------------------+-+------------------+
|
||||
| CN9.25 | PEN interrupt|
|
||||
| CN9.25 | PEN interrupt |
|
||||
+-------------------+-+------------------+
|
||||
| CN9.27 | CS2 for XPT2046 |
|
||||
| CN9.27 | CS2 for XPT2046 |
|
||||
+-------------------+-+------------------+
|
||||
| CN10.14 | PC UART RX |
|
||||
| CN10.14 | PC UART RX |
|
||||
+-------------------+-+------------------+
|
||||
| CN11.16 | PC UART RX |
|
||||
| CN11.16 | PC UART RX |
|
||||
+-------------------+-+------------------+
|
||||
```
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
PROJECT_DIR=$PWD
|
||||
ROOT_DIR=${PWD}/../../..
|
||||
WAMR_DIR=${PWD}/../..
|
||||
OUT_DIR=${PWD}/out
|
||||
BUILD_DIR=${PWD}/build
|
||||
|
||||
@ -13,7 +13,7 @@ rm -rf ${OUT_DIR}
|
||||
mkdir ${OUT_DIR}
|
||||
|
||||
|
||||
cd ${ROOT_DIR}/wamr/core/shared-lib/mem-alloc
|
||||
cd ${WAMR_DIR}/core/shared-lib/mem-alloc
|
||||
if [ ! -d "tlsf" ]; then
|
||||
git clone https://github.com/mattconte/tlsf
|
||||
fi
|
||||
@ -36,7 +36,7 @@ echo "#####################build host-tool"
|
||||
cd $BUILD_DIR
|
||||
mkdir -p host-tool
|
||||
cd host-tool
|
||||
cmake ${ROOT_DIR}/wamr/test-tools/host-tool
|
||||
cmake ${WAMR_DIR}/test-tools/host-tool
|
||||
make
|
||||
if [ $? != 0 ];then
|
||||
echo "BUILD_FAIL host tool exit as $?\n"
|
||||
|
||||
@ -16,14 +16,14 @@
|
||||
#include "bh_platform.h"
|
||||
#include "runtime_lib.h"
|
||||
#include "native_interface.h"
|
||||
#include "app-manager-export.h"
|
||||
#include "app_manager_export.h"
|
||||
#include "board_config.h"
|
||||
#include "bh_common.h"
|
||||
#include "bh_queue.h"
|
||||
#include "bh_thread.h"
|
||||
#include "bh_memory.h"
|
||||
#include "runtime_sensor.h"
|
||||
#include "attr-container.h"
|
||||
#include "attr_container.h"
|
||||
#include "module_wasm_app.h"
|
||||
#include "wasm_export.h"
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ target_include_directories(app PRIVATE ${IWASM_ROOT}/runtime/include
|
||||
${IWASM_ROOT}/runtime/platform/zephyr
|
||||
${IWASM_ROOT}/runtime/platform/include
|
||||
${IWASM_ROOT}/runtime/utils
|
||||
${IWASM_ROOT}/runtime/vmcore_wasm
|
||||
${IWASM_ROOT}/runtime/vmcore-wasm
|
||||
${IWASM_ROOT}/lib/native/base
|
||||
${IWASM_ROOT}/lib/native/libc
|
||||
${IWASM_ROOT}/lib/native/extension/sensor
|
||||
|
||||
Reference in New Issue
Block a user