Enable ARM and THUMB AOT support, enable Android platform support (#182)

* Sync with internal/feature: enable arm aot and android platform
This commit is contained in:
wenyongh
2020-02-27 16:38:44 +08:00
committed by GitHub
parent 4dbe7c44d0
commit 9a961c4843
52 changed files with 2466 additions and 466 deletions

View File

@ -73,7 +73,7 @@ https://docs.zephyrproject.org/latest/getting_started/index.html</br>
d. build source code</br>
`mkdir build && cd build`</br>
`source ../../../../zephyr-env.sh`</br>
`cmake -GNinja -DBOARD=nucleo_f746zg ..`</br>
`cmake -GNinja -DBOARD=nucleo_f767zi ..`</br>
` ninja flash`</br>
- Hardware Connections

View File

@ -8,7 +8,7 @@
#include "board_config.h"
#include "stdio.h"
#include <string.h>
#include "spi.h"
#include "drivers/spi.h"
#include "zephyr.h"
#include "kernel.h"

View File

@ -35,7 +35,7 @@ extern "C" {
#include <stdbool.h>
#include "lv_hal/lv_hal_indev.h"
#include "device.h"
#include "gpio.h"
#include "drivers/gpio.h"
/*********************
* DEFINES

View File

@ -14,9 +14,9 @@
#define LOG_DBG printf
#define LOG_WRN printf
#include <gpio.h>
#include <drivers/gpio.h>
#include <sys/byteorder.h>
#include <spi.h>
#include <drivers/spi.h>
#include <string.h>
struct ili9340_data {

View File

@ -27,7 +27,7 @@ extern void xpt2046_init(void);
extern void wgl_init();
#include <zephyr.h>
#include <uart.h>
#include <drivers/uart.h>
#include <device.h>
int uart_char_cnt = 0;

View File

@ -7,4 +7,4 @@ CONFIG_LOG=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_STACK_SENTINEL=y
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_ARM_MPU=n
CONFIG_ARM_MPU=y

View File

@ -84,15 +84,12 @@ https://docs.zephyrproject.org/latest/getting_started/index.html</br>
` ln -s <wamr_root> wamr`</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 not less than 420KB.
In our test use nucleo_f767zi, which is not supported by Zephyr.
However, nucleo_f767zi is almost the same as nucleo_f746zg, except FLASH and SRAM size.
So we changed the DTS setting of nucleo_f746zg boards for a workaround.</br>
It is recommended that RAM SIZE not less than 380KB.
In our test use nucleo_f767zi, which is supported by Zephyr.
`Modify zephyr/dts/arm/st/f7/stm32f746.dtsi, change DT_SIZE_K(256) to DT_SIZE_K(512) in 'sram0' definition.`</br>
`mkdir build && cd build`</br>
`source ../../../../zephyr-env.sh`</br>
`cmake -GNinja -DBOARD=nucleo_f746zg ..`</br>
`cmake -GNinja -DBOARD=nucleo_f767zi ..`</br>
` ninja flash`</br>
- Hardware Connections

View File

@ -8,7 +8,7 @@
#include "board_config.h"
#include "stdio.h"
#include <string.h>
#include "spi.h"
#include "drivers/spi.h"
#include "zephyr.h"
#include "kernel.h"

View File

@ -35,7 +35,7 @@ extern "C" {
#include <stdbool.h>
//#include "lvgl/lv_hal/lv_hal_indev.h"
#include "device.h"
#include "gpio.h"
#include "drivers/gpio.h"
#if 1
enum {
LV_INDEV_STATE_REL = 0, LV_INDEV_STATE_PR

View File

@ -14,9 +14,9 @@
#define LOG_DBG printf
#define LOG_WRN printf
#include <gpio.h>
#include <drivers/gpio.h>
#include <sys/byteorder.h>
#include <spi.h>
#include <drivers/spi.h>
#include <string.h>
struct ili9340_data {

View File

@ -16,14 +16,15 @@
#include "module_wasm_app.h"
#include "wasm_export.h"
#include <zephyr.h>
#include <drivers/uart.h>
#include <device.h>
extern void init_sensor_framework();
extern void exit_sensor_framework();
extern int aee_host_msg_callback(void *msg, uint16_t msg_len);
#include <zephyr.h>
#include <uart.h>
#include <device.h>
int uart_char_cnt = 0;
static void uart_irq_callback(struct device *dev)

View File

@ -7,4 +7,4 @@ CONFIG_LOG=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_STACK_SENTINEL=y
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_ARM_MPU=n
CONFIG_ARM_MPU=y