pulkin / micropython

MicroPython implementation on Ai-Thinker GPRS module A9 (RDA8955)
https://micropython.org
MIT License
102 stars 30 forks source link

Cannot connect to the REPL #27

Closed sebi5361 closed 4 years ago

sebi5361 commented 4 years ago

I think I successfully built the firmware despite getting some warnings:

../../py/nlrsetjmp.c: In function ‘nlr_jump’:
../../py/nlrsetjmp.c:41: warning: ‘noreturn’ function does return

../../py/modbuiltins.c: In function ‘mp_builtin_round’:../../py/modbuiltins.c:497: warning: declaration of ‘floor’ shadows a global declaration
/home/vagrant/A9G/micropython/lib/GPRS_C_SDK/include/std_inc/math.h:328: warning: shadowed declaration is here

../../py/modmath.c: In function ‘mp_math_frexp’:../../py/modmath.c:238: warning: declaration of ‘significand’ shadows a global declaration
/home/vagrant/A9G/micropython/lib/GPRS_C_SDK/include/std_inc/math.h:397: warning: shadowed declaration is here

main.c: In function ‘MicroPyTask’:main.c:161: warning: unused variable ‘event’

modcellular.c:636: warning: ‘modcellular_sms_from_raw’ defined but not usedCC modgps.c

AS gchelper.sCC ../../lib/axtls/ssl/asn1.c

../../lib/axtls/ssl/tls1.c: In function ‘add_hmac_digest’:../../lib/axtls/ssl/tls1.c:695: warning: incompatible implicit declaration of built-in function ‘alloca’
../../lib/axtls/ssl/tls1.c: In function ‘send_packet’:
../../lib/axtls/ssl/tls1.c:1177: warning: incompatible implicit declaration of built-in function ‘alloca’

../../lib/axtls/crypto/rsa.c: In function ‘RSA_decrypt’:../../lib/axtls/crypto/rsa.c:150: warning: incompatible implicit declaration of built-in function ‘alloca’

Indeed, in the end, I got BUILD OK and the two .lod files got available in the hex folder. Than, I believe I successfully burned both .lod files using coolwatcher as I didn't observe any error message.

But now, I cannot connect to the MicroPython REPL. I only observe garbage in the console when running the miniterm.py /dev/ttyUSB1 115200 --raw command and pressing on the board reset button.

What could be my issue? Should I connect the serial adapter to other pins than HST_TX and HST_RX to access the REPL? Thks,

sebi5361 commented 4 years ago

I just found the answer to my problem: The serial adapter needs to be connected to TX1 and RX1. Am closing this issue.

pulkin commented 4 years ago

I think it should be emphasized somehow.

On Feb 8, 2020 18:59, "sebi" notifications@github.com wrote:

Closed #27 https://github.com/pulkin/micropython/issues/27.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pulkin/micropython/issues/27?email_source=notifications&email_token=ADQ2BTGXPRY2V36GOJ4SA2LRB3XHHA5CNFSM4KR32JB2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWQBG6XA#event-3020058460, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADQ2BTDYT2TOCGA56HGVLXDRB3XHHANCNFSM4KR32JBQ .