fix:部分机板开机画面亮度低;关机充电花屏

1. 解决部分模组开机界面暗
2. 解决关机状态下,充电前面两个充电标志正常,后面电池报警图标花屏
This commit is contained in:
徐俊杰 2023-05-22 17:49:01 +08:00
parent 9ba37d3b60
commit eef222ab64
8 changed files with 5338 additions and 64 deletions

View File

@ -10,14 +10,14 @@
<TargetName>ISP568</TargetName> <TargetName>ISP568</TargetName>
<ToolsetNumber>0x4</ToolsetNumber> <ToolsetNumber>0x4</ToolsetNumber>
<ToolsetName>ARM-ADS</ToolsetName> <ToolsetName>ARM-ADS</ToolsetName>
<pArmCC>5060750::V5.06 update 6 (build 750)::ARMCC</pArmCC> <pArmCC>5060750::V5.06 update 6 (build 750)::.\Arm Compiler 5.06 update 6 (build 750)</pArmCC>
<pCCUsed>5060750::V5.06 update 6 (build 750)::ARMCC</pCCUsed> <pCCUsed>5060750::V5.06 update 6 (build 750)::.\Arm Compiler 5.06 update 6 (build 750)</pCCUsed>
<uAC6>0</uAC6> <uAC6>0</uAC6>
<TargetOption> <TargetOption>
<TargetCommonOption> <TargetCommonOption>
<Device>ARMCM0</Device> <Device>ARMCM0</Device>
<Vendor>ARM</Vendor> <Vendor>ARM</Vendor>
<PackID>ARM.CMSIS.5.5.1</PackID> <PackID>ARM.CMSIS.5.8.0</PackID>
<PackURL>http://www.keil.com/pack/</PackURL> <PackURL>http://www.keil.com/pack/</PackURL>
<Cpu>IRAM(0x20000000,0x00020000) IROM(0x00000000,0x00040000) CPUTYPE("Cortex-M0") CLOCK(12000000) ESEL ELITTLE</Cpu> <Cpu>IRAM(0x20000000,0x00020000) IROM(0x00000000,0x00040000) CPUTYPE("Cortex-M0") CLOCK(12000000) ESEL ELITTLE</Cpu>
<FlashUtilSpec></FlashUtilSpec> <FlashUtilSpec></FlashUtilSpec>
@ -50,7 +50,7 @@
<InvalidFlash>1</InvalidFlash> <InvalidFlash>1</InvalidFlash>
</TargetStatus> </TargetStatus>
<OutputDirectory>.\Objects\</OutputDirectory> <OutputDirectory>.\Objects\</OutputDirectory>
<OutputName>WL568_S21_NT37701_20230403</OutputName> <OutputName>WL568_S21_NT37701_20230522</OutputName>
<CreateExecutable>1</CreateExecutable> <CreateExecutable>1</CreateExecutable>
<CreateLib>0</CreateLib> <CreateLib>0</CreateLib>
<CreateHexFile>1</CreateHexFile> <CreateHexFile>1</CreateHexFile>
@ -186,6 +186,7 @@
<uocXRam>0</uocXRam> <uocXRam>0</uocXRam>
<RvdsVP>0</RvdsVP> <RvdsVP>0</RvdsVP>
<RvdsMve>0</RvdsMve> <RvdsMve>0</RvdsMve>
<RvdsCdeCp>0</RvdsCdeCp>
<hadIRAM2>0</hadIRAM2> <hadIRAM2>0</hadIRAM2>
<hadIROM2>0</hadIROM2> <hadIROM2>0</hadIROM2>
<StupSel>16</StupSel> <StupSel>16</StupSel>
@ -352,7 +353,7 @@
<NoWarn>0</NoWarn> <NoWarn>0</NoWarn>
<uSurpInc>0</uSurpInc> <uSurpInc>0</uSurpInc>
<useXO>0</useXO> <useXO>0</useXO>
<uClangAs>0</uClangAs> <ClangAsOpt>4</ClangAsOpt>
<VariousControls> <VariousControls>
<MiscControls></MiscControls> <MiscControls></MiscControls>
<Define></Define> <Define></Define>
@ -393,62 +394,6 @@
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\src\app\demo\ap_demo.c</FilePath> <FilePath>..\src\app\demo\ap_demo.c</FilePath>
</File> </File>
<File>
<FileName>app_tp_for_custom_s8.c</FileName>
<FileType>1</FileType>
<FilePath>..\src\app\demo\app_tp_for_custom_s8.c</FilePath>
<FileOption>
<CommonProperty>
<UseCPPCompiler>2</UseCPPCompiler>
<RVCTCodeConst>0</RVCTCodeConst>
<RVCTZI>0</RVCTZI>
<RVCTOtherData>0</RVCTOtherData>
<ModuleSelection>0</ModuleSelection>
<IncludeInBuild>0</IncludeInBuild>
<AlwaysBuild>2</AlwaysBuild>
<GenerateAssemblyFile>2</GenerateAssemblyFile>
<AssembleAssemblyFile>2</AssembleAssemblyFile>
<PublicsOnly>2</PublicsOnly>
<StopOnExitCode>11</StopOnExitCode>
<CustomArgument></CustomArgument>
<IncludeLibraryModules></IncludeLibraryModules>
<ComprImg>1</ComprImg>
</CommonProperty>
<FileArmAds>
<Cads>
<interw>2</interw>
<Optim>0</Optim>
<oTime>2</oTime>
<SplitLS>2</SplitLS>
<OneElfS>2</OneElfS>
<Strict>2</Strict>
<EnumInt>2</EnumInt>
<PlainCh>2</PlainCh>
<Ropi>2</Ropi>
<Rwpi>2</Rwpi>
<wLevel>0</wLevel>
<uThumb>2</uThumb>
<uSurpInc>2</uSurpInc>
<uC99>2</uC99>
<uGnu>2</uGnu>
<useXO>2</useXO>
<v6Lang>0</v6Lang>
<v6LangP>0</v6LangP>
<vShortEn>2</vShortEn>
<vShortWch>2</vShortWch>
<v6Lto>2</v6Lto>
<v6WtE>2</v6WtE>
<v6Rtti>2</v6Rtti>
<VariousControls>
<MiscControls></MiscControls>
<Define></Define>
<Undefine></Undefine>
<IncludePath></IncludePath>
</VariousControls>
</Cads>
</FileArmAds>
</FileOption>
</File>
<File> <File>
<FileName>app_tp_transfer.c</FileName> <FileName>app_tp_transfer.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
@ -521,7 +466,7 @@
<NoWarn>2</NoWarn> <NoWarn>2</NoWarn>
<uSurpInc>2</uSurpInc> <uSurpInc>2</uSurpInc>
<useXO>2</useXO> <useXO>2</useXO>
<uClangAs>2</uClangAs> <ClangAsOpt>0</ClangAsOpt>
<VariousControls> <VariousControls>
<MiscControls></MiscControls> <MiscControls></MiscControls>
<Define></Define> <Define></Define>
@ -567,4 +512,13 @@
</files> </files>
</RTE> </RTE>
<LayerInfo>
<Layers>
<Layer>
<LayName>ISP568</LayName>
<LayPrjMark>1</LayPrjMark>
</Layer>
</Layers>
</LayerInfo>
</Project> </Project>

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -0,0 +1,21 @@
/*
* Auto generated Run-Time-Environment Configuration File
* *** Do not modify ! ***
*
* Project: 'ISP568'
* Target: 'ISP568'
*/
#ifndef RTE_COMPONENTS_H
#define RTE_COMPONENTS_H
/*
* Define the Device Header File:
*/
#define CMSIS_device_header "ARMCM0.h"
#endif /* RTE_COMPONENTS_H */

