2020-01-30 11:55 PM
Hello,
I have a problem,i wrote this program but it dosen't work.
It doesn't read its rx pin.
Can you help me pls ???
Solved! Go to Solution.
2020-02-05 12:37 AM
NOW, every thing is fine.
It is working...
Final cod that is working :::grinning_face:
2020-01-31 12:03 AM
Which discovery board ? There are several one's fitting into the "M4" category.
Have you checked the schematics ?
Perhaps the pin is connected to other onboard peripherals interfering with UART functionality ?
Don't want to wade through uncommented assembler code with permanently cross-referencing the RefManual.
2020-01-31 12:36 AM
Pins are correct (stm32f429ZI).
I try to use Reference manual.
I don't like c language , i want to use assembly language.
Is this program correct ?
And
I will try other pins like uart not usart...
2020-02-01 08:12 AM
Both the software and the hardware has problems. It's quite hard to tell what, when neither the program workings nor the intention is documented.
Using the UART to read from the onboard RAM or what?
Know your board first, use the documentation available from the vendor, then document your code adequately before asking help from others.
2020-02-01 10:49 AM
Can you use a debugger?
Use the Peripheral Viewer to walk through the RCC, GPIO and USART configurations and bits, with respect to the Reference Manual.
Output a 'U' 0x55 pattern repeatedly, and use a scope to confirm the signal and the baud/bit rate.
2020-02-01 12:12 PM
> I don't like c language , i want to use assembly language.
I'm all for performance, compactness and understanding of hardware, but writing everything in assembly is just ineffective. It's better to write most of the code in C and leave assembly for hardware specific instructions, performance critical code, startup code etc. Not only you get cross platform decently optimized (for all platforms) reusable code, but also a possibility to change per project optimization for speed or size with a single parameter.
2020-02-01 12:27 PM
> USART_SR EQU GPIOD_BASE + 0x00
+1 for using the debugger.
JW
2020-02-01 12:38 PM
USART_SR EQU GPIOD_BASE + 0x00
This is maybe wrong .
not GPIOD_BASE
it would be this, 0x4000 4800 - 0x4000 4BFF USART3
I will try this
Thanks a lot.
2020-02-03 10:27 PM
IT doesn't work again......
2020-02-03 10:30 PM