-
• #2
That's odd - looks like you have the right compiler.
- This is the RELEASE_2V08 tag, or current Git master?
- How are you flashing? If you do a build as you have done, it builds the firmware but not the bootloader. Flashing via the IDE should work fine (as it doesn't overwrite the bootloader) but if you flash via DFU or SWD then it'll just overwrite the bootloader with zeros and it won't work.
There's a script
scripts/create_espruino_image_1v3.sh
which creates the bootloader and main firmware and merges them. - This is the RELEASE_2V08 tag, or current Git master?
-
• #3
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
- cd to script folder
- add path for compiler to $PATH
- startet the script
Now I've a file espruino_file.bin, size is 225 kb
Would it be correct to flash this file with IDE ?
- cd to script folder
-
• #4
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 -
• #5
Ahh! Right, I know the problem.
Just build with
PAD_FOR_BOOTLOADER=1 RELEASE=1 BOARD=ESPRUINOBOARD make
That's the case for Pico, WiFi, and Original.
-
• #6
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 -
• #7
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
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:
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 ?