PX4-Autopilot: [Bug] Recent DMA change ed4814f6239097dde5eecf2b4fbd58661db84dda stm32h7/serial: Do not wait on TXDMA semaphore breaks a lot of things.
Describe the bug
With stm32h7/serial: Do not wait on TXDMA semaphore in, the console will not complete transmitting the complete output until a character is input on console.
gps status
sh> gps status
INFO [gps] Main GPS
INFO [gps] protocol: UBX
INFO [gps] status: OK, port: /dev/ttyS0, baudrate: 115200
INFO [gps] sat info: disabled
INFO [gps] rate reading: 817 B/s
INFO [gps] rate position: 5.00 Hz
INFO [gps] rate velocity: 5.00 Hz
INFO [gps] rate publication: 5.00 Hz
INFO [gps] rate RTCM injection: 0.00 Hz
sensor_gps
timestamp: 402227138 (0.141411 seconds ago)
< hit a key >
timestamp_sample: 0
latitude_deg: 27.589204
longitude_deg: -80.435646
altitude_msl_m: 21.876000
altitude_ellipsoid_m: -6.741000
time_utc_usec: 1700158702599596
device_id: 11010053 (Type: 0xA8, SERIAL:0 (0x00))
s_variance_m_s: 0.91500
c_variance_rad: 0.77875
eph: 4.81900
epv: 6.55500
hdop: 1.67000
vdop: 2.80000
noise_per_ms: 98
jamming_indicator: 47
vel_m_s: 0.04700
vel_n_m_s: 0.02800
vel_e_m_s: -0.03800
vel_d_m_s: 0.00200
cog_rad: 1.72410
timestamp_time_relative: 0
heading: nan
heading_offset: 0.00000
heading_accuracy: 0.00000
rtcm_injection_rate: 0.00000
automatic_gain_control: 780
fix_type: 3
jamming_state: 0
spoofing_state: 1
vel_ned_valid: True
satellites_used: 8
selected_rtcm_instance: 0
rtcm_crc_failed: False
rtcm_msg_used: 0
To Reproduce
see above
Expected behavior
not extra input needed
Screenshot / Media
No response
Flight Log
NA
Software Version
main with nuttx that has ed4814f6239097dde5eecf2b4fbd58661db84dda
Flight controller
all H7 with TX DMA
Vehicle type
None
How are the different components wired up (including port information)
No response
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 24 (23 by maintainers)
@beniaminopozzan The serial DMA issue was fixed with https://github.com/PX4/PX4-Autopilot/pull/22667. Please test current master. If this is still and issue please reopen this or post a new issues with what you are seeing.
Can someone point me to a commit where things are still sane?
Edit: looks like main is ok again?