USIWP1Module / USI_I-NUCLEO-LRWAN1

31 stars 19 forks source link

Kail debug session disconnected. #14

Open akirawk opened 5 years ago

akirawk commented 5 years ago

Debugging is done with Kail, but the debug session expires at the timing of GPIO initialization of RADIO. why?

define DEBUG

define RADIO_DIO_1_PORT GPIOA

define RADIO_DIO_1_PIN GPIO_PIN_3

define RADIO_DIO_2_PORT GPIOA

define RADIO_DIO_2_PIN GPIO_PIN_5

define RADIO_DIO_3_PORT GPIOA

define RADIO_DIO_3_PIN GPIO_PIN_6

void SX1272IoInit( void )


        HW_GPIO_Init( RADIO_DIO_1_PORT, RADIO_DIO_1_PIN, &initStruct );

why?
Why debug session disconnected?
Is everyone non problematic?

thanks.
USI-ShellyWu commented 5 years ago

Any fail log can be provided?

akirawk commented 5 years ago

■ Debug fail video. https://drive.google.com/file/d/1GGXSUmaB4le7aA2hkNtZ_fQrS_xZq5hF/view?usp=sharing ■ Debug option settings. https://drive.google.com/file/d/1jon4g8KeYKKSBoAZ-mIStBypUr5BW-X2/view?usp=sharing

Please let me know if you have any other necessary information.

thanks.

USI-ShellyWu commented 5 years ago

Please make sure that SM24 IO patch is applied: https://github.com/USIWP1Module/USI_I-NUCLEO-LRWAN1/tree/master/I-CUBE-LRWAN_patchs

Now, only AT_Slave application can run in this LoRa board.

akirawk commented 5 years ago

Yes, I know. Patches are also included. and I'm targeting for AT_Slave project.

hmm,.hardware problem?

passed -> HW_GPIO_Init( RADIO_DIO_0_PORT, RADIO_DIO_0_PIN, &initStruct );

failed. ->
HW_GPIO_Init( RADIO_DIO_1_PORT, RADIO_DIO_1_PIN, &initStruct ); HW_GPIO_Init( RADIO_DIO_2_PORT, RADIO_DIO_2_PIN, &initStruct ); HW_GPIO_Init( RADIO_DIO_3_PORT, RADIO_DIO_3_PIN, &initStruct );

pin assign. ->

define RADIO_DIO_1_PORT GPIOA

define RADIO_DIO_1_PIN GPIO_PIN_3

define RADIO_DIO_2_PORT GPIOA

define RADIO_DIO_2_PIN GPIO_PIN_5

define RADIO_DIO_3_PORT GPIOA

define RADIO_DIO_3_PIN GPIO_PIN_6

I also confirmed that it is not the GPIO used by ST - LINK. I will try it on another board. Or can you try my project?

Best regard.