Which board are you using ? when you upload via st flasher do you reset the boot pins so it boots the new code(board dependent) ? is the st flash still connected when you repower the device and plug to usb ?
we will need a bit more info about your device, setup initial code , sequence of operation ...
Search found 26 matches
- Fri Apr 14, 2023 8:37 am
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: STM32F103C8 128K - USB unknow
- Replies: 2
- Views: 10771
- Tue Mar 07, 2023 7:05 am
- Forum: General discussion
- Topic: Has anyone got a STM32F411CE Blackpill working as a USB Host?
- Replies: 6
- Views: 14366
Re: Has anyone got a STM32F411CE Blackpill working as a USB Host?
I think you need to look into the stm32f4xx examples packs available from STM website or git hub,
heres a old github example , note that bugs and api changes by stm to the stmcore renders some example code non-compilable so you may have to hunt down a older stm32core or patch to newer api/core ...
heres a old github example , note that bugs and api changes by stm to the stmcore renders some example code non-compilable so you may have to hunt down a older stm32core or patch to newer api/core ...
- Fri May 06, 2022 8:27 am
- Forum: Libraries & Hardware
- Topic: Problem getting CAN to work on STM32F767
- Replies: 11
- Views: 29384
Re: Problem getting CAN to work on STM32F767
This is a big amount of things to check and test, thanks.It will take some time. First I have to find PB12 and PB13 for measure the blinking.
However, this seems to be another interface as described in https://github.com/stm32duino/Arduino_Core_STM32/blob/main/system/Drivers/STM32F7xx_HAL_Driver ...
- Thu May 05, 2022 8:05 am
- Forum: USB bootloader
- Topic: STM32F0 Bootloader Problem/Issue
- Replies: 14
- Views: 31865
Re: STM32F0 Bootloader Problem/Issue
if you compile the arduino bootloader for your device and flash it via stmcube then you can use the arduino environment to re-program with new code without using the boot pin method and stmcube.
i dont use the arduino ide myself so i cannot 100% tell you what menu option you must choose to flash ...
i dont use the arduino ide myself so i cannot 100% tell you what menu option you must choose to flash ...
- Thu May 05, 2022 7:50 am
- Forum: Libraries & Hardware
- Topic: Problem getting CAN to work on STM32F767
- Replies: 11
- Views: 29384
Re: Problem getting CAN to work on STM32F767
one final note, pay attention to what written in this message
https://www.stm32duino.com/viewtopic.php?p=2153#p2153
So I conclude that the bootstrap loader, when it jumps to the application program, does not shut off the USB, and this must have been done in the core
you may also have this ...
https://www.stm32duino.com/viewtopic.php?p=2153#p2153
So I conclude that the bootstrap loader, when it jumps to the application program, does not shut off the USB, and this must have been done in the core
you may also have this ...
- Thu May 05, 2022 7:45 am
- Forum: Libraries & Hardware
- Topic: Problem getting CAN to work on STM32F767
- Replies: 11
- Views: 29384
Re: Problem getting CAN to work on STM32F767
If you are not using arduino and are using stm32 cube then this code should init without error,
main.c
uint8_t ubKeyNumber = 0x0;
CAN_HandleTypeDef CanHandle;
CAN_TxHeaderTypeDef TxHeader;
CAN_RxHeaderTypeDef RxHeader;
uint8_t TxData[8];
uint8_t RxData[8];
uint32_t TxMailbox;
static void CAN ...
main.c
uint8_t ubKeyNumber = 0x0;
CAN_HandleTypeDef CanHandle;
CAN_TxHeaderTypeDef TxHeader;
CAN_RxHeaderTypeDef RxHeader;
uint8_t TxData[8];
uint8_t RxData[8];
uint32_t TxMailbox;
static void CAN ...
- Thu May 05, 2022 7:30 am
- Forum: Libraries & Hardware
- Topic: Problem getting CAN to work on STM32F767
- Replies: 11
- Views: 29384
Re: Problem getting CAN to work on STM32F767
Hi,
hope this is the right spot to post this problem. I am trying to get CAN working on a custom board with a STM32F767. However, I am completely stuck and there is no progress anymore with try and error. Since the code of the project is not open, I am not able to share the whole project but I am ...
- Tue Feb 09, 2021 8:00 pm
- Forum: General discussion
- Topic: Jump to bootloader STM32F103
- Replies: 10
- Views: 19755
Re: Jump to bootloader STM32F103
Implementing a serial bootloader and bootloader check ,
the best way to do this is have them as two parts, bootloader/program and maintain as such.
In the bootloader you need to decide on your check, You can look for a single magic value in the memory , bear in mind you could possibly end in boot ...
the best way to do this is have them as two parts, bootloader/program and maintain as such.
In the bootloader you need to decide on your check, You can look for a single magic value in the memory , bear in mind you could possibly end in boot ...
- Wed Jan 20, 2021 9:14 am
- Forum: General discussion
- Topic: [Solved] Can I use SPI2 with Uno/Nano Library that uses SPI?
- Replies: 11
- Views: 11096
Re: [Solved] Can I use SPI2 with Uno/Nano Library that uses SPI?
Hi,
When you say it worked on 5-6 programs , I assume you mean the board accepted 5 - different .bin files and flashed them and they booted (be it blink or what ever) but when you upload your code it wont function,
I assume then yes there is a conflict, i would start by putting serial.print right ...
When you say it worked on 5-6 programs , I assume you mean the board accepted 5 - different .bin files and flashed them and they booted (be it blink or what ever) but when you upload your code it wont function,
I assume then yes there is a conflict, i would start by putting serial.print right ...
- Tue Jan 19, 2021 6:49 am
- Forum: General discussion
- Topic: [Solved] Can I use SPI2 with Uno/Nano Library that uses SPI?
- Replies: 11
- Views: 11096
Re: [Solved] Can I use SPI2 with Uno/Nano Library that uses SPI?
The USB boot loader need to be flashed first and at a different location of memory, e.g
bootloader start address 0x0000000
user code start address 0x00005000
also depending on which ide you are using you will have to change programming type.
i use platformio and Black Magic probe( the stm32 ...
bootloader start address 0x0000000
user code start address 0x00005000
also depending on which ide you are using you will have to change programming type.
i use platformio and Black Magic probe( the stm32 ...