58 questions
0
votes
2
answers
75
views
How to detect the end of an ESP-01 (ESP8266 AT command) UART response when receiving with interrupts?
I’m working with an ESP-01 (ESP8266, AT firmware) connected to an STM32 “Bluepill”.
I receive data from the ESP using UART interrupt (HAL_UART_Receive_IT) and I want to detect when a full response ...
0
votes
0
answers
44
views
SIM800C doesn't go to sleep
My goal is to make my SIM800C sleep for a few seconds using my Blue Pill and STM32CubeIDE. I did the following steps:
configured PA6 and PB6 as (Output) Output Pull Pull and No pull up/down.
used ...
0
votes
0
answers
32
views
stm32f1 bluepill strange behavior after remap jtag pins
I'm working on some libraries and remap lib is one of them. earlier this library was tested and working fine. I released A15, B3 and B4 pins . but now , MCU just resets after remap or do some strange ...
2
votes
1
answer
150
views
Why is half of my code working and half not? STM32
Hi I am trying to read adc data from stm32f103c8t6 bluepill and I am giving 3.3v to the A1 from arduino uno as you can see from the picture below. When the adc data is more than 2000 the LED that's ...
-1
votes
2
answers
537
views
STM32f103c8 blue pill GPIO driver configuration
I want to create my own driver on stm32f1 board. I want to control MCU build_in led but I can't solve. I am trying to make PortC pin 13 pin as output (push-pull) mode, after that I want to set bit. ...
0
votes
1
answer
1k
views
STM32 proteus simulation doesn't work properly
guys I'm making a simulation for stm32f103c6 the code written on Arduino IDE. I'm testing a simple LED blink on proteus and it's not even working.
Arduino Code
And this is what happens when I run the ...
1
vote
1
answer
538
views
What's the right CAN bus settings for STM32F4-Disc for 250 kbit/s by using nanoFramework?
I'm trying to connect a Blue Pill board (set up by STM32CubeMX) with STM32F4-Discovery (set up by ChibiOS and nanoFramework).
The Blue Pill has these parameters:
APB1 peripheral clock: 24 MHz
...
0
votes
0
answers
330
views
Time clock using built in RTC of STM32 bluebill
I am new in STM32 development and trying to built RTC clock that display's time on oled display.
But on screen some random unidentified symbols are displaying by the below code.
while(1){
/* ...
1
vote
0
answers
3k
views
Could not verify St device error occurs in STM32CubeIDE
I am trying to run Blinky on stm32 bluepill but I am getting error message....."Could not verify ST device! Please verify that the latest version of GDB-server is used for the connection"
I ...
0
votes
0
answers
887
views
Error in final launch sequence: Failed to execute MI command:
I am using STM32F103C8T6 and ST-Link V2 Programmer. I am in Windows 11.
Error in final launch sequence:
Failed to execute MI command:
target remote localhost:61234
Error message from debugger back end:...
1
vote
1
answer
970
views
missing a character after a fixed interval while receiving through UART in stm32(bluepill)
I am trying to send a string "hello" continiously through UART1 from Atmega 328P to the BLUEPILL board. I am doing the reception by by interrupt.
The problem is after few times it starts to ...
0
votes
1
answer
4k
views
STM32cubeide with stm32f103c8t6 could not verify ST device
I am new to embedded and stm32cubeide, self teaching so I can use it in a group project related to university studies.
After purchasing a "blue pill" from aliexpress, I realized I might of ...
1
vote
1
answer
9k
views
stlink v2 clone and "blue pill" board - blue/red LED meaning and problems getting started
Trying (for first time, and without success) to push firmware to a STM32 "blue pill" board (STM32F103C6T6) using a STLINK V2 clone (small red USB device with 10 pins at one end.)
The "...
0
votes
0
answers
178
views
Weird performance for SPI comunication in bluepill and stm32cubemx
I am facing a weird problem with bluepill (stm32f103c8). I developed a code to control lead addressable stripe that uses SPI communication (APA102), and it worked nicely, then I tried to PWM on timer ...
0
votes
2
answers
4k
views
STM32 External LED blink
I am trying to Blink external LED using STM32CubeIDE and Proteus
while (1)
{
HAL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin);
HAL_Delay(100);
}
[)2
The LED doesn't blink
0
votes
1
answer
528
views
Peripheral Initialisation of GPIO Output with stm32f1xx_hal on bluepill development board
I would like to initialize a basic output GPIO pin on my blue pill board. I am using Rust and the stm32f1xx_hal crate. I want to create a struct Peripherals which holds the handle to the output in the ...
6
votes
1
answer
1k
views
UI Tests Flaky on CI
update:
VNC into the build machine (without making any changes) somehow fixes this....strange
Context
We use Mac EC2 instances CI cluster to run UI tests. The cluster is set up to recycle every ...
0
votes
1
answer
2k
views
STM32 Disable and enable DMA and PWM controlled by timer
I am using a STM32F103. I am trying to dynamically enable and disable a DMA transfer and a PWM signal, which are controlled by a timer. The timer is very unstable, and the result changes from reboot ...
0
votes
1
answer
207
views
Is the NVIC controller a DMA?
I come with a theoretical question related to the well-known STM32 blue pill, to be more specific, I don't know if the NVIC controller is a type of DMA. I would say that it is a DMA as long as it ...
1
vote
1
answer
2k
views
STM32F103 blue pill interrupts from scratch
How could I create an interrupt for a blue pill from scratch?
I do not want to use any sort of special library. Also, I use Keil IDE, thus, by "building from scratch" I refer rather not to ...
0
votes
1
answer
1k
views
STM32F103 blue pill - problems related to blinking led bare metal
I come across a problem when trying to run this code in order to blink the built-in LED (located at PC13) on the blue pill board (STM32F103C8, ARM Cortex M3):
#include "stm32f10x.h" ...
4
votes
1
answer
7k
views
why am I getting a communication failure when trying to connect with stlink-v2 using openocd
I'm trying to connect to an 'stm32' 'bluepill' using an stlink-v2 to write some code to it
Whenever I run openocd, it fails to connect
My openocd.cfg file looks like this
source [find interface/stlink-...
0
votes
1
answer
91
views
Weird Bug when setting register in assembly [closed]
I was playing with blue pill (Stm32F103CB) and trying to set r7 register via assembly,
.syntax unified
.cpu cortex-m3
.fpu softvfp
.thumb
.global vtable
.global reset_handler
.type vtable, %object
...
1
vote
1
answer
1k
views
STM32 BluePill LED flasher acts strange using HAL_GPIO_TogglePin
I have two simple LED flasher programs the flash at 1 sec intervals for my BluePills.One method uses HAL_GPIO_TogglePin to toggle the LED state and the other uses Set and Reset to toggle the LED state....
0
votes
3
answers
4k
views
STM32 Blue pill and Arduino IDE
I want to program Stm32 bluepill with Arduino IDE but when I want to define pins like I write " pinMode(A10, OUTPUT)" it gives error. the error is "'A10' was not declared in this scope&...
2
votes
1
answer
2k
views
How to setup STM32f103c8T Bluepill + Platformio + UART the right way?
I've been trying to figure out how to upload a code to a STM32103c8T bulepill board.
My setup is
1- MacOs Catalina
2- STM32103c8T bulepill board
3- SLAB UART USB-TTL CP2012 V3.0
4- Platformio IDE
5- ...
0
votes
1
answer
793
views
__weak HAL_GPIO_EXT1_Callback ( uint16_t GPIO_Pin) even though I have defined HAL_GPIO_EXT1_Callback ( uint16_t GPIO_Pin) in my source
I'm working in STM32 CubeIDE with a Blue Pill board.
To control the size of main.c I have gathered groups of functions together in to several c/h pair files. One of the pairs is 'myirqcallbacks.c/h"....
0
votes
2
answers
3k
views
STM32F103 Cannot jump to bootloader from app
I'd like to do a jump to bootloader from application on STM32 Blue Pill STM32F103C8T6.
My approach looks that:
- Write to BKP->DR1 any value;
- Do a reset (NVIC_SystemReset());
- A the beginning of ...
6
votes
2
answers
15k
views
How to flash without STLINK
My STLINKV2 is not working anymore, not detected by Linux, it failed after the first successful flash. I ordered a new one but it will take 60+ days to arrive. Meanwhile I have heard on Youtube you ...
1
vote
2
answers
5k
views
STM32 Blue Pill USB bootloader DFU
I am trying to make a base project for a Blue Pill STM32F103 which I can use for multiple projects. I would like to be able to both flash the device and send commands using serial COM port using the ...
1
vote
0
answers
307
views
Need Help Manipulating Registers in Inline Assembly (STM32F103 "BluePill")
I have some simple code I want to get working. What I'm trying to do is to switch Pin PA8 ON and OFF as fast as possible on the STM32F103 "BluePill" using Assembly. I'm having trouble with the correct ...
5
votes
4
answers
6k
views
CS32F103C8T6 blue-pill clone - cannot flash from AC6 SystemWorkbench
I am trying to flash a blue-pill clone with a CS32F103C8T6 chip using the AC6 SystemWorkBench and a ST-LINK v2 device. It is a project built from STM32CubeMX - I am using a MacOS Mojave machine. Here ...
0
votes
1
answer
554
views
stm32f103 internal interrupt can not reach the wanted frequency (350ns) (lowest reached is 4us)
i am trying to generate a PWM signal by turning a GPIO pin high and low using an interrupt generated by TIMER1, why i am doing it this way is a whole different story, so i need to generate an ...
4
votes
2
answers
8k
views
How to connect STLINK-V3MINI to a Blue Pill?
I have a Blue Pill and I'd like to program it using TinyGo but the Blue Pill had no (obvious) means for hardware programming. So, I bought an STLINK-V3MINI hoping to use JTAG/SWD to program it. I'm ...
0
votes
1
answer
694
views
How to deploy and run bundle install using docker & ansible ROR?
I'm deploying ROR application using Ansible with Docker, Ruby Docker image created & pushed to the Docker HUB, Ansible cloned the Application from the Private repo to the Target Server, the docker ...
-1
votes
1
answer
800
views
Ruby version mismatch after ruby upgrade without rvm or rbenv
I am using bluepill to manage unicorn and after ruby upgrade unicorn start is failing with below error:
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.17.3/lib/bundler/definition.rb:495:in `...
2
votes
3
answers
7k
views
Openocd Error: invalid command name "dap" - can't connect Blue Pill via ST-Link/V2
I'm using a Blue Pill board (STM32F103CB with 128kB of flash according to st-info --probe) via a clone ST-Link/V2 like this one. I've also tested using a genuine ST-Link/V2 like this one. I get the ...
0
votes
1
answer
511
views
Flashing STM32f103c8t6 at wrong memory map address
I flashed my blue pill board with the following OpenOCD command and then my OpenOCD does not connect to my board anymore. My boot0 and boot1 pins was grounded.
flash write_image erase blinkled.hex
I ...
0
votes
1
answer
100
views
which file to does blue pill expect in -a flag?
I am trying to run xcui tests om multiple simulator using blue pill tool by linked in.
when I run the command: ./bluepill
output:
bluepill: invalid configuration
Missing required option: -a/--...
0
votes
3
answers
1k
views
Sidekiq keeps rebooting Cloud66
I have been struggling with this issue for a while and just can't figure it out. I am trying to get Redis and Sidekiq to handle background jobs for my Rails Project hosted on Cloud66 w/ Digital Ocean. ...
0
votes
1
answer
72
views
What ruby languaje is used by bluepill cookbook
I have some doubts about a specific attribute of bluepill cookbook.
default["bluepill"]["bin"] = "#{node['languages']['ruby']['bin_dir']}/bluepill
Where and when is defined this value?
I want to use ...
2
votes
1
answer
268
views
Discourse bluepill to use rbenv
In official discourse repository there's a discourse.pill file for bluepill gem and it uses rvm.
Because I'm using rbenv I need that script to use rbenv (and I'm bad at environment stuff).
How I ...
1
vote
1
answer
200
views
How to start bluepill on your VPS(Digital Ocean)?
discourse@fyps:~$ bluepill stop
Error: There are no running bluepill daemons.
To start a bluepill daemon, use: bluepill load
discourse@fyps:~$ bluepill load
/home/discourse/.rvm/gems/ruby-2.0.0-...
4
votes
4
answers
2k
views
How to Daemonize a Rails script with bluepill
I've always used bluepill successfully to daemonize simple Ruby scripts. This time however, I have a script that's also loading a Rails environment so I can access my database connection for the Rails ...
3
votes
1
answer
536
views
How to make Bluepill restart Resque workers only after reaching a safe status
Let's say this is my worker:
class FooWorker
@queue = :foo
def self.perform
User.all.each do |u|
...
Do Long Operations (Unsafe to kill)
...
# Here it's safe to ...
5
votes
1
answer
807
views
Upstart tracking wrong PID of Bluepill
I have bluepill setup to monitor my delayed_job processes.
Using Ubuntu 12.04.
I am starting and monitoring the bluepill service itself using Ubuntu's upstart. My upstart config is below (/etc/init/...
2
votes
1
answer
564
views
Bluepill - installed in user RVM - project specific gemset - how to run with sudo without password?
I have Bluepill setup to monitor my delayed_job processes.
On my production server, I use RVM installed in the user's home folder (username is deploy). My app's gems are installed in its own project-...
1
vote
1
answer
648
views
Kill all process of bluepill
I have set bluepill process on my live server and after few days I have killed all the commands and removed repo out of the server . Now since long I am getting logs related to bluepill like,
Sep 27 ...
0
votes
1
answer
550
views
Running Clockwork and Delayed Job on Heroku
I am migrating my existing rails app to heroku. I have memory and time intensive delayed jobs that run almost 20 hours a day and I have a clockwork to handle the time specific jobs. the clockwork jobs ...
0
votes
1
answer
160
views
What files does Bluepill create on my system?
I am working with Rails 3.0.3 and Bluepill 0.0.51. I am trying to troubleshoot a situation where Bluepill is trying to start multiple instances of my ruby servers in some cases, but having trouble ...