Skip to content

Commit

Permalink
Merge pull request #2411 from fanoush/f-microbit1-fix-bss-clear
Browse files Browse the repository at this point in the history
fix microbit1 compiler flags to clear bss section properly
  • Loading branch information
gfwilliams authored Sep 15, 2023
2 parents ff59598 + 2489f29 commit 350b5c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion boards/MICROBIT1.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
'DEFINES+=-DESPR_NO_DAYLIGHT_SAVING',
'DEFINES+=-DJSVAR_FORCE_NO_INLINE=1',
'CFLAGS += -ffreestanding', # needed for SAVE_ON_FLASH_EXTREME (jswrap_math, __aeabi_dsub)
'CFLAGS += -D__STARTUP_CLEAR_BSS -DLD_NOSTARTFILES',
'ASFLAGS += -D__STARTUP_CLEAR_BSS -D__START=main',
'LDFLAGS += -nostartfiles',
'BLACKLIST=boards/MICROBIT1.blocklist', # force some stuff to be removed to save space
'DEFINES+=-DCONFIG_GPIO_AS_PINRESET', # Allow the reset pin to work
Expand Down
5 changes: 0 additions & 5 deletions targets/nrf5x/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,3 @@ int main() {
//jshKill();
}

#ifdef LD_NOSTARTFILES
void _start(){
main();
}
#endif

0 comments on commit 350b5c3

Please sign in to comment.