groupgets / purethermal1-firmware

Reference firmware for PureThermal 1 FLIR Lepton Dev Kit
MIT License
125 stars 62 forks source link

DEBUG_UART=1 printf no data? #38

Closed nsknyc closed 3 years ago

nsknyc commented 3 years ago

I am not getting any data off the tx and rx header pins. I feel like I'm missing something absolutely simple. I've tried the prebuilt binary, also building it with make DEBUG_UART=1 parameter under eclipse. Enabling THERMAL_DATA_UART spits out some random info. I've tried different baud rates. I've also confirmed the baud with an oscilloscope.

HAL_UART_MspInit has GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3; which according to the datasheet is definitely the uart2 pins labeled as tx and rx on the purethermal 2 board. Is printf (debug_printf) not retargetted to uart? Any help would be greatly appreciated. Thanks.

nsknyc commented 3 years ago

Please close this. I solved this issue the best way I could. Its in my fork. I hope this helps others who have been trying to figure this one out.