Closed maxgerhardt closed 2 years ago
Hi
I have tested the code on other environment and increased the delay as the delay in the code is not enough to make the blinking visible , the delay routine became :
delay:
mov r4, #0x00
mov r3, #0x00
mov r2, #0x00
wait:
djnz r4, wait
djnz r3, wait
djnz r2, wait
ret
Then it works successfully 👍
I suggest to add the assembler arguments :
env.Append(ASFLAGS=["-l", "-s"])
to the main.py of the platform in the coming updates.
Fixed in https://github.com/platformio/platform-intel_mcs51/commit/d0a8315012bb9af9e4470b05ba118b640afd83de
P.S: The minimum support version of PlatformIO Core is 5.3
Please first note that due to issue https://github.com/platformio/platformio-core/issues/3917, only on Linux and Mac platforms, the
sdas8051
assembler is actually invoked, and not SDCC.However, even under e.g. Linux, when using the following
platformio.ini
and
src/blink.s
adapted from here)will lead to a build failure
Because the assembler flags are lackign the options to create
.lst
and.sym
files. If I addto the
platformio.ini
with script contentit builds
but no idea whether it runs.
In any way, by default this doesn't work, hence the issue here.