ARM STM32 Update

An area to discuss ARM specific problems and examples

Moderator: Benj

volodymyr0604
Posts: 47
Joined: Sun Apr 05, 2009 2:39 pm
Been thanked: 1 time
Contact:

Re: ARM STM32 Update

Post by volodymyr0604 »

Hello Benj. That's what the compiler gives out

Device STM32F051x8

F:\#$RED-~1\STM32F0>arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -mfloat-abi=soft -D__SOFTFP__ -Os -DSTM32 -DSTM32F0 -DSTM32F051x8 -DUSE_HAL_DRIVER -DHSE_VALUE=8000000 -IC:\PROGRA~2\FLOWCO~3\COMPIL~1\STARM\batch\..\stm32cubeF0\Drivers\CMSIS\Include -IC:\PROGRA~2\FLOWCO~3\COMPIL~1\STARM\batch\..\stm32cubeF0\Drivers\CMSIS\Device\ST\STM32F0xx\Include -IC:\PROGRA~2\FLOWCO~3\COMPIL~1\STARM\batch\..\stm32cubeF0\Drivers\STM32F0xx_HAL_Driver\Inc -IC:\PROGRA~2\FLOWCO~3\COMPIL~1\STARM\batch\..\stm32cubeF0\Drivers\STM32F0xx_HAL_Driver\Inc\Legacy -IC:\PROGRA~2\FLOWCO~3\COMPIL~1\STARM\batch\..\inc -fmessage-length=0 -fdata-sections -ffunction-sections -w -c "Regulador_STM32F051C8.c" -o "Regulador_STM32F051C8_STM32F051x8_8000000\Regulador_STM32F051C8.o"
In file included from C:\Program Files (x86)\Flowcode 7\CAL\includes.c:780:0,
from Regulador_STM32F051C8.c:1029:
C:\Program Files (x86)\Flowcode 7\CAL\STARM\STARM_CAL_SPI.c:72:10: error: redefinition of 'MX_PRESCALE_VAR_X'
MX_UINT8 MX_PRESCALE_VAR_X = (MX_SPI_PR_SCALE_X / 2) - 1;
^
In file included from C:\Program Files (x86)\Flowcode 7\CAL\includes.c:759:0,
from Regulador_STM32F051C8.c:1029:
C:\Program Files (x86)\Flowcode 7\CAL\STARM\STARM_CAL_SPI.c:72:10: note: previous definition of 'MX_PRESCALE_VAR_X' was here
MX_UINT8 MX_PRESCALE_VAR_X = (MX_SPI_PR_SCALE_X / 2) - 1;
^
Error(s) in build

C:\Program Files (x86)\Flowcode 7\compilers\STARM\batch\stm32comp.bat notificado código de error 1

volodymyr0604
Posts: 47
Joined: Sun Apr 05, 2009 2:39 pm
Been thanked: 1 time
Contact:

Re: ARM STM32 Update

Post by volodymyr0604 »

Hello, Benj. I have the latest update to Flowcode v7.2.1.4

volodymyr0604
Posts: 47
Joined: Sun Apr 05, 2009 2:39 pm
Been thanked: 1 time
Contact:

Re: ARM STM32 Update

Post by volodymyr0604 »

Benj, I replaced STARМ_CAL_SPI.C in the compilation was successful

volodymyr0604
Posts: 47
Joined: Sun Apr 05, 2009 2:39 pm
Been thanked: 1 time
Contact:

Re: ARM STM32 Update

Post by volodymyr0604 »

Hola Benj.
The I2C-SW component does not work with STM32F051S8, the processor does not follow the instructions.
I checked the I2C port with a program written by me without a delay on FС, the speed is 50 kbits,
everything is working fine. Please check the I2C component for STM32,
Maybe I'm doing something wrong.
Thank you.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: ARM STM32 Update

Post by LeighM »

Hi,
Please could you give an example Flowcode program and explain what is wrong?

volodymyr0604
Posts: 47
Joined: Sun Apr 05, 2009 2:39 pm
Been thanked: 1 time
Contact:

Re: ARM STM32 Update

