isavitsky / 433T30D-LoRa-KISS-TNC

E32-DTU 433T30D LoRa KISS TNC
23 stars 14 forks source link

E32-433T30D module (not a bug) #1

Closed user1321 closed 3 years ago

user1321 commented 4 years ago

Good day! Thank you for sharing project. Have you tried to run it on very similar module: E32-433T30D ?

http://www.ebyte.com/en/product-view-news.aspx?id=108

Looks like it also use same STM8L processor Only thing I not sure about how much flash memory it have. I asking because when I tried to flash E32-433T30D with your firmware it seems to me that CPU restart itself after that command:

` //config.h ....

define __enable_interrupt() asm("rim")

...

//main.c void mcu_init() { ..... __enable_interrupt(); //RESTART } `

I not very familiar with STM, and not sure why that happens. (Other CPU submodel or different PCB) Maybe you have some experience with E32-433T30D module? Thank you.

P.S. Looks like it have same PCB layout. (image from Internet) image

user1321 commented 3 years ago

Good Day! Checked code again, and my problem was in that fact that M1 or M2 was floating. Inside main.c there are GPIO pin configuration: .... PC_CR1_C15 = 0; // FLOAT ... PC_CR1_C16 = 0; // FLOAT ... So, external resistor is required. Without it inside intr.c will be trigered: ... __interrupt void EXTI5_handler(void) { ... __reset(); ... }

As soon external resistars was connected It was possible to configure and send data using E32 433T30d module.

Just in case couple of keywords for google\ everyone who will want to get firmware to bring module back to life after QCZEK LRS. P.S. Thank you again for sharing your code.