Hi,
I´m trying to run sigfox click example with mikromedia+ with the shield for pic32mx7. I create a new board definition file compatible with the shield but when I run click_Sigfox_PIC32 example it get stuck in the function sigfox_init().
I attached the board files it´s the only files I changed.
Thank you,
Hélio Pereira
Micromedia+ PIC32MX7 and Sigfox click
Micromedia+ PIC32MX7 and Sigfox click
- Attachments
-
- board_files.zip
- (9.68 KiB) Downloaded 85 times
Re: Micromedia+ PIC32MX7 and Sigfox click
Hi,
Could you please attach the photo of your connection ?
Regards,
Filip.
Could you please attach the photo of your connection ?
Regards,
Filip.
Re: Mikromedia+ PIC32MX7 and Sigfox click
Hi,
I attach the photo.
Thank you,
Hélio Pereira
I attach the photo.
Thank you,
Hélio Pereira
- Attachments
-
- IMG_20190625_182624.jpg (2.79 MiB) Viewed 3147 times
- filip.grujcic
- Posts: 822
- Joined: 14 May 2018 08:34
Re: Micromedia+ PIC32MX7 and Sigfox click
Hello,
SigFox Click communicates via SPI. Have you checked that you initialized SPI properly?
Which SPI module are you using?
Kind regards,
SigFox Click communicates via SPI. Have you checked that you initialized SPI properly?
Which SPI module are you using?
Kind regards,
Filip Grujcic
Re: Mikromedia+ PIC32MX7 and Sigfox click
Hi,
I´m using SPI 1 and in the oscilloscope I can see communication from pic32(CLK and DO) but no answer from sigfox click.
Thank you,
Hélio Pereira
I´m using SPI 1 and in the oscilloscope I can see communication from pic32(CLK and DO) but no answer from sigfox click.
Thank you,
Hélio Pereira
- filip.grujcic
- Posts: 822
- Joined: 14 May 2018 08:34
Re: Micromedia+ PIC32MX7 and Sigfox click
Hello,
Everything in the files seems to be correct.
I will test out Sigfox click with your board def files on mm+ for PIC32MX and I will let you know what happens.
Kind regards,
Everything in the files seems to be correct.
I will test out Sigfox click with your board def files on mm+ for PIC32MX and I will let you know what happens.
Kind regards,
Filip Grujcic
- filip.grujcic
- Posts: 822
- Joined: 14 May 2018 08:34
Re: Micromedia+ PIC32MX7 and Sigfox click
Hi,
Could you send me a screenshot of your Library Manager, the section where the mikroBUS Board Definition API is, so I can see which library you ticked?
Kind regards,
Could you send me a screenshot of your Library Manager, the section where the mikroBUS Board Definition API is, so I can see which library you ticked?
Kind regards,
Filip Grujcic
Re: Micromedia+ PIC32MX7 and Sigfox click
Hi,
I´m using easypicfusion but I include the files I edit
#include "__epf_generic_GPIO.c"
#ifdef ENABLE_SPI
#include "__epf_generic_SPI.c"
#endif
#ifdef ENABLE_UART
#include "__epf_generic_UART.c"
#endif
#ifdef ENABLE_LOG
#include "__epf_generic_LOG.c"
#endif
Thank you,
Hélio Pereira
I´m using easypicfusion but I include the files I edit
#include "__epf_generic_GPIO.c"
#ifdef ENABLE_SPI
#include "__epf_generic_SPI.c"
#endif
#ifdef ENABLE_UART
#include "__epf_generic_UART.c"
#endif
#ifdef ENABLE_LOG
#include "__epf_generic_LOG.c"
#endif
Thank you,
Hélio Pereira
- Attachments
-
- lib1.PNG (7.04 KiB) Viewed 3080 times
- filip.grujcic
- Posts: 822
- Joined: 14 May 2018 08:34
Re: Micromedia+ PIC32MX7 and Sigfox click
Hi,
But have you edited the file called easypicfusion_v7_P32MX795F512L.c?
The library uses this file and not the generic easypicfusion one.
Kind regards,
But have you edited the file called easypicfusion_v7_P32MX795F512L.c?
The library uses this file and not the generic easypicfusion one.
Kind regards,
Filip Grujcic
Re: Micromedia+ PIC32MX7 and Sigfox click
Hi,
Yes I edited easypicfusion_v7_P32MX795F512L.c
Thank you,
Hélio Pereira
Yes I edited easypicfusion_v7_P32MX795F512L.c
Thank you,
Hélio Pereira
- filip.grujcic
- Posts: 822
- Joined: 14 May 2018 08:34
Re: Micromedia+ PIC32MX7 and Sigfox click
Hi Hélio,
Does the MCU completely freeze at the sigfox_init function, or does the code go through but Sigfox just fails to initialize?
How are you monitoring the code?
Have you tried other mikroBUS sockets?
Kind regards,
Does the MCU completely freeze at the sigfox_init function, or does the code go through but Sigfox just fails to initialize?
How are you monitoring the code?
Have you tried other mikroBUS sockets?
Kind regards,
Filip Grujcic
Re: Micromedia+ PIC32MX7 and Sigfox click
Hi,
The MCU completely freeze at the sigfox_init function.
I´m monitoring the code with breakpoints.
I only use mikroBUS1 socket because they share the same SPI bus the only difference is CS.
Thank you,
Hélio Pereira
The MCU completely freeze at the sigfox_init function.
I´m monitoring the code with breakpoints.
I only use mikroBUS1 socket because they share the same SPI bus the only difference is CS.
Thank you,
Hélio Pereira
- filip.grujcic
- Posts: 822
- Joined: 14 May 2018 08:34
Re: Micromedia+ PIC32MX7 and Sigfox click
Hi,
Are you using hardware debugger?
RB6 and RB7 pins are used for programming and debugging and at the same time they are CS and RST on mikroBUS where you are trying to use SigFox Click.
I tried the example code and the MCU doesn't freeze, the code goes through, however I am not able to debug for above mentioned reasons.
Kind regards,
Are you using hardware debugger?
RB6 and RB7 pins are used for programming and debugging and at the same time they are CS and RST on mikroBUS where you are trying to use SigFox Click.
I tried the example code and the MCU doesn't freeze, the code goes through, however I am not able to debug for above mentioned reasons.
Kind regards,
Filip Grujcic
Re: Micromedia+ PIC32MX7 and Sigfox click
I will try without the debugger and I let you know if it works.
Thank you,
Hélio Pereira
Thank you,
Hélio Pereira