Post by volodymyr0604 »

Hey
When using I2C or RTS, the DS3231 gives errors when compiling.

Device STM32F051x8
TEST_Relo_STM32F051C8T6.c:277:24: error: unknown type name 'FCD_0a3a1_RTC1__ReadTime'
MX_DLL_DECL(MX_UINT8, FCD_0a3a1_RTC1__ReadTime, (MX_UINT8 FCL_UNIT));
TEST_Relo_STM32F051C8T6.c:277:50: error: expected declaration specifiers or '...' before '(' token
MX_DLL_DECL(MX_UINT8, FCD_0a3a1_RTC1__ReadTime, (MX_UINT8 FCL_UNIT));
TEST_Relo_STM32F051C8T6.c:281:24: error: unknown type name 'FCD_0a3a1_RTC1__ReadDate'
MX_DLL_DECL(MX_UINT8, FCD_0a3a1_RTC1__ReadDate, (MX_UINT8 FCL_UNIT));
TEST_Relo_STM32F051C8T6.c:281:50: error: expected declaration specifiers or '...' before '(' token
MX_DLL_DECL(MX_UINT8, FCD_0a3a1_RTC1__ReadDate, (MX_UINT8 FCL_UNIT));
TEST_Relo_STM32F051C8T6.c:298:69: error: 'FCVsz_01211_Buffer_Char__DATA' undeclared here (not in a function)
__attribute__((far)) MX_GLOBAL MX_UINT8 FCV_01211_Buffer_Char__DATA[FCVsz_01211_Buffer_Char__DATA];
Error(s) in build
C:\Program Files (x86)\Flowcode 7\compilers\STARM\batch\stm32comp.bat notificado código de error 1

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: ARM STM32 Update

Post by LeighM »


User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

Re: ARM STM32 Update

Post by STibor »

Hello,

Are you planning support for multiple F7 ARM development boards?
Available at:
NUCLEO-F767ZI - Development Board, STM32 Nucleo-144 STM32F767ZI MCU, 32-Bit, Arduino, ST Zio & Morpho Connectivity
http://www.st.com/en/evaluation-tools/n ... 767zi.html
and
NUCLEO-F722ZE - STM32 Nucleo-144 Board
http://www.st.com/en/evaluation-tools/n ... 722ze.html
Mini board 32L4:
NUCLEO-L432KC
http://www.st.com/en/evaluation-tools/n ... 432kc.html
And the big gun:
NUCLEO-H743ZI
https://my.st.com/content/my_st_com/en/ ... 743zi.html

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: ARM STM32 Update

Post by LeighM »

Thanks for the interest list, I will take a look and see what's involved.

User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

Re: ARM STM32 Update

Post by STibor »

LeighM wrote:Thanks for the interest list, I will take a look and see what's involved.
Thanks!
I uploaded a bad link.
Board:
http://www.st.com/en/evaluation-tools/n ... 743zi.html
Controller:
http://www.st.com/en/microcontrollers/stm32h743zi.html

User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

Re: ARM STM32 Update

Post by STibor »

Hello!

Available soon.
Would not it be good to develop it?
http://uk.farnell.com/stmicroelectronic ... m%2Fsearch

STM32H743ZI
Key Features

