Skip to content

Commit 76202e2

Browse files
messigogogoMaigoW
andauthored
🎯 [libcpu/arm/cortex-a]修改arm/cortex-a启动方式,解决cortex-a开启SMP工作异常问题 (#8517)
Co-authored-by: wangzongqiang <[email protected]>
1 parent 53754ff commit 76202e2

28 files changed

+747
-462
lines changed

bsp/phytium/aarch32/.config

+43-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ CONFIG_RT_NAME_MAX=16
1111
# CONFIG_RT_USING_SMART is not set
1212
# CONFIG_RT_USING_NANO is not set
1313
# CONFIG_RT_USING_AMP is not set
14-
# CONFIG_RT_USING_SMP is not set
15-
CONFIG_RT_CPUS_NR=1
14+
CONFIG_RT_USING_SMP=y
15+
CONFIG_RT_CPUS_NR=4
1616
CONFIG_RT_ALIGN_SIZE=4
1717
# CONFIG_RT_THREAD_PRIORITY_8 is not set
1818
CONFIG_RT_THREAD_PRIORITY_32=y
@@ -26,6 +26,7 @@ CONFIG_RT_HOOK_USING_FUNC_PTR=y
2626
CONFIG_RT_USING_IDLE_HOOK=y
2727
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
2828
CONFIG_IDLE_THREAD_STACK_SIZE=4096
29+
CONFIG_SYSTEM_THREAD_STACK_SIZE=4096
2930
CONFIG_RT_USING_TIMER_SOFT=y
3031
CONFIG_RT_TIMER_THREAD_PRIO=4
3132
CONFIG_RT_TIMER_THREAD_STACK_SIZE=4096
@@ -43,6 +44,7 @@ CONFIG_RT_DEBUGING_COLOR=y
4344
CONFIG_RT_DEBUGING_CONTEXT=y
4445
# CONFIG_RT_DEBUGING_AUTO_INIT is not set
4546
# CONFIG_RT_DEBUGING_PAGE_LEAK is not set
47+
# CONFIG_RT_DEBUGING_SPINLOCK is not set
4648

4749
#
4850
# Inter-Thread communication
@@ -76,6 +78,7 @@ CONFIG_RT_USING_HEAP=y
7678
CONFIG_RT_USING_DEVICE=y
7779
# CONFIG_RT_USING_DEVICE_OPS is not set
7880
# CONFIG_RT_USING_INTERRUPT_INFO is not set
81+
# CONFIG_RT_USING_THREDSAFE_PRINTF is not set
7982
CONFIG_RT_USING_CONSOLE=y
8083
CONFIG_RT_CONSOLEBUF_SIZE=256
8184
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
@@ -436,6 +439,21 @@ CONFIG_RT_USING_ADT_REF=y
436439
#
437440
# CONFIG_PKG_USING_WLAN_WICED is not set
438441
# CONFIG_PKG_USING_RW007 is not set
442+
443+
#
444+
# CYW43012 WiFi
445+
#
446+
# CONFIG_PKG_USING_WLAN_CYW43012 is not set
447+
448+
#
449+
# BL808 WiFi
450+
#
451+
# CONFIG_PKG_USING_WLAN_BL808 is not set
452+
453+
#
454+
# CYW43439 WiFi
455+
#
456+
# CONFIG_PKG_USING_WLAN_CYW43439 is not set
439457
# CONFIG_PKG_USING_COAP is not set
440458
# CONFIG_PKG_USING_NOPOLL is not set
441459
# CONFIG_PKG_USING_NETUTILS is not set
@@ -457,7 +475,6 @@ CONFIG_RT_USING_ADT_REF=y
457475
# CONFIG_PKG_USING_JIOT-C-SDK is not set
458476
# CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set
459477
# CONFIG_PKG_USING_JOYLINK is not set
460-
# CONFIG_PKG_USING_EZ_IOT_OS is not set
461478
# CONFIG_PKG_USING_IOTSHARP_SDK is not set
462479
# CONFIG_PKG_USING_NIMBLE is not set
463480
# CONFIG_PKG_USING_LLSYNC_SDK_ADAPTER is not set
@@ -478,6 +495,7 @@ CONFIG_RT_USING_ADT_REF=y
478495
# CONFIG_PKG_USING_NMEALIB is not set
479496
# CONFIG_PKG_USING_PDULIB is not set
480497
# CONFIG_PKG_USING_BTSTACK is not set
498+
# CONFIG_PKG_USING_BT_CYW43012 is not set
481499
# CONFIG_PKG_USING_LORAWAN_ED_STACK is not set
482500
# CONFIG_PKG_USING_WAYZ_IOTKIT is not set
483501
# CONFIG_PKG_USING_MAVLINK is not set
@@ -497,6 +515,8 @@ CONFIG_RT_USING_ADT_REF=y
497515
# CONFIG_PKG_USING_ZFTP is not set
498516
# CONFIG_PKG_USING_WOL is not set
499517
# CONFIG_PKG_USING_ZEPHYR_POLLING is not set
518+
# CONFIG_PKG_USING_MATTER_ADAPTATION_LAYER is not set
519+
# CONFIG_PKG_USING_LHC_MODBUS is not set
500520

501521
#
502522
# security packages
@@ -543,7 +563,6 @@ CONFIG_RT_USING_ADT_REF=y
543563
# LVGL: powerful and easy-to-use embedded GUI library
544564
#
545565
# CONFIG_PKG_USING_LVGL is not set
546-
# CONFIG_PKG_USING_LITTLEVGL2RTT is not set
547566
# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set
548567
# CONFIG_PKG_USING_GUI_GUIDER_DEMO is not set
549568

@@ -619,6 +638,7 @@ CONFIG_RT_USING_ADT_REF=y
619638
# CONFIG_PKG_USING_HASH_MATCH is not set
620639
# CONFIG_PKG_USING_ARMV7M_DWT_TOOL is not set
621640
# CONFIG_PKG_USING_VOFA_PLUS is not set
641+
# CONFIG_PKG_USING_ZDEBUG is not set
622642

623643
#
624644
# system packages
@@ -655,6 +675,8 @@ CONFIG_RT_USING_ADT_REF=y
655675
# CONFIG_PKG_USING_UC_COMMON is not set
656676
# CONFIG_PKG_USING_UC_MODBUS is not set
657677
# CONFIG_PKG_USING_FREERTOS_WRAPPER is not set
678+
# CONFIG_PKG_USING_LITEOS_SDK is not set
679+
# CONFIG_PKG_USING_TZ_DATABASE is not set
658680
# CONFIG_PKG_USING_CAIRO is not set
659681
# CONFIG_PKG_USING_PIXMAN is not set
660682
# CONFIG_PKG_USING_PARTITION is not set
@@ -678,6 +700,7 @@ CONFIG_RT_USING_ADT_REF=y
678700
# CONFIG_PKG_USING_QBOOT is not set
679701
# CONFIG_PKG_USING_PPOOL is not set
680702
# CONFIG_PKG_USING_OPENAMP is not set
703+
# CONFIG_PKG_USING_RPMSG_LITE is not set
681704
# CONFIG_PKG_USING_LPM is not set
682705
# CONFIG_PKG_USING_TLSF is not set
683706
# CONFIG_PKG_USING_EVENT_RECORDER is not set
@@ -691,6 +714,11 @@ CONFIG_RT_USING_ADT_REF=y
691714
# CONFIG_PKG_USING_AGILE_UPGRADE is not set
692715
# CONFIG_PKG_USING_FLASH_BLOB is not set
693716
# CONFIG_PKG_USING_MLIBC is not set
717+
# CONFIG_PKG_USING_TASK_MSG_BUS is not set
718+
# CONFIG_PKG_USING_SFDB is not set
719+
# CONFIG_PKG_USING_RTP is not set
720+
# CONFIG_PKG_USING_REB is not set
721+
# CONFIG_PKG_USING_R_RHEALSTONE is not set
694722

695723
#
696724
# peripheral libraries and drivers
@@ -755,6 +783,7 @@ CONFIG_RT_USING_ADT_REF=y
755783
# CONFIG_PKG_USING_BALANCE is not set
756784
# CONFIG_PKG_USING_SHT2X is not set
757785
# CONFIG_PKG_USING_SHT3X is not set
786+
# CONFIG_PKG_USING_SHT4X is not set
758787
# CONFIG_PKG_USING_AD7746 is not set
759788
# CONFIG_PKG_USING_ADT74XX is not set
760789
# CONFIG_PKG_USING_MAX17048 is not set
@@ -855,6 +884,11 @@ CONFIG_RT_USING_ADT_REF=y
855884
# CONFIG_PKG_USING_FINGERPRINT is not set
856885
# CONFIG_PKG_USING_BT_ECB02C is not set
857886
# CONFIG_PKG_USING_UAT is not set
887+
# CONFIG_PKG_USING_ST7789 is not set
888+
# CONFIG_PKG_USING_VS1003 is not set
889+
# CONFIG_PKG_USING_X9555 is not set
890+
# CONFIG_PKG_USING_SYSTEM_RUN_LED is not set
891+
# CONFIG_PKG_USING_PHYTIUM_SDK is not set
858892
# CONFIG_PKG_USING_SPI_TOOLS is not set
859893

860894
#
@@ -869,6 +903,7 @@ CONFIG_RT_USING_ADT_REF=y
869903
# CONFIG_PKG_USING_ULAPACK is not set
870904
# CONFIG_PKG_USING_QUEST is not set
871905
# CONFIG_PKG_USING_NAXOS is not set
906+
# CONFIG_PKG_USING_R_TINYMAIX is not set
872907

873908
#
874909
# Signal Processing and Control Algorithm Packages
@@ -878,6 +913,7 @@ CONFIG_RT_USING_ADT_REF=y
878913
# CONFIG_PKG_USING_UKAL is not set
879914
# CONFIG_PKG_USING_DIGITALCTRL is not set
880915
# CONFIG_PKG_USING_KISSFFT is not set
916+
# CONFIG_PKG_USING_CMSIS_DSP is not set
881917

882918
#
883919
# miscellaneous packages
@@ -915,6 +951,7 @@ CONFIG_RT_USING_ADT_REF=y
915951
# CONFIG_PKG_USING_MINILZO is not set
916952
# CONFIG_PKG_USING_QUICKLZ is not set
917953
# CONFIG_PKG_USING_LZMA is not set
954+
# CONFIG_PKG_USING_RALARAM is not set
918955
# CONFIG_PKG_USING_MULTIBUTTON is not set
919956
# CONFIG_PKG_USING_FLEXIBLE_BUTTON is not set
920957
# CONFIG_PKG_USING_CANFESTIVAL is not set
@@ -1099,6 +1136,7 @@ CONFIG_RT_USING_ADT_REF=y
10991136
#
11001137
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_GFX_LIBRARY is not set
11011138
# CONFIG_PKG_USING_ARDUINO_U8G2 is not set
1139+
# CONFIG_PKG_USING_ARDUINO_TFT_ESPI is not set
11021140
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ST7735 is not set
11031141
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SSD1306 is not set
11041142
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ILI9341 is not set
@@ -1107,6 +1145,7 @@ CONFIG_RT_USING_ADT_REF=y
11071145
#
11081146
# Timing
11091147
#
1148+
# CONFIG_PKG_USING_ARDUINO_RTCLIB is not set
11101149
# CONFIG_PKG_USING_ARDUINO_MSTIMER2 is not set
11111150
# CONFIG_PKG_USING_ARDUINO_TICKER is not set
11121151
# CONFIG_PKG_USING_ARDUINO_TASKSCHEDULER is not set
@@ -1143,7 +1182,6 @@ CONFIG_RT_USING_ADT_REF=y
11431182
#
11441183
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MFRC630 is not set
11451184
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SI5351 is not set
1146-
# CONFIG_PKG_USING_ARDUINO_RTCLIB is not set
11471185

11481186
#
11491187
# Signal IO

bsp/phytium/aarch32/applications/main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static void demo_core_thread(void *parameter)
5858
level = rt_cpus_lock();
5959
rt_kprintf("Hi, core%d \r\n", rt_hw_cpu_id());
6060
rt_cpus_unlock(level);
61-
rt_thread_mdelay(2000000);
61+
rt_thread_mdelay(200000);
6262
}
6363
}
6464

@@ -87,7 +87,7 @@ void demo_core(void)
8787
int main(void)
8888
{
8989
#ifdef RT_USING_SMP
90-
// demo_core();
90+
demo_core();
9191
#endif
9292
return RT_EOK;
9393
}

0 commit comments

Comments
 (0)