-
Thread
how can i debug code in ram ?
So far I have not tested "RAM-debugging" with STM32 controllers so these are just some hints which might be helpful: - In the Makefile there is a variable RUN_MODE which is set to FLASH_RUN in the file in the archiv. Set it to RAM_RUN. The stetting
I did test with STM32F103C8T6 ($3 chinese board, known as blue pill). The only thing I had to do is to write my linker script to put everything in RAM, then: 1. Put the jumpers at BOOT0 & BOOT1 pins to boot from RAM.
-
Thread
ARM-GCC development resources
Very good & compact tutorial to get STM32 running from a low level point of view. Think makefile & build scripts: http://pandafruits.com/stm32_primer/stm32_primer_minimal.php I've been using Qt Creator 3.0.1 as ide (for avr stuff GCC
-
Thread
Possible wrong explanation on "STM Discovery as Black Magic Probe" page
Hi, There is a tutorial how to use the STM32 Discovery boards as Back Magic probes, and one section refers to why the DFU does not work on the STM32F429I board. http://embdev.net/articles/STM_Discovery_as_Black_Magic_Probe#F429Discovery_board_doesn.27t_enter_System_DFU_bootloader I believe the explanation is wrong, and the reason it does not work on the STM32F429I discovery board is that the USB OTG wired out is the USB OTG2 peripheral in FS mode. DFU supports the only the OTG1 peripheral, see STM32 AN2606, section 18.1.1, table 38. PA11, PA12 pins used
-
Thread
nsec-resolution time measurement with MSP430 or alternatives ?
While the STM32F334 has a timer with 217 ps resolution, it is a pity that this resolution is only for output, not for capture, as the poster asked. The Infineon Cortex Parts also have sub-nanosecond timers, but
capture. And datasheet download still requires a NDA! You can get about 5 ns resolution with the STM32F405 and bigger parts, running the timer at 168/180 MHz or LPC43xx at 204 MHz.
-
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
Suggestion on controller selection
external 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
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
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
out5 GPIO_Pin_5 #define out_GPIO GPIOC void TM_Delay_Init(void); void TM_DelayMillis(uint32_t millis); void TM_DelayMillis1(uint32_t millis); void TM_DelayMillis2(uint32_t millis); GPIO_InitTypeDef GPIO_InitStructure ; uint32_t multiplier; int main(void) { SystemInit
-
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
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
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
Which microcontroller to use and how?
microcontrollers are primarily programmed in C. AVR microcontrollers (e.g. ATmega328P or ATmega32U4) are easy to learn and there are lots of informations online. If you want something larger then I would recommend any ARM based microcontroller, for example the STM32F103 series which is available
recommend to control the MAX5217 for the best results and more accurate? price is not important. the STM32F103 ?
-
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
Embeetle. https://www.kickstarter.com/projects/embeetle/embeetle-ide-integrating-wch-microcontroller-ch32v203 https://www.kickstarter.com/projects/embeetle/embeetle-ide-integrating-wch-microcontroller-ch32v003 As the Embeetle team grows, more and more MCU will be supported and we would love your precious
-
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
SD card lock and unlock
check out whether your SD card support lock/unlock. I have three SD cards tested, two from panasonic(32MB) and one from kingston(2GB),it seems the old panasonic card does not support this function, and the new kongston SD works well. You can use a mobile phone to check it. I don't know why Windows doesn't
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
"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
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
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
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
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
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
DMA_InitStructure.DMA_Channel = DMA_Channel_0; DMA_InitStructure.DMA_Memory0BaseAddr = (uint32_t) &RawADCData.adcRaw1; DMA_InitStructure.DMA_PeripheralBaseAddr = (uint32_t) ADC_CCR_ADDRESS; DMA_InitStructure.DMA_DIR = DMA_DIR_PeripheralToMemory; DMA_InitStructure.DMA_BufferSize
-
Thread
i want to map in0 to out0
#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
define out5 GPIO_Pin_5 #define out_GPIO GPIOC void TM_Delay_Init(void); void TM_DelayMillis(uint32_t millis); void TM_DelayMillis1(uint32_t millis); void TM_DelayMillis2(uint32_t millis); GPIO_InitTypeDef GPIO_InitStructure ; uint32_t multiplier; int main(void) { SystemInit
-
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
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
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
ST sensor LIS3LV02DL
it is not worked, so i want to know which MCU you are using? Because i am using the Atmega 32. Liang Meng
same type of modification has to be applied in the read function. I'm using this method with a STM32 and it works fine (I have a SPI clock around 200KHz). Regards, Arnaud.
-
Thread
Weact Blue Pill + GD32F303
and think it would make a nice, low-cost micropython system. The WeAct BluePill+ pcbs have a GD32F303CCT6 (256 kbyte flash, 48 kbyte ram). On the front of the board, remove the GD32F303CCT6 and put a GD32F303CGT6 processors (1024 kbyte flash, 96 kbyte ram) in place. On the back of the WeAct BluePill
differences wrt to the STM32, that mean you cannot just compile micropython for STM32F4 and hope it will work on GD32F303. Gigadevice provides CMSIS and HAL, but what is missing is software that is known to run on this processor
-
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
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
-
Thread
OpenHR20: Firmware for Honeywell Rondostat HR20E
have Atmega32A
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
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
Get Binary-Data from Wav-File Locked
follow the links. Some code for "inspiration" may be found in Atmel's Examples for AT91, AVR, AVR32... from atmel.com. IRC I have also seen code to read WAV-Files in at least one of the examples. There is also a "WAV to ADPCM" converter (for PC, with source-code) in the Atmel Application-Notes for
, they acquired this business-section from Sharp). Check Microchip's AppNotes, ST Microelectronics STM32, STR7, STR9 AppNotes...
-
Thread
undefined reference to `memcpy'
For what it's worth, I had the same issue the other day. I was working on an ARM project with the STM32 Cortex-M3 MCU. The quick fix I tried was to use gcc.exe instead of ld.exe for linking. It removed the problem with undefined references, but after debugging the project I discovered that the toolchain
a problem which I have myself spent some hours battling. At the same time, present a solution to a STM32-specific problem with invalid BLX instruction being generated. // MS
-
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
Yagarto and floating point
general hint: check if, during the link process, the correct libraries are used. For example: I use the STM32 which got a cortex-m3 core and accedentially linked the libs for a other arm core. resulting in perfekt working code, up to the point on which I tried to use floatingpoint. that is, because the STM32 got no fpu and than the wrong lib was linked and used unsupported commands to emulate the fpu. You should check the main.map file, it includes the linked libs. then check if they are supported/
-
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
startup_lpc17xx.s GNU
for you: http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/arm_memcards/index.html#chanfat_stm32 It's for another controller also with Cortex-M3 core and it should be rather easy to port the linker-script and startup-code to LPC17xx. Decide yourself if it's "simple" enough Maybe someone else
program the target, is possible enable this function ? - The debugger function remain limited to 32K ? or is possible to debug code long more then 32k ? Thanks in advance
-
Thread
Encoder Timer switches between 0 and highest value.
problem could be. You probably need more information, im happy to give them to you. I work with a STM32H745XIHx. Thank you
u8iEncoder) { if(u8iEncoder == 1) { HAL_TIM_Encoder_Start(&htim3,TIM_CHANNEL_1); } } uint32_t getEncoder(uint8_t u8iEncoder) { uint32_t ui32Counter = 0; if(u8iEncoder == 1) { ui32Counter = __HAL_TIM_GET_COUNTER(&htim3); } return ui32Counter; } /* USER CODE END 0 */ TIM_HandleTypeDef
-
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
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
Filesystem for NOR flash
implementation: https://github.com/ivanovp/pifs There is an emulator for PC and few demos for STM32 MCUs: Nucleo-F413ZH, Maple Mini, STM32F4_VE (cheap Chinese dev.board). It supports directories, dynamic/static wear leveling. Best regards, Peter
-
Thread
Microcontroller for game controller
Max Frank wrote in post #4416349: > Atmega32U4 supports native USB These are much cheaper and much faster and HID demo is included: http://www.silabs.com/products/mcu/8-bit/efm8-universal-bee/Pages/efm8-universal-bee.aspx Even these ARM
I have seen "simple" controllers with Chinese 8051 e.g. STC and complex ones usually ARM e.g. STM32: https://de.ifixit.com/Teardown/PlayStation+Move+Controller+Teardown/3596
-
Thread
Problems with Helix MP3 Decoder
for "xmp3_UnpackFrameHeader" [referenced from C:\IAR Systems\Embedded Workbench 5.4\arm\examples\ST\STM32F10x\ IAR-STM32F103ZE-SK\ARMP3\Flash Debug\Obj\mp3dec.o] Can someone give me help and tell me where can be the problem? Thank's everybody. Excuse me for my english, it's very bad.
-
Thread
what is difference between arm-elf and arm-eabi?
Codesourcery package has been the only one which offered Cortex-M3 support and AFAIK Ride supports STM32 too. Just speculation, I have never used the Ride tools. I don't know "Sarm" so I can not comment on it at all. > All others would fail in different > ways. You did not write the error-messages
Codesourcery package has been the only one which > offered Cortex-M3 support and AFAIK Ride supports STM32 too. Just > speculation, I have never used the Ride tools. I don't know "Sarm" so I > can not comment on it at all. > I can tell you ride use the codesoucery toolchain as delivered. sarm is
-
Thread
[HOW TO] Interface an SD XC 64GB Card Class 10 Locked
access the card's file structure and allocation tables. E.g. to access a card formatted with the FAT32 filesystem you could look into FatFS by Elm Chan, which is available to AVR controllers and the STM32 series of MC. Its probably easy to port to other architectures: http://elm-chan.org/fsw/ff/00index_e.html
volts and will be toasted when using 5 volts. Ginat volumes like 64 GBytes might not work with FAT32, i didn't look into that yet. Found some info here: http://www.ntfs.com/ntfs_vs_fat.htm It seems that 32 GBytes for a volume might be a limit here.
-
Thread
GNU Toolchain: Program working in simulation, but not on target
target, the entry address (PC after reset) and the stackpointer are completely wrong. I am using a STM32F107VC (Cortex-M3). Here is the output of readelf: [code] $ arm-none-eabi-readelf.exe -S project.elf There are 18 section headers, starting at offset 0x3884c: Section Headers: [Nr] Name
Try do transfer the code with the STM32 bootloader, for example with the flash loader demonstrator available from st.com. If it works there is a problem with the programming-settings in the IDE (model, flash-programming-algorithm, memory-regions
-
Thread
Device drivers and ARM learning
cores are embedded in micros from various manufacturers, like Atmel (AT91SAM, AT92RM), NXP (LPC2xxx), STM (STR9, STM32) and others. On the smaller, ARM7-based variants a full OS can not be run due to memory restrictions mostly. But they are cheap and easily available if you can live with using a RTOS,
-
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
Atmel announces ARM Cortex-M3 based Controllers
Star from Freescale) 16 bit and it is still used engine (max 2 cyl) and may leave room for more cheap 32bit. I admit I am not a very good connoisseur of ARM using for hobby now PIC24H (due to good price/performance) but for next year for sure I will happly go to 32bit core, ARM Cortex M3 or MIPS depending
different manufacturers have differences, take the frequency for example, nxp lpc1700 is up to 100MHz, ST STM32F103ZE is 72MHz and Atmel AT91SAM3U is 96MHz. Meanwhile, they incorporate various peripherals, although most of them are the same. Before you choose these processors for your project, you shall evaluate