-
Thread
STM32 and SMBus
Hello everyone, I am trying to communicate with a MAX11068 from a STM32F103 over SMBus, but it does not work as expected. Has anybody worked with the SMBus and would be so kind to provide sample code? Michael
-
Thread
STM32-MAT/TARGET
Hi, I am trying to generate sine modulated PWM on STM32F401-Disco board using MATLAB. The desired freq of a sine wave is 50Hz and of the carrier wave is 20kHz. But I am not getting 50Hz freq. Please suggest a solution. I need sine modulated PWM
-
Thread
C++ STL and STM32
Hi, I have a problem with the C++ STL on the STM32. The following code works as expected on my hardware (chinese board with STM32F103..) [c] int main(void) { char Line[512]; std::list<std::string> *pHistory; pHistory = new std::list<
Hello Hase, I agree that I strain the stack a bit, but out of the 64k RAM in the STM32, I have less than 8k for .data and .bss sections. The remaining 56k are used for heap and stack. The initial stack pointer is set to the end of RAM and the heap grows upwards from the end of the .
-
Thread
Atomic write - STM32
Hi, I'm currently working with a STM32F4 and try to implement atomic access to variables (e.g. mutexes). Currently, I disable all interrupts before accessing a mutex, and enable them afterwards. Now there exist the LDREX and STREX commands on the STM32, which seem to be perfect for my application. But how do I use them correctly? In the manual it says that an STREX *must* have the same address as the previous LDREX. So I still need to disable interrupts
-
Thread
WinARM support for STM32
I want to ask, if somebody use WinARM for the STM32 Cortex-M3? And I want to ask Martin Thomas about his plans about including working examples or, at least, examples of Makefile and *.ld files for the STM32 series microcontrollers in WinARM. I tried
Varuzhan Danielyan wrote: > I want to ask, if somebody use WinARM for the STM32 Cortex-M3? > And I want to ask Martin Thomas about his plans about including > working examples or, at least, examples of Makefile and *.ld files > for the STM32 series microcontrollers in WinARM
-
Thread
STM32 HAL Delay too slow
Hi, I recently started with an STM32F103C8T6 on a bluepill board. I am using SW4STM32 on Windows 10. When writing a program that blinks an LED on PC13 with the standard peripheral library and implementing my own SysTick_Handler
SystemCoreClock / 1000); } // My own SysTick_Handler void SysTick_Handler(void) { static uint32_t millis = 0; millis++; if (millis % 1000 == 0) { flipPin(); } } [/c] When I tried porting this code to a project using the Cube HAL libraries provided by SW4STM32 and using HAL_Delay
-
Thread
STM32 GDB on Mac OS
(GPIOx=0xa, PortVal=<optimized out>) at /l/arm/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.c:423 423 /l/arm/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.c: No such
with fixing this issue. Could someone advice on how to address this problem? I started by loading the STM32VL library into my project folder STM32 Template but the error persists. I don't understand why gdb is looking for thestm32f10x_gpio.c since the .elf file is already a compiled and ready to be loaded
-
Thread
STM32F103 math package
This is the overview of STM32F103 newly updated. It includes the clock tree of STM32F103 and more, hope it helps. https://www.embedic.com/technology/details/stm32f103
This is the overview of STM32F103 newly updated. https://get-9apps.com/web/ https://get-cartoonhd.com
-
Thread
QSPI - STM32F7
Hello friends. I have a small problem with my QSPI on STM32F7. I connect memory on this pins. PB10 - CS flash PF8 - IO0 (SI) PF9 - IO1 (SO) PF10 - SCK And I call in main: [c] int main(void) { /* init NVICcm */ LL_Init(); /* init system clock
do you know when exactly you Need to check the WLE Bit? Assume you're using your Code for different STM32's with different clock Settings or something like that? That's the reason why I do it like posted above (multiple checks with timeout) makes more sense than to check the WLE just once. The same
-
Thread
STM32 Virtual COM Port driver
based on Windows XP. The driver (inf-file) described at: http://www.mikrocontroller.net/articles/STM32_USB-FS-Device_Lib and available at: http://www.mikrocontroller.net/articles/Datei:Stmcdc.inf works fine when the host is based on Windows 2000, but we can not find this inf-file on the ST web-pages
-
Thread
STM32 UCOS/II GCC port
Hi All, We have use UCOS/II for different CPU, but now our customer are using an STM32 CPU on their new design. I would like to know if the GCC port has been done be someone else that Micrium ? The only port that I have seen on micrium is the IAR one. Regards Jonathan
-
Thread
STM32F401RE GPIO
Hi I'm asking for an assembly code for GPIO that have three LED with four switches .. each switch opens each LED.. I tried my code but only make s all the LED light up without the toggle..
-
Thread
Cool: STM32 CubeMX for Linux
It seems not (yet) being official announced by STM, but I've just discovered that the actual STM32 CubeMX V5.0.1 package contains an installer for Linux... https://www.st.com/en/ecosystems/stm32cube.html#overview ...and it works!
manually unpacked and started. It is even mentioned on https://www.mikrocontroller.net/articles/STM32#STM32CubeMX
-
Thread
First try STM32F4-Discovery
f ./cmsis/device/system_stm32f4xx.c.bak ./src/syscalls.c.bak ./src/main.c.ba k rm -f ./cmsis/device/system_stm32f4xx.lst ./src/syscalls.lst ./src/main.lst rm -f ./cmsis/device/startup_stm32f4xx.s.bak rm -f ./cmsis/device/startup_stm32f4xx.lst
ffunctio n-sections -fdata-sections -Wa,-ahlms=cmsis/device/system_stm32f4xx.lst -DRUN_ FROM_FLASH=0 -DVECT_TAB_SRAM -MD -MP -MF .dep/system_stm32f4xx.o.d -I . -I./inc -I./cmsis/core -I./cmsis/device cmsis/device/system_stm32f4xx.c -o cmsis/device/ system_stm32f4xx.o
-
Thread
STM32 ADC & DMA corrupted Values
Are you using an STMF103C8xx or STM32F103CBxx? I am asking because the web is full of negative reports about fake products with wrong data transferred by DMA.
happen ... i have to check. whats the outcome if there is an error? >Are you using an STMF103C8xx or STM32F103CBxx? I am asking because the >web is full of negative reports about fake products with wrong data >transferred by DMA. the mcus are from the STM32F0xx and STM32G4xx Family. they should
-
Thread
Problem with gnu ld and STM32
Hello, I'm trying to make anSTM32F103 work with the Code Sourcery tool chain. Using the attached ld command file, I get these errors: Invoking: Cross GCC Linker gcc -L"/home/Tommi/workspace/FWLib/Release" -Wl,-T ../SRC/STM32_Lnk.cmd -o "LED01" ./SRC/core_cm3.o ./SRC/main.o ./SRC/startup_stm32f10x_hd.o ./SRC/stm32f10x_it.o -lFWLib collect2: ld terminated with signal 11 [Segmentation fault] /home/Tommi/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi
-
Thread
OOCD with the STM32F103
Good day every one! I'm using the STM32F103 series in an embedded application, together with OOCD. Now the 1st setup: STM32 Evalboard by KEIL with the STM32 in a 64 Pinout and 64 K Flash (STM32F103R8T6) Amontec-JTAG-Key OOCD r423 and r717 Worked just great :-) The 2nd setup: STM32 now in my embedded app. and with 48 pinout 64 k flash (STM32F103C8T6) Amontec-JTAG-Key OOCD r423 and r717 Didn't work! :-( Well it did work sort of, that is, OOCD finds the two JTAG-Devices inside
-
Thread
STM32 stop mode wake via usart
The stm32 MCU wakes up with the internal 8Mhz oscilator and it takes some time to switch on HSE. Due to project-planning issues, does anyone know if it's possible to set a stm32 MCU in stop mode and force
transmitted USART data? see also: https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FARM%20CortexM3%20STM32%2Fwake%20up%20from%20stop%20mode%20on%20usart%20interrupt%20do%20I%20need%20to%20configure%20EXTI&FolderCTID
-
Thread
STM32F0 WITH STPM34
Hi everyone, I am working a project (stm32f0 with stpm34 ic measurement power). Could you help me interface stm32f0 with it. Thanks!
-
Thread
STM32F4 IMPRECISERR, trouble debugging
First off I did make a Debug Fault Handler, this is what I am getting r0 = 1200 0x000004B0 r1 = 0 0x00000000 r2 = 1200 0x000004B0 r3 = 1 0x00000001 r12 = 0 0x00000000 lr = 134228401 0x080029B1 pc = 134228410 0x080029BA psr = 553648128 0x21000000 OST = 536881104 0x200027D0 HFSR = 1073741824 0x40000000 CFSR = 1024 0x00000400 Showing BUSFAULT IMPRECISERR DFSR = 0 0x00000000 MMFAR = 3758157108 0xE000ED34 BFAR = 3758157112 0xE000ED38 AFSR = 0 0x00000000 PSP = 536881200 0x20002830 SHCSR = 0 0x00000000
-
Thread
STM32F303 Discovery: SPI basics
Hi, I try my first programming on an STM32 Discovery Board (STM32F303). I was using avrs before for years :-) First step should be to get the SPI to work. My IDE is Eclipse with gnu arm eclipse-plugin. All I want to see for now is the
-
Thread
STM32F130 and Timer 8
STM32F130 contains two adwanced timers - 1 and 8. But Keil's STM32_Init.c and its Configuration Wizard knows Timer 1 only. After "manual" programming it works but I cannot find its interrupts. How can I
-
Thread
STM32 Changing PWM Duty Cycle in interrupt handler
aSma>> wrote in post #4970691: > The stm32f103 timer has only 16 bits. I assumed I needed to provide my data as uint32_t as the example from the SDK ( /STM32Cube_FW_F1_V1.4.0/Projects/STM3210E_EVAL/Examples/TIM/TIM_DMA/Src/main.c ) declares
the source. http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef1.html aSma>> wrote in post #4970957: > Before think about multiple channels and timers you need more RAM. As said, I didn't look into
-
Thread
STM32 and Programming via Boundary Scan
Hello, im currently writing on my B.thesis about boundary scan and its implementation. I`ve found enough informations about the principle of boundary scan and how to test with BS. However, i didnt find a lot informations about using BS to program a µC. Can anyone provide my informations about programming with BS? How efficient is it? Another question that has to be answer is if BS is useful for our products. We have quite a lot analogue devices such as analogue control stages or other complex analogue components. In some cases, we only have 1-2 digital devices (µC,..) on the PCB. Is it useful
-
Thread
STM32F0 ADC input noise investigations
ADC input voltage stable during this time. References ---------- [1]: RM0091: Reference Manual, STM32F05xxx/06xxx advanced ARM-based 32-bit MCUs (http://www.st.com/web/en/resource/technical/document/reference_manual/DM00031936.pdf) [2] STM32F051x4 STM32F051x6 STM32F051x8: Data sheet (http://www.st.com/web/en/resource/technical/document/datasheet/DM00039193.pdf) [3] UM1525: User Manual, STM32F0DISCOVERY, Discovery kit for STM32 F0 microcontrollers (http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00050135.pdf)
-
Thread
confused by STM32F207IGT6
? The board is also different. Like Devkit1207 board basedon STM32F207IGT6 and Devkit8500D board based on TI DM3730, can you tell why one is only 120MHZ, and one is 1GHZ. Thank you in advance.
STM32F207IGT6 is from ST, it is ARM Cortex-M3 processor. DM3730 is from TI, it is ARM Cortex-A8 processor. They are different processors based on different ARM cores.
-
Thread
SWD for STM32F4VGT6
Hello, I got a cheap barebones STM32F4VGT6 board, admittedly it was somewhat of an impulse buy. It is made by diymore: https://www.ebay.com/itm/STM32F407VGT6-ARM-Cortex-M4-32bit-MCU-Core-Development-Board-STM32F4Discovery-/311702413371 So far, I have used dfu-utils to burn my programs, which are generated by STM32CubeMX. The dfu-utils method is described here: https://github.com/dwelch67/black_pill_too I would like to use a NUCLEO boards' SWD programmer to be able to debug the MCU, but it does not break
-
Thread
STM32F407 SPI reads wrong data
Hey, I'm encountering a strange problem with the hardware SPI of the STM32F407 [2] (discovery board). I'm trying to communicate with an UM7 IMU [1] over its SPI interface. When I try to read its firmware revision, I receive ASCII 'T71E' instead of the expected 'U71D'
Regards, Mirko [1] Datasheet UM7: https://www.chrobotics.com/docs/UM7_Datasheet.pdf [2] Datasheet STM32F407: http://www2.st.com/content/ccc/resource/technical/document/reference_manual/3d/6d/5a/66/b4/99/40/d4/DM00031020.pdf/files/DM00031020.pdf/jcr:content/translations/en.DM00031020.pdf Code, in
-
Thread
Free STM32 hardware on the SPS in Nuremberg
etc.). Only the Wifi version is no-longer available. On that registration it is said that a free STM32 NUCLEO board is given away for free on the stand. BTW I wonder why this combination of STM32 Nucleo base boards and expansion boards is not mentioned in this article https://www.mikrocontroller.net/articles/STM32 Many thanks Alex
-
Thread
eLua on STM32F4discovery
Hi, i'm trying to run eLua on a STM32F4discovery board. I downloaded and flashed this image successfully: http://dd.homeunix.com/home/space.php?uid=1&do=blog&id=90 http://dd.homeunix.com/home/attachment/public-File/elua_lua_stm32f407vg
Hi; Does this mean you have done a STM32F4 build of v0.8 that supports ROMFS? Would you be willing to post the binary? Thanks, CZ
-
Thread
Circuit for STM32F401RDTx [ARM]
Hello, I am trying to design a circuit for the STM32F401RDTx. I proceed as per the datasheet, Application Note 4488 from ST, and Carmen Noviellos "Mastering STM32" , but I don't find it simple at all right now and have a few questions. I have attached
) and all other supplies via a switch (per hardware or per software+fet or so). Usually all the STM32Fxxx have a built-in boot loader, so it's the best, to have on your maintenance connector some more signals: gnd, vcc, /reset, boot1 or boot0 (depends on the part. chip, so read the manual), txd1,
-
Thread
help! memcpy causes hardfault on STM32F4 Locked
/../ # Objects built from C source files C_OBJECTS = $(OBJ)/main.o C_OBJECTS += $(OBJ)/system_stm32f4xx.o C_OBJECTS += $(OBJ)/stm32f4xx_gpio.o C_OBJECTS += $(OBJ)/stm32f4xx_rcc.o C_OBJECTS += $(OBJ)/stm32f4xx_tim.o C_OBJECTS += $(OBJ)/stm32f4xx_it.o C_OBJECTS += $(OBJ)/stm32f4xx_syscfg.o C_OBJECTS
CFLAGS) -o $(OBJ)/syscall.o syscall.c @ echo ".compiling libraries" $(CC) $(CFLAGS) -o $(OBJ)/stm32f4xx_tim.o $(LIBRARYSRC)/stm32f4xx_tim.c $(CC) $(CFLAGS) -o $(OBJ)/stm32f4xx_gpio.o $(LIBRARYSRC)/stm32f4xx_gpio.c $(CC) $(CFLAGS) -o $(OBJ)/stm32f4xx_rcc.o $(LIBRARYSRC)/stm32f4xx_rcc.c
-
Thread
STM32F0 and 1Mbit EEprom
Dear Madams and Sirs, im trying to programming / and reading an 1Mbit EEprom with STM32F030x. There are some issues i am working on and make me some headache. Im using the STM32f0xx_i2c files for working and a Keil Compiler (V5.17). My first problem is: Im using one of our internal libarys to write and read to the eeprom. It is programmed as discriebed in the the STM Reference Manual and worked fine with EEprom values lower 1Mbit. I added a second adress byte to the adressing and put the value of sending bits in the I2C_TransferHandling to 2. But when im
-
Thread
Questions about CMSIS prograsmming for STM32F407
like when you make a Project without IDE ? What is with the Startup File where can i get it for STM32F407 ? Thanks in advance gizmo
Forgot the link: http://www.st.com/en/embedded-software/stm32-standard-peripheral-libraries.html?querycriteria=productId=LN1939
-
Thread
STM32F4xx: running code from ram
ST Microelectronics promotes the STM32F4 series with: "Based on CoreMark benchmark, the performance achieved thanks to the ART accelerator is equivalent to 0 wait state program execution from Flash memory at a CPU frequency up to 168 MHz
try*/ /* second try: */ .text : { ..\obj\main.o *(.text); ..\obj\stm32f4xx_gpio.o *(.text); ..\obj\startup_stm32f4xx.o *(.text); ..\obj\stm32f4xx_rcc.o *(.text); ..\obj\system_stm32f4xx.o *(.text); *(.glue_7t) *(.glue
-
Thread
STM32 Timer multiple compare values with DMA
Hello to all STM32 experts out there, is it possible to have multiple compare values for a running timer together with DMA? To be more precise: I am having an array of ten compare values (which do not follow any
-
Thread
STM32 GCC problem writing to flash bank 2
I am developing a project running on an STM32 target, using Eclipse, openOCD and CodeSourceryLite 2009q1-161. Part of the design is that the user should be able to upgrade the code in flash, so I partition it into a bootloader and two equal
flash upgrade functionality on optimized code. To allow for future growth I have upgraded to an STM32F103xG, which has 1M of flash configured in two banks. I have been able to continue debugging, and I can run the flash upgrade into either bank when in debug mode. However, if I build the code at
-
Thread
ChibiOS on the STM32F4-Discovery
Hi, I got a STM32F4-Discovery board and wanted to test some ready to use code. I stumbled upon the ChibiOS and its STM32F4 support. I compiled the sources under macos x, with a self-built gcc, and flashed with a self-compiled
-
Thread
Strange SPI-Interrupt behaviour with STM32F107
Hi, I am working on a spi-driver implementation for STM32F107. Things seem to work quite well, but I get sporadic interrupts on SPI with only the BSY-flag set. No other flags like TXE,RXNE, etc. are set. Here is my interrupt handler for spi(it is called
solved the problem that u had. Could u please provide me with the source code of the spi-driver for STM32F107. Thxxx a lot. Cheers, Angela
-
Thread
STM32F103VET6 und CH340R
I have a problem with my PCB. I recieved it a few days ago and it is already completly presoldered. If i connect it via USB-TYPE B to my pc it is showing me nothing in device menager.... The CH340G should be visible to be able to programm it via usb.... If i connect it via micro-usb unknown device is popping up. But that does not help me :). I have added the schematic. Hope someone can help me.
-
Thread
Using C++ Exceptions on Winarm 20080331 STM32 Target
HI All, I have recently installed WinARM 20080331 and created a test build for the STM32F103ZE target device. I am able to compile, link, and execute all 'C' code and some 'C++' code correctly. The problem appears when I attempt to use the C++ exception handling mechanism. I have
thinks terminate is called recursively? Here is the code for the library functions: #include <stm32f10x_lib.h> #include <sys/stat.h> //--------------------------------------------------------------------------// char * _sbrk_r (void * reent , unsigned incr) { static char heap_mem
-
Thread
trouble with printf on Cortex-M3 (STM32)
Hi, I am trying to use yagarto (arm-elf-gcc 4.3.3) for STM32. Everything works ok if I don't use printf. But I need to use printf, so #included <stdio.h>. It produced error: [pre] In file included from main.c:31: C:\SCARM\GNUARM\arm-elf\include/stdio.h
without errors, but linker produced many errors of this type: [pre] ../arm-elf/bin/ld.exe: ERROR: stm32f10x_gpio.o uses FPA instructions, whereas Hello.elf does not [/pre] Does it mean that the newlib that came with yagarto is compiled using FPA? Does it mean it can not be used for Cortex-M3? Is
-
Thread
malloc, strncpy on STM32F4 not working
Hi, I am trying to get strncpy working. At the moment I know that it has something to do with the newlib. I am using coocox with https://launchpad.net/gcc-arm-embedded/ How do I include the newlib into my toolchain? Or am I wrong with newlib an the problem lies somewhere else? I included the syscalls from the repository: "The component implement the minimal functionality required to allow libc to link." I also included libc in the "linked libraries section". But it seems as if behind strncpy is only a declaration: "char *_EXFUN(strncpy,(char *, const char *, size_t));" I do not have
-
Thread
STM32F051 I2C slave problem
Hi, I have in a STM32F051k project a problem with the I2C as Slave. I send from an AVR: Start/address Wr/command/repStart/address RD/ ... read information / Stop) The read information is command/count/data. Exact
-
Thread
STM32F429 Discovery Sega Master System emulator
Hi all, To test the new ST discovery kit I made a minimal SMS emulator running on it. The code is released as Open Source and it is avaliable on http://www.codeforge.com/article/218395 A small demo video is on http://www.youtube.com/watch?v=qtNLctyoxU8 The project is developed using Keil MDK (evaluation version) so everyone can test and enhance it.
-
Thread
Arm STM32F0 Discovery PORT C Problem
Hallo Gurus, Ich versuche mein Glueck mit dem STM32F0 Discovery board. Fuer ein project brauche ich den Port C die unteren 8 bits. Aus irgendwelchen Gruenden kann ich die bits PC1 and PC2 nicht zum gehen bekommen. Alle anderen Bits arbeiten so wie
-
Thread
STM32F107 USART Init --> Rubbish Output
Hi, While configuring my STM32F107's USART, there is a random byte outputted on the tx-pin. A modem that is connected to the serial port gets confused by this random byte and refuses to work. Here's the initialization code:
-
Thread
Program STM32 Board with a GUI in Matlab Simulink
Support Package for STMicroelectronics Nucleo Boards), which allows only the Arduino connectors of the STM32 F401RE board to be used. This means that there is little adjustment for the board with this tool chain. For this reason, I look for another possibility. This should be possible with the toolchain
-
Thread
how to flash/ update STM32 S76G firmware
want to flash/ update the firmware (.dfu file) of my LILYGO TTGO T-Motion/softRF Dongle which runs on STM32 S76G Lora Chip by using DfuSe Demo Unfortunately the device is recognized as “STM32 BOOTLOADER” in Windows device manager instead as “STM Device in DFU Mode” What can I do to get this dongle
Auch wenn das schon ein alter Thread ist - der S76G enthält zwar einen STM32L073Z, ist aber nicht von ST. Es gibt jedoch Websites, die sich mit dem Flashen befassen, z.B. diese hier: https://dross.net/aviation/how-to-and-where-to-start-with-stratux/how-to-flash-a-softrf-ttgo-t-motion-from-lilygo
-
Thread
CMSIS-RTX with GCC on STM32F4 Discovery
searching, this maybe the first project that provides a reference for CMSIS-RTX with GCC working on an STM32 device. Cheers!
Hello Rajiv Verma, I appreciate your hard work. Great. When I tried it in my STM32F407G-DISC1 board, I found that the tempo was little bit slow. Apart from that, all are okay. Cheers