Firmware created on my ubuntu server does not work on board.
After flashing from local drive with IDE and reset, all 3 LED are on, and serial port is not found.
Flashing a binary from Espruino/com/binaries, same way, works fine.
My make runs this way, there is no error:
RELEASE=1 BOARD=ESPRUINOBOARD make >tmp/Espruino/log/stdout 2>tmp/Espruino/log/stderr
Comparing binaries there is a difference in size.
Mine(espruino_2v08_espruino_1r3) has 214KB and "yours" from binaries folder has 224 KB
Any idea, whats going wrong on my side?
Make for ESP32 works fine, looks like something wrong with my installation for ARM ?
That's odd - looks like you have the right compiler.
There's a script scripts/create_espruino_image_1v3.sh which creates the bootloader and main firmware and merges them.
I used RELEASE_2V08.
Anyway, with edge I've same problem.
Both are downloaded yesterday this way:
git clone -b RELEASE_2V08 https://github.com/espruino/Espruino.git EspruinoRelease
git clone https://github.com/espruino/Espruino.git EspruinoEdge
Flashing is done with IDE from local file.
To avoid misunderstanding on my side for using the script. I did
Tested firmware created with script on Espruino Board from first Kickstarter campaign.
It works fine with latest release and with edge from github. Size of binary also matches those from your binaries folder
My problem is to create my own firmware.
Looks like I've to write a script to combine my firmware with bootloader. Something similiar to your create_espruino_image_1v3.sh
Ahh! Right, I know the problem.
Just build with PAD_FOR_BOOTLOADER=1 RELEASE=1 BOARD=ESPRUINOBOARD make
PAD_FOR_BOOTLOADER=1 RELEASE=1 BOARD=ESPRUINOBOARD make
That's the case for Pico, WiFi, and Original.
Great, PAD_FOR_BOOTLLOADER made it.
Oops, just found one more define in yml-file, DFU_UPDATE_BUILD=1
Pretty sure, this too will be needed for some boards
DFU_UPDATE_BUILD=1 is for nRF52 - it's basically whether you get a hex file (for SWD upload) or a ZIP (for use with the bootloader).
Probably these two should be merged - there's no reason we couldn't do the same tricks we do for nRF52 (to allow building the bootloader first) with STM32
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem