This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flash Download Error

I have combined to programs Ble_uart and Spi_Master into one. However, after uploading the file the GPIOs do not work (No clock is generated). Meanwhile when I erase the softdevice from the chip I could upload the Spi_Master program and see it working. I have already looked at this and found there might be problem with the softdevice interfeering with my Ble_uart + Spi_Master program. What would me my best choice?

Thank You

Parents
  • I got a habit of asking if you have checked IRAM and IROM settings correctly. for S110 they should be like this.

    Softdevice should not interfere with with your SPI code, unless

    1. your SPI code is using protected peripherals like (RTC0, TIMER0, RNG etc).
    2. It could be either stack overflow of your application growing into softdevice stack memory
    3. wrong IRAM and IROM settings.

    Can you exclude these above reasons and see if the problem still exists.

  • Hey Aryan, I checled the link and my IRAM and IROM are both matching the settings. I do not get the "protected prepherals" concept. But I used the spi code from the example pack . If you have readings to refer me to it would be great. I suspect that it has something to do with "stack overflow of your application growing into softdevice stack memory." Unfortunately, the Ble advertising is not working either. However everything compiles and uploads to the kit making LED1 to be on continuously. I have tried a variety of solutions like erasing the softdevice uploading the program and then uploading the softdevice but non has worked.

Reply
  • Hey Aryan, I checled the link and my IRAM and IROM are both matching the settings. I do not get the "protected prepherals" concept. But I used the spi code from the example pack . If you have readings to refer me to it would be great. I suspect that it has something to do with "stack overflow of your application growing into softdevice stack memory." Unfortunately, the Ble advertising is not working either. However everything compiles and uploads to the kit making LED1 to be on continuously. I have tried a variety of solutions like erasing the softdevice uploading the program and then uploading the softdevice but non has worked.

Children
No Data
Related