Skip to content

Commit

Permalink
Release v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mluis1 committed Jul 18, 2014
1 parent a2a3f44 commit 5059c77
Show file tree
Hide file tree
Showing 120 changed files with 2,217 additions and 5,809 deletions.
119 changes: 1 addition & 118 deletions Keil/Bleeper-72/LoRaMac/classA/LoRaMac.uvopt

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions Keil/Bleeper-72/LoRaMac/classA/LoRaMac.uvproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
<UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
<nStopB1X>0</nStopB1X>
<nStopB2X>0</nStopB2X>
</BeforeMake>
<AfterMake>
<RunUserProg1>0</RunUserProg1>
Expand Down Expand Up @@ -128,6 +130,7 @@
<RestoreFunctions>1</RestoreFunctions>
<RestoreToolbox>1</RestoreToolbox>
<LimitSpeedToRealTime>0</LimitSpeedToRealTime>
<RestoreSysVw>1</RestoreSysVw>
</Simulator>
<Target>
<UseTarget>1</UseTarget>
Expand All @@ -139,8 +142,8 @@
<RestoreFunctions>0</RestoreFunctions>
<RestoreToolbox>0</RestoreToolbox>
<RestoreTracepoints>1</RestoreTracepoints>
<RestoreTracepoints>1</RestoreTracepoints>
<RestoreTracepoints>1</RestoreTracepoints>
<RestoreSysVw>1</RestoreSysVw>
<UsePdscDebugDescription>1</UsePdscDebugDescription>
</Target>
<RunDebugAfterBuild>0</RunDebugAfterBuild>
<TargetSelection>11</TargetSelection>
Expand Down Expand Up @@ -359,7 +362,7 @@
<useXO>0</useXO>
<VariousControls>
<MiscControls></MiscControls>
<Define>USE_DEBUGGER LOW_POWER_MODE_ENABLE</Define>
<Define>USE_DEBUGGER LOW_POWER_MODE_ENABLE LORAMAC_R3</Define>
<Undefine></Undefine>
<IncludePath>..\..\..\..\src;..\..\..\..\src\boards\Bleeper-72;..\..\..\..\src\boards\Bleeper-72\cmsis;..\..\..\..\src\boards\mcu\stm32;..\..\..\..\src\boards\mcu\stm32\cmsis;..\..\..\..\src\boards\mcu\stm32\STM32L1xx_StdPeriph_Driver\inc;..\..\..\..\src\mac;..\..\..\..\src\peripherals;..\..\..\..\src\radio;..\..\..\..\src\system;..\..\..\..\src\system\crypto</IncludePath>
</VariousControls>
Expand Down
Loading

5 comments on commit 5059c77

@mirakonta
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where to find the new LoRa MAC Specification version R3.0 PDF file?

@mluis1
Copy link
Contributor Author

@mluis1 mluis1 commented on 5059c77 Jul 18, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The LoRaMac specification is available on request. Please contact your local Semtech representative.

Best regards.

@criker64
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have got two SK-iM880A boards and have been trying to get I2C or UART to work. No Success yet.
I took the "ping-pong" example and in case of UART changed the main.c file to this:

include "board.h"

int main( void ) {

BoardInitMcu( );
    BoardInitPeriph( );

uint8_t data, result;

UartInit( &Uart1, 1, PA_9, PA_10 );

/* endless loop in UartMcuConfig() function at "mode" check */
UartConfig( &Uart1, RX_TX, 9600, UART_8_BIT, UART_1_STOP_BIT, NO_PARITY, NO_FLOW_CTRL );

while (1) {

    result = 2 ;
    data = 0;

    result = UartPutChar( &Uart1, data );
    // result = UartGetChar( &Uart1, &data );

    if ( result == 0 ) {
        GpioWrite( &Led4, 1 );
        DelayMs( 3000 );
    }
    GpioWrite( &Led4, 0 );
    DelayMs( 100 );
}

}

I am using "Keil µVision 5.11.1.0" and the "Flash Loader Demonstrator" Tool by STM to program the devices. What am I doing wrong? Thanks in advance!

@mluis1
Copy link
Contributor Author

@mluis1 mluis1 commented on 5059c77 Jan 8, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to use the HW UART an Rx an Tx Fifo buffer must be defined before calling the UartConfig function.

For I2C there are some working examples on the other supported platforms. Please look at the LoRaMote platform as it is also based on the iM880A module

Please find below a working UART echo example:

#include <string.h>
#include "board.h"
#include "uart-board.h"

/*!
 * FIFO buffers size
 */
#define FIFO_TX_SIZE                                128
#define FIFO_RX_SIZE                                128

uint8_t TxBuffer[FIFO_TX_SIZE];
uint8_t RxBuffer[FIFO_RX_SIZE];

int main( void )
{
    uint8_t d;

    BoardInitMcu( );
    BoardInitPeriph( );

    UartInit( &Uart1, UART_1, UART_TX, UART_RX );

    FifoInit( &Uart1.FifoTx, TxBuffer, FIFO_TX_SIZE );
    FifoInit( &Uart1.FifoRx, RxBuffer, FIFO_RX_SIZE );

    UartConfig( &Uart1, RX_TX, 9600, UART_8_BIT, UART_1_STOP_BIT, NO_PARITY, NO_FLOW_CTRL );

    while( 1 )
    {
        if( UartGetChar( &Uart1, &d ) == 0 )
        {
            while( UartPutChar( &Uart1, d ) != 0 );
        }
    }
}

@criker64
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Mr. Luis. That did the trick. I have been able to transmit data via UART to the other board and to a PC. I will try to connect it to a Raspberry Pi soon, which is my final goal.

Please sign in to comment.