Skip to content

Commit

Permalink
externals/eltres: Fix startup error on ELTRES add-on board
Browse files Browse the repository at this point in the history
ELTRES add-on board may fail to boot. Fix the issue by resetting
the ENABLE pin before UART initialization.
  • Loading branch information
SPRESENSE committed Mar 2, 2023
1 parent aaba2d5 commit 9b71a2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion externals/eltres/CXM150x_SDK/CXM150x_port/CXM150x_Port.c
Expand Up @@ -93,7 +93,12 @@ static bool g_stop_thread = false;
// ===========================================================================
int32_t wrapper_CXM150x_set_uart_rx_buf(uint8_t *rcv_char_buf){
g_rcv_buf = rcv_char_buf;

#ifdef CONFIG_EXTERNALS_ELTRES_ADDON
if (CXM150x_POWER_OFF == wrapper_CXM150x_get_power()){
board_gpio_config(ELTRES_PIN_ENABLE, 0, false, false, PIN_FLOAT);
board_gpio_write(ELTRES_PIN_ENABLE, 0);
}
#endif
if (g_uart_recv_thread == (pthread_t)0){
/* Create UART reception thread */
struct sched_param param;
Expand Down

0 comments on commit 9b71a2f

Please sign in to comment.