Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feather_stm32f405_express not running blinky uf2 #219

Open
maca134 opened this issue Jun 17, 2022 · 6 comments
Open

feather_stm32f405_express not running blinky uf2 #219

maca134 opened this issue Jun 17, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@maca134
Copy link

maca134 commented Jun 17, 2022

Operating System

Windows 10

INFO_UF2.TXT

TinyUF2 Bootloader 0.9.4 - st/cmsis_device_f4 (v2.6.4-1-g2615e86) st/stm32f4xx_hal_driver (v1.7.9) tinyusb (0.12.0-203-ga4cfd1c69)
Model: Adafruit Feather STM32F405 Express
Board-ID: STM32F405-Feather-revB
Date: May 30 2022

What happened ?

TinyUF2 doesnt seem to be running programs copied over to the MSC.

How to reproduce ?

  1. Compile blink example for feather_stm32f405_express
  2. Convert bin to uf2 uf2conv -c -b 0x08010000 -f 0x57755a57 -o...
  3. Copy uf2 to MSC device
  4. Board resets back into tinyuf2 bootloader (neopixel is green + MSC device mounts)

Debug Log

No response

Screenshots

Bootloader is there

Blink program seems to start at 0x08010000

@maca134 maca134 added the bug Something isn't working label Jun 17, 2022
@hathach
Copy link
Member

hathach commented Jun 17, 2022

can you attach both the bin and uf2 file here

@hathach
Copy link
Member

hathach commented Jun 20, 2022

I should have asked this before, but can you also share your simplest test project as github repo viewable and commentable for review. Make sure you got the linker correctly setup with flash layout for application (staring at correct address). It is probably better to convert with hex file than bin file.

I will find one example that works as well for your reference when I got time to pull out the board to test with.

@hathach
Copy link
Member

hathach commented Jun 21, 2022

I think the issue is probably you didn't have correct linker script for your firmware application. The starting address must be 0x08010000 since vector table along with function call may or probably use absolute address. Can you double check that ?

@hathach
Copy link
Member

hathach commented Jun 23, 2022

also if you are using cmsis f4 from ST, make sure you update to the latest, old version will incorrectly set the vector table. I have update readme for this note
https://github.com/adafruit/tinyuf2/blob/master/ports/stm32f4/README.md

@vibr77
Copy link

vibr77 commented Oct 20, 2024

I have the same issue with a STM32F411,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants