Skip to content

Commit

Permalink
Fix STM32 bootloader build
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Dec 6, 2024
1 parent ff20840 commit ff3ae01
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
19 changes: 16 additions & 3 deletions scripts/create_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,33 @@ echo Creating Documentation
scripts/build_docs.py || { echo 'Build failed' ; exit 1; }
mv $ESPRUINODIR/functions.html $ZIPDIR/functions.html

# Install everything
source scripts/provision.sh ALL
# Install all 'normal boards'
source scripts/provision.sh ESPRUINOBOARD
source scripts/provision.sh PIXLJS

echo ------------------------------------------------------
echo Building Version $VERSION
echo ------------------------------------------------------
# The following have been removed because it's too hard to keep the build going:
# STM32F3DISCOVERY OLIMEXINO_STM32 HYSTM32_32 HYSTM32_28 HYSTM32_24 RAK8211 RAK8212 RUUVITAG THINGY52 RASPBERRYPI RAK5010

for BOARDNAME in ESPRUINO_1V3 ESPRUINO_1V3_AT ESPRUINO_1V3_WIZ PICO_1V3 PICO_1V3_CC3000 PICO_1V3_WIZ ESPRUINOWIFI PUCKJS PUCKJS_MINIMAL PUCKJS_NETWORK PIXLJS PIXLJS_WIZ JOLTJS BANGLEJS BANGLEJS2 MDBT42Q NUCLEOF401RE NUCLEOF411RE STM32VLDISCOVERY STM32F4DISCOVERY STM32L496GDISCOVERY MICROBIT1 MICROBIT2 ESP8266_BOARD ESP8266_4MB ESP32 SMARTIBOT
for BOARDNAME in ESPRUINO_1V3 ESPRUINO_1V3_AT ESPRUINO_1V3_WIZ PICO_1V3 PICO_1V3_CC3000 PICO_1V3_WIZ ESPRUINOWIFI PUCKJS PUCKJS_MINIMAL PUCKJS_NETWORK PIXLJS PIXLJS_WIZ JOLTJS BANGLEJS BANGLEJS2 MDBT42Q NUCLEOF401RE NUCLEOF411RE STM32VLDISCOVERY STM32F4DISCOVERY STM32L496GDISCOVERY MICROBIT1 MICROBIT2 SMARTIBOT
do
scripts/create_zip_board.sh $BOARDNAME
done

# Install Espressif stuff as it screws with Python

source scripts/provision.sh ESP8266_4MB
source scripts/provision.sh ESP32
source scripts/provision.sh ESP32C3_IDF4

for BOARDNAME in ESP8266_BOARD ESP8266_4MB ESP32
do
scripts/create_zip_board.sh $BOARDNAME
done


cd $ESPRUINODIR

echo Copying README
Expand Down
2 changes: 2 additions & 0 deletions targets/stm32_boot/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ void jshDelayMicroseconds(int c) {
void jshClearUSBIdleTimeout() {
}

void jshHadEvent() {}

int _getc() {
if (rxHead == rxTail) return -1;
unsigned char d = (unsigned char)rxBuffer[rxTail];
Expand Down

0 comments on commit ff3ae01

Please sign in to comment.