Search found 15 matches

by regh
Yesterday 17:24
Forum: VS1010 Forum
Topic: Dropping libraries
Replies: 1
Views: 11

Re: Dropping libraries

I may have solved the problem myself - the .c that handled the usb operations were being used by two of the libraries so I think the pointer was being corrupted so that it couldn't drop the usb library. I made a header file that had the pointer to the usb library and stuck header guards on and now i...
by regh
Mon 2021-01-18 18:27
Forum: VS1010 Forum
Topic: Dropping libraries
Replies: 1
Views: 11

Dropping libraries

Hi. I'm using the USBHDD library to read audio files from a connected modified usb stick. My project has been split up into several functions (Setup, MainPlayer etc) that are called from a bootloader so that the VS1010 doesn't run out of memory when using the usbhdd library. I want the user be able ...
by regh
Fri 2021-01-15 18:42
Forum: VS1010 Forum
Topic: Relock(3007) when running USBHDD
Replies: 0
Views: 16

Relock(3007) when running USBHDD

Hi I've implemented the USBHDD library in my application and sometimes it gets stuck when running the library: after running RunLoadedFunction(usbhdd, ENTRY_MAIN, NULL), where usbhdd = LoadLibrary("USBHDD", NULL), the output over uart prints Relock(3007) 3 times then just stays where it is (the prog...
by regh
Fri 2021-01-15 10:44
Forum: VS1010 Forum
Topic: Production programming using SPI Flash as program memory
Replies: 5
Views: 37

Re: Production programming using SPI Flash as program memory

Thanks for the fast response Hannu. I haven't come across the external flash prommer, is it mentioned in the handbook? Are there any links available that introduce this? At present, the config file we have has runlevels [0] and [?] (I can't remember the numerical run level ? one corresponds to) set ...
by regh
Thu 2021-01-14 18:31
Forum: VS1010 Forum
Topic: Production programming using SPI Flash as program memory
Replies: 5
Views: 37

Production programming using SPI Flash as program memory

Hi folks Our current system is planning to use just SPI Flash for program memory and not have any connector for SD cards to try to minimise the cost of the product. Does anyone have any recommendations for how to program the SPI flash in production? I know there is the flshtool thread http://www.vsd...
by regh
Fri 2020-12-18 16:22
Forum: VS1010 Forum
Topic: Conditions for player callback cancellation
Replies: 3
Views: 448

Re: Conditions for player callback cancellation

Hi folks Thanks for the response. I've written my own player callback as the product requirements have more button functions than are implemented in the default player. Setting pause to 0 works, I'd tested it as a workaround at first but was unaware that pause froze the player as you described so is...
by regh
Thu 2020-12-17 17:16
Forum: VS1010 Forum
Topic: Conditions for player callback cancellation
Replies: 3
Views: 448

Conditions for player callback cancellation

Hi folks As suggested in another thread http://www.vsdsp-forum.com/phpbb/viewtopic.php?f=15&t=2697 I'm splitting an application into several parts to reduce memory usage on the vs1010. I now have several .dlx files that are called sequentially from another executable using the RunLib function. The e...
by regh
Mon 2020-12-07 16:22
Forum: VS1010 Forum
Topic: Out of memory error when loading USBHDD
Replies: 6
Views: 580

Re: Out of memory error when loading USBHDD

Some further experimenting and I've found that I can load and run the USBHDD library with an application whose size is up to 16 KB, once it hits 17 KB it gives the out of memory error
by regh
Mon 2020-12-07 14:40
Forum: VS1010 Forum
Topic: Out of memory error when loading USBHDD
Replies: 6
Views: 580

Re: Out of memory error when loading USBHDD

I tried cutting out a big chunk of code to get the application to 25 KB, I'm now able to load USBHDD but then it fails when trying RunLoadedFunction(usbhdd, ENTRY_MAIN, NULL) 0: 0x1000:BOOT.DLX I[0x80..0x10d] X[0x1000..0x1033] Y[0x1000..0xfff] 1: 0x1034:TreePlayer. I[0x10e..0xd07] X[0x1034..0x1839] ...
by regh
Mon 2020-12-07 14:16
Forum: VS1010 Forum
Topic: Out of memory error when loading USBHDD
Replies: 6
Views: 580

Re: Out of memory error when loading USBHDD

Hi Hannu and Panu Thanks for the quick response. I've put a liblist command just before I try to load USBHDD and get this output on the terminal (the "Loading USBHDD library" is a printf statement I put in myself to see where things were going wrong): 0: 0x1000:BOOT.DLX I[0x80..0x10d] X[0x1000..0x10...