Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemensElflein committed Oct 28, 2024
1 parent bf9a30d commit 1a7c85e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions bootloader/boards/XCORE/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@
#define STM32_I2C_I2C2_DMA_PRIORITY 3
#define STM32_I2C_I2C3_DMA_PRIORITY 3
#define STM32_I2C_I2C4_DMA_PRIORITY 3
#define STM32_I2C_USE_DMA FALSE
#define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure")

/*
Expand Down
5 changes: 4 additions & 1 deletion bootloader/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ int main(void) {
* Setup LWIP stack using the MAC address provided by the EEPROM.
*/
uint8_t mac_address[6] = {0};
ID_EEPROM_GetMacAddress(mac_address, sizeof(mac_address));
if (!ID_EEPROM_GetMacAddress(mac_address, sizeof(mac_address))) {
while (1)
;
}
lwipthread_opts_t lwipconf_opts = {0};
lwipconf_opts.addrMode = NET_ADDRESS_DHCP;
lwipconf_opts.address = 0;
Expand Down

0 comments on commit 1a7c85e

Please sign in to comment.