/**
* @brief The application entry point.
*
* @retval None
*/
int main(void)
{
/* USER CODE BEGIN 1 */
//Lifflefs_Test\Lifflefs_Test.axf: Error: L6218E: Undefined symbol __aeabi_assert (referred from lfs.o).
/* USER CODE END 1 */
/**
* @brief This function is executed in case of error occurrence.
* @param file: The file name as string.
* @param line: The line in file as a number.
* @retval None
*/
void _Error_Handler(char *file, int line)
{
/* USER CODE BEGIN Error_Handler_Debug */
/* User can add his own implementation to report the HAL error return state */
while(1)
{
}
/* USER CODE END Error_Handler_Debug */
}
#ifdef USE_FULL_ASSERT
/**
* @brief Reports the name of the source file and the source line number
* where the assert_param error has occurred.
* @param file: pointer to the source file name
* @param line: assert_param error line source number
* @retval None
*/
void assert_failed(uint8_t* file, uint32_t line)
{
/* USER CODE BEGIN 6 */
/* User can add his own implementation to report the file name and line number,
tex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
/* USER CODE END 6 */
}
#endif /* USE_FULL_ASSERT */
作者: 孙小伟 时间: 2020-3-9 15:00
楼主你好,我使用的也是这种配置,为什么我在调试时,程序运行到lfs_file_open会打印错误lfs_error:978: Corrupted dir pair at 0 0,然后debug提醒我The following failed: File:D:\TEST fMashandLFS\flash SrcVfs.c Line:2746
Expression failed: file->flags LFS F_OPENED,能指点一下吗,我用的是内部flash作者: 2232126544 时间: 2020-7-9 11:59
孙小伟 发表于 2020-3-9 15:00
楼主你好,我使用的也是这种配置,为什么我在调试时,程序运行到lfs_file_open会打印错误lfs_error:978: Co ...