Core
32-bit Arm® Cortex®-M7 core with double-precision FPU and L1 cache: 16 Kbytes of data and 16 Kbytes of instruction cache allowing one cache line to be filled in a single access from the 256-bit embedded Flash memory; frequency up to 400 MHz, MPU, 856 DMIPS/ 2.14 DMIPS/MHz (Dhrystone 2.1), and DSP instructions
Memories
Up to 2 Mbytes of Flash memory with read-while-write support
1 Mbyte of RAM: 192 Kbytes of TCM RAM (inc. 64 Kbytes of ITCM RAM + 128 Kbytes of DTCM RAM for time critical routines), 864 Kbytes of user SRAM, and 4 Kbytes of SRAM in Backup domain
Dual mode Quad-SPI memory interface running up to 133 MHz
Flexible external memory controller with up to 32-bit data bus: SRAM, PSRAM, SDRAM/LPSDR SDRAM, NOR/NAND Flash clocked up to 133 MHz in synchronous mode
CRC calculation unit
Security
ROP, PC-ROP, active tamper
General-purpose input/outputs
Up to 168 I/O ports with interrupt capability
Fast I/Os capable of up to 133 MHz
Up to 164 5 V-tolerant I/Os
Reset and power management
3 separate power domains which can be independently clock gated or switched off to maximize power efficiency:
D1: high-performance capabilities for high bandwidth peripherals
D2: communication peripherals and timers
D3: reset/clock control/power management
1.62 to 3.6 V application supply and I/Os
POR, PDR, PVD and BOR
Dedicated USB power embedding a 3.3 V internal regulator to supply the internal PHYs
Embedded regulator (LDO) with configurable scalable output to supply the digital circuitry
Voltage scaling in Run and Stop mode (5 configurable ranges)
Backup regulator (~0.9 V)
Voltage reference for analog peripheral/VREF+
Low-power modes: Sleep, Stop, Standby and VBAT supporting battery charging
Low-power consumption
Total current consumption down to 4 μA
Clock management
Internal oscillators: 64 MHz HSI, 48 MHz HSI48, 4 MHz CSI, 40 kHz LSI
External oscillators: 4-48 MHz HSE, 32.768 kHz LSE
3× PLLs (1 for the system clock, 2 for kernel clocks) with fractional mode
Interconnect matrix
4 DMA controllers to unload the CPU
1× high-speed general-purpose master direct memory access controller (MDMA) with linked list support
2× dual-port DMAs with FIFO and request router capabilities
1× basic DMA with request router capabilities
Up to 35 communication peripherals
4× I2C FM+ interfaces (SMBus/PMBus)
4× USART/4x UARTs (ISO7816 interface, LIN, IrDA, modem control, up to 12.5 Mbit/s) and 1x LPUART
6× SPIs, including 3 with muxed duplex I2S audio class accuracy via internal audio PLL or external clock, 1x I2S in LP domain (up to 133 MHz)
4x SAIs (serial audio interface)
SPDIFRX interface
SWPMI single-wire protocol master I/F
MDIO Slave interface
2× SD/SDIO/MMC interfaces (up to 125 MHz)
2× CAN controllers: 2 with CAN FD, 1 with time-triggered CAN (TT-CAN)
2× USB OTG interfaces (1FS, 1HS/FS)
Ethernet MAC interface with DMA controller
HDMI-CEC
8- to 14-bit camera interface (up to 80 MHz)
11 analog peripherals
3× ADCs with 16-bit max. resolution (14 bits 4 MSPS, 16 bits 3.6 MSPS)
1× temperature sensor
2× 12-bit D/A converters (1 MHz)
2× ultra-low-power comparators
2× operational amplifiers (8 MHz bandwidth)
1× digital filters for sigma delta modulator (DFSDM) with 8 channels/4 filters
Graphics
LCD-TFT controller up to XGA resolution
Chrom-ART graphical hardware Accelerator™ (DMA2D) to reduce CPU load
Hardware JPEG Codec
Up to 22 timers and watchdogs
1× high-resolution timer (2.5 ns max resolution)
2× 32-bit timers with up to 4 IC/OC/PWM or pulse counter and quadrature (incremental) encoder input (up to 200 MHz)
2× 16-bit advanced motor control timers (up to 200 MHz)
10× 16-bit general-purpose timers (up to 200 MHz)
5× 16-bit low-power timers (up to 200 MHz)
2× watchdogs (independent and window)
1× SysTick timer
RTC with sub-second accuracy & HW calendar
Debug mode
SWD & JTAG interfaces
4 Kbyte Embedded Trace Buffer
True random number generators (3 oscillators each)
96-bit unique ID

Docara
Posts: 315
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 28 times
Been thanked: 61 times
Contact:

Re: ARM STM32 Update

Post by Docara »

Yes but will it be able to flash an LED once a second????

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ARM STM32 Update

Post by Benj »

Docara wrote:Yes but will it be able to flash an LED once a second????
Now you're talking :wink:

Post Reply