Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Loading Firmware Issues

2 posters

Go down  Message [Page 1 of 1]

1Loading Firmware Issues Empty Loading Firmware Issues Sat Mar 13, 2021 8:47 am

miah



Hello,

I run PIC mcu simulation and later to load the firmware (hex file).
Firstly I tried loading some of the hex files from the example folder from SimulIDE, no issue and simulations were running well.

Next, I wrote & compiled my own C code on MPLABX IDE then I copied the hex file generated to SimulIDE folder containing the circuit I built. After building my led blinking circuit on SimulIDE and clicked on the mcu to load the firmware then I got "simulide has stopped working". This happened many times no matter if I relaunch the simulator or even restart my laptop.

Loading Firmware Issues 88c5f910


Your kind help is very much appreciated.
Thanks.

2Loading Firmware Issues Empty Re: Loading Firmware Issues Sat Mar 13, 2021 5:16 pm

arcachofo

arcachofo

Can you share your source code and hex file to test what is happening?

3Loading Firmware Issues Empty Re: Loading Firmware Issues Mon Mar 15, 2021 2:52 am

miah



arcachofo wrote:Can you share your source code and hex file to test what is happening?

hi, thanks for replying.
below is the code (compiled using MPLABX IDE) and I couldn't attach the hex file (file type not supported for upload in this forum).

Code:
#include<xc.h>
#define _XTAL_FREQ 64000000L

void delay(unsigned int x);

void main(void)
{

   TRISBbits.TRISB7=0;
   
   while(1)
   {
      RB7=1;
      delay(1000);
      RB7=0;
      delay(1000);

   }


}

void delay(unsigned int x)
{
   for(;x>0;x--)__delay_ms(1);
}

4Loading Firmware Issues Empty Re: Loading Firmware Issues Mon Mar 15, 2021 3:13 am

arcachofo

arcachofo

I couldn't attach the hex file (file type not supported for upload in this forum).
To attach you can zip it.

Or you can open it in any editor and copy/paste here like you did with source code.

The problem is probably related to your compiler and I don't have it.

5Loading Firmware Issues Empty Re: Loading Firmware Issues Mon Mar 15, 2021 4:46 am

miah



arcachofo wrote:
I couldn't attach the hex file (file type not supported for upload in this forum).
To attach you can zip it.

Or you can open it in any editor and copy/paste here like you did with source code.

The problem is probably related to your compiler and I don't have it.

hi, copied below is the content of the hex file (I use Microchip XC8 v2.3 compiler running on MPLABX IDE):

:020000040000FA
:0600000000F0BFEF1FF04D
:103F7C00FFFF0001C2EF1FF0FFFF939EFFFF818E3A
:103F8C00030E026EE80E016ED7EC1FF0819E030E3D
:103F9C00026EE80E016ED7EC1FF0C4EF1FF001EFBC
:103FAC0000F0FFFF01500210D8A4DFEF1FF0E2EF8A
:103FBC001FF0FFFFE5EF1FF0FFFFFCEF1FF0FFFF0F
:103FCC00100E036E970EFFFFE82EFDD7032EFBD7C6
:103FDC0000D00106D8A0020601500210D8A4F9EFB7
:103FEC001FF0FCEF1FF0FFFFE5EF1FF0FFFF1200CB
:043FFC00FFFFFFFFC5
:020000040020DA
:08000000FFFFFFFFFFFFFFFF00
:020000040030CA
:04000000FF270F0FB8
:0800060085FF0FC00FE00F4061
:00000001FF

6Loading Firmware Issues Empty Re: Loading Firmware Issues Mon Mar 15, 2021 6:52 pm

arcachofo

arcachofo

Thank you very much.

I will have a look.

7Loading Firmware Issues Empty Re: Loading Firmware Issues Mon Mar 15, 2021 8:10 pm

arcachofo

arcachofo

Confirmed, there is a problem in simulide with 18F248/258/448/458

I will solve it as soon as possible.

8Loading Firmware Issues Empty Re: Loading Firmware Issues Tue Mar 16, 2021 5:50 pm

miah



arcachofo wrote:Confirmed, there is a problem in simulide with 18F248/258/448/458

I will solve it as soon as possible.

Thanks. I am with high hope for it. Very Happy
Please keep me updated in here.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum