emmebrusa / TSDZ2-Smart-EBike-1

TSDZ2 Open Source Firmware adapted to VLCD5-VLCD6-XH18 displays
GNU General Public License v3.0
144 stars 34 forks source link

Error flashing with v20.1C.2-update-2 - stm8s_itc.asm:140: Error: <a> machine specific addressing or addressing mode error #48

Closed dklausbutt closed 1 year ago

dklausbutt commented 1 year ago

Hi there @emmebrusa, Thanks for all your great work. I was trying to flash the new version and during the flash process I get the following error.

sdcc: Calling assembler... sdcc: sdasstm8 -plosgffwy ""../../bin\stm8s_itc".asm" ../../bin\stm8s_itc.asm:140: Error: machine specific addressing or addressing mode error removing ../../bin\stm8s_itc.rel make: *** [../../bin/stm8s_itc.rel] Error 1 Build error!!

I am using the same parameters for my bike as for v20.1C.2-update-1 but simply using the new Java Parameter Configurator 4.3 I even tried to reflash my bike with an older version and it works perfectly. Just with the latest version it does not flash my bike.

Is it working for everyone or is it just me getting this error?

Cheers

dzid26 commented 1 year ago
dklausbutt commented 1 year ago

Hi @dzid26, Answering your questions.

dzid26 commented 1 year ago

After upgrading SDCC https://sourceforge.net/projects/sdcc/files/latest/download check if that's your main installation.

The script looks onto following paths: C:\SDCC\ C:\Program Files\SDCC

dklausbutt commented 1 year ago

Hi @dzid26 that did the trick! Just updating SDCC to the latest version worked like a charm! It was my bad for not checking if the other software needed updating. (In this case SDCC) Cheers!