Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[picotiny] Flashing got stuck at Flashing 1/3. #14

Open
hfwang132 opened this issue Dec 21, 2022 · 1 comment
Open

[picotiny] Flashing got stuck at Flashing 1/3. #14

hfwang132 opened this issue Dec 21, 2022 · 1 comment

Comments

@hfwang132
Copy link

Hello, I am new to Tang Nano and I would like to try some examples on it.

I have followed every step in https://wiki.sipeed.com/hardware/zh/tang/Tang-Nano-9K/examples/picorv.html. And when I tried to download the firmware onto the flash, the program got stuck at Flashing 1/3

(base) PS D:\Gowin\gowin_prj\TangNano-9K-example-main\TangNano-9K-example-main\picotiny> python .\sw\pico-programmer.py .\example-fw-flash.v COM19
Read program with 11760 bytes
- Waiting for reset -                                                                                                     
...
Total sectors 3                                                                                                         
Total pages 46                                                                                                          
Flashing 1 / 3                                                                                                             

After two hours or so, I terminated the program by sending Ctrl+C and the output was:

Traceback (most recent call last):
File "D:\Gowin\gowin_prj\TangNano-9K-example-main\TangNano-9K-example-main\picotiny\sw\pico-programmer.py", line 169, in <module>                                                                                                                 
isp_exec_esec(ser, curraddr)                                                                                          
File "D:\Gowin\gowin_prj\TangNano-9K-example-main\TangNano-9K-example-main\picotiny\sw\pico-programmer.py", line 31, in isp_exec_esec                                                                                                             
isp_wait_byte(ser, 0x32)                                                                                              
File "D:\Gowin\gowin_prj\TangNano-9K-example-main\TangNano-9K-example-main\picotiny\sw\pico-programmer.py", line 15, in isp_wait_byte                                                                                                             
resp = ser.read()                                                                                                     
File "D:\Program_Files\Anaconda\lib\site-packages\serial\serialwin32.py", line 288, in read                               
result_ok = win32.GetOverlappedResult(                                                                              
KeyboardInterrupt

It seemed that it was stuck at isp_wait_byte().

If someone could give a light on this, I would appreciate it.

@dashxdr
Copy link
Contributor

dashxdr commented Dec 24, 2023

I'm using linux but maybe under windows the COM19 might be configured for hardware flow control? I think you do not want that.

Another issue is if you have a terminal window open on the same COM port maybe the two processes are competing for data? Not sure if windows lets you do that though. Finally, the flash programming is done over the 2nd serial port, not the 1st one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants