Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update mpconfigport.h #813

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

Merged
merged 1 commit into from
May 7, 2018
Merged

Update mpconfigport.h #813

merged 1 commit into from
May 7, 2018

Conversation

jerryneedell
Copy link
Collaborator

comment out define of CIRCUITPYTHON_BOOT_OUTPUT_FILE for NRF52 -- it does not work properly

comment out define of CIRCUITPYTHON_BOOT_OUTPUT_FILE  for NRF52  --  it does not work properly
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dhalbert
Copy link
Collaborator

dhalbert commented May 7, 2018

weird, travis nrf52 build failed the first time but was fine after I restarted it.

@dhalbert
Copy link
Collaborator

dhalbert commented May 7, 2018

The problem is that on the nRF52 right now, the calls to mp_hal_stdout_tx_str() in the code enabled by CIRCUITPYTHON_BOOT_OUTPUT_FILE.

@dhalbert dhalbert closed this May 7, 2018
@dhalbert dhalbert reopened this May 7, 2018
@dhalbert dhalbert merged commit bca5aec into adafruit:master May 7, 2018
@jerryneedell jerryneedell deleted the patch-2 branch May 7, 2018 14:25
@hathach
Copy link
Member

hathach commented May 15, 2018

the issue is caused by the mp_hal_stdout_tx_str() is called before serial_init() is invoked due to CIRCUITPYTHON_BOOT_OUTPUT_FILE. The fix is skip output to serial if it is not inited.

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

Successfully merging this pull request may close these issues.

3 participants