2023-10-04 09:38 AM
Hai experts .
Can i wrte data to the entire Port as follows
GPIOB->ODR |= 0x0000;
HAL_Delay(1000);
GPIOB->ODR |=0xffff;
Whenever i write like wise the SFR register shows correct value in Debug mode
But in Hardware its not working .whats the wrong with me ?
2023-10-05 12:47 AM
Which bit or pin in the port is your LED connected to?
Looking at the video I suspect the processor is stm32f103. But it would be useful if you could confirm that.
Is this a board that you designed and built? Or a commercial one (if so, please tell us which one)?
Do you have access to a voltmeter, so you can look at the voltage on the pins? That would help you to know if the problem is the software or the hardware (e.g. pin not soldered, LED the wrong way round).
2023-10-05 07:15 AM
> I think GPIOB->ODR canot write entire data
> Here can see the data change in ODR regiter
Aren't these statements at odds with each other? You can keep thinking that, but the issue is elsewhere. Still not seeing your full code.