Also you are right at the limits on resources.
The sensor pins are not hardware connected. But somehow the old PSoC Creator version did not issued an error message for this. Now the fitting is OK, but the compiler issued ...40 errors. All the errors related to undeclared functions. I don't know why. May be the new GCC compiler wants us something different on function definition / declaration
Many thanks again
Finaly I managed to compile the code with PSoC Creator 4.1.
Another problem that faced is that the compiler did not recognize inline functions if they are declared in separate files (.h for function signature, c fr the body). The reason is that the new PSoC Creator is based on GCC 5.4.1 compiler instead GCC 4.5 version. The GCC 5.4.1 uses CNU11 standard instead GNU89.
The solution to this is to declare all the inline functions as extern inline.
For more information take a look on this: https://gcc.gnu.org/gcc-5/porting_to.html
So sorry for the problem. It is actually an error that your design routed in Creator 4.0.1. For some devices, there can be a conflict between Digital Signal Interface (DSI) routing lines and Sequencing SARs with multiple channels. I will post more later, but if you can change "sensors" to not be on '2' or change the signal on P2 so that it is on a different port (or not the same index, , as sensors) you can avoid the conflict.
We are writing up a knowledge base article and will post something to the Creator start page.
Summarizing the conditions where this can occur
1. PSoC 4 design using the ADC_SAR_SEQ_P4 component
2. ADC_SAR_SEQ_P4 uses multiple channels
3. A locked, hardware-driven digital pin routed through the DSI shares either the port or pin index as one of the ADC_SAR_SEQ_P4 inputs.
It's actually not all PSoC 4 designs, we are putting together a list. If your design matches those conditions, it will almost certainly fail.
Thanks for posting to the community, and I apologize for the trouble.
If you contact me at email@example.com, I'll have someone from technical support contact you directly.
so, if I understand correctly, the error existed in Creator 4.0 and is now detected in Creator 4.1 ?
The old version did not issue any error or warning message..
Thanks for your help
Sorry again for all this. Is everything OK now? You have my contact info?
Yes Matt, Everything is under control now!!!
Many thanks again
I have a similar issue with PSOC4 device.
My project compiles (and works) on Creator 4.0, but on 4.1 I get the following error:
Error: rtr.M0004: E1216: Routing of net ADC_SYNC Failed. Source : :m0s8tcpwmcell_7.tr_underflow, Sink : :p4sarcell.tr_sar_in
Error: rtr.M0004: Error routing design: Routing Failed (12)
See the attached project.
ADC_P4.cydsn_.zip 39.1 K
Hi, I'm having the same error on the CY8C4245LTI-M445:
E2713: <CA(1)> cannot be placed at <P1> because the location does not support the required features: <ROUTABLE>.
The KBA refers to ports 2 and 3, but not to port 1. Is that the same conflict?
I tried to reproduce in a minimalist project, here attached.
I have identified that it is the Opamp_Buffer that causes the error. The project builds if I remove it. (For those interested, here is why I need this op-amp: http://www.cypress.com/blog/psoc-hacker-blog/measuring-vdd-battery-volts-psoc4 )
I downloaded your project and in my PSoC Creator 4.1 is compiled without any error message!!!
Hi bascal, I have updated the project in which I can reproduce the error. Please check.
Could someone at Cypress provide advices in regards to my application? The PCB is about to hit production. Pin remapping can be considered.