View File

@ -153,7 +153,7 @@ uint8_t phone_DisplayOFF_flag=0;
#endif #endif
static uint32_t curFrame = 0;
/// 清晰度较好 /// 清晰度较好
uint32_t rx_filter_1080_h_4_96[32][2] = uint32_t rx_filter_1080_h_4_96[32][2] =
{ {
@ -324,6 +324,7 @@ static void ap_reset_cb(void *data)
#endif #endif
static bool isStart = false;
static bool ap_dcs_read(uint8_t data_type, uint8_t dcs_cmd, uint8_t param) static bool ap_dcs_read(uint8_t data_type, uint8_t dcs_cmd, uint8_t param)
{ {
#ifdef USE_FOR_SUMSUNG_S21 #ifdef USE_FOR_SUMSUNG_S21
@ -549,6 +550,7 @@ static bool ap_dcs_read(uint8_t data_type, uint8_t dcs_cmd, uint8_t param)
{ {
TAU_LOGD("r[%x] [%d] err\r\n", dcs_cmd, return_size); TAU_LOGD("r[%x] [%d] err\r\n", dcs_cmd, return_size);
} }
isStart = true;
} }
else if (dcs_cmd == 0x0A) else if (dcs_cmd == 0x0A)
{ {
@ -4759,7 +4761,17 @@ static void init_panel(void)
} }
static void frame_start_cb(hal_rx_dbg_event_e event)
{
curFrame++;
if((isStart)&&(curFrame==4))
{
hal_dsi_rx_ctrl_stop(g_rx_ctrl_handle);
hal_dsi_rx_ctrl_init(g_rx_ctrl_handle);
hal_dsi_rx_ctrl_start(g_rx_ctrl_handle);
TAU_LOGD("RX RST\n");
}
}
static void open_mipi_rx(void) static void open_mipi_rx(void)
{ {
/* 配置TE引脚 */ /* 配置TE引脚 */
@ -4791,6 +4803,7 @@ static void open_mipi_rx(void)
g_rx_ctrl_handle->base_info.extra_info.rot_angle = VIDOE_ROT_ANGLE_0; g_rx_ctrl_handle->base_info.extra_info.rot_angle = VIDOE_ROT_ANGLE_0;
g_rx_ctrl_handle->base_info.extra_info.mirror_en = false; g_rx_ctrl_handle->base_info.extra_info.mirror_en = false;
g_rx_ctrl_handle->base_info.extra_info.ltpo = true; g_rx_ctrl_handle->base_info.extra_info.ltpo = true;
g_rx_ctrl_handle->rx_debug_cb = frame_start_cb;
#endif #endif
/* 提前预置PPS, AP 有PPS cmd也会更新 */ /* 提前预置PPS, AP 有PPS cmd也会更新 */

View File

@ -16,6 +16,7 @@
#include "tau_log.h" #include "tau_log.h"
#include "tau_delay.h" #include "tau_delay.h"
#include "app_tp_st_touch.h" #include "app_tp_st_touch.h"
#include "hal_dsi_tx_ctrl.h"
#if 1//def AP_TP_TRANSFER #if 1//def AP_TP_TRANSFER
uint8_t read_point; //当前要读的报点数。一个报点8BYTE数据 uint8_t read_point; //当前要读的报点数。一个报点8BYTE数据
@ -420,6 +421,8 @@ void S20_Start_init(void)
uint8_t len=0; uint8_t len=0;
uint8_t temp=0; uint8_t temp=0;
uint8_t temp_start_flag=0; uint8_t temp_start_flag=0;
hal_dsi_tx_ctrl_write_cmd(0x29, 0, 3, 0x51, 0x07, 0xff);
// if(phone_start_flag==1) // if(phone_start_flag==1)
{ {
app_tp_m_read(screen_reg_int_data[0].buffer, 1, s_screen_read_buffer, 8); app_tp_m_read(screen_reg_int_data[0].buffer, 1, s_screen_read_buffer, 8);

109
src/sdk/include/hal_flash.h Normal file
View File

@ -0,0 +1,109 @@
/*******************************************************************************
*
*
* File: hal_system.h
* Description hal
* Version V0.1
* Date 2023-03-03
* Author kevin
*******************************************************************************/
#ifndef __HAL_FLASH_H__
#define __HAL_FLASH_H__
/*******************************************************************************
* 1.Included files
*******************************************************************************/
#include "tau_common.h"
/*******************************************************************************
* 2.Global constant and macro definitions using #define
*******************************************************************************/
/*******************************************************************************
* 3.Global structures, unions and enumerations using typedef
*******************************************************************************/
/*******************************************************************************
* 4.Global variable extern declarations
*******************************************************************************/
/*******************************************************************************
* 5.Global function prototypes
*******************************************************************************/
/**
* @brief flash ,使flash模块后需要deinit用于节省功耗
* @param
* @retval bool
*/
void hal_flash_init(void);
/**
* @brief flash
* @param
* @retval bool
*/
void hal_flash_deinit(void);
/**
* @brief flash ctl读取flash-uid操作
* @param UID[16] UID的数组,UID最大长度为16
* @param UID (16)
* @retval
*/
void hal_flash_read_uid(uint8_t *UID, uint8_t size);
/**
* @brief
* @param flash_block:0-13block进行擦除,block写之前需要先擦除对应64K数据
* @retval
*/
bool hal_flash_erase(uint8_t flash_block);
/**
* @brief flash读取数据,1024
* @param *usr_cfg_t_addr(),
usr_cfg_t_size(1024,1024)
flash_block:block(0-13,0-3TDDI Flash区域)
flash_page :(block 0~63)
page_offset_addr:block = 64K
* @retval bool
*/
bool hal_flash_normal_read(uint8_t *usr_cfg_t_addr,
uint16_t usr_cfg_t_size,
uint8_t flash_block,
uint16_t flash_page,
uint16_t page_offset_addr);
/**
* @brief flash(),1024
:block前确认使用hal_flash_erase进行擦除整个blocK,block的0-63page进行写入
* @param *usr_cfg_t_addr(),
usr_cfg_t_size(1024,1024)
flash_block:block(0-13,0-3TDDI Flash区域)
flash_page block 0~63
page_offset_addr:0-1023 byte
* @retval bool size是否超出
*/
bool hal_flash_normal_write(uint8_t *usr_cfg_t_addr,
uint16_t usr_cfg_t_size,
uint8_t flash_block,
uint16_t flash_page,
uint16_t page_offset_addr);
/**
* @brief 0xABflash退出deep sleep power mode
* @param none
* @retval null
*/
void hal_flash_release_power_down(void);
/**
* @brief 0xB9flash进入deep sleep power mode
* @param none
* @retval null
*/
void hal_flash_power_down(void);
#endif //__HAL_FLASH_H__

BIN
src/sdk/lib/CVWL568T.lib Normal file

Binary file not shown.