kendryte / kendryte-standalone-sdk

Standalone SDK for kendryte K210
https://kendryte.com
Apache License 2.0
445 stars 162 forks source link

UARTHS and UART send big size data lost data #73

Open Neutree opened 5 years ago

Neutree commented 5 years ago

https://github.com/kendryte/kendryte-standalone-sdk/blob/78d98ae932df196579e1b9541b07435463d5d15d/lib/drivers/uarths.c#L117-L126

When send big size data like 3K may lose data (with baudrate 921600 or 2000000)

zzxcanaan commented 5 years ago

Lost data when baudrate 2M on KD233 board, because the ch340 support maximum 2M. Please tell me your operating environment and test code.

Neutree commented 5 years ago

uart test code:


#include <stdio.h>
#include "fpioa.h"
#include <string.h>
#include "uart.h"
#include "gpiohs.h"
#include "sysctl.h"
#include "sleep.h"

#define UART_NUM    UART_DEVICE_1

uint8_t jpeg[] ={0xFF, 0xD8, 0xFF, 0xE0, 0x00, 0x10, 0x4A, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0xFF, 0xDB, 0x00, 0x84, 0x00, 0x16, 0x0F, 0x11, 0x13, 0x11, 0x0E, 0x16, 0x13, 0x12, 0x13, 0x19, 0x17, 0x16, 0x1A, 0x21, 0x37, 0x24, 0x21, 0x1E, 0x1E, 0x21, 0x44, 0x30, 0x33, 0x28, 0x37, 0x50, 0x46, 0x54, 0x53, 0x4F, 0x46, 0x4D, 0x4C, 0x58, 0x63, 0x7F, 0x6C, 0x58, 0x5E, 0x78, 0x5F, 0x4C, 0x4D, 0x6E, 0x96, 0x70, 0x78, 0x83, 0x87, 0x8E, 0x90, 0x8E, 0x56, 0x6A, 0x9C, 0xA7, 0x9B, 0x8A, 0xA6, 0x7F, 0x8B, 0x8E, 0x89, 0x01, 0x17, 0x19, 0x19, 0x21, 0x1D, 0x21, 0x41, 0x24, 0x24, 0x41, 0x89, 0x5B, 0x4D, 0x5B, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0xFF, 0xC0, 0x00, 0x11, 0x08, 0x00, 0xF0, 0x01, 0x40, 0x03, 0x01, 0x21, 0x00, 0x02, 0x11, 0x01, 0x03, 0x11, 0x01, 0xFF, 0xC4, 0x01, 0xA2, 0x00, 0x00, 0x01, 0x05, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x10, 0x00, 0x02, 0x01, 0x03, 0x03, 0x02, 0x04, 0x03, 0x05, 0x05, 0x04, 0x04, 0x00, 0x00, 0x01, 0x7D, 0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12, 0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61, 0x07, 0x22, 0x71, 0x14, 0x32, 0x81, 0x91, 0xA1, 0x08, 0x23, 0x42, 0xB1, 0xC1, 0x15, 0x52, 0xD1, 0xF0, 0x24, 0x33, 0x62, 0x72, 0x82, 0x09, 0x0A, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0x01, 0x00, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x11, 0x00, 0x02, 0x01, 0x02, 0x04, 0x04, 0x03, 0x04, 0x07, 0x05, 0x04, 0x04, 0x00, 0x01, 0x02, 0x77, 0x00, 0x01, 0x02, 0x03, 0x11, 0x04, 0x05, 0x21, 0x31, 0x06, 0x12, 0x41, 0x51, 0x07, 0x61, 0x71, 0x13, 0x22, 0x32, 0x81, 0x08, 0x14, 0x42, 0x91, 0xA1, 0xB1, 0xC1, 0x09, 0x23, 0x33, 0x52, 0xF0, 0x15, 0x62, 0x72, 0xD1, 0x0A, 0x16, 0x24, 0x34, 0xE1, 0x25, 0xF1, 0x17, 0x18, 0x19, 0x1A, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x63, 0x64, 0x65, 0x66,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2, 0x80, 0x12, 0x8A, 0x04, 0x14, 0x50, 0x01, 0x45, 0x00, 0x14, 0x50, 0x30, 0xA2, 0x80, 0x12, 0x96, 0x80, 0x0A, 0x28, 0x00, 0xA2, 0x98, 0x05, 0x14, 0x00, 0x51, 0x48, 0x02, 0x96, 0x80, 0x0A, 0x29, 0x80, 0x51, 0x48, 0x41, 0x4B, 0x40, 0xC2, 0x8A, 0x04, 0x14, 0x50, 0x30, 0xA2, 0x98, 0x82, 0x8A, 0x40, 0x14, 0x94, 0x0C, 0x28, 0xA0, 0x02, 0x8A, 0x04, 0x14, 0x94, 0x0C, 0x28, 0xA0, 0x02, 0x8A, 0x04, 0x14, 0x50, 0x30, 0xA2, 0x80, 0x0A, 0x28, 0x00, 0xA2, 0x80, 0x0A, 0x28, 0x00, 0xA2, 0x80, 0x16, 0x8A, 0x00, 0x28, 0xA0, 0x41, 0x4B, 0x40, 0x05, 0x14, 0x00, 0x52, 0xD0, 0x02, 0x52, 0xD0, 0x01, 0x45, 0x03, 0x12, 0x8A, 0x18, 0x82, 0x8A, 0x00, 0x28, 0xA0, 0x02, 0x92, 0x90, 0xC2, 0x8A, 0x60, 0x14, 0x94, 0x08, 0x28, 0xA0, 0x61, 0x45, 0x00, 0x14, 0x50, 0x01, 0x45, 0x31, 0x05, 0x14, 0x86, 0x14, 0x50, 0x02, 0xD1, 0x40, 0x05, 0x14, 0x00, 0xB4, 0x94, 0x00, 0xB4, 0x62, 0x81, 0x05, 0x2D, 0x00, 0x14, 0x50, 0x01, 0x4B, 0x40, 0x05, 0x25, 0x00, 0x14, 0x62, 0x90, 0x05, 0x14, 0x00, 0x94, 0x53, 0x00, 0xA2, 0x90, 0x05, 0x25, 0x00, 0x14, 0x53, 0x00, 0xA4, 0xA0, 0x02, 0x8A, 0x00, 0x28, 0xA0, 0x02, 0x8A, 0x06, 0x14, 0x50, 0x01, 0x4B, 0x40, 0x05, 0x14, 0x08, 0x29, 0x68, 0x18, 0x51, 0x40, 0x85, 0xA2, 0x80, 0x0A, 0x5A, 0x40, 0x14, 0x53, 0x00, 0xA2, 0x90, 0x05, 0x14, 0xC0, 0x28, 0xA4, 0x01, 0x49, 0x40, 0xC2, 0x8A, 0x04, 0x14, 0x94, 0x00, 0x51, 0x40, 0x05, 0x25, 0x31, 0x85, 0x14, 0x00, 0x52, 0x50, 0x01, 0x45, 0x30, 0x0A, 0x29, 0x08, 0x28, 0xA0, 0x61, 0x45, 0x02, 0x16, 0x8A, 0x06, 0x28, 0xA2, 0x81, 0x05, 0x2D, 0x00, 0x14, 0x52, 0x01, 0x68, 0xA6, 0x02, 0xD1, 0x8A, 0x40, 0x14, 0xB8, 0xA0, 0x03, 0x14, 0x62, 0x98, 0x09, 0x8A, 0x31, 0x49, 0x80, 0x52, 0x50, 0x01, 0x45, 0x00, 0x25, 0x14, 0x00, 0x94, 0x62, 0x98, 0x05, 0x14, 0x00, 0x52, 0x50, 0x01, 0x45, 0x00, 0x25, 0x14, 0x0C, 0x28, 0xA0, 0x05, 0xA2, 0x80, 0x0A, 0x28, 0x00, 0xA2, 0x81, 0x0B, 0x45, 0x00, 0x2D, 0x14, 0x00, 0xB4, 0x52, 0x01, 0x68, 0xC5, 0x00, 0x2D, 0x2E, 0x28, 0x10, 0x62, 0x97, 0x14, 0x00, 0x62, 0x93, 0x14, 0x00, 0x62, 0x8C, 0x50, 0x02, 0x62, 0x8C, 0x50, 0x02, 0x51, 0x40, 0xC4, 0xA2, 0x80, 0x12, 0x8A, 0x00, 0x29, 0x28, 0x00, 0xA2, 0x98, 0x09, 0x45, 0x00, 0x14, 0x94, 0x00, 0xB4, 0x50, 0x30, 0xA2, 0x80, 0x0A, 0x28, 0x00, 0xA5, 0xA0, 0x40, 0x29, 0x69, 0x00, 0x52, 0xE2, 0x80, 0x0A, 0x5A, 0x00, 0x51, 0x4B, 0x8A, 0x04, 0x2E, 0x29, 0x71, 0x40, 0x06, 0x29, 0x40, 0xA0, 0x03, 0x14, 0x62, 0x80, 0x13, 0x14, 0x62, 0x90, 0x09, 0x8A, 0x31, 0x4C, 0x04, 0xA4, 0xC5, 0x00, 0x25, 0x25, 0x03, 0x0A, 0x28, 0x01, 0x28, 0xA0, 0x04, 0xA2, 0x80, 0x0A, 0x4A, 0x00, 0x28, 0xA6, 0x31, 0x28, 0xA0, 0x05, 0xA2, 0x80, 0x0A, 0x28, 0x10, 0xB4, 0x50, 0x02, 0xD1, 0x48, 0x05, 0xA5, 0x14, 0x00, 0x52, 0x81, 0x40, 0x0A, 0x05, 0x38, 0x0A, 0x04, 0x38, 0x0F, 0x6A, 0x76, 0xDA, 0x40, 0x1B, 0x4D, 0x18, 0xA1, 0x31, 0x5C, 0x31, 0x46, 0x28, 0x01, 0x31, 0x49, 0x8A, 0x00, 0x4C, 0x51, 0x8A, 0x06, 0x34, 0x8A, 0x08, 0xA0, 0x04, 0xC5, 0x36, 0x98, 0x06, 0x28, 0xA0, 0x62, 0x52, 0x50, 0x01, 0x49, 0x40, 0x05, 0x14, 0xC0, 0x4A, 0x28, 0x18, 0x51, 0x40, 0x82, 0x8A, 0x06, 0x14, 0xB4, 0x80, 0x28, 0xA6, 0x21, 0x45, 0x2D, 0x20, 0x0A, 0x5A, 0x00, 0x5A, 0x70, 0x14, 0x00, 0xE0, 0x29, 0xCA, 0xB9, 0x34, 0x08, 0xDA, 0xF0, 0xEE, 0x9B, 0x15, 0xF5, 0xCC, 0x86, 0xE1, 0x77, 0x45, 0x1A, 0xF2, 0x01, 0x23, 0x93, 0xD3, 0xA7, 0xE3, 0x5A, 0x57, 0x3E, 0x17, 0x8C, 0xAE, 0x6D, 0x67, 0x60, 0xDF, 0xDD, 0x90, 0x64, 0x1F, 0xC4, 0x74, 0xFD, 0x6A, 0x56, 0xE0, 0x95, 0xCC, 0xBB, 0x8D, 0x12, 0xFE, 0xDC, 0x65, 0xA1, 0xDE, 0x3D, 0x63, 0xF9, 0xBF, 0xFA, 0xFF, 0x00, 0xA5, 0x50, 0x31, 0xE0, 0x90, 0x46, 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28, 0x00, 0xA2, 0x80, 0x0A, 0x28, 0x02, 0x2B, 0xA9, 0x85, 0xBD, 0xB4, 0x93, 0x36, 0x30, 0x8B, 0x9E, 0x7B, 0x9E, 0xC2, 0xB8, 0x69, 0xD8, 0x92, 0x49, 0x39, 0x24, 0xD0, 0xC4, 0xDD, 0x91, 0x58, 0xD4, 0x66, 0xB3, 0x31, 0x1A, 0x69, 0xA6, 0x99, 0x63, 0x4D, 0x36, 0x98, 0xC4, 0xA4, 0xA0, 0x62, 0x52, 0x53, 0x01, 0x28, 0xA0, 0x04, 0xA2, 0x81, 0x85, 0x2D, 0x00, 0x14, 0x52, 0x10, 0xB4, 0xB4, 0x00, 0xB4, 0xA2, 0x80, 0x1C, 0x29, 0xC2, 0x90, 0x89, 0x16, 0xA7, 0x88, 0x73, 0x9A, 0x42, 0x3A, 0xAF, 0x0C, 0x42, 0x56, 0xD6, 0x59, 0x59, 0x48, 0xDC, 0xFB, 0x57, 0xDC, 0x01, 0xD7, 0xF3, 0x24, 0x7E, 0x15, 0xB7, 0x44, 0x16, 0xB7, 0x2A, 0x0A, 0xC8, 0x28, 0xAD, 0x0A, 0x0A, 0x28, 0x00, 0xA2, 0x80, 0x0A, 0x28, 0x00, 0xA2, 0x80, 0x32, 0x7C, 0x45, 0x20, 0x5B, 0x25, 0x8F, 0x3F, 0x7D, 0x86, 0x47, 0xB0, 0xE7, 0xF9, 0xE2, 0xB9, 0x49, 0x4F, 0x34, 0x99, 0x9D, 0x47, 0xD0, 0x84, 0xD4, 0x66, 0xA4, 0x91, 0xA6, 0x98, 0x68, 0x28, 0x43, 0x4D, 0xA6, 0x31, 0x29, 0x28, 0x18, 0x94, 0x86, 0x98, 0x09, 0x45, 0x00, 0x25, 0x14, 0x0C, 0x28, 0xA0, 0x05, 0xA2, 0x80, 0x16, 0x96, 0x90, 0x85, 0x14, 0xB4, 0x00, 0xE1, 0x4E, 0x14, 0x84, 0x48, 0xB5, 0x66, 0x11, 0xD3, 0xDE, 0x90, 0x8E, 0xF2, 0xCA, 0x1F, 0xB3, 0xD9, 0xC5, 0x16, 0x00, 0x2A, 0xA3, 0x38, 0xF5, 0xEF, 0xFA, 0xD4, 0xF5, 0x50, 0x56, 0x46, 0x81, 0x45, 0x50, 0x05, 0x14, 0x00, 0x51, 0x40, 0x05, 0x14, 0x00, 0x51, 0x40, 0x1C, 0xBE, 0xBF, 0x70, 0x65, 0xBD, 0x64, 0x1F, 0x76, 0x30, 0x17, 0xAF, 0x53, 0xD4, 0xFF, 0x00, 0x87, 0xE1, 0x58, 0x8E, 0x79, 0x35, 0x0C, 0xC2, 0x6E, 0xEC, 0x88, 0xD4, 0x66, 0x81, 0x8D, 0x34, 0xD3, 0x4C, 0xA4, 0x36, 0x90, 0xD0, 0x31, 0x29, 0x28, 0x18, 0x94, 0x94, 0x00, 0x94, 0x53, 0x01, 0x28, 0xA0, 0x02, 0x8A, 0x06, 0x2D, 0x14, 0x00, 0xB4, 0x52, 0x10, 0xE1, 0x4A, 0x28, 0x01, 0x45, 0x3C, 0x50, 0x22, 0x45, 0xAD, 0x5D, 0x1E, 0xDB, 0xED, 0x3A, 0x84, 0x29, 0xFC, 0x21, 0x83, 0x37, 0x19, 0xE0, 0x73, 0xFA, 0xE3, 0x1F, 0x8D, 0x49, 0x27, 0x6F, 0x45, 0x68, 0x6A, 0x14, 0x50, 0x01, 0x45, 0x00, 0x14, 0x50, 0x01, 0x45, 0x00, 0x14, 0xD9, 0x1D, 0x63, 0x8D, 0x9D, 0xCE, 0x15, 0x46, 0x49, 0xF6, 0xA0, 0x0E, 0x26, 0xEE, 0x4D, 0xF2, 0xC8, 0xE7, 0x82, 0xCC, 0x49, 0xFC, 0x4D, 0x52, 0x73, 0x50, 0x72, 0x91, 0x13, 0x4C, 0x34, 0x1A, 0x0D, 0x26, 0x9A, 0x69, 0x94, 0x25, 0x21, 0xA0, 0x62, 0x52, 0x50, 0x31, 0x29, 0x29, 0x80, 0x52, 0x50, 0x02, 0x51, 0x40, 0xC2, 0x8A, 0x00, 0x5A, 0x28, 0x01, 0x68, 0x14, 0x00, 0xA2, 0x94, 0x52, 0x10, 0xE1, 0x4F, 0x14, 0x08, 0x95, 0x3A, 0xD7, 0x51, 0xE1, 0x28, 0xB3, 0xE7, 0xCC, 0x47, 0x4C, 0x20, 0x3F, 0xA9, 0xFE, 0x94, 0x89, 0x67, 0x47, 0x45, 0x59, 0xA8, 0x51, 0x40, 0x05, 0x14, 0x00, 0x51, 0x40, 0x05, 0x14, 0x00, 0x56, 0x76, 0xBB, 0x31, 0x8F, 0x4F, 0x65, 0x04, 0x83, 0x21, 0x0B, 0xC1, 0xED, 0xD4, 0xFF, 0x00, 0x87, 0xE3, 0x40, 0x1C, 0x8C, 0xAD, 0x9A, 0xAE, 0xC7, 0x9A, 0x83, 0x99, 0x11, 0x93, 0x4C, 0x26, 0x83, 0x41, 0xA6, 0x92, 0x98, 0xC6, 0xD2, 0x50, 0x31, 0x29, 0x29, 0x8C, 0x29, 0x28, 0x01, 0x28, 0xA0, 0x04, 0xA2, 0x80, 0x0A, 0x28, 0x18, 0xB4, 0x50, 0x21, 0x68, 0xA0, 0x62, 0x8A, 0x51, 0x48, 0x43, 0x85, 0x38, 0x1A, 0x04, 0x48, 0xA6, 0xBA, 0xCF, 0x0F, 0x6A, 0x16, 0x10, 0x58, 0xAC, 0x0D, 0x20, 0x8A, 0x52, 0xC5, 0x9C, 0xB0, 0xC0, 0x27, 0xD7, 0x3D, 0x3A, 0x60, 0x52, 0x13, 0x37, 0xE3, 0x91, 0x25, 0x40, 0xF1, 0xBA, 0xBA, 0x9E, 0x85, 0x4E, 0x41, 0xA7, 0x55, 0x26, 0x9E, 0xC6, 0x81, 0x45, 0x30, 0x0A, 0x28, 0x00, 0xA2, 0x80, 0x0A, 0x28, 0x00, 0xAE, 0x6F, 0xC4, 0x57, 0x21, 0xEE, 0x44, 0x0A, 0x78, 0x88, 0x73, 0xF5, 0x3C, 0xFF, 0x00, 0x2C, 0x50, 0x07, 0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, 0x3D, 0xEA, 0x58, 0xAE, 0x64, 0x85, 0x8B, 0x43, 0x2B, 0x21, 0x3D, 0x4A, 0xB1, 0x5C, 0xD2, 0x15, 0x8D, 0x18, 0x3C, 0x41, 0x79, 0x17, 0x0E, 0x56, 0x51, 0xFE, 0xD0, 0xFE, 0xA2, 0xAF, 0xDB, 0xF8, 0x96, 0x06, 0xE2, 0x78, 0x5A, 0x33, 0x9E, 0xA8, 0x77, 0x0F, 0xE9, 0x4A, 0xCD, 0x6C, 0xCB, 0x53, 0xEE, 0x67, 0x78, 0x87, 0x52, 0x8A, 0xF2, 0x58, 0x92, 0xDD, 0xF7, 0x46, 0x8B, 0x9C, 0xE0, 0x8E, 0x4F, 0xFF, 0x00, 0xA8, 0x7E, 0x75, 0x86, 0xED, 0x93, 0x54, 0xB5, 0x09, 0x3B, 0x91, 0x93, 0x4D, 0x26, 0x9D, 0x80, 0x69, 0x34, 0x94, 0x0C, 0x4A, 0x4A, 0x06, 0x14, 0x94, 0x00, 0x52, 0x50, 0x30, 0xA4, 0xA0, 0x04, 0xA2, 0x80, 0x12, 0x96, 0x81, 0x85, 0x14, 0xC0, 0x29, 0x69, 0x00, 0x51, 0x40, 0x85, 0x14, 0xB4, 0x00, 0x52, 0xD0, 0x21, 0x41, 0xA5, 0x06, 0x81, 0x8E, 0x06, 0x94, 0x1A, 0x04, 0x2E, 0x69, 0xC1, 0xA9, 0x08, 0x50, 0x69, 0x43, 0x50, 0x2B, 0x06, 0xEA, 0x5D, 0xD4, 0xC4, 0x1B, 0xCD, 0x1B, 0xFD, 0x69, 0x05, 0x86, 0x96, 0xF7, 0xA6, 0x13, 0x4D, 0x0C, 0x69, 0x34, 0x99, 0xA0, 0x62, 0x13, 0x49, 0x40, 0xC4, 0xA2, 0x80, 0x12, 0x8A, 0x00, 0x4A, 0x28, 0x18, 0x52, 0x50, 0x02, 0x51, 0x4C, 0x04, 0xA2, 0x81, 0x8B, 0x45, 0x20, 0x0A, 0x28, 0x01, 0x68, 0xA0, 0x41, 0x4B, 0x40, 0x0B, 0x45, 0x00, 0x28, 0xA5, 0xCD, 0x02, 0x17, 0x34, 0xA0, 0xD0, 0x02, 0xE6, 0x97, 0x34, 0x08, 0x33, 0x4B, 0x9A, 0x00, 0x33, 0x46, 0x69, 0x00, 0x66, 0x93, 0x34, 0xC0, 0x4C, 0xD1, 0x9A, 0x00, 0x69, 0xEB, 0x49, 0x40, 0x09, 0x49, 0x4C, 0x61, 0x45, 0x20, 0x0A, 0x4A, 0x60, 0x14, 0x52, 0x18, 0x94, 0x50, 0x02, 0x51, 0x4C, 0x04, 0xA2, 0x90, 0x0B, 0x45, 0x00, 0x14, 0x50, 0x02, 0xD1, 0x40, 0x05, 0x2D, 0x00, 0x14, 0xB4, 0x00, 0x52, 0xD0, 0x20, 0xCD, 0x28, 0x34, 0x00, 0xB9, 0xA2, 0x80, 0x17, 0x34, 0x66, 0x80, 0x0C, 0xD1, 0x9A, 0x04, 0x19, 0xA4, 0xCD, 0x31, 0x86, 0x68, 0xCD, 0x00, 0x26, 0x69, 0x0D, 0x00, 0x14, 0x94, 0x80, 0x29, 0x29, 0x80, 0x51, 0x48, 0x62, 0x66, 0x8A, 0x00, 0x29, 0x29, 0x80, 0x51, 0x40, 0x09, 0x45, 0x20, 0x0A, 0x5A, 0x06, 0x14, 0x50, 0x01, 0x4B, 0x4C, 0x41, 0x4B, 0x48, 0x02, 0x8A, 0x00, 0x5A, 0x28, 0x00, 0xA5, 0xA0, 0x03, 0x34, 0x50, 0x21, 0x73, 0x46, 0x68, 0x18, 0x66, 0x8C, 0xD3, 0x10, 0x66, 0x92, 0x80, 0x17, 0x34, 0x94, 0x00, 0x52, 0x50, 0x01, 0x45, 0x20, 0x12, 0x8A, 0x63, 0x0A, 0x4A, 0x00, 0x28, 0xA4, 0x02, 0x51, 0x4C, 0x02,
 0x8A, 0x00, 0x4A, 0x28, 0x00, 0xA2, 0x81, 0x8B, 0x45, 0x02, 0x0A, 0x28, 0x01, 0x68, 0xA4, 0x01, 0x4A, 0x28, 0x00, 0xA5, 0xA0, 0x02, 0x8A, 0x00, 0x29, 0x69, 0x80, 0x66, 0x8C, 0xD2, 0x00, 0xA2, 0x98, 0x83, 0x34, 0x50, 0x01, 0x49, 0x48, 0x02, 0x8A, 0x60, 0x14, 0x94, 0x86, 0x14, 0x53, 0x00, 0xA4, 0xA0, 0x02, 0x92, 0x80, 0x0A, 0x28, 0x00, 0xA2, 0x80, 0x3F, 0xFF, 0xD9
 };

