Description
I have been trying to make a lora node from stm32 based bluepill stm32f103 board (something like this: http://wiki.stm32duino.com/index.php?title=Blue_Pill)
I've installed arduino 1.5+arduino-2 from the dropdown menu in the arduino library manager as other versions do not work...i've already spent a lot of time. as i'm not very expert programmer, i've some difficulty removing the problems with the abp.ino example in the library.
Without any modification, code compiles and only prints S and does nothing. if i press the reset button it prints another S and does nothing.
Upon some investigation, i found that there is something called disableIRQs and enableIRQs. if i comment out disableIRQs from os_runloop_once(); i get a Starting message. If i comment out disableIRQs from callback handlers and in radio.c setmode, i get a message Starting Packet Queued. It then waits doing nothing....I've tried SPI at various speeds from 400khz. right now it is at 1mhz.
Interestigly these packets appear in the Thingsnetwork applications everytime i press reset. that means it is not able to know whether the packets were successful..
I don't know any more than this....any help will be greatly appreciated because i really want to use this bluepill board as a sensor node because it has a good amount of peripheral pins like 2 i2c, 2 SPI, 16-bit ADC (DMA supported), i2s etc. Runs at various frequencies upto 72Mhz (see this: https://www.thethingsnetwork.org/labs/story/a-cheap-stm32-arduino-node) @Voltages from 2.4V to 3.6V (according to datasheet) so 3xNiMh AA cells+solar would be sufficient for human-free node...
There is an STM32 port for another arduino core (older) for the bluepill board, but that doesn't even compile on this board with the mentioned core (stm32duino@ https://github.com/stm32duino/Arduino_Core_STM32 and not the this one:https://github.com/rogerclarkmelbourne/STM32duino-bootloader ): https://github.com/tomtor/arduino-lmic
Thanks in advance for any help.
Here is the print debug log on the serial monitor:
RXMODE_RSSI
3340: engineUpdate, opmode=0x808
3524: Uplink data pending
3669: Considering band 0, which is available at 3339
3964: Considering band 3, which is available at 0
4243: No channel found in band 3
4427: Considering band 0, which is available at 3339
4722: No channel found in band 0
4906: Considering band 1, which is available at 3339
5200: Airtime available at 3339 (channel duty limit)
5494: Ready for uplink
5696: Updating info for TX at 3524, airtime will be 3856. Setting available time for band 1 to 389124
6442: TXMODE, freq=433175000, len=26, SF=7, BW=125, CR=4/5, IH=0
Packet queued