Check memory use and stack overflow

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Dear All,

   

I am a newbie to FX3 and just wrote the first firmware that configures ASIC and reads back data.  It doesn't work well at this moment.  I noticed that configuration was wrong from time to time.  Occasionally the firmware reboots into default 04b3:00f3.  I think I have stack overflow or other memory leak.  How can I check this?

   

Thanks,

   

Bill

0 Likes
2 Replies
Anonymous
Not applicable

We will need more information about your application. If you can share a block diagram and the control signals between FX3 and ASIC we can understand your application better. 

   

04b3:00f3.  is the VID/PID for bootloader. It may mean that the firmware is not programmed onto the FX3 yet. Please program the .img into the FX3 RAM and see if this VID/PID changes. You can also use non-volatile SPI Flash/I2C EEPROM to boot from, but you will need to change the PMODE pins accordingly for the FX3 to recognize the boot mode. This settings are mentioned in the FX3 datasheet (If you are using explorer kit, you need to connect the J4 for USB boot. Program the EEPROM, and the remove the J4 jumper to make it boot from on-board EEPROM).

0 Likes
EyGe_3183606
Level 4
Level 4
25 replies posted 10 sign-ins 10 replies posted

You can perform memory leakage tests and other "sanity" (or "stability") tests with the test package code examples from Cypress here:

https://www.cypress.com/documentation/application-notes/an89056-psoc-4-iec-60730-class-b-and-iec-615...

0 Likes