void io_mux_init(void)
{
    fpioa_set_function(4, FUNC_UART1_RX + UART_NUM * 2);
    fpioa_set_function(5, FUNC_UART1_TX + UART_NUM * 2);
}
int main()
{
    // printf("cpu:%d\r\n", sysctl_clock_get_freq(SYSCTL_CLOCK_CPU));
    // sleep(2);
    io_mux_init();
    plic_init();
    sysctl_enable_irq();
    dmac_init();

    uart_init(UART_NUM);
    uart_configure(UART_NUM, 2000000, 8, UART_STOP_1, UART_PARITY_NONE);

    uint8_t tmp;
    while(1)
    {
        int ret =  uart_receive_data(UART_NUM, &tmp, 1);
        if( ret && tmp == 0x55)
            uart_send_data_dma(UART_NUM, 4, jpeg, sizeof(jpeg));
    }
}

python receive test code

import serial
import time

com = serial.Serial()
com.baudrate = 2000000
com.port = "/dev/ttyUSB4"
com.bytesize = 8
com.parity = serial.PARITY_NONE
com.stopbits = 1
com.timeout = 0.1
com.rts = True
com.dtr = True
com.open()

test_jpeg = [0xFF, 0xD8, 0xFF, 0xE0, 0x00, 0x10, 0x4A, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0xFF, 0xDB, 0x00, 0x84, 0x00, 0x16, 0x0F, 0x11, 0x13, 0x11, 0x0E, 0x16, 0x13, 0x12, 0x13, 0x19, 0x17, 0x16, 0x1A, 0x21, 0x37, 0x24, 0x21, 0x1E, 0x1E, 0x21, 0x44, 0x30, 0x33, 0x28, 0x37, 0x50, 0x46, 0x54, 0x53, 0x4F, 0x46, 0x4D, 0x4C, 0x58, 0x63, 0x7F, 0x6C, 0x58, 0x5E, 0x78, 0x5F, 0x4C, 0x4D, 0x6E, 0x96, 0x70, 0x78, 0x83, 0x87, 0x8E, 0x90, 0x8E, 0x56, 0x6A, 0x9C, 0xA7, 0x9B, 0x8A, 0xA6, 0x7F, 0x8B, 0x8E, 0x89, 0x01, 0x17, 0x19, 0x19, 0x21, 0x1D, 0x21, 0x41, 0x24, 0x24, 0x41, 0x89, 0x5B, 0x4D, 0x5B, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0x89, 0xFF, 0xC0, 0x00, 0x11, 0x08, 0x00, 0xF0, 0x01, 0x40, 0x03, 0x01, 0x21, 0x00, 0x02, 0x11, 0x01, 0x03, 0x11, 0x01, 0xFF, 0xC4, 0x01, 0xA2, 0x00, 0x00, 0x01, 0x05, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x10, 0x00, 0x02, 0x01, 0x03, 0x03, 0x02, 0x04, 0x03, 0x05, 0x05, 0x04, 0x04, 0x00, 0x00, 0x01, 0x7D, 0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12, 0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61, 0x07, 0x22, 0x71, 0x14, 0x32, 0x81, 0x91, 0xA1, 0x08, 0x23, 0x42, 0xB1, 0xC1, 0x15, 0x52, 0xD1, 0xF0, 0x24, 0x33, 0x62, 0x72, 0x82, 0x09, 0x0A, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0x01, 0x00, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x11, 0x00, 0x02, 0x01, 0x02, 0x04, 0x04, 0x03, 0x04, 0x07, 0x05, 0x04, 0x04, 0x00, 0x01, 0x02, 0x77, 0x00, 0x01, 0x02, 0x03, 0x11, 0x04, 0x05, 0x21, 0x31, 0x06, 0x12, 0x41, 0x51, 0x07, 0x61, 0x71, 0x13, 0x22, 0x32, 0x81, 0x08, 0x14, 0x42, 0x91, 0xA1, 0xB1, 0xC1, 0x09, 0x23, 0x33, 0x52, 0xF0, 0x15, 0x62, 0x72, 0xD1, 0x0A, 0x16, 0x24, 0x34, 0xE1, 0x25, 0xF1, 0x17, 0x18, 0x19, 0x1A, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFF, 0xDA, 0x00, 0x0C, 0x03, 0x01, 0x00, 0x02, 0x11, 0x03, 0x11, 0x00, 0x3F, 0x00, 0xE4, 0xE9, 0x28, 0x10, 0xB4, 0x50, 0x01, 0x45, 0x00, 0x14, 0x50, 0x01, 0x45, 0x21, 0x05, 0x14, 0xC6, 0x14, 0xB4, 0x08, 0x28, 0xA4, 0x01, 0x45, 0x00, 0x14, 0x50, 0x30, 0xA2, 0x80, 0x0A, 0x28, 0x00, 0xA4, 0xA0, 0x10, 0x51, 0x40, 0x05, 0x14, 0x00, 0x51, 0x40, 0x05, 0x14, 0x00, 0x51, 0x40, 0x05, 0x14, 0x00, 0x94, 0xB4, 0xC0, 0x28, 0xA0, 0x41, 0x45, 0x03, 0x0A, 0x29, 0x00, 0x51, 0x4C, 0x02, 0x8A, 0x04, 0x14, 0xB4, 0x86, 0x14, 0x50, 0x20, 0xA2, 0x80, 0x0A, 0x28, 0x00, 0xA0, 0x50, 0x02, 0xD2, 0x50, 0x30, 0xA2, 0x80, 0x0A, 0x28, 0x00, 0xA2, 0x80, 0x12, 0x8A, 0x04, 0x14, 0x50, 0x01, 0x45, 0x00, 0x14, 0x50, 0x30, 0xA2, 0x80, 0x12, 0x96, 0x80, 0x0A, 0x28, 0x00, 0xA2, 0x98, 0x05, 0x14, 0x00, 0x51, 0x48, 0x02, 0x96, 0x80, 0x0A, 0x29, 0x80, 0x51, 0x48, 0x41, 0x4B, 0x40, 0xC2, 0x8A, 0x04, 0x14, 0x50, 0x30, 0xA2, 0x98, 0x82, 0x8A, 0x40, 0x14, 0x94, 0x0C, 0x28, 0xA0, 0x02, 0x8A, 0x04, 0x14, 0x94, 0x0C, 0x28, 0xA0, 0x02, 0x8A, 0x04, 0x14, 0x50, 0x30, 0xA2, 0x80, 0x0A, 0x28, 0x00, 0xA2, 0x80, 0x0A, 0x28, 0x00, 0xA2, 0x80, 0x16, 0x8A, 0x00, 0x28, 0xA0, 0x41, 0x4B, 0x40, 0x05, 0x14, 0x00, 0x52, 0xD0, 0x02, 0x52, 0xD0, 0x01, 0x45, 0x03, 0x12, 0x8A, 0x18, 0x82, 0x8A, 0x00, 0x28, 0xA0, 0x02, 0x92, 0x90, 0xC2, 0x8A, 0x60, 0x14, 0x94, 0x08, 0x28, 0xA0, 0x61, 0x45, 0x00, 0x14, 0x50, 0x01, 0x45, 0x31, 0x05, 0x14, 0x86, 0x14, 0x50, 0x02, 0xD1, 0x40, 0x05, 0x14, 0x00, 0xB4, 0x94, 0x00, 0xB4, 0x62, 0x81, 0x05, 0x2D, 0x00, 0x14, 0x50, 0x01, 0x4B, 0x40, 0x05, 0x25, 0x00, 0x14, 0x62, 0x90, 0x05, 0x14, 0x00, 0x94, 0x53, 0x00, 0xA2, 0x90, 0x05, 0x25, 0x00, 0x14, 0x53, 0x00, 0xA4, 0xA0, 0x02, 0x8A, 0x00, 0x28, 0xA0, 0x02, 0x8A, 0x06, 0x14, 0x50, 0x01, 0x4B, 0x40, 0x05, 0x14, 0x08, 0x29, 0x68, 0x18, 0x51, 0x40, 0x85, 0xA2, 0x80, 0x0A, 0x5A, 0x40, 0x14, 0x53, 0x00, 0xA2, 0x90, 0x05, 0x14, 0xC0, 0x28, 0xA4, 0x01, 0x49, 0x40, 0xC2, 0x8A, 0x04, 0x14, 0x94, 0x00, 0x51, 0x40, 0x05, 0x25, 0x31, 0x85, 0x14, 0x00, 0x52, 0x50, 0x01, 0x45, 0x30, 0x0A, 0x29, 0x08, 0x28, 0xA0, 0x61, 0x45, 0x02, 0x16, 0x8A, 0x06, 0x28, 0xA2, 0x81, 0x05, 0x2D, 0x00, 0x14, 0x52, 0x01, 0x68, 0xA6, 0x02, 0xD1, 0x8A, 0x40, 0x14, 0xB8, 0xA0, 0x03, 0x14, 0x62, 0x98, 0x09, 0x8A, 0x31, 0x49, 0x80, 0x52, 0x50, 0x01, 0x45, 0x00, 0x25, 0x14, 0x00, 0x94, 0x62, 0x98, 0x05, 0x14, 0x00, 0x52, 0x50, 0x01, 0x45, 0x00, 0x25, 0x14, 0x0C, 0x28, 0xA0, 0x05, 0xA2, 0x80, 0x0A, 0x28, 0x00, 0xA2, 0x81, 0x0B, 0x45, 0x00, 0x2D, 0x14, 0x00, 0xB4, 0x52, 0x01, 0x68, 0xC5, 0x00, 0x2D, 0x2E, 0x28, 0x10, 0x62, 0x97, 0x14, 0x00, 0x62, 0x93, 0x14, 0x00, 0x62, 0x8C, 0x50, 0x02, 0x62, 0x8C, 0x50, 0x02, 0x51, 0x40, 0xC4, 0xA2, 0x80, 0x12, 0x8A, 0x00, 0x29, 0x28, 0x00, 0xA2, 0x98, 0x09, 0x45, 0x00, 0x14, 0x94, 0x00, 0xB4, 0x50, 0x30, 0xA2, 0x80, 0x0A, 0x28, 0x00, 0xA5, 0xA0, 0x40, 0x29, 0x69, 0x00, 0x52, 0xE2, 0x80, 0x0A, 0x5A, 0x00, 0x51, 0x4B, 0x8A, 0x04, 0x2E, 0x29, 0x71, 0x40, 0x06, 0x29, 0x40, 0xA0, 0x03, 0x14, 0x62, 0x80, 0x13, 0x14, 0x62, 0x90, 0x09, 0x8A, 0x31, 0x4C, 0x04, 0xA4, 0xC5, 0x00, 0x25, 0x25, 0x03, 0x0A, 0x28, 0x01, 0x28, 0xA0, 0x04, 0xA2, 0x80, 0x0A, 0x4A, 0x00, 0x28, 0xA6, 0x31, 0x28, 0xA0, 0x05, 0xA2, 0x80, 0x0A, 0x28, 0x10, 0xB4, 0x50, 0x02, 0xD1, 0x48, 0x05, 0xA5, 0x14, 0x00, 0x52, 0x81, 0x40, 0x0A, 0x05, 0x38, 0x0A, 0x04, 0x38, 0x0F, 0x6A, 0x76, 0xDA, 0x40, 0x1B, 0x4D, 0x18, 0xA1, 0x31, 0x5C, 0x31, 0x46, 0x28, 0x01, 0x31, 0x49, 0x8A, 0x00, 0x4C, 0x51, 0x8A, 0x06, 0x34, 0x8A, 0x08, 0xA0, 0x04, 0xC5, 0x36, 0x98, 0x06, 0x28, 0xA0, 0x62, 0x52, 0x50, 0x01, 0x49, 0x40, 0x05, 0x14, 0xC0, 0x4A, 0x28, 0x18, 0x51, 0x40, 0x82, 0x8A, 0x06, 0x14, 0xB4, 0x80, 0x28, 0xA6, 0x21, 0x45, 0x2D, 0x20, 0x0A, 0x5A, 0x00, 0x5A, 0x70, 0x14, 0x00, 0xE0, 0x29, 0xCA, 0xB9, 0x34, 0x08, 0xDA, 0xF0, 0xEE, 0x9B, 0x15, 0xF5, 0xCC, 0x86, 0xE1, 0x77, 0x45, 0x1A, 0xF2, 0x01, 0x23, 0x93, 0xD3, 0xA7, 0xE3, 0x5A, 0x57, 0x3E, 0x17, 0x8C, 0xAE, 0x6D, 0x67, 0x60, 0xDF, 0xDD, 0x90, 0x64, 0x1F, 0xC4, 0x74, 0xFD, 0x6A, 0x56, 0xE0, 0x95, 0xCC, 0xBB, 0x8D, 0x12, 0xFE, 0xDC, 0x65, 0xA1, 0xDE, 0x3D, 0x63, 0xF9, 0xBF, 0xFA, 0xFF, 0x00, 0xA5, 0x50, 0x31, 0xE0, 0x90, 0x46, 0x08, 0xE0, 0xFB, 0x53, 0xB5, 0x88, 0x69, 0x8D, 0x31, 0xFA, 0x52, 0x15, 0xA4, 0x17, 0x1B, 0xB6, 0x90, 0x8A, 0x00, 0x42, 0x29, 0xA4, 0x53, 0x28, 0x4C, 0x52, 0x62, 0x81, 0x8D, 0x34, 0x98, 0xA1, 0x00, 0x98, 0xA0, 0xD3, 0x18, 0x94, 0x94, 0x00, 0x94, 0x50, 0x02, 0x51, 0x40, 0x09, 0x45, 0x30, 0x0A, 0x28, 0x18, 0x51, 0x40, 0x05, 0x2D, 0x02, 0x0A, 0x51, 0x48, 0x60, 0x29, 0x68, 0x10, 0xA2, 0x94, 0x50, 0x03, 0x85, 0x28, 0x14, 0x08, 0x78, 0x15, 0x2A, 0x2F, 0x5A, 0x40, 0x76, 0x7E, 0x1A, 0xB4, 0xFB, 0x3E, 0x9B, 0xBD, 0x87, 0xCF, 0x33, 0x6F, 0x3C, 0x74, 0x1D, 0x07, 0xF2, 0xCF, 0xE3, 0x5A, 0xD4, 0x47, 0xB9, 0x49, 0x59, 0x05, 0x41, 0x71, 0x67, 0x6D, 0x75, 0x8F, 0x3E, 0x14, 0x72, 0x06, 0x01, 0x23, 0x91, 0xF4, 0x3D, 0x45, 0x58, 0xCC, 0xDB, 0x9F, 0x0E, 0xDB, 0x48, 0x73, 0x04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 0x7D, 0x86, 0x47, 0xB0, 0xE7, 0xF9, 0xE2, 0xB9, 0x49, 0x4F, 0x34, 0x99, 0x9D, 0x47, 0xD0, 0x84, 0xD4, 0x66, 0xA4, 0x91, 0xA6, 0x98, 0x68, 0x28, 0x43, 0x4D, 0xA6, 0x31, 0x29, 0x28, 0x18, 0x94, 0x86, 0x98, 0x09, 0x45, 0x00, 0x25, 0x14, 0x0C, 0x28, 0xA0, 0x05, 0xA2, 0x80, 0x16, 0x96, 0x90, 0x85, 0x14, 0xB4, 0x00, 0xE1, 0x4E, 0x14, 0x84, 0x48, 0xB5, 0x66, 0x11, 0xD3, 0xDE, 0x90, 0x8E, 0xF2, 0xCA, 0x1F, 0xB3, 0xD9, 0xC5, 0x16, 0x00, 0x2A, 0xA3, 0x38, 0xF5, 0xEF, 0xFA, 0xD4, 0xF5, 0x50, 0x56, 0x46, 0x81, 0x45, 0x50, 0x05, 0x14, 0x00, 0x51, 0x40, 0x05, 0x14, 0x00, 0x51, 0x40, 0x1C, 0xBE, 0xBF, 0x70, 0x65, 0xBD, 0x64, 0x1F, 0x76, 0x30, 0x17, 0xAF, 0x53, 0xD4, 0xFF, 0x00, 0x87, 0xE1, 0x58, 0x8E, 0x79, 0x35, 0x0C, 0xC2, 0x6E, 0xEC, 0x88, 0xD4, 0x66, 0x81, 0x8D, 0x34, 0xD3, 0x4C, 0xA4, 0x36, 0x90, 0xD0, 0x31, 0x29, 0x28, 0x18, 0x94, 0x94, 0x00, 0x94, 0x53, 0x01, 0x28, 0xA0, 0x02, 0x8A, 0x06, 0x2D, 0x14, 0x00, 0xB4, 0x52, 0x10, 0xE1, 0x4A, 0x28, 0x01, 0x45, 0x3C, 0x50, 0x22, 0x45, 0xAD, 0x5D, 0x1E, 0xDB, 0xED, 0x3A, 0x84, 0x29, 0xFC, 0x21, 0x83, 0x37, 0x19, 0xE0, 0x73, 0xFA, 0xE3, 0x1F, 0x8D, 0x49, 0x27, 0x6F, 0x45, 0x68, 0x6A, 0x14, 0x50, 0x01, 0x45, 0x00, 0x14, 0x50, 0x01, 0x45, 0x00, 0x14, 0xD9, 0x1D, 0x63, 0x8D, 0x9D, 0xCE, 0x15, 0x46, 0x49, 0xF6, 0xA0, 0x0E, 0x26, 0xEE, 0x4D, 0xF2, 0xC8, 0xE7, 0x82, 0xCC, 0x49, 0xFC, 0x4D, 0x52, 0x73, 0x50, 0x72, 0x91, 0x13, 0x4C, 0x34, 0x1A, 0x0D, 0x26, 0x9A, 0x69, 0x94, 0x25, 0x21, 0xA0, 0x62, 0x52, 0x50, 0x31, 0x29, 0x29, 0x80, 0x52, 0x50, 0x02, 0x51, 0x40, 0xC2, 0x8A, 0x00, 0x5A, 0x28, 0x01, 0x68, 0x14, 0x00, 0xA2, 0x94, 0x52, 0x10, 0xE1, 0x4F, 0x14, 0x08, 0x95, 0x3A, 0xD7, 0x51, 0xE1, 0x28, 0xB3, 0xE7, 0xCC, 0x47, 0x4C, 0x20, 0x3F, 0xA9, 0xFE, 0x94, 0x89, 0x67, 0x47, 0x45, 0x59, 0xA8, 0x51, 0x40, 0x05, 0x14, 0x00, 0x51, 0x40, 0x05, 0x14, 0x00, 0x56, 0x76, 0xBB, 0x31, 0x8F, 0x4F, 0x65, 0x04, 0x83, 0x21, 0x0B, 0xC1, 0xED, 0xD4, 0xFF, 0x00, 0x87, 0xE3, 0x40, 0x1C, 0x8C, 0xAD, 0x9A, 0xAE, 0xC7, 0x9A, 0x83, 0x99, 0x11, 0x93, 0x4C, 0x26, 0x83, 0x41, 0xA6, 0x92, 0x98, 0xC6, 0xD2, 0x50, 0x31, 0x29, 0x29, 0x8C, 0x29, 0x28, 0x01, 0x28, 0xA0, 0x04, 0xA2, 0x80, 0x0A, 0x28, 0x18, 0xB4, 0x50, 0x21, 0x68, 0xA0, 0x62, 0x8A, 0x51, 0x48, 0x43, 0x85, 0x38, 0x1A, 0x04, 0x48, 0xA6, 0xBA, 0xCF, 0x0F, 0x6A, 0x16, 0x10, 0x58, 0xAC,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94, 0x1A, 0x04, 0x2E, 0x69, 0xC1, 0xA9, 0x08, 0x50, 0x69, 0x43, 0x50, 0x2B, 0x06, 0xEA, 0x5D, 0xD4, 0xC4, 0x1B, 0xCD, 0x1B, 0xFD, 0x69, 0x05, 0x86, 0x96, 0xF7, 0xA6, 0x13, 0x4D, 0x0C, 0x69, 0x34, 0x99, 0xA0, 0x62, 0x13, 0x49, 0x40, 0xC4, 0xA2, 0x80, 0x12, 0x8A, 0x00, 0x4A, 0x28, 0x18, 0x52, 0x50, 0x02, 0x51, 0x4C, 0x04, 0xA2, 0x81, 0x8B, 0x45, 0x20, 0x0A, 0x28, 0x01, 0x68, 0xA0, 0x41, 0x4B, 0x40, 0x0B, 0x45, 0x00, 0x28, 0xA5, 0xCD, 0x02, 0x17, 0x34, 0xA0, 0xD0, 0x02, 0xE6, 0x97, 0x34, 0x08, 0x33, 0x4B, 0x9A, 0x00, 0x33, 0x46, 0x69, 0x00, 0x66, 0x93, 0x34, 0xC0, 0x4C, 0xD1, 0x9A, 0x00, 0x69, 0xEB, 0x49, 0x40, 0x09, 0x49, 0x4C, 0x61, 0x45, 0x20, 0x0A, 0x4A, 0x60, 0x14, 0x52, 0x18, 0x94, 0x50, 0x02, 0x51, 0x4C, 0x04, 0xA2, 0x90, 0x0B, 0x45, 0x00, 0x14, 0x50, 0x02, 0xD1, 0x40, 0x05, 0x2D, 0x00, 0x14, 0xB4, 0x00, 0x52, 0xD0, 0x20, 0xCD, 0x28, 0x34, 0x00, 0xB9, 0xA2, 0x80, 0x17, 0x34, 0x66, 0x80, 0x0C, 0xD1, 0x9A, 0x04, 0x19, 0xA4, 0xCD, 0x31, 0x86, 0x68, 0xCD, 0x00, 0x26, 0x69, 0x0D, 0x00, 0x14, 0x94, 0x80, 0x29, 0x29, 0x80, 0x51, 0x48, 0x62, 0x66, 0x8A, 0x00, 0x29, 0x29, 0x80, 0x51, 0x40, 0x09, 0x45, 0x20, 0x0A, 0x5A, 0x06, 0x14, 0x50, 0x01, 0x4B, 0x4C, 0x41, 0x4B, 0x48, 0x02, 0x8A, 0x00, 0x5A, 0x28, 0x00, 0xA5, 0xA0, 0x03, 0x34, 0x50, 0x21, 0x73, 0x46, 0x68, 0x18, 0x66, 0x8C, 0xD3, 0x10, 0x66, 0x92, 0x80, 0x17, 0x34, 0x94, 0x00, 0x52, 0x50, 0x01, 0x45, 0x20, 0x12, 0x8A, 0x63, 0x0A, 0x4A, 0x00, 0x28, 0xA4, 0x02, 0x51, 0x4C, 0x02,
 0x8A, 0x00, 0x4A, 0x28, 0x00, 0xA2, 0x81, 0x8B, 0x45, 0x02, 0x0A, 0x28, 0x01, 0x68, 0xA4, 0x01, 0x4A, 0x28, 0x00, 0xA5, 0xA0, 0x02, 0x8A, 0x00, 0x29, 0x69, 0x80, 0x66, 0x8C, 0xD2, 0x00, 0xA2, 0x98, 0x83, 0x34, 0x50, 0x01, 0x49, 0x48, 0x02, 0x8A, 0x60, 0x14, 0x94, 0x86, 0x14, 0x53, 0x00, 0xA4, 0xA0, 0x02, 0x92, 0x80, 0x0A, 0x28, 0x00, 0xA2, 0x80, 0x3F, 0xFF, 0xD9
 ]

