It can be done, but not without using LL or CMSIS and it will need way more flash and RAM then code written in "pure" c/c++.
There are many open source bootloaders that use SD card to flash firmware. You might even find one for your MCU or might need to tweak few lines of code.
Search found 406 matches
- Sat Oct 14, 2023 1:39 pm
- Forum: General discussion
- Topic: Load Firmware from sd
- Replies: 6
- Views: 2399
- Thu Oct 12, 2023 3:29 pm
- Forum: General discussion
- Topic: I2C Communication between DS3231 and STM32 BluePill
- Replies: 1
- Views: 1136
Re: I2C Communication between DS3231 and STM32 BluePill
Have you tried any DS3231 library ??
- Fri Aug 25, 2023 4:35 pm
- Forum: Projects
- Topic: Voltage divider on Nucleo STM32L452RE bad accuracy
- Replies: 8
- Views: 7161
Re: Voltage divider on Nucleo STM32L452RE bad accuracy
So that brings me to two new questions: 1. if using such a voltage divider circuit for multiple PCB's, how do you ensure consistency? Measure the actual resistance values prior to uploading code, and then hardcode the individual resistor values into the Arduino program for each PCB? I.e. calibratio...
- Thu Aug 24, 2023 8:35 pm
- Forum: Projects
- Topic: Voltage divider on Nucleo STM32L452RE bad accuracy
- Replies: 8
- Views: 7161
Re: Voltage divider on Nucleo STM32L452RE bad accuracy
1. Are you sure, the input voltage is exactly 3.3V ??
2. Are you sure that those resistors are exactly 4.7M and 2.2M ?
2. Are you sure that those resistors are exactly 4.7M and 2.2M ?
- Sat Aug 12, 2023 11:43 pm
- Forum: General discussion
- Topic: STM32F103C8T6 blue pill INPUT pullup issue
- Replies: 2
- Views: 1229
Re: STM32F103C8T6 blue pill INPUT pullup issue
1. If you're using pullups, then with button pressed you get 0, and not pressed you get 1.
2. PC12-PC15 pins cannot source current, but they can sink, so pin provides GND to LED. 0 = on, 1= off
2. PC12-PC15 pins cannot source current, but they can sink, so pin provides GND to LED. 0 = on, 1= off
- Mon Aug 07, 2023 7:28 pm
- Forum: IDE's
- Topic: Arduino IDE Bootloader for STM32F072C8T
- Replies: 1
- Views: 5477
Re: Arduino IDE Bootloader for STM32F072C8T
F072C8 has DFU bootloader, so just reset it into bootloader and you can flash it using USB.
Also STM does not provide software USB bootloaders.
You can probably make one using this: https://github.com/Serasidis/STM32_HID_Bootloader
Also STM does not provide software USB bootloaders.
You can probably make one using this: https://github.com/Serasidis/STM32_HID_Bootloader
- Sat Jul 29, 2023 4:28 pm
- Forum: Libraries & Hardware
- Topic: PWM pin in STM32F103C8 blue pill
- Replies: 8
- Views: 7955
Re: PWM pin in STM32F103C8 blue pill
PWM does not control voltage. You cannot use PWM to lower voltage, it only controls time how long power is turned on and off.
Voltage reading will depend on your meter, PWM frequency, board hardware and MCU.
Voltage reading will depend on your meter, PWM frequency, board hardware and MCU.
- Sat Jul 22, 2023 1:26 pm
- Forum: General discussion
- Topic: I want to create a 'hex' file via 'STM32Duino' (Arduino sketch).
- Replies: 13
- Views: 2778
Re: I want to create a 'hex' file via 'STM32Duino' (Arduino sketch).
No. .bin extension is for "binary". STM32 MCUs use binary files for firmware upload. You need .bin file if you want to upload firmware to STM32 MCU, unless you have an application that converts HEX file into binary format before uploading it.
- Tue Jul 18, 2023 11:10 pm
- Forum: Projects
- Topic: standalone board based on STM32F303K8T6
- Replies: 4
- Views: 5420
- Sun Jul 16, 2023 9:01 pm
- Forum: STM32F4 based boards
- Topic: Cannot upload Blackpill F411 v3.0 from Arduino IDE
- Replies: 7
- Views: 4360
Re: Cannot upload Blackpill F411 v3.0 from Arduino IDE
Ground UART1 RX (PA10) pin while you reset board.
If MCU gets anything on UART it will start bootloader with UART enabled, not USB.
If MCU gets anything on UART it will start bootloader with UART enabled, not USB.