Hello!
Please help to organize the emulation ds1990. The compiler produces an error:
dallas.c: FCD_0bbd1_One_Wire1__Get_Next_ID()
615: break;
^ (345) unreachable code (warning)
dallas.c: 120: (1250) could not find space (64 bytes) for variable _FCV_0bbd1_One_Wire1__DEV_ID
Emulator ds1990 in pic16lf1503
Moderator: Benj
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Emulator ds1990 in pic16lf1503
Unreachable code is not an issue as it's usually part of a C case statement.
A case statement is like the switch component (one icon below the decision icon)
The issue you have is
So you either need to trim your code i.e. make it more efficient Or change to a bigger target device.
Martin
A case statement is like the switch component (one icon below the decision icon)
The issue you have is
That just means the code is too big for target device.leha_m1986 wrote:could not find space (64 bytes) for variable _FCV_0bbd1_One_Wire1__DEV_ID
So you either need to trim your code i.e. make it more efficient Or change to a bigger target device.
Martin
Martin
-
- Posts: 15
- Joined: Tue May 22, 2018 10:02 am
Re: Emulator ds1990 in pic16lf1503
There is one byte - device ID, 6 byte code and one byte CRC (01 00000D1042BE 6B) Do I need to use "transmite byte"? and transmit one at a time? if you edit the macro One_wire in flowcode5 (replace
DevID [64] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0.0.0.0.0,0.0.0.0,0.0.0.0.0,0.0.0,0.0.0.0.0,0.0.0
0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0,0.0.0.0.0.0};
on
DevID [1] = {0}; )
with this macro code is placed. But in flowcode7 macros are edited.
How can I be in this situation?
Thank you in advance!
DevID [64] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0.0.0.0.0,0.0.0.0,0.0.0.0.0,0.0.0,0.0.0.0.0,0.0.0
0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0,0.0.0.0.0.0};
on
DevID [1] = {0}; )
with this macro code is placed. But in flowcode7 macros are edited.
How can I be in this situation?
Thank you in advance!