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

PB3, PB4 does not work correctly #432

Open
sb-child opened this issue Aug 16, 2022 · 4 comments
Open

PB3, PB4 does not work correctly #432

sb-child opened this issue Aug 16, 2022 · 4 comments

Comments

@sb-child
Copy link

sb-child commented Aug 16, 2022

Hi,
I am trying this example, PA15 is working fine but PB3, PB4 seems not blinking.
I have tested on STM32F103RBT6 and GD32F103RET6 with same results.

After searching related issues, but I have no idea how to fix that.

My Cargo.toml (deps are latest):

[package]
name = "example"
version = "1.0.0"
edition = "2021"

[profile.release]
opt-level = 'z'
lto = true
debug = false

[dependencies]
stm32f1xx-hal = { version = "*", features = ["stm32f103", "rt", "medium"] }
cortex-m-rt = { version = "*", features = ["device"] }
cortex-m = "*"
panic-halt = "*"
micromath = "*"
ssd1306 = "*"
embedded-hal = "*"
embedded-graphics = "*"
nb = "*"

memory.x:

MEMORY
{
  FLASH : ORIGIN = 0x08000000, LENGTH = 512K
  RAM : ORIGIN = 0x20000000, LENGTH = 64K
}

.cargo/config:

[target.thumbv7m-none-eabi]
rustflags = [
  "-C", "link-arg=-Tlink.x",
]
[build]
target = "thumbv7m-none-eabi"
@sb-child
Copy link
Author

https://github.com/stm32-rs/stm32f1xx-hal/blob/master/examples/nojtag.rs

sorry that this example still doesn't work. PA15 is working fine but PB3, PB4 not

@sb-child
Copy link
Author

UPDATE: STM32F103C8T6 works fine, but STM32F103RBT6 not.

@burrbull burrbull reopened this Aug 16, 2022
@burrbull
Copy link
Member

Those chips should be identical inside except memory size, so I can't say what is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants