More than ten characters, print func cannot print

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
SummerGift
Posts: 4
Joined: Sat Apr 13, 2019 3:46 am
Contact:

More than ten characters, print func cannot print

Post by SummerGift » Thu Jan 02, 2020 2:13 am

Hello everyone,

I encountered some problems when migrating MicroPython 1.12 version to RTOS (RT-Thread), https://github.com/RT-Thread-packages/m ... n/pull/150

and now the problem is that if there are more than ten characters, print cannot output a string, As shown below:

Image

This problem has not been encountered in previous migrations, such as before 1.10.
I have spent a day studying this issue, but with no results.
I probably know that after compiling, the length of the print string object is wrong and becomes 0, so this problem is caused.

Because I upgraded all the files in the py directory, I think this problem may be caused by a configuration error. I hope someone familiar with version 1.12 can give me some tips to solve the problem, thank you very much.

Post Reply