GithubHelp home page GithubHelp logo

rt-thread-studio / sdk-bsp-stm32h750-realthread-artpi Goto Github PK

View Code? Open in Web Editor NEW
313.0 21.0 204.0 413.78 MB

Python 1.03% C 89.06% HTML 0.12% Assembly 2.08% C++ 6.61% Makefile 0.21% RPC 0.02% CMake 0.15% Ruby 0.15% Shell 0.50% Batchfile 0.01% Perl 0.01% CSS 0.01% M4 0.02% Lex 0.01% Yacc 0.02% Rust 0.01% Lua 0.01%

sdk-bsp-stm32h750-realthread-artpi's Issues

art_pi_factory的adb初始化问题

在art_pi_factory工程中,adb软件包中adb_socket_init,是不是要调整到wifi_ready_handler()中,否则若wifi没有开自动重连或者wifi网络比较差连接慢,当前INIT_APP_EXPORT(adb_socket_init) 会先于wifi联网完成前执行,使得adb服务未正确启动,进而导致adb无法使用的情况.
ART-Pi错误提示:
"[7821] E/sal.skt: not find network interface device by protocol family(2).
[7829] E/sal.skt: SAL socket protocol family input failed, return error -3.
[7838] E/ADB iosk: Create socket error
"

Feature requests

Hi, we are currently considering using your platform to develop a product. We have two questions regarding that.

  1. Is the board also compatible / available with the STM32H753XIH6. Are those pins compatible. The STM32H750XIH6 doesn't provide a lot of ram, which makes it unsuitable for our purpouses.
  2. Are there Altium files for the Schematic / PCB. It would be important for us to be able to continue production if you decide to cancel the product.

Best regards

.cproject 文件中文字符问题

在.cproject 文件中的第50行附近位置中,如果出现了中文字符“Gnu Make 构建器” 会导致studio无法识别为合法的CDT 工程,因此需确保该字段为英文字符 “Gnu Make Builder”

w25qxx驱动问题

W25QXX_WriteSR写状态寄存器2时,宏定义W25X_WriteStatusReg2命令码定义出错

DCMI 和 OV2640 的若干问题

缓冲区大小问题,这部分是DMA环形缓冲,不过已经分成了两个buffers,为什么在大小还需要乘以2.

static rt_uint32_t JPEG_LINE0_BUF[JPEG_LINE_SIZE * 2];

DCMI 结束部分的逻辑不太对。
这个函数是在frame complete callback 里面调用的,这部分存在的意义是啥。因为这里已经接收完成可以直接关闭或者重新开始下一帧的接受。


industry_io_gateway 工程在开启wifi时启动失败。

这个wifi设备驱动结构体与wifi驱动库libwifi_6212_armcm7_2.1.2_gcc.a中的相差8个字节,是否驱动库与内核wlan不兼容。
这个结构体 libwifi_6212_armcm7_2.1.2_gcc.a库中的要少几个字节。
struct rt_wlan_device
{
struct rt_device device;
rt_wlan_mode_t mode;
struct rt_mutex lock;
struct rt_wlan_dev_event_desc handler_table[RT_WLAN_DEV_EVT_MAX][RT_WLAN_DEV_EVENT_NUM];
rt_wlan_pormisc_callback_t pormisc_callback;
rt_wlan_mgnt_filter_callback_t mgnt_filter_callback;
const struct rt_wlan_dev_ops *ops;
rt_uint32_t flags;
struct netdev *netdev;
void *prot;
void *user_data;
};

系统环境变量RT_ROOT 破坏RTT_DIR的问题

