-
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
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
GNU issues for cpp
GCC issue 1: We are working on the STM32F0 series, where the src code is in C++ and the compiler used is the GCC ARM (version 4.4.1) which compiles fine. However when we changed the GCC compiler to 4.7.3 we are observing linker issues as
Cortex M0 and wrking on STM32F051.
-
Thread
STM32 GDB / OpenOCD Commands and Initialization for Flash and Ram Debugging
initializing OpenOCD I used the following command in Eclipse (The board config file references the stm32 mcu and was found in the OpenOCD installation as an example): "openocd -f interface/olimex-arm-usb-ocd-h.cfg -f board/stm32f10x_128k_eval.cfg". When I run this within Eclipse everything appears
jim, take a look at the STM32F... example at the yagarto site how to setup a makefile for RAM and FLASH target. try to understand the example (memory maps) before u proceed. look at the jlink command scripts and look into the
-
Thread
STM32F0 Discovery Port C Pin 1 and Pin 2 problem
Hello Folks, I tear my hair out over this. I have a STM32F0 Discovery board here and i would like to get all 16 bits of PORTC high. Most of the pins do what i expect them to do, but PC1 and PC2 dont. They stay low out of what ever reason. I am a bloody newbie
I am chewing on this problem already since a week and ready to give up on it. [c] #include "stm32f0xx.h" #include "stm32f0xx_rcc.h" #include <stm32f0xx_conf.h> #include "stm32f0xx_gpio.h" #include "diag/Trace.h" //#include <stdio.h> int main() { GPIO_InitTypeDef GPIO_InitDef;
-
Thread
STM32H7 bank swap break at address 0x81006fe
with the ST32 H743ZI2. I wasted much of time to fix it but i didnt get it. Maybe because im new in STM32 controllers. I copied the bank swap code from STM32CubeH7 Firmware Examples and did a few modifications regarding to gpio configuration in CubeMX. I did them because i want to implicate the code in a excisting project without the stm32h7xx_nucleo headers. Following the Code for Bank1: [c] HAL_FLASH_Unlock(); HAL_FLASH_OB_Unlock(); while (1) { /* Wait for BUTTON_USER is released */ if (HAL_GPIO_ReadPin(GPIOC
-
Thread
Library LibOpenCM3
Hello everyone, Is LibOpenCM3 (Open-Source lowlevel hardware library ) a good choice for a STM32F303 project ? Regards Pier Tilma The Netherlands
General purpose IO (leds, pusbutton) So my conclusion : Yes, LibOpenCM3 is a good choice for a STM32F303 project. Regards Pier Tilma The Netherlands
-
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
-
Thread
CooCox Tools
release CoIARPlugin V1.2.1, supported new adapters: NGX, PicoJTAG and KT-Link, supported new chips: ST: STM32F100series, STM32F101series, STM32F105series, Energy Micros: EFM32G2xx series, NXP: LPC1200series. For detail information, you can visit http://www.coocox.org
-
Thread
yagarto example project for STM32F100C4 chip
Hello, I'm new user of the yagarto tool-chain. The example project for STM32F103 works well for me. I'm going to move to simpler target chip STM32F100C4. It should be the Low density Value Line device (STM32F10X_LD_VL). I'm not sure how to setup-up project or how to modify linker script and start-up code for that chip. Please can someone send me a example project for STM32F100C4 for yagarto or any advice how to do it please?
-
Thread
Free STM32 hardware on the SPS in Nuremberg
.). 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
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
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
GDB issue (cortex-M3)
help: http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/arm_memcards/index.html#chanfat_stm32 During development I have used Eclipse Ganymede, CDT, CDT hardware-debugging-plugin, Codesourcery G++ lite for ARM-eabi 2009Q1, OpenOCD (different but rather up-to-date versions), Amontec JTAGkey, FTDI-drivers and STM32F103CB for the tests. Debugging from Eclipse works as expected (well, at least what I expected/needed). A little bit of additional information can be found in the readme.txt.
-
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, rxd1
-
Thread
Interrupt handler in C++ File?!
Hi guy's I have the following problem. I'm using the STM32F103RB and Sourcery G++ Lite 2008q1-126 and I try to implement the Interrupt Handlers in a C++ File. I'm using C and C++ Code in my project and if I implement the handlers in a C File everything
You cannot do that as part of a class. I don't know the STM32, but my guess is that interrupt vectors are known by their global name, so they cannot be established using C++ name mangling. This also implies they cannot be hidden with in a class (class members
-
Thread
confused by various UDP checksum algorithms
hello forum, I am trying to send an UDP packet (contains only "TEST" string) from STM32 to VB6 winsock I can see packets going with wireshark software however winsock data_arrival subroutine never gets called ( if I send from laptop winsock to PC winsock or vice versa UDP packet
printscreen winsock cannot receive this packet I have an USRobotics adsl router between PC and STM32F4
-
Thread
Embeetle IDE free for all users, now supports Blue Pill and more.
and developed a visual debugger. Just recently, Embeetle IDE integrated the Blue Pill board. The STM32 Blue Pill is a 32-bit Arduino-compatible development board that features the STM32F103C8T6. A member of the STM32 family of ARM Cortex-M3 core microcontrollers. The STM32 Blue Pill board has nearly
-
Thread
how can I read protect my STM32F4 with eclipse + openOCD JTAG ?
hello forum , I am using Eclipse + openOCD JTAG for downloading and debugging my aplication into STM32F4 after I finish my project I want read protect my code so that it is not stolen question : how can I read protect my STM32F4 with eclipse + openOCD JTAG thank you
Please have a look at this chapters in the reference manual of the stm32F4xxx microcontrollers (RM0090): 3.6.3 Read Protection (RDP) 3.6.1 Description of user option bytes 3.8.3 Flash option key register (FLASH_OPTKEYR) And after that you should read in the documentation
-
Thread
how to flash/ update STM32 S76G firmware
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
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
Which microcontroller to use and how?
If you want something larger then I would recommend any ARM based microcontroller, for example the STM32F103 series which is available in different sizes). Regarding your current monitor: If you measre the current between power supply and voltage regulator then you measure the current consumption of
recommend to control the MAX5217 for the best results and more accurate? price is not important. the STM32F103 ?
-
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 sectors
the code in the second sector. I was able to debug this code (using optimization level 0) on an STM32F103xD (which has 384K of flash) when unoptimized code was about 160K. However, the code has now grown to 220K unoptimized, 130K at optimization level 's'. Therefore I have been able to finish debugging
-
Thread
Networking Eclipse projects
Include' containing .c and .h files respectively. There is an additional file in 'Include' named stm32rom.ld which contains the processor characteristics needed by the linker. There is a third folder named 'obj' for the compiler and linker output files. The makefile on Server invokes the compiler
/stm32rom.ld: No such file or directory". I can't understand this, since the -T command format is exactly the same as the -I and compiler command formats, which are executed correctly. The makefile is
-
Thread
problem using adapter Olimex tiny-h with OpenOCD v0.4
Hi, I'm trying to get a fresh ARM-USB-Tiny-H adapter to program and debug my STM32-P103 board via OpenOCD v0.4 under Ubuntu 10.04. The configuration works fine with my older ARM-USB-OCD but with the Tiny-H, I always get this error: "Error: unable to set latency timer: 17" My
10.04 on Asus Eee PC (1Gig RAM, BNL Single Core) Interface: Olimex ARM-USB-TINY-H Target: Olimex STM32-P103 Evalboard Any clue what I might be missing? Gregor -- If its not playing with Tux, it's worth nothing.
-
Thread
How do you program arm processors? Locked
programmable with 'FlashMagic'. Use google, FlashMagic is free downloadable and usable. - The STM32Fxxx, programmable with: my own 'STM32Prog', downloadable on www.mikrocontroller.net, subforum 'projekte&code', also with old 'erfos' programmer, also with a piece of software from ST somewhat like
-
Thread
Changing return address of exception
I am using olimex stm32 board. It has cortex-m3 processor. For my project, I require to change return address when processor is executing exception. I know that it is stored in stack, But where in stack? It is always
solved. I am writing the code to change return address which worked for me. This code is for olimex stm32f107 board. asm( "TST LR, #4;" "ITE EQ;" "MRSEQ R0, MSP;" "MRSNE R0, PSP;" ); asm("mov %0, r0" : "=r"(lraddr)); nxaddr=lraddr[12]; lraddr[12]=NEW
-
Thread
SD card lock and unlock
card support, you would see a "password protection". I use the MOTO E6 to lock my card, and use STM32F103VBT6 to unlock, then use STM32 to lock and E6 to unlock, both works well. I use the SPI mode. If I cound help you, please email chairang<at>126.com
-
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 during
-
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
Suggestion on controller selection
scanner or ohter input. Its just a thought and might be easier than a controller like e.g. the STM32F429 which has TFT driving, USB and e.g. SD Card ports. If you think about writing your own software from scratch, have a look at the Discovery Boards from STM, like the above mentioned F429 or the latest F7 series. http://www.st.com/en/evaluation-tools/stm32-mcu-discovery-kits.html?querycriteria=productId=LN1848
-
Thread
[STM32] Crossreference ChipID - Device (EN / DE)
people! Having had some trouble finding a decent source of information regarding the Chip ID on STM32 µCs and the Flash/Sram size, here's an appeal to gather known and tested information you all might have come across. As an example for what information should be in, at the end there's a snippet of
Morgen! Da ich auf wenig Information bezüglich CHIP_ID und deren Flash/Sram Speichergröße für die STM32 µCs im Internet gefunden habe, hier eine Bitte diese Information zu sammeln. Es sollten Daten sein die Ihr schon ausprobiert habt und getestet wurden. Als Beispiel am Ende ein Schnippsel der .xml Datei
-
Thread
AVR Transistortester
can optionally set 5v on GPIO, which iirc would be of benefit. I saw other project that use the STM32 to lesser effect and seeing that the Flipper Zero uses the STM32WB55, I was curious if that could be leveraged too. welcoming any input, even if it's confirming this as a foolish idea.
-
Thread
mapping the exact input to the output
#include "stm32f0xx.h" #include "stm32f0308_Discovery.h" #define in0 GPIO_Pin_0 #define in1 GPIO_Pin_1 #define in2 GPIO_Pin_2 #define in3 GPIO_Pin_3 #define in4 GPIO_Pin_4 #define in5 GPIO_Pin_5 #define
-
Thread
Problems with Yagarto/eclipse/gdb with JFlash Server
Hello, i am trying to connect J-Link with STM32L152D-EVAL board kit as a target device b ut i am getting the error (Error: STM32: connecting to CPU via connect under reset failed). Please give me some solution for this problem. thank you
-
Thread
SPI communication between two microcontrollers
Hello everyone, I am trying to make communication between an STM32F3 microcontroller and a custom board baser on PIC microcontroller using SPI protocol. The STM32F3 acts as a Slave and the custom board as a Master. The clock is set to 10 MHz. I’m using NSS hardware
-
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
va_args, printf and DMA memory problems
past few days as I try to understand why and what is going on... So here it goes: Current config: stm32f407VG (same as stm32f4 discovery) I set up a project using the default linker and startup files from www.onarm.com. Init the ADC & DMA's [code] ADC_CommonInitStructure.ADC_Mode
-
Thread
GCC won't allow me to pulse flags
I am developing for a project an STM32 Cortex processor, using gcc on Eclipse. Initially I am working with the ST Electronics STM32F10x-128K-EVAL demo board, which included an LCD display and a joystick. I need to reset the backup domain
-
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
Convert YUV(4:2:2) format to BMP file by use of OV9655 image sensor
Hello anyone I working on OV9655 camera module that is connected to stm32f4discover evaluation board. I am able to capture a picture from the OV9655 module where the video output format is based on RGB565 and save as BMP file on SD cart. Now I want to capture a gray scale
sure about that above setting for OV9655 is correct. After the picture is grab by used of DCIM on STM32F407 microcontroller do I want to convert it to BMP file. Right now do I use the same code that is use during conversation of RGB565 to transform YUV(4:2:2) format to BMP file. The code work fine during
-
Thread
Ebike Lishui controller, custom FW, problem at certain voltages
Hi fellows, I have a strange problem with ebike controller using STM32 uC (Device family :STM32F10xx Low-density) I have a fischer 1606 ebike with a Lishui controller which did not have original display. I found that this controller has alternative firmware made by
-
Thread
embedding C source in the disassembler window
Anglia Electronics kindly sent me an Eclipse version of the STM32demo project. It includes a custom makefile, so it doesn't use any outside resource such as Solaris to create the makefile. I am trying to create my own project to emulate this with good success
system, because it now fails at the end of compilation with the message 'cannot open map file obj\stm32demo.map' I am now getting extremely frustrated with Eclipse. I want to use it as a tool for developing a project to run on embedded hardware, but I am spending more time trying to fix the tool
-
Thread
Creating blank new C-Project with Yagarto chain for ARM7
tested tool after tool (open source and commercial) to find something to start work with cortexM3 (STM32F10x) immediately. No chance. The reasons: no install package, no documentation, missing scripts for my device, no debug, no linker, no thumb2-compiler, specific debug-tools, expensiv, only 30 days
and, and. Then I found lots of simple example projects of different users here: http://www.stm32circle.com/projects/index.php I installed Ride7 and within one day my own test board was blinking. Next day I tested debug on the primer2 - OK. Ride supports most ARM7 and cortexM3 from NXP and
-
Thread
How to stop breaking at reset
I am developing a number of projects for STM32 processors using Eclipse, gcc, gdb and an Olimex ARM-USB-OCD jTag dongle. All works well, but every time I relaunch the project in debug mode the code stops at address 0x08000000. The debug window
this always happens. Furthermore I suspect it is using up one of the 6 breakpoints provided by the STM32, which restricts debugging. I launch gdb with the following commands: target remote localhost:3333 monitor reset init load monitor reset init break main The first breakpoint it should
-
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
STM32H7 real-time data tracing via SWD not working
oscilloscope (No edges detected) -Reading STLINK Jumpers with oscilloscope (Edges detected) -Other IDEs SW4STM32 (No success) -Serial wire viewer of STLINK (nothing shown) -Tried debugger and builder / optimization settings. (Still no success) See screenshots for detailed description and the configurations
real-time* trace data. But anyway, look there: https://community.st.com/s/question/0D50X00009XkhURSAZ/stm32h7-swo-printf-not-working
-
Thread
Layered OS: DMA Transfer into Filesystem
of which one is to learn PS: even though this question is more a theoretical one, I use C on an STM32 --- German: Hallo, ich programmiere ein Betriebssystem* für mein aktuelles Projekt und hab jetzt ein kleines Problem. Das OS ist "layered", also mit Schichten aufgebaut. Es gibt ein HAL
lernen möchte. PS: Auch wenn das eher eine theoretische Frage ist: Ich programmiere in C für einen STM32
-
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