kriswiner / CMWX1ZZABZ

Collection of sketches using the Arduino core for Murata's CMWX1ZZABZ (STM32L082 and SX1276)
96 stars 30 forks source link

Firmware LoRaSensorTile.v05 #23

Open klyaruqui opened 4 years ago

klyaruqui commented 4 years ago

Hello kris.

I wanna know if I can update the firmware of the LoRaSensorTile.v05 to program in python or another language. Because arduino ide consume more resources

kriswiner commented 4 years ago

No idea, I use the L082 system layer/Arduino core to program these.

On Thu, Mar 5, 2020 at 5:22 PM klyaruqui notifications@github.com wrote:

Hello kris.

I wanna know if I can update the firmware of the LoRaSensorTile.v05 to program in python or another language. Because arduino ide consume more resources

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/23?email_source=notifications&email_token=ABTDLKWCGJJY4ZFLH5W7IILRGBF5NA5CNFSM4LCWN2NKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IS6YPJQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKW77LP5NRNBLNU3ZYTRGBF5NANCNFSM4LCWN2NA .

klyaruqui commented 4 years ago

thanks Kris

I'll ask another question in the future :)

kriswiner commented 4 years ago

Not sure what your concern is with the Arduino core for the L082. It is power and memory efficient, robust, and complete. What resources do you think are being consumed?

On Thu, Mar 5, 2020 at 5:32 PM klyaruqui notifications@github.com wrote:

thanks Kris

I'll ask to another question in the future :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/23?email_source=notifications&email_token=ABTDLKX7CGLZSX7CGR5OIKLRGBHEBA5CNFSM4LCWN2NKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN7WN3A#issuecomment-595551980, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKWFSBMYLKC2QQO3E7DRGBHEBANCNFSM4LCWN2NA .

klyaruqui commented 4 years ago

Thanks Kris I will do with the Arduino core

K0I05 commented 4 years ago

Hello Kris,

I installed board support for the sensor tile per instructions and downloaded the entire library (i.e. CMWX1ZZABZ) via github. I updated the v05 sketch (LoRa settings to match TTN settings), referenced the SPIFlash library appropriately (i.e. SPIFlashClass), and the sketch compiles. However, when I attempt to upload the sketch to the board it fails. The programmer in the sketch defaulted to "AVRISP mkII" but is this correct?

BTW: Arduino IDE 1.8.10 and outputs are appearing via Serial Monitor

Thanks

Eric

kriswiner commented 4 years ago

The programmer is not used so irrelevant.

Did you select Cicada as the board variant?

What is the output on programming failure?

On Fri, Apr 3, 2020 at 10:58 AM egionet notifications@github.com wrote:

Hello Kris,

I installed board support for the sensor tile per instructions and downloaded the entire library (i.e. CMWX1ZZABZ) via github. I updated the v05 sketch (LoRa settings to match TTN settings), referenced the SPIFlash library appropriately (i.e. SPIFlashClass), and the sketch compiles. However, when I attempt to upload the sketch to the board it fails. The programmer in the sketch defaulted to "AVRISP mkII" but is this correct?

BTW: Arduino IDE 1.8.10 and outputs are appearing via Serial Monitor

Thanks

Eric

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/23#issuecomment-608580216, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKTAHO64ECGULWL7S6DRKYPVHANCNFSM4LCWN2NA .

K0I05 commented 4 years ago

Arduino: 1.8.10 (Linux), Board: "Cicada-L082CZ, Serial, None, 32 MHz, Smallest Code"

Sketch uses 100672 bytes (51%) of program storage space. Maximum is 196608 bytes. Global variables use 7264 bytes (35%) of dynamic memory, leaving 13216 bytes for local variables. Maximum is 20480 bytes. 10 9 8 7 6 5 4 3 2 1 FAIL Board at /dev/ttyACM0 is not available

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

kriswiner commented 4 years ago

Close Arduino IDE.

Press and hold boot button, press and release reset button, replease boot button

Open ARduino IDE, select Cicada board variant, there should be no COM port showing in the tools menu

Flash a blink program, the pc should assign a COM port.

This procedure is required upon flashing errors (like when you use the wrong board variant) but otherwise flashing should occur as normal with the Arduino IDE.

If the board still does not flash (or you still get the 1 - 10 countdown, there is a driver issue, Download and run Zadig, list all devices, select STM32 bootloader, and click replace driver and try to flash again.

On Fri, Apr 3, 2020 at 11:20 AM egionet notifications@github.com wrote:

Arduino: 1.8.10 (Linux), Board: "Cicada-L082CZ, Serial, None, 32 MHz, Smallest Code"

Sketch uses 100672 bytes (51%) of program storage space. Maximum is 196608 bytes. Global variables use 7264 bytes (35%) of dynamic memory, leaving 13216 bytes for local variables. Maximum is 20480 bytes. 10 9 8 7 6 5 4 3 2 1 FAIL Board at /dev/ttyACM0 is not available

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/23#issuecomment-608589854, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKQFVA623GO63NPOUQ3RKYSGZANCNFSM4LCWN2NA .

K0I05 commented 4 years ago

countdown still occurs. i'm on ubuntu and not windows

kriswiner commented 4 years ago

So you are using the Arduino IDE on ubuntu linux?

Special case, maybe Thomas can help....

On Fri, Apr 3, 2020 at 11:43 AM egionet notifications@github.com wrote:

countdown still occurs. i'm on ubuntu and not windows

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/23#issuecomment-608599761, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKUEYDOY4XL5KAPNRU3RKYU3ZANCNFSM4LCWN2NA .

K0I05 commented 4 years ago

correct, I will give it a try on a windows machine...

GrumpyOldPizza commented 4 years ago

Do you have the 32 bit library support (like libc and such) installed on Ubuntu ?

K0I05 commented 4 years ago

I will check. The board works fine on Windows after updating via Zadig and finally seeing data on TTN through the Dragino LPS8.