-
Thread
STM32F103VET6 und CH340R
die falsche Überschrift. Also, was ist mit den 12MHz? Treiber für CH340G läuft? Echo? Und der STM über Micro-USB wird erst etwas tun, wenn er ein Programm dazu im Speicher hat. Sonst gibt es keine Reaktion von ihm.
braucht? > Habe noch keine Schaltung mit R gesehen. Das bezog sich auf den USB der direkt an den STM geht. Der CH340 sollte das eingebaut haben.
-
Thread
GDB issue (cortex-M3)
Hello everybody, I am working on a STM3210E-EVAL board for 2 weeks now and there are some odd things happening when I use the GDB provided with WinARM(gdb version 6.4.50.20060226-cvs). I use Eclipse as a IDE, everything seems to be
, 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
"undefined reference to memcpy" error - please help!
hello dear forum , I am trying to compile a C program for STM32F407 microcontroller with OlimexODS ( Eclipse + yagarto compiler ) I get the error; "undefined reference to memcpy" error as you can see in the attached picture ---------------------- makefile
. > will it link with latest version of library ? I don't know your library. And Idon't know STM or ARM. It's just the general scheme how gcc works. If GCC and Binutils and the libraries are configured and built correctly, it will work.
-
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
exception handling code in binary from pure C code
Hi, I tried out yagarto to generate code for a cortex-M3 (STM32). I got it working, but I was surprised a whole bunch of exception handling code ends up in my binary (the source code is pure C) This happens both with my (complex) program, and the STM3210ETest small example project (yagarto howto page, STM32), if I add this small function: [c] unsigned long long xyz(unsigned long a, unsigned long long b ) { return a/b; } [/c] If i check the library, there are some .ARM.extab/.ARM.exidx
-
Thread
Cortex-M3 External SRAM and Flash Programming
"). > the latest openocd svn supports all low/medium and high density stm32 flash types. as Martin mentioned all the info is in the docs - the latest docs can always be found at: http://openocd.berlios.de/web/?page_id=54 simply the gdb load cmd is used. >> 3.Is it posible
general this may not be a good idea due to the speed of external memory access. For example, the STM32 external bus is only 16-bit and access time is significantly slower than for internal SRAM or Flash. Running code from external memory may be as much as 10 times slower. Jack Peacock
-
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
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
recommend to control the MAX5217 for the best results and more accurate? price is not important. the STM32F103 ?
-
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
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
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
SD card lock and unlock
SD 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
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
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
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
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
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
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
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
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
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'
E'. To me at least it looks like the data is transmitted correctly by the UM7, but somehow the STM reads the last bit incorrectly. The behavior is reproducible, i.e. the first and last byte always have the last bit flipped. Are there any pitfalls for the STM SPI I should aware of? Or am I doing
-
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
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
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
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
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
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
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
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
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
OpenHR20: Firmware for Honeywell Rondostat HR20E
and the communication is working now! I currently implement my own stand-alone master using a STM32 with cortex-m3. I have running a lwIp with udp server and webserver. The plan is to write a android app soon, to replace the webserver interface. But that's future.. Currently I got stuck while
-
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
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"
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
RTEMS or FreeRTOS on STR712FR (ARM7 TDMI)
uClinux and RTMS offer a lot of more functions and drivers. But it's not that difficult to extend the STM STR7-StdPerphLib with synchronisation-code (e.g. mutexes) in case different tasks/threads access the same peripheral. Using the STM-STR7-Library as base should save some time.
-
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
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
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
Topics in electronics for FPGA Engineer
are quick circuits and not cheap at all compared to a simple microcontroller like for example the STM series. For $25, you can get a microcontroller being able to aquire, process and recreate audio signals in realtime with existing algorithm libraries like VisualDSP++ rapidly. For $25 you can get
are quick circuits and not cheap at all compared to a simple >microcontroller like for example the STM series. For $25, you can get a >microcontroller being able to aquire, process and recreate audio signals >in realtime with existing algorithm libraries like VisualDSP++ rapidly. Probably you
-
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
-
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
Get Binary-Data from Wav-File Locked
, they acquired this business-section from Sharp). Check Microchip's AppNotes, ST Microelectronics STM32, STR7, STR9 AppNotes...
-
Thread
Control ARM prologue/epilogue assembly code emission
The Cortex-M4F (ARMv7M) does not have an explicit PUSH instruction, but only "STM". Verify that you call the compiler correctly for that core (flags -mcpu=cortex=M4 -mthumb). Paste the disassembly, step through the instructions with a debugger and explain why you believe that the
with an other mikrocontroller? Maybe that one is defect... This should definitely work (it does on my STM32F4 which is a Cortex-M4, too - i.e. has exactly the same core). I don't think GCC can be stopped from generating the "PUSH" instruction because it should work.
-
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
How to put two files at two different addresses in bss section
rdimon-crt0.o: In function `cpu_nostack_init_hook': /tmp/3220925_1.tmpdir/stlinux-shared/build/packages/stm-bare-newlib-armv7/BUILD/newlib-2.0.0/objdir/arm-none-eabi/libgloss/arm/../../../../libgloss/arm/crt0.S:510: undefined reference to `__bss_start__' /tmp/3220925_1.tmpdir/stlinux-shared/build/packages/stm-bare-newlib-armv7/BUILD/newlib-2.0.0/objdir/arm-none-eabi/libgloss/arm/../../../../libgloss/arm/crt0.S:510: undefined reference to `__bss_end__' collect2: error: ld returned 1 exit status The above
-
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
Current value Measured differs form the data sheet value in Low Power Sleep Mode for STM32L433Rc-p
Why the current measured form the microcontroller(Stm64 Nucleo L433RC- LPSleep mode) differ from the current value written in the datasheet? Hallo Everyone, I am using STM32L433RC -p microcontroller for current measurement. The current in the microcontroller was measured using STM32L496VGT6 module. I was doing current measurement for Low Power Mode(Low Power Sleep Mode). The current value given in the datasheet is in the raange of microampere, but the value which i read
-
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
-
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
STM32F1xx: Injected simultanous ADC doesn't work
with injected ADC1 and ADC2 triggered by Timer1 Capture Compare Channel 4. See chapter 5.1 of the STM manual UM1052: https://www.st.com/content/ccc/resource/technical/document/user_manual/5e/5e/d2/cb/07/35/45/a6/CD00298474.pdf/files/CD00298474.pdf/jcr:content/translations/en.CD00298474.pdf The interrupt
callback, it works. here are two screenshots of the relevant registers at runtime. http://www.stm32duino.com/download/file.php?id=3190&sid=68aec5aeb5f8c2092a3f0dfd85a63b81 http://www.stm32duino.com/download/file.php?id=3190&sid=68aec5aeb5f8c2092a3f0dfd85a63b81 Any idea what's going wrong?