在projects/*/Kconfig 文件第20行,引用了source "$RTT_DIR/../libraries/Kconfig",当用户系统环境变量中有RTT_ROOT时,RTT_DIR 被赋值为环境变量的RT_ROOT 的值,导致rt-thread settings 启动失败,menuconfig 也不能够正常启动

mainmenu "RT-Thread Configuration"

config BSP_DIR
    string
    option env="BSP_ROOT"
    default "."

config RTT_DIR
    string
    option env="RTT_ROOT"
    default "rt-thread"

config PKGS_DIR
    string
    option env="PKGS_ROOT"
    default "packages"

source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "$RTT_DIR/../libraries/Kconfig"

config RT_STUDIO_BUILT_IN
    bool
    select ARCH_ARM_CORTEX_M7
    select RT_USING_COMPONENTS_INIT
    default y

[WiFi 配网助手小程序] 蓝牙链接失败

WiFi 配网助手小程序]蓝牙链接失败
已经给微信授权蓝牙和 WiFi 权限,

机型:红米 Note 8 Pro
系统版本:MIUI Global 12.5.0 稳定版 12.0.5.0 (QGGEUXM)
微信版本:8.0.6

多内存管理策略

H7上有多块非连续内存分布情况,有高低速总线区别访问、外设定向内存区访问以及Cache数据一致性等情况出现,
因此针对H7这种非连续的多内存分布的管理,需要更加精准的定位到内存地址的定向分配情况。
这个问题该如何处理。@Guozhanxin @whj4674672

浮点数设置错误

STM32H7cortex_m7 的内核,他支持的是双精度浮点。

但是在 RTT-Studio 中设置的是 fpv4-sp-d16 这个是 cortex_m4 的单精度浮点数的设置。

所以应该修改为 fpv5-d16

这个应该修改哪个工程配置文件?

how to upload binary to ART-PI?

Pardon for trivial question, but how I upload compiled binary to ART-PI?
Things are complicate for me since I am working on MacOS and RT-Thread Studio not available there.
I am using command line scons to build binary.
I compiled an example project and I see rtthread.bin and rtthread.elf in the build folder.

Usually I would use openocd or removable folder to copy .utf fle.
But I can't find examples on how to do this with ART-PI (perhaps search in english won't find what i am looking for).
I don't want to loose factory code already on the board's flash (WiFi driver, etc) as it would be another problem for me.

Also, is it possible to upload factory code from the board's flash into a file so I can restore it later if i accidentally corrupt it?

Keil FLM下载算法的问题

Keil FLM 下载算法有问题,下载之后校验失败(并且还是内部flash校验失败???),调试发现直接进了hardfault

关于lab_serial分支中串口存在的问题

当前lab_serial中串口输出不一直占用MCU,其通过rt_completion_wait()等待实现,但是调用rt_kprintf输出串口日志时会存在以下问题:
1、如果不是在任务中调用rk_kprintf(),则程序会卡死在rt_completion_wait() -> rt_thread_suspend() -> RT_ASSERT(thread != RT_NULL);
示例:程序刚开始运行rtthread_startup() -> rt_show_version() -> rt_kprintf()
2、如果在任务中,位于临界区调用rt_kprintf(),即任务中先调用了rt_enter_critical(),然后再调用rt_kprintf(),则后续使用rt_kprintf()会出现异常。
示例:运行msh命令netstat,打印的数据不完整,并且后续日志打印都异常了。

缺少開啓支持保存 wifi 密碼到 flash 的調用,默認保存在內存。

. 默認的 factory 工程 easyflash 模塊的初始化 easyflash_init() 未執行,導致無法保存 wlan 密碼到 flash。測試 wifi autconnect 功能 ART-Pi 斷電後就無法再次連接 wifi。順帶出現的問題是雖然保留有 easyflash 區,但是因爲沒有執行 easyflash 的初始化,所有在執行 printenv 時也會提示錯誤。

msh />printenv
[Flash] ENV isn't initialize OK.

我嘗試修改通過判斷是否開啓重連 WIFI 的宏 RT_WLAN_AUTO_CONNECT_ENABLE 來選擇性地執行函數 wlan_autoconnect_init()。目前我將這部分修改放在文件 libraries/drivers/drv_wlan.c,不知道是否合適 😕 ,所以也沒有貿然提交 pr。

diff --git a/libraries/drivers/drv_wlan.c b/libraries/drivers/drv_wlan.c
index bab6b10..d2885ef 100644
--- a/libraries/drivers/drv_wlan.c
+++ b/libraries/drivers/drv_wlan.c
@@ -227,6 +227,9 @@ int rt_hw_wlan_init(void)
     }
 
     rt_thread_t tid = RT_NULL;
+#ifdef RT_WLAN_AUTO_CONNECT_ENABLE
+    wlan_autoconnect_init();
+#endif
 
     tid = rt_thread_create("wifi_init", wifi_init_thread_entry, RT_NULL, WIFI_INIT_THREAD_STACK_SIZE, WIFI_INIT_THREAD_PRIORITY, 20);
     if (tid)

touchgfx包有问题

@Aladdin-Wang
我是用RTT STDIO,按照你的教程bsp是1.1.0,都是用最新的包。使用的LED的模板
屏幕用的是原子800*480同配置的,触摸芯片也是9147.
显示可以显示图,但是不能动,不能数模,图里面没有曲线。

如附录文件所示;

IMG_20201202_204728

终端显示出错的问题如下:
`[D/drv.sdram] sdram init success, mapped at 0xC0000000, size is 33554432 bytes, data width is 16
[I/I2C] I2C bus [i2c1] registered

\ | /

  • RT - Thread Operating System
    / | \ 4.0.3 build Dec 1 2020
    2006 - 2020 Copyright by rt-thread team
    [D/drv.lcd] LTDC init success
    [I/touch] rt_touch init success
    [I/gt9147] touch device gt9147 init success

id = 9 1 4 7
range_x = 801
range_y = 481
point_num = 10
msh />psr: 0x00000000
r00: 0x0000000a
r01: 0x00000080
r02: 0x000000ff
r03: 0x0000000a
r04: 0x9000d3e5
r05: 0x240055d0
r06: 0x00000001
r07: 0x00000000
r08: 0xdeadbeef
r09: 0xdeadbeef
r10: 0xdeadbeef
r11: 0xdeadbeef
r12: 0x00000000
lr: 0x900019d7
pc: 0x00000000
hard fault on thread: TouchGFX�

thread pri status sp stack size max used left tick error


TouchGFX 15 running 0x000000d0 0x00002000 21% 0x0000000f 000
tshell 20 suspend 0x00000188 0x00001000 09% 0x00000009 000
tidle0 31 ready 0x00000060 0x00000100 53% 0x0000000d 000
timer 4 suspend 0x0000007c 0x00000200 24% 0x00000009 000
main 10 suspend 0x000000c0 0x00000800 25% 0x0000000c 000
usage fault:
SCB_CFSR_UFSR:0x02 INVSTATE`

支持的RT-Thread版本可以更新吗

我注意到如果使用 基于开发板创建工程,然后选择ARTPI,则RT-Thread版本只能选择v4.1.0,如果我想使用latest版本该怎么做呢

program internal flash?

Hello,

Where can I find the program that is loaded in the internal flash of the STM32H750?

Thank you

Warning: The core is locked up

有人知道是什么原因吗?
擦除也没用,还是Warning: The core is locked up

      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.11.0                  
      -------------------------------------------------------------------
Warning: The external loader file does not exist:
mode=normal
ST-LINK SN  : XXXXXXX
ST-LINK FW  : V2J37M26
Board       : --
Voltage     : 3.17V
SWD freq    : 4000 KHz
Connect mode: Normal
Reset mode  : Software reset
Device ID   : 0x450
Revision ID : Rev V
Device name : STM32H7xx
Flash size  : 128 KBytes
Device type : MCU
Device CPU  : Cortex-M7
BL Version  : 0x91
Mass erase ... 
Mass erase successfully achieved
Memory Programming ...
Opening and parsing file: rtthread.elf
  File          : rtthread.elf
  Size          : 123.36 KB 
  Address       : 0x90000000 
Erasing memory corresponding to segment 0:
Erasing external memory sectors [0 30]
Download in Progress:
Progress: 100%
File download complete
Time elapsed during download operation: 00:00:02.097
Verifying ...
Read progress:
北北北北北北北北北北北北北北北北北北北北北北北北北 50%
圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹 100%
Download verified successfully 
Hard reset is performed
RUNNING Program ... 
  Address:      : 0x8000000
Warning: The core is locked up
Start operation achieved successfully
The core is locked up, you can choose one of the following methods: 1.Open the debug configuration and select the full chip to erase 2.Use ST-Link Utility to erase the entire chip, and then burn the file
completed, elapse time :4339ms.

问题求教

请问industry_io_gateway例程中运行在web服务器中的网页是如何制作的?

开机例程需完善问题记录

  • 修改蓝牙名称 ART PI 为 ART-Pi
  • 修改蓝牙固件读取方式
  • 提供网页源文件
  • 支持 ADB
  • 获取到 IP 的情况,小程序再发送配网指令,不会返回 IP 地址
  • ymodem 传输失败
  • fal bench 速度比其他例程慢
  • 完善 README
  • FTP传输回导致终端卡死
  • mac 地址不能都是 11:22:33:44:55:66
  • web 网页上的资源文件使用 CDN 缓存,提升页面装载速度
  • 更新 CDN 地址
  • 优化 html 代码

BSP 1.3.0 烧录错误问题

使用BSP1.3.0创建项目,添加RT-AK后编译通过,但下载至开发板提示,程序烧录失败。

Opening and parsing file: rtthread.elf
  File          : rtthread.elf
  Size          : 159848 Bytes
  Address       : 0x90000000 
Erasing memory corresponding to segment 0:
Download in Progress:
Error: failed to download Segment[0]
Error: failed to download the File
MCU Reset

若是新建的BSP例程项目,则无该问题出现

RT-Thread Studio 1.1.4 ART-Pi使用情况反馈

  1. RT-Thread Settings中,勾选某软件包下的某个子配置,该配置下的选项可能不会展开(该问题出现在有多个子配置的情况,且之前未配置过该项。目前的一种解决方式:重新取消选择软件包,再次勾选软件包,则可以看到)
  2. “搜索”-》“C/C++搜索”-> "搜索字符串" 不支持 带空格的字符串(自动去除了空格)
  3. 同时打开多个Studio会出现“无法锁定工作空间”错误提示
  4. 同时存在多个ST-Link的时候,不支持ST-Link ID选择
  5. “基于开发板”-> " STM32H750-RT-ART-Pi"-> "示例工程", 创建新工程,新工程中的board目录下缺少下载算法文件stldr/ART-Pi_W25Q64.stldr,也因此"配置工程" -> "Download" -> External Loader 未指定外部下载算法文件目录
  6. art_pi_factory工程中有处笔误 RT-Thread Settings -> "库" -> "External Libraries " -> "Using RT-Thrad OTA Library"

1.2.1版本 使用touchgfx包,编译时会报错

image-20210816143302807
In file included from E:\Program\RT-ThreadStudio\RT-ThreadStudio\workspace\art-pi-touchgtx121\libraries\touchgfx_lib\Middlewares\ST\touchgfx\framework\include/mvp/MVPApplication.hpp:25:0, from E:\Program\RT-ThreadStudio\RT-ThreadStudio\workspace\art-pi-touchgtx121\libraries\touchgfx_lib\TouchGFX\generated\gui_generated\include/gui_generated/common/FrontendApplicationBase.hpp:7, from E:\Program\RT-ThreadStudio\RT-ThreadStudio\workspace\art-pi-touchgtx121\libraries\touchgfx_lib\TouchGFX\gui\include/gui/common/FrontendApplication.hpp:4, from E:\Program\RT-ThreadStudio\RT-ThreadStudio\workspace\art-pi-touchgtx121\libraries\touchgfx_lib\TouchGFX\generated\gui_generated\include/gui_generated/common/FrontendHeapBase.hpp:12, from E:\Program\RT-ThreadStudio\RT-ThreadStudio\workspace\art-pi-touchgtx121\libraries\touchgfx_lib\TouchGFX\gui\include/gui/common/FrontendHeap.hpp:4, from ../libraries/touchgfx_lib/TouchGFX/target/generated/TouchGFXConfiguration.cpp:19: e:\program\rt-threadstudio\rt-threadstudio\repo\extract\toolchain_support_packages\arm\gnu_tools_for_arm_embedded_processors\5.4.1\arm-none-eabi\include\c++\5.4.1\new:39:28: fatal error: bits/c++config.h: No such file or directory

Can I change WiFi chipset?

Hello.

Can I change WiFi chipset? If yes, can you give me quick guide?
In my study, library file in sdk-bsp-stm32h750-realthread-artpi-master\libraries\wlan_wiced_lib is from Wiced platform (Cypress).
Do I have to build a library first at Wiced platfomr?

Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.