PSoC 4 Running out of ROM with small program? | Cypress Semiconductor
PSoC 4 Running out of ROM with small program?
What I am trying to do:
I am trying to make an autonomus car that can do object avoidance by using 2 sonars. I am trying to read from TWO HC-SR04 Sonar Sensors using a Mux to switch between them. I also need to control two motors with a H-bridge. 1 of the motors needs to have controlable speed (PWM). I also would like to have UART communication to a terminal so I can see feedback from the PSoC 4 about its current status.
Before I have even really started to write the program, I am getting a ROM overflow error. I am supprised since my code is fairly small at the moment and I am a little confused by this. I do not think my program is very big and I am confused why I am getting an overflow error?
A few questions:
I know there is ROM and SRAM, but I get confused on where the program is stored. What is each used for?
How much ROM does the PSoC 4 Have?
How can I see how much ROM / SRAM my code/internal wiring is taking?
How can I resolve this issue?
NOTE: I have attached the project to this post.