STMCU小助手
发布时间:2022-4-7 18:35
|
前段时间ST推出了Value Line的STM32F750和H750两个系列,看了一下选型表,F750有LQFP144封装,正好适合我的STM32 linux板子。 ) Z2 H9 P: P5 z( I 于是,双十一买了几片。同时,我对我的linux板做了小幅改版:将SPI Flash容量扩大到32MB并连接到F750的QSPI BANK1,添加了CAN收发器和接口,增加了两个I2C外设(温湿度传感器和气压传感器)。板子做回来后先焊了一片,调试过程还算比较顺利,现在u-boot和Linux都工作起来了,下面是系统启动log,F750速度还是相当快的(427.62% I7 X! B3 R1 u, u0 I BogoMIPS,F429跑Linux只有35.84 BogoMIPS),QSPI的加载速度也很给力。下一步我准备多测试几种STM32外设的Linux1 {5 O& R# q$ F: n; Y/ m# A driver,emcraft现在的SDK比两三年前多了不少外设驱动,可以都试试看。 % e7 q/ J( T$ M0 T P4 Z
2 M: J, v6 b( P) g2 d U-Boot 2010.03 (Nov 26 2018 - 21:30:21) 4 F3 K9 f# a3 U {9 X3 E CPU : STM32F7 (Cortex-M7) Freqs: SYSCLK=216MHz,HCLK=216MHz,PCLK1=54MHz,PCLK2=108MHz3 G0 c; [0 K+ U: v DRAM: 64 MB6 A; p2 ~0 p& ~6 j. z In: serial2 z3 j# E8 P; W' A! I Out: serial+ R! N4 V8 D, d2 l/ } Err: serial) x* w/ S: `0 W3 i8 g' q QSPI: 32 MB mapped at 0x90000000 Net: miiphy_register done.. l4 M/ |& x- d2 [9 \/ b eth hw init done. STM32_MAC1 w$ q& A' A" D5 C' h6 s2 n" c Hit any key to stop autoboot: 0# C0 L$ w7 s% _ Booting from QSPI8 k, x5 b* I) l) u# h2 ^( L ## Booting kernel from Legacy Image at c0007fc0 ...) Z+ g- _4 v5 V' S2 O Image Name: Linux-4.2.0: \3 B: s# t$ J5 }" H Image Type: ARM Linux Multi-File Image (uncompressed)5 j3 P% J7 _& M* z% r! j9 D: l4 x) G Data Size: 7496295 Bytes = 7.1 MB/ I/ L9 \4 j3 N, @; I2 z Load Address: c0008000 Entry Point: c0008001 Contents:/ l# P3 {( o( D# r& M" I Image 0: 7471388 Bytes = 7.1 MB6 ?$ \( \- @0 E Image 1: 24895 Bytes = 24.3 kB8 `3 ^" S( |+ L Verifying Checksum ... OK& f1 w/ x5 ]( y3 _( l ## Flattened Device Tree from multi component Image at C0007FC0' z; L% C3 S; f/ { Booting using the fdt at 0xc0728128 Loading Multi-File Image ... OK OK WARNING: legacy format multi component image overwritten Loading Device Tree to c3ff6000, end c3fff13e ... OK Starting kernel ... Booting Linux on physical CPU 0x0 Linux version 4.2.0 (hw@localhost.localdomain) (gcc version 4.4.1 (Sourcery G++ Lite 2010) L8 H9 A$ F; P1 p" p F q1-189) ) #90 Tue Dec 4 03:32:33 EST 20181 c) Q! Z! f. I; g- ^, E1 D, S7 w CPU: ARMv7-M [410fc271] revision 1 (ARMv7M), cr=00000000 CPU: WBA data cache, WBA instruction cache- n: A$ V- S2 @# A7 P/ L) N Machine model: EmCraft Systems STM32F7-SOM board Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256/ @; C+ q4 m0 u, N. C4 \ Kernel command line: stm32_platform=stm32f7-disco console=ttyS0,115200 panic=10 ip=169.25 4.1.10:169.254.1.2:::stm32f7-disco:eth0:off& @* O1 O U# U6 P7 h- p7 {! C PID hash table entries: 256 (order: -2, 1024 bytes)! ?" f6 @6 W# p Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 56432K/65536K available (2523K kernel code, 181K rwdata, 588K rodata, 4000K init,# |) w$ U5 X: [3 n2 G; y) T 111K bss, 9104K reserved, 0K cma-reserved) Virtual kernel memory layout: vector : 0x00000000 - 0x00001000 ( 4 kB)$ P) d- k( \; F5 Q. z( N N fixmap : 0xffc00000 - 0xfff00000 (3072 kB), [! t! s% E9 K/ B0 { { vmalloc : 0x00000000 - 0xffffffff (4095 MB) lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) .text : 0xc0008000 - 0xc0312000 (3112 kB)# K; u* ^ @- f6 R: [ .init : 0xc0312000 - 0xc06fa000 (4000 kB)+ I. f3 D! R. D( j" b4 [ .data : 0xc06fa000 - 0xc07277c0 ( 182 kB)" j0 g7 C. L% t% p& w" Z- u. G .bss : 0xc072811c - 0xc0743e84 ( 112 kB) NR_IRQS:16 nr_irqs:16 16 /interrupt-controller@40013c00: 24 External IRQs detected clocksource: arm_system_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 27651335 8 ns ARM System timer initialized as clocksource: a$ W: h, X3 C6 @! F4 d N /soc/timer@40000000: STM32 clockevent driver initialized (32 bits) sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns k' v; h1 `7 m/ c Calibrating delay loop... 427.62 BogoMIPS (lpj=2138112) pid_max: default: 4096 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)$ Q- i" l7 N5 O# s devtmpfs: initialized clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 0000 ns* S; F; p+ O& |; G8 b, H% z pinctrl core: initialized pinctrl subsystem- U! Z) p7 ?; U* l0 `; O! j7 A- Y NET: Registered protocol family 16! k& h$ i5 P8 g# } stm32-pinctrl pin-controller: nbanks = 11: j9 A. M( [7 b stm32-pinctrl pin-controller: nfunctions = 20. M+ e1 |4 S5 |5 t; `8 u; Q- @ stm32-pinctrl pin-controller: ngroups = 23 stm32-pinctrl pin-controller: GPIOA bank added. stm32-pinctrl pin-controller: GPIOB bank added.* x& P t' G" I/ I; p stm32-pinctrl pin-controller: GPIOC bank added.9 ]' a: z! Y, B q$ x5 V stm32-pinctrl pin-controller: GPIOD bank added. stm32-pinctrl pin-controller: GPIOE bank added.0 q( h, A' `; I& Z stm32-pinctrl pin-controller: GPIOF bank added. stm32-pinctrl pin-controller: GPIOG bank added.; Y; r: O F/ s& O stm32-pinctrl pin-controller: GPIOH bank added.4 p8 K3 R1 T& Q stm32-pinctrl pin-controller: GPIOI bank added.. E \7 ?) Z% ^+ p3 b( K stm32-pinctrl pin-controller: GPIOJ bank added.$ |/ G0 i4 J3 I) U2 r stm32-pinctrl pin-controller: GPIOK bank added. stm32-pinctrl pin-controller: Function[0 name:i2c_1, groups:1] stm32-pinctrl pin-controller: Function[1 name:i2c_2, groups:1]" u; H" J$ w3 S stm32-pinctrl pin-controller: Function[2 name:i2c_3, groups:1]6 N+ J6 l8 F6 Q0 h6 L9 c stm32-pinctrl pin-controller: Function[3 name:mac, groups:2] stm32-pinctrl pin-controller: Function[4 name:sdio, groups:1] stm32-pinctrl pin-controller: Function[5 name:spi_2, groups:1] stm32-pinctrl pin-controller: Function[6 name:spi_4, groups:1]! t8 J6 V: ~/ t7 d stm32-pinctrl pin-controller: Function[7 name:spi_5, groups:1] stm32-pinctrl pin-controller: Function[8 name:usart1, groups:1]1 x7 c2 \, R9 z% Q stm32-pinctrl pin-controller: Function[9 name:usart6, groups:1] stm32-pinctrl pin-controller: Function[10 name:usart7, groups:1]. d) K6 ?7 l2 B5 f' K; ?5 y stm32-pinctrl pin-controller: Function[11 name:usb_fs, groups:1]6 L b- {3 g5 e stm32-pinctrl pin-controller: Function[12 name:usb_hs, groups:1] stm32-pinctrl pin-controller: Function[13 name:can_1, groups:1]2 R5 v) {1 O+ h' f# z stm32-pinctrl pin-controller: Function[14 name:adc1_in0_pin, groups:1] C6 J# B7 Y3 D) `: {) y4 O4 X stm32-pinctrl pin-controller: Function[15 name:dac_out2_pin, groups:1] stm32-pinctrl pin-controller: Function[16 name:ltdc, groups:1]- X. ]# @, ]+ t stm32-pinctrl pin-controller: Function[17 name:sai_2, groups:1] stm32-pinctrl pin-controller: Function[18 name:i2c_4, groups:1] stm32-pinctrl pin-controller: Function[19 name:gpio, groups:3]9 L0 R9 i: J: j& t$ X, X2 P; K stm32-dma 40026000.dma: STM32 DMA driver registered stm32-dma 40026400.dma: STM32 DMA driver registered# [3 @. \7 m' G) W SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub% o9 r. `; f3 A, O usbcore: registered new device driver usb soc:phy_hs supply vcc not found, using dummy regulator soc:phy_fs supply vcc not found, using dummy regulator pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> PTP clock support registered Advanced Linux Sound Architecture Driver Initialized.: V: C# A. N$ ]6 v7 m& p Bluetooth: Core ver 2.20 NET: Registered protocol family 31 Bluetooth: HCI device and connection manager initialized) e3 W- f% X. `0 [5 J" j# ^. m Bluetooth: HCI socket layer initialized& |+ v0 n) R1 P" l0 s$ q Bluetooth: L2CAP socket layer initialized Bluetooth: SCO socket layer initialized clocksource: Switched to clocksource arm_system_timer NET: Registered protocol family 2 TCP established hash table entries: 1024 (order: 0, 4096 bytes)6 k% }7 E8 u8 q& y3 T5 W5 s TCP bind hash table entries: 1024 (order: 0, 4096 bytes)6 G" u" e+ Y- i TCP: Hash tables configured (established 1024 bind 1024)' O9 o" u% u8 A' ?& G UDP hash table entries: 256 (order: 0, 4096 bytes)* y4 I+ W( }0 l UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)6 X" Z B- H; g' C9 J; B$ e, ] NET: Registered protocol family 1( X3 E( d, Y0 g7 t* m4 r, k RPC: Registered named UNIX socket transport module.- T9 H' R) N) z8 J( Q9 ? RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module.) {% z' G0 \/ Z, w6 h. ~ Power Management for STM32/ V- S( r/ M' b3 O. k3 b) G! j! N futex hash table entries: 16 (order: -5, 192 bytes) jffs2: version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.7 x2 i5 E `" C( \% s fuse init (API version 7.23)0 M3 W! [' t* } U. H1 f0 Q7 |) H( B Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)0 l# Y" g$ d9 w: P2 B" ?/ I io scheduler noop registered" |* r' b' |- x& d! e io scheduler cfq registered (default) stm32-pinctrl pin-controller: maps: function gpio group pwms num 2& u& i8 R2 E3 z9 f. @ stm32-pwm pwm0: basing on TIM3.1(x16) stm32-pinctrl pin-controller: maps: function ltdc group ltdc-0 num 29 L7 ~$ l1 [9 p: l" @ stm32_lcdfb 40016800.ltdc: fb0: fb device registered successfully STM32 USART driver initialized9 a+ y9 A x ]5 v6 P stm32-pinctrl pin-controller: maps: function usart1 group usart1-0 num 3 40011000.serial: ttyS0 at MMIO 0x40011000 (irq = 34, base_baud = 6750000) is a stm32-usar t& I) L" X9 o( v) f; o" B console [ttyS0] enabled8 b6 P8 e5 z' j& B5 F( q( n0 }' T stm32-pinctrl pin-controller: maps: function usart6 group usart6-0 num 3 40011400.serial: ttyS5 at MMIO 0x40011400 (irq = 35, base_baud = 6750000) is a stm32-usar( `, P$ D1 g' b- j t nbd: registered device at major 43 stm32-pinctrl pin-controller: maps: function dac_out2_pin group dac-0 num 2 stm32_dac 40007400.dac: dac1: no timer assigned, DMA functionality is not available stm32_dac 40007400.dac: created 1 character devices with MAJOR 2482 c0 I" _4 s4 \, S( x% a4 y; N 2 ofpart partitions found on MTD device physmap-stm-flash.03 q8 F; w& H2 v, y8 Q( @" x# {. f Creating 2 MTD partitions on "physmap-stm-flash.0": 0x000000000000-0x000000020000 : "stm_flash_uboot"# Q! I% i/ f/ R4 W3 M* [ 0x000000040000-0x000000100000 : "stm_flash_unused": c1 K( ?$ p& j stm32-pinctrl pin-controller: maps: function spi_5 group spi_5-0 num 4! |7 V2 Y+ V! H, q5 l: y1 W9 i stm32-spi 40015000.spi: SPI Controller 4 at 40015000,irq=38,hz=108000000+ q. N) c2 K" q CAN device driver interface stm32-pinctrl pin-controller: maps: function can_1 group can_1-0 num 38 Z& z% {, W4 I stm32-can 40006400.can: device registered (reg=40006400, irq=31)7 J5 l: u B- H stm32-pinctrl pin-controller: maps: function mac group mac_rmii num 10 stmmac - user ID: 0x10, Synopsys ID: 0x35 Ring mode enabled DMA HW capability register supported. T6 `! Y' l7 I: R( B Enhanced/Alternate descriptors& p: F, q" `8 t; `% {$ t a Enabled extended descriptors RX Checksum Offload Engine supported (type 2) TX Checksum insertion supported, F6 |! S9 ~0 i Wake-Up On Lan supported" K1 G8 p e4 o Enable RX Mitigation via HW Watchdog Timer; j& H+ p5 `9 H( g7 `2 p* `7 l! l stm32-dwmac 40028000.ethernet eth0: No MDIO subnode found libphy: stmmac: probed eth0: PHY ID 0007c0f1 at 0 IRQ POLL (stmmac-0:00) active- t. N: b3 _6 u4 ` PPP generic driver version 2.4.2+ h: a! m1 N. w3 C ~ PPP BSD Compression module registered PPP Deflate Compression module registered usbcore: registered new interface driver rt2800usb( t0 P2 e; ^: }5 h) c- W stm32-pinctrl pin-controller: maps: function usb_hs group usb_hs-0 num 3- P; z$ d, g. a. s0 p! K! L& X dwc2 40040000.usb: DWC OTG Controller" C! j) U& t% u- f& J. ?, | dwc2 40040000.usb: new USB bus registered, assigned bus number 17 [2 \; u, S( q6 O' |: s dwc2 40040000.usb: irq 56, io mem 0x00000000 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1/ S2 M. e$ A% C usb usb1: Product: DWC OTG Controller usb usb1: Manufacturer: Linux 4.2.0 dwc2_hsotg usb usb1: SerialNumber: 40040000.usb; m v& d7 Y% A2 |# m4 ], H; m& b# h hub 1-0:1.0: USB hub found& c: |* g- C9 z6 E U i9 H7 C hub 1-0:1.0: 1 port detected stm32-pinctrl pin-controller: maps: function usb_fs group usb_fs-0 num 3 50000000.usb supply vusb_d not found, using dummy regulator/ t) ^4 p4 |# D3 v# j9 ~1 I 50000000.usb supply vusb_a not found, using dummy regulator% r# n- s* M9 } i3 X dwc2 50000000.usb: EPs: 6, dedicated fifos, 512 entries in SPRAM. `. m$ v5 l. c3 k7 z) p dwc2 50000000.usb: DCFG=0x08200000, DCTL=0x00000002, DIEPMSK=0000000b dwc2 50000000.usb: GAHBCFG=0x00000000, GHWCFG1=0x00000000# W/ J/ b0 A3 {8 I( }' ]0 T/ r! r0 {9 Z dwc2 50000000.usb: GRXFSIZ=0x000000a0, GNPTXFSIZ=0x004000a0! w0 r8 E! B6 G. ?; p5 q+ z dwc2 50000000.usb: DPTx[1] FSize=32, StAddr=0x000000e0 dwc2 50000000.usb: DPTx[2] FSize=64, StAddr=0x00000100 dwc2 50000000.usb: DPTx[3] FSize=512, StAddr=0x000008004 |$ d" i, k5 I$ \) ]9 _% G dwc2 50000000.usb: DPTx[4] FSize=512, StAddr=0x00000a00 dwc2 50000000.usb: DPTx[5] FSize=512, StAddr=0x00000c00" E4 Y* Z; i% C! Z. K; R; K3 _ dwc2 50000000.usb: ep0-in: EPCTL=0x00008000, SIZ=0x00000000, DMA=0x5abee5fb1 {8 `5 z. b; ?4 t; ~+ a dwc2 50000000.usb: ep0-out: EPCTL=0x00008000, SIZ=0x00000000, DMA=0x5abee5fb dwc2 50000000.usb: ep1-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x5abee5fb dwc2 50000000.usb: ep1-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x5abee5fb dwc2 50000000.usb: ep2-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x5abee5fb dwc2 50000000.usb: ep2-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x5abee5fb dwc2 50000000.usb: ep3-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x5abee5fb dwc2 50000000.usb: ep3-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x5abee5fb dwc2 50000000.usb: ep4-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x5abee5fb' A; Z; U" }( G. A- j" S dwc2 50000000.usb: ep4-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x5abee5fb dwc2 50000000.usb: ep5-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x5abee5fb dwc2 50000000.usb: ep5-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x5abee5fb dwc2 50000000.usb: DVBUSDIS=0x000017d7, DVBUSPULSE=000005b88 c9 n" s1 }2 w1 Y usbcore: registered new interface driver cdc_acm, C7 [$ c# g0 m- q/ P0 ?& A) l cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters usbcore: registered new interface driver uas3 M" f# ]6 p2 W9 |' s: s usbcore: registered new interface driver usb-storage9 s, l6 j& g+ M( ~, z/ n g_serial gadget: Gadget Serial v2.4 g_serial gadget: g_serial ready dwc2 50000000.usb: bound driver g_serial i2c /dev entries driver stm32-pinctrl pin-controller: maps: function i2c_4 group i2c_4-0 num 33 t4 r% a5 Y4 a5 x) [ N bmp085 3-0077: Successfully initialized bmp085!" c6 J0 d p3 E8 A* _ stm32f7-i2c 40006000.i2c: I2C Controller i2c-3 at 40006000,irq=58 Driver for 1-wire Dallas network protocol. usbcore: registered new interface driver btusb, o9 N% _0 b" ?* m stm32-pinctrl pin-controller: maps: function sdio group sdio-0 num 7 mmci-pl18x 40012c00.sdi: Got CD GPIO4 ?2 k3 r( \! r# N mmci-pl18x 40012c00.sdi: mmc0: PL180 manf 80 rev4 at 0x40012c00 irq 37,0 (pio)* X$ f. P, y* x# O stm32-dma 40026400.dma: stm32_dma_of_xlate: unable to get channel 3 - was already request1 T2 f& Z% F3 Z/ ^3 @$ s$ ` ed mmci-pl18x 40012c00.sdi: DMA channels RX dma1chan3, TX dma1chan3 stm32_gpio_to_irq: Event line 3 now points to fire interrupts from bank G5 G; L; C* U- b2 Y stm32-pinctrl pin-controller: maps: function gpio group outs num 2: {7 i$ d( k# X hidraw: raw HID events driver (C) Jiri Kosina usbcore: registered new interface driver usbhid+ m9 V* i( H' q) {/ a usbhid: USB HID core driver stm32-pinctrl pin-controller: maps: function adc1_in0_pin group adc1-0 num 2 stm32f4-adc 40012000.adc: registered* p M2 S" g! l Z ` ^ stm32-pinctrl pin-controller: maps: function sai_2 group sai_2-0 num 5: f) W( W( U7 y5 ]( h- M stm32-dma 40026400.dma: stm32_dma_of_xlate: unable to get channel 4 - was already request, V) N0 I; b4 I4 a3 r ed stm32-asoc-card sound: failed to find codec platform device C/ i1 H: I3 J* ~; P stm32-asoc-card: probe of sound failed with error -22 NET: Registered protocol family 17 can: controller area network core (rev 20120528 abi 9)% U# \2 ]5 ~$ ^" g; m) D) u NET: Registered protocol family 29! U$ h+ ~1 L3 D- Y$ R8 x can: raw protocol (rev 20120528)5 Z$ Y, U& ]5 O1 o can: broadcast manager protocol (rev 20120528 t) can: netlink gateway (rev 20130117) max_hops=1$ ]5 n' u5 ~* I Bluetooth: RFCOMM TTY layer initialized: a6 M& z0 n5 @# i$ x* S9 f Bluetooth: RFCOMM socket layer initialized8 ~9 {6 u/ H- q) F) |3 I Bluetooth: RFCOMM ver 1.11% y- }9 f/ J- ^% r hctosys: unable to open rtc device (rtc0)" n- F- X/ `7 L% a vmmc: disabling ALSA device list: No soundcards found. Freeing unused kernel memory: 4000K (c0312000 - c06fa000) init started: BusyBox v1.24.2 (2018-11-22 20:35:58 EST)- Q' `4 ]4 J5 Y+ f9 G1 M& A / # amixer: Mixer attach default error: No such file or directory stm32-dwmac 40028000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx / # free total used free shared buffers cached/ \9 X0 b: n' S+ t Mem: 60432 8140 52292 0 0 4792 -/+ buffers/cache: 3348 570842 _0 n4 C2 ~8 m/ Z / # " p3 o% Y! \! Z |
基于STM32F767通过cube配置:QSPI接口读写64M PSRAM+flash参考资料...
STM32F746G-DISCO移植lvgl9.0性能基准测试
STM32F745 USART1 Bootloader启动失败排查与解决的流程分析
STM32芯片命名规则
STM32 引脚到底有多少?为什么一个引脚能当好几个用?
入门嵌入式,为什么STM32是“优选起步”?
嵌入式-单片机-STM32 EXTI中断
STM32单片机进行除零运算,为何程序不崩溃?
STM32 LL为什么比HAL高效?
STM32时钟详解
微信公众号
手机版
哇哦!