overlap problems when building bangleJS 1 #6773
Replies: 1 comment
-
Posted at 2024-04-21 by @fanoush Other than that yes, and it builds, it is just too big :-) Get 10.3.1 out of your path. Posted at 2024-04-21 by @fanoush maybe easiest is to change provision script to prepend downloaded compiler path instead if appending it to the PATH Posted at 2024-04-21 by user156811 Ok, i'll give it a go. Thats a tight build if the compiler changed the size enough to make it not fit! Posted at 2024-04-22 by @gfwilliams
Welcome to my world. It's a constant fight to try and get everything in - if you look back at the commits you'll see I've spent literally months making small commits to try and shave a few bytes off here and there. Posted at 2024-04-26 by user156811 I figured that what embedded developers do for fun ;) Posted at 2024-04-26 by user156811 I'm able to flash the bangle1 and get bangle one there. I just commands @gfwilliams runs before sending a watch out. What the setup to make a watch function as if its getting send to a customer. The way I'm doing is doesn't include all the launchers and apps. So i can go to esperuino IDE and upload stuff. I just don't see any of the apps. To flash i run this I remember from this post you do a make .... flash then do a gdb file load. But the flash command only works with segger tools because it uses "nrfjprog" Posted at 2024-04-26 by @gfwilliams if you just do a To install JS, you have to do that from the app loader - just "install default apps". On BJS1 there's not enough flash to store a 'factory reset' image like we do on BJS2 Posted at 2024-04-29 by user156811 So my bangle 1 watch seems to be acting wear when i program it. I see the booting part fine. So i know the screen is ok. Just when it loads after that the screen just produces garbage. I cab load a program on it fine just the screen doesn't seem to want to display data correctly. So I've reset the flash
Attachments: Posted at 2024-04-29 by @gfwilliams Is this with your modified firmware, or with a build directly from what's on Github? Posted at 2024-04-29 by user156811 This is directly from github Posted at 2024-04-29 by @fanoush
you can also try binary from https://www.espruino.com/Download and upload over DFU Posted at 2024-04-29 by @gfwilliams I just tested and this happens to me too! 2v21 is fine In bootloader mode the display driver is very simplistic and 'safe' When Bangle.js runs I believe we push the display as fast as we can get away with (adding some NOPs where it was too fast), and it seems that the new compiler we started using since 2v21 is a bit faster and manages to cause problems! I've added some NOPs and it's fine now! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-04-21 by user156811
Sorry i must be doing something really dumb but this is what i'm doing.
source scripts/provision.sh BANGLEJS
make -j BOARDNAME=BANGLEJS BOARD=BANGLEJS RELEASE=1
LD bin/espruino_2v21.84_banglejs.elf
BANGLEJS bin/espruino_2v21.84_banglejs.elf
python scripts/check_elf_size.py BANGLEJS bin/espruino_2v21.84_banglejs.elf
Testing bin/espruino_2v21.84_banglejs.elf for BANGLEJS
STORAGE: 0x60000000 -> 0x60400000
FS DATA: 0x76db8 -> 0x76dc8 (16 bytes)
FLASH_AVAILABLE: 0x76000
CODE: 0x1f000 -> 0x76dc8 (359676 bytes)
==========================
CODE AND STORAGE OVERLAP
by 3528 bytes
==========================
So what i'm tying to do seems very simple, i just want to flash bangle.js on a bangle 1 watch. Other then having a wrong gcc version, it should build?
Beta Was this translation helpful? Give feedback.
All reactions