jpeg = []
jpeg_start_flag = False
count = 0
com.write(b'\x55')
while True:
    tmp = com.read(1)
    count += 1
    # print(count, tmp)
    if not tmp or (len(tmp)==0):
        continue
    if not jpeg_start_flag:
        if tmp==b'\xFF':
            tmp = com.read(1)
            if tmp==b'\xD8':
                print("jpeg start")
                jpeg_start_flag = True
                jpeg.append(0xFF)
                jpeg.append(0xD8)
    else:
        jpeg.append(int.from_bytes(tmp, byteorder="little"))
        if jpeg[-2:] == test_jpeg[-2:]:
            print("jpeg end")
            if(jpeg == test_jpeg):
                print("receive ok")
            else:
                print("recieve error")
            jpeg_start_flag = False
            jpeg = []
            count = 0
            com.write(b'\x55')
zzxcanaan commented 5 years ago

KD233?

Neutree commented 5 years ago

Board: sipeed maix bit or dock, the open-ec firmware on the sipeed maix go board have bug when baud rate too high, so ignore it! when change the CPU clock and UART clock to correct value, it can send data correctly, so maybe it's not bug

Neutree commented 5 years ago

for this test code, when change baudrate to 1.5M, it works correctly, but 921600 not, maybe change the CPU frequency can do.

zzxcanaan commented 5 years ago

Thanks, I will try it.

chegewara commented 5 years ago

I have similar/the same issue with maixduino board. UART connection between k210 and esp32 and very simple example:

#include <stdio.h>
#include <string.h>
#include "gpio.h"
#include "fpioa.h"
#include "uart.h"
#include "sleep.h"

int main(void)
{
    fpioa_set_function(7, FUNC_UART3_RX);
    fpioa_set_function(6, FUNC_UART3_TX);

    uart_init ( UART_DEVICE_3 );
    uart_configure(UART_DEVICE_3, 500000, UART_BITWIDTH_8BIT, UART_STOP_1, UART_PARITY_NONE);
    char recv;

    while(1){
        while ( uart_receive_data ( UART_DEVICE_3 , &recv , 1))
        {
            printf ( "%c" , recv );
            uart_send_data ( UART_DEVICE_3 , &recv , 1);
        }
        msleep(1);
    }
}

Sometimes data sent from esp32 are send back(sometimes corrupted), but are not logged on k210 console. When i send \r\n then k210 console prints old data, just like \r\n was missing in last message to printf. With baudrate 115200 is much better, so maybe its esp32 or arduino issue.

EDIT with 115200 all data are received by k210, not all data are send back or not all data are received by esp32 (not always, but still often)