-
Notifications
You must be signed in to change notification settings - Fork 1.3k
debug build improvements #7591
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
debug build improvements #7591
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
#define CIRCUITPY_DIGITALIO_HAVE_INVALID_DRIVE_MODE (1) | ||
|
||
#define MICROPY_HW_LED_STATUS (&pin_CYW0) | ||
#define MICROPY_PY_COLLECTIONS_DEQUE (1) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should probably be promoted up to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deque is used by wifi, and not all rp2 boards have wifi, so that's why I put it at the board level. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See #6474; we generally want |
||
|
||
#define CIRCUITPY_BOARD_I2C (1) | ||
#define CIRCUITPY_BOARD_I2C_PIN {{.scl = &pin_GPIO5, .sda = &pin_GPIO4}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,11 @@ | |
* THE SOFTWARE. | ||
*/ | ||
|
||
#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_MONITOR_H | ||
#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_MONITOR_H | ||
#pragma once | ||
|
||
#if !CIRCUITPY_WIFI | ||
#error wifi not in build | ||
#endif | ||
Comment on lines
+30
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I would rather have this kind of checking in the .mk files. If you do provide these messages, I would make them say There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct, this is just an optimization for the build to fail at compile time instead of link time, because I'm impatient waiting for builds. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I need a bigger computer. 😅 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Having |
||
|
||
#include "py/obj.h" | ||
|
||
|
@@ -36,5 +39,3 @@ typedef struct { | |
size_t lost; | ||
size_t queue_length; | ||
} wifi_monitor_obj_t; | ||
|
||
#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_MONITOR_H |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,13 +60,9 @@ | |
#include "shared-bindings/socketpool/Socket.h" | ||
#include "shared-bindings/socketpool/SocketPool.h" | ||
|
||
#if CIRCUITPY_WIFI | ||
#include "shared-bindings/wifi/__init__.h" | ||
#endif | ||
|
||
#if CIRCUITPY_OS_GETENV | ||
#include "shared-module/os/__init__.h" | ||
#endif | ||
Comment on lines
-63
to
-69
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This makes sense, because |
||
|
||
enum request_state { | ||
STATE_METHOD, | ||
|
@@ -254,8 +250,6 @@ void supervisor_web_workflow_status(void) { | |
#endif | ||
|
||
void supervisor_start_web_workflow(void) { | ||
#if CIRCUITPY_WEB_WORKFLOW && CIRCUITPY_WIFI && CIRCUITPY_OS_GETENV | ||
|
||
// Skip starting the workflow if we're not starting from power on or reset. | ||
const mcu_reset_reason_t reset_reason = common_hal_mcu_processor_get_reset_reason(); | ||
if (reset_reason != RESET_REASON_POWER_ON && | ||
|
@@ -353,7 +347,6 @@ void supervisor_start_web_workflow(void) { | |
_api_password[0] = ':'; | ||
_base64_in_place(_api_password, strlen(_api_password), sizeof(_api_password) - 1); | ||
} | ||
#endif | ||
} | ||
|
||
void web_workflow_send_raw(socketpool_socket_obj_t *socket, const uint8_t *buf, int len) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We would usually use
-Og
, but you said that didn't work. if-O1
works, let's leave it and add a comment about what was tried and